bcachefs: grab s_umount only if snapshotting
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
Original description
In the Linux kernel, the following vulnerability has been resolved:
bcachefs: grab s_umount only if snapshotting
When I was testing mongodb over bcachefs with compression, there is a lockdep warning when snapshotting mongodb data volume.
$ cat test.sh prog=bcachefs
$prog subvolume create /mnt/data $prog subvolume create /mnt/data/snapshots
while true;do $prog subvolume snapshot /mnt/data /mnt/data/snapshots/$(date +%s) sleep 1s done
$ cat /etc/mongodb.conf systemLog: destination: file logAppend: true path: /mnt/data/mongod.log
storage: dbPath: /mnt/data/
From the CVE record · Linux
References
- git.kernel.org/stable/c/5b41d3fd04c6757b9c2a60a0c5b2609cae9999dfPatch
- git.kernel.org/stable/c/2acc59dd88d27ad69b66ded80df16c042b04eeecPatch
- github.com/CVEProject/cvelistV5/tree/main/cves/2024/26xxx/CVE-2024-26658.json
- nvd.nist.gov/vuln/detail/CVE-2024-26658
- git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git