diff options
| author | Linus Torvalds <[email protected]> | 2024-10-21 18:57:38 +0000 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2024-10-21 22:41:29 +0000 |
| commit | a360f311f57a36e96d88fa8086b749159714dcd2 (patch) | |
| tree | 8b05e0929f73f69e55af2a12889ea893108e8cea /drivers/fpga/zynq-fpga.c | |
| parent | Merge tag 'for-linus' of git://git.kernel.org/pub/scm/virt/kvm/kvm (diff) | |
| download | kernel-a360f311f57a36e96d88fa8086b749159714dcd2.tar.gz kernel-a360f311f57a36e96d88fa8086b749159714dcd2.zip | |
9p: fix slab cache name creation for real
This was attempted by using the dev_name in the slab cache name, but as
Omar Sandoval pointed out, that can be an arbitrary string, eg something
like "/dev/root". Which in turn trips verify_dirent_name(), which fails
if a filename contains a slash.
So just make it use a sequence counter, and make it an atomic_t to avoid
any possible races or locking issues.
Reported-and-tested-by: Omar Sandoval <[email protected]>
Link: https://lore.kernel.org/all/[email protected]/
Fixes: 79efebae4afc ("9p: Avoid creating multiple slab caches with the same name")
Acked-by: Vlastimil Babka <[email protected]>
Cc: Dominique Martinet <[email protected]>
Cc: Thorsten Leemhuis <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'drivers/fpga/zynq-fpga.c')
0 files changed, 0 insertions, 0 deletions
