Bug 214015
Summary: | module refcnt being 0 after testing fstests generic/108 prevents module removal | ||
---|---|---|---|
Product: | Other | Reporter: | Luis Chamberlain (mcgrof) |
Component: | Modules | Assignee: | Luis Chamberlain (mcgrof) |
Status: | ASSIGNED --- | ||
Severity: | normal | ||
Priority: | P5 | ||
Hardware: | All | ||
OS: | Linux | ||
Kernel Version: | Subsystem: | ||
Regression: | No | Bisected commit-id: | |
Attachments: |
v1 mod-refcnt-race.sh
busy-open-block-device-sleep.c |
Description
Luis Chamberlain
2021-08-10 02:31:10 UTC
I have patches for kmod which addresses these issues. I'll post patches soon, but using this to track the issue and the script which helps to reproduce the issues. Created attachment 298249 [details]
busy-open-block-device-sleep.c
The attached can be used with the script to induce the race where the race for the refcnt is force and then a few module removal attempts should fail after the refcnt is 0.
v2 Patches posted on: https://lkml.kernel.org/r/20210810051602.3067384-1-mcgrof@kernel.org |