NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: kern/57320: ATF test case kernel/t_magic_symlinks:machine_arch fails on RPI02W/evbarm only



The following reply was made to PR kern/57320; it has been noted by GNATS.

From: "David H. Gutteridge" <david%gutteridge.ca@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc: 
Subject: Re: kern/57320: ATF test case kernel/t_magic_symlinks:machine_arch
 fails on RPI02W/evbarm only
Date: Tue, 11 Apr 2023 23:30:40 -0400

 This is occurring because the test assumes that @machine_arch will
 resolve to the same value as "uname -p". For your hardware, this isn't
 the case. "uname -p" returns (I assume) "earmv6hf" (as would "sysctl
 hw.machine_arch"). However, @machine_arch there becomes simply "earm",
 so there's a mismatch.
 
 This error is also appearing in our automated evbarm tests, and I was
 able to reproduce it myself on a Raspberry Pi Model B.
 
 Arguably, this is a bug, as it doesn't match what symlink(7) states
 (that @machine_arch matches "uname -p"). It doesn't seem useful to
 resolve instead to a value only the kernel interally sees, so I think
 vfs_lookup.c might reasonably be tweaked to set the value expected by
 userland. (Now, I may have misread something along the way. This is
 all new to me.)
 
 Dave
 


Home | Main Index | Thread Index | Old Index