Date: Wed, 28 Nov 2018 00:54:21 +0300 From: Vladimir Kondratyev <vladimir@kondratyev.su> To: current@freebsd.org Subject: r340343 triggers kernel assertion if file is opened with O_BENEATH flag set through symlink Message-ID: <d8fd4b5d-b6c7-c56e-79f3-504daceb2a51@kondratyev.su>
next in thread | raw e-mail | index | archive | help
Following test case triggers assertion after r340343: #include <fcntl.h> int main(int argc, char **argv) { =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 openat(open("/etc", O_RDONLY),= "termcap", O_RDONLY | O_BENEATH); } It results in: panic: Assertion (ndp->ni_lcf & NI_LCF_LATCH) !=3D 0 failed at /usr/src/sys/kern/vfs_lookup.c:182
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?d8fd4b5d-b6c7-c56e-79f3-504daceb2a51>