Module Name:    src
Committed By:   hannken
Date:           Tue Mar 12 14:03:35 UTC 2019

Modified Files:
        src/sys/kern: vfs_lookup.c

Log Message:
Take a reference on ndp->ni_rootdir and ndp->ni_erootdir.

A multithreaded process may chroot during namei() and we end up with
vn_under() trying to reference the now unreferenced ni_rootdir.

Ok: David Holland <dholl...@netbsd.org>

Reported-by: syzbot+889319cdf91a3d037...@syzkaller.appspotmail.com


To generate a diff of this commit:
cvs rdiff -u -r1.208 -r1.209 src/sys/kern/vfs_lookup.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Reply via email to