The debug traces for reference counting in ZFS use the pointer of the
owning object as a "tag" for references to check that when an object
drops a reference it had actually held one. In a couple of places ZFS
drops references after freeing the owning object. In userland GCC
realizes this is a use after free. However, since only the value of
the pointer is used and it isn't indirected the use is harmless.
Details
Details
- Reviewers
emaste imp - Commits
- rGe67b246734e3: libzpool: Disable -Wuse-after-free for dbuf.c.
Diff Detail
Diff Detail
- Repository
- rG FreeBSD src repository
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
Comment Actions
Maybe worth a brief comment beside CFLAGS.dbuf.c also, since based on the name this option seems like it would have no valid use.