[Bug 215705] VOP_REMOVE call with invalid cn_nameptr
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Mon Jan 2 00:43:46 UTC 2017
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=215705
Bug ID: 215705
Summary: VOP_REMOVE call with invalid cn_nameptr
Product: Base System
Version: 10.3-RELEASE
Hardware: Any
OS: Any
Status: New
Severity: Affects Only Me
Priority: ---
Component: kern
Assignee: freebsd-bugs at FreeBSD.org
Reporter: root at linkage.white-void.net
Created attachment 178439
--> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=178439&action=edit
patch
In kern_unlinkat, VOP_REMOVE is invoked with invalid cn_nameptr, which was
freed by iname.
Since the memory region at cn_nameptr is already freed while VOP_REMOVE,
uma_zalloc with namei_zone may return a block overwrapping cn_nameptr.
Adding SAVENAME flag to NDINIT_ATRIGHTS(iname call) solves this problem.
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-bugs
mailing list