HomeFreeBSD

UFS: panic rather than forcibly unmount the root fs

Description

UFS: panic rather than forcibly unmount the root fs

If the root fs is forcibly unmounted then basically every process
will die with a SEGV as soon as it tries to run again because libc.so
is gone, which leaves the system basically hung. It seems better
to just panic instead, so let's do that.

PR: 276944
Requested-by: karels
Reviewed-by: imp, mckusick, karels
Sponsored-by: Netflix
Differential Revision: https://reviews.freebsd.org/D41387

(cherry picked from commit 60a41168d195cc09f7351c2c2bcafc389ed52406)

Details

Provenance
chsAuthored on Aug 10 2023, 4:55 PM
Differential Revision
D41387: UFS: panic rather than forcibly unmount the root fs
Parents
rG6fd2c94c8a04: netinet/tcp_var.h: always define IS_FASTOPEN() for kernel compilation env
Branches
Unknown
Tags
Unknown