Page MenuHomeFreeBSD

linkat(2): check NIRES_EMPTYPATH on the first fd arg
ClosedPublic

Authored by kib on Apr 19 2021, 1:38 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Jan 18, 10:07 PM
Unknown Object (File)
Sat, Jan 18, 5:40 PM
Unknown Object (File)
Sat, Jan 18, 11:14 AM
Unknown Object (File)
Mon, Jan 13, 10:32 PM
Unknown Object (File)
Dec 4 2024, 2:15 PM
Unknown Object (File)
Nov 25 2024, 4:07 PM
Unknown Object (File)
Nov 13 2024, 8:56 PM
Unknown Object (File)
Nov 12 2024, 2:27 AM
Subscribers
None

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

kib requested review of this revision.Apr 19 2021, 1:38 PM
kib created this revision.
sys/kern/vfs_syscalls.c
1581

How can it be null? kern_linkat_vp() dereferences nd.ni_vp unconditionally.

This revision is now accepted and ready to land.Apr 19 2021, 1:51 PM
kib marked an inline comment as done.Apr 19 2021, 3:02 PM
kib added inline comments.
sys/kern/vfs_syscalls.c
1581

Yes, LOOKUP only returns success when there is something to lookup.

kib marked an inline comment as done.

Remove ni_vp != NULL check.

This revision now requires review to proceed.Apr 19 2021, 3:03 PM
This revision is now accepted and ready to land.Apr 19 2021, 3:04 PM