[Bug 230962] Kernel panic when writing extended attributes with soft updates enabled

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Wed Mar 20 23:11:45 UTC 2019


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

--- Comment #21 from commit-hook at freebsd.org ---
A commit references this bug:

Author: mckusick
Date: Wed Mar 20 23:11:05 UTC 2019
New revision: 345352
URL: https://svnweb.freebsd.org/changeset/base/345352

Log:
  This is an additional and hopefully final fix for bug report 230962.
  This bug was introduced with the change to use softdep_bp_to_mp()
  in January 2018 changes -r327723 and -r327821. The softdep_bp_to_mp()
  function failed to include VSOCK as one of the valid cases.

  Although local-domain sockets do not allocate blocks in the filesystem,
  they will allocate blocks if they use extended attributes (such as
  ACLs). Thus, softdep_bp_to_mp() needs to return a non-NULL mount
  pointer when presented with a socket vnode so that the soft updates
  write complete will properly process the soft updates structures
  associated with the extended attribute blocks. It was the failure
  to process these soft updates structures, thus leaving them hanging
  off the buffer, which lead to the "panic: softdep_deallocate_dependencies:
  dangling deps" when trying to clean up the buffer after it was written.

  PR:           230962
  Reported by:  2t8mr7kx9f at protonmail.com
  Reviewed by:  kib
  Tested by:    Peter Holm
  MFC after:    1 week
  Sponsored by: Netflix

Changes:
  head/sys/ufs/ffs/ffs_softdep.c

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


More information about the freebsd-fs mailing list