Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 02 Jan 2017 00:43:46 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-bugs@FreeBSD.org
Subject:   [Bug 215705] VOP_REMOVE call with invalid cn_nameptr
Message-ID:  <bug-215705-8@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D215705

            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@FreeBSD.org
          Reporter: root@linkage.white-void.net

Created attachment 178439
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D178439&action=
=3Dedit
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.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-215705-8>