r340343 triggers kernel assertion if file is opened with O_BENEATH flag set through symlink

From: Vladimir Kondratyev <vladimir_at_kondratyev.su>
Date: Wed, 28 Nov 2018 00:54:21 +0300
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
Received on Tue Nov 27 2018 - 20:54:47 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:41:19 UTC