Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: src/sys/dev



Module Name:    src
Committed By:   riastradh
Date:           Mon Nov 16 20:20:47 UTC 2026

Modified Files:
        src/sys/dev: fss.c

Log Message:
fss(4): Avoid races with drvctl detach.

Attach and detach by opening and closing /dev/fssN is serialized by
fss_device_lock, but concurrent `drvctl -d fssN' can cause an fss
instance to be detached and freed while fss_open or fss_close is
still trying to use it.

Prevent concurrent detach during other operations like fss_ioctl or
fss_strategy by making fss_detach fail if sc_flags shows it is held
open.

Prompted by:

PR kern/60986: fssconfig panics on bad backing store type


To generate a diff of this commit:
cvs rdiff -u -r1.122 -r1.123 src/sys/dev/fss.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.




Home | Main Index | Thread Index | Old Index