[Bug 212168] [panic] [UFS] use-after-free panic (0xdeadc0dedeadc0de)

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sun Sep 25 19:37:16 UTC 2016


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=212168

--- Comment #17 from Konstantin Belousov <kib at FreeBSD.org> ---
(In reply to Andrew Turner from comment #16)
Ok.

If you copy/paste WORKLIST_INSERT_UNLOCKED and only add the barrier there, does
the issue disappear as well ?

There is only one use of WORKLIST_INSERT_UNLOCKED in the ffs_softdep.c, and no
uses of WORKLIST_REMOVE_UNLOCKED at all.  All other calls are for
WORKLIST_INSERT/REMOVE(), which assert that the mount point' softdep lock is
owned.  Of course, it might be some other access for read which is not under
softdep lock.

The only use of WORKLIST_INSERT_UNLOCKED() is for the ffs_blkfree(), where some
local worklist is formed from the items.  The list is processed in the same
thread (passed to softdep_setup_blkfree()) in ffs_blkfree()->ffs_blkfree_cg()
for !TRIM case.

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


More information about the freebsd-fs mailing list