[Bug 276944] no kernel panic after forcible unmount of /

From: <bugzilla-noreply_at_freebsd.org>
Date: Sat, 10 Feb 2024 16:31:10 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=276944

            Bug ID: 276944
           Summary: no kernel panic after forcible unmount of /
           Product: Base System
           Version: 13.2-STABLE
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: kern
          Assignee: bugs@FreeBSD.org
          Reporter: jfc@mit.edu

Created attachment 248309
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=248309&action=edit
crash screenshot

My system was hung because the kernel failed to panic after / was forcibly
unmounted due to an I/O error.  There is code in ffs_fsfail_cleanup_locked to
panic in this case.  It did not work.  The system kept running but processes
crashed as they tried to page in from the bad disk.

Key lines below.  See attached screenshot for more.  There are no log messages
because /var/log/messages is on the bad disk.  I am running a stable/13 kernel
("13.3-STABLE") on an old amd64 system.

g_vfs_done():ada0p2[WRITE(offset=1392508928, length=20480)]error=6
UFS: forcibly unmounting /dev/ada0p2 from /
swap_pager: I/O error - pagein failed

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