incubator-nuttx/fs
chenrun1 8f9857bf8c fs_lock:Check the nwaiter when deleting a bucket
Summary:
  Fixed the problem of releasing the bucket prematurely in multi-threaded flock scenarios.

A thread setlk
B thread setlk_wait
A thread releases lock but fails to determine if nwaiter causes the bucket to be released prematurely
post B thread causes crash due to heap use after free

https://github.com/apache/nuttx/issues/13821

Signed-off-by: chenrun1 <chenrun1@xiaomi.com>
2024-10-05 21:09:46 +08:00
..
aio vfs/file: add reference counting to prevent accidental close during reading writing... 2024-09-17 12:01:53 +08:00
binfs fs/xxfs:Replace kmm with fs heap 2024-09-30 16:30:56 +08:00
cromfs fs/xxfs:Replace kmm with fs heap 2024-09-30 16:30:56 +08:00
driver fs/inode: using rwsem lock as inode_lock to avoid deadlock 2024-10-02 01:56:46 +08:00
fat fs/xxfs:Replace kmm with fs heap 2024-09-30 16:30:56 +08:00
hostfs fs/xxfs:Replace kmm with fs heap 2024-09-30 16:30:56 +08:00
inode fs: fdcheck can't assert 2024-10-03 14:22:55 +08:00
littlefs fs/xxfs:Replace kmm with fs heap 2024-09-30 16:30:56 +08:00
mmap fs/xxfs:Replace kmm with fs heap 2024-09-30 16:30:56 +08:00
mnemofs fs/xxfs:Replace kmm with fs heap 2024-09-30 16:30:56 +08:00
mount fs/inode: using rwsem lock as inode_lock to avoid deadlock 2024-10-02 01:56:46 +08:00
mqueue fs/inode: using rwsem lock as inode_lock to avoid deadlock 2024-10-02 01:56:46 +08:00
nfs fs/xxfs:Replace kmm with fs heap 2024-09-30 16:30:56 +08:00
notify fs/xxfs:Replace kmm with fs heap 2024-09-30 16:30:56 +08:00
nxffs fs/xxfs:Replace kmm with fs heap 2024-09-30 16:30:56 +08:00
partition fs/xxfs:Replace kmm with fs heap 2024-09-30 16:30:56 +08:00
procfs task: use get_task_name where possible 2024-10-01 20:38:06 +08:00
romfs fs/ioctl:add FIOC_XIPBASE to get file xip address 2024-09-30 18:25:46 +08:00
rpmsgfs fs/xxfs:Replace kmm with fs heap 2024-09-30 16:30:56 +08:00
semaphore fs/inode: using rwsem lock as inode_lock to avoid deadlock 2024-10-02 01:56:46 +08:00
shm fs/inode: remove unnecessary return value for inode_addrefs 2024-10-02 01:56:46 +08:00
smartfs smartfs: return -ENOTTY if ioctl command is not found 2024-10-05 20:52:31 +08:00
socket fs/xxfs:Replace kmm with fs heap 2024-09-30 16:30:56 +08:00
spiffs fs/xxfs:Replace kmm with fs heap 2024-09-30 16:30:56 +08:00
tmpfs fs/ioctl:add FIOC_XIPBASE to get file xip address 2024-09-30 18:25:46 +08:00
unionfs fs/xxfs:Replace kmm with fs heap 2024-09-30 16:30:56 +08:00
userfs fs/xxfs:Replace kmm with fs heap 2024-09-30 16:30:56 +08:00
v9fs fs/xxfs:Replace kmm with fs heap 2024-09-30 16:30:56 +08:00
vfs fs_lock:Check the nwaiter when deleting a bucket 2024-10-05 21:09:46 +08:00
zipfs fs/xxfs:Replace kmm with fs heap 2024-09-30 16:30:56 +08:00
CMakeLists.txt fs/xxfs:Replace kmm with fs heap 2024-09-30 16:30:56 +08:00
Kconfig fs/xxfs:Replace kmm with fs heap 2024-09-30 16:30:56 +08:00
Makefile fs/xxfs:Replace kmm with fs heap 2024-09-30 16:30:56 +08:00
fs_heap.c fs/xxfs:Replace kmm with fs heap 2024-09-30 16:30:56 +08:00
fs_heap.h fs/xxfs:Replace kmm with fs heap 2024-09-30 16:30:56 +08:00
fs_initialize.c fs: add fs_heap, support shm/tmpfs/pseudofile with indepent heap 2024-08-25 22:12:37 +08:00