]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
linprocfs: find cwd and root handling
authorMateusz Guzik <mjg@FreeBSD.org>
Thu, 30 Sep 2021 10:50:18 +0000 (12:50 +0200)
committerMateusz Guzik <mjg@FreeBSD.org>
Thu, 30 Sep 2021 10:59:58 +0000 (12:59 +0200)
commit69ab52838655912cf89699e0b2d21d244d3b9b27
treec896b6884558fff724bb1559fd95c06d033a70af
parent85c855d31b18d7a8ab534259f27444c81b6ec797
linprocfs: find cwd and root handling

The code would incorrectly use curthread instead of the target proc to
resolve vnodes.

Fixes: 8d03b99b9dafe928 ("fd: move vnodes out of filedesc into a dedicated structure")
PR: 258729
Noted by:  Damjan Jovanovic <damjan.jov@gmail.com>
sys/compat/linprocfs/linprocfs.c