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>
index | next in thread | raw e-mail
Following test case triggers assertion after r340343:
#include <fcntl.h>
int
main(int argc, char **argv)
{
openat(open("/etc", O_RDONLY), "termcap", O_RDONLY | O_BENEATH);
}
It results in:
panic: Assertion (ndp->ni_lcf & NI_LCF_LATCH) != 0 failed at
/usr/src/sys/kern/vfs_lookup.c:182
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?d8fd4b5d-b6c7-c56e-79f3-504daceb2a51>
