incubator-nuttx/fs/vfs
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
..
CMakeLists.txt fs_lock: fix cmake build error 2024-10-05 13:43:02 +08:00
Kconfig fs: add backtrace to where file opens 2024-06-24 23:53:59 +08:00
Make.defs fs_lock:Implementing file locks 2024-02-21 13:29:36 -03:00
fs_chstat.c fs/chmod/fchmod/lchmod: only set permissions by mode_t and ignore other bits 2024-09-23 14:57:37 +08:00
fs_close.c fs:notify add support for inotify 2024-08-22 01:50:37 +08:00
fs_dir.c fs/xxfs:Replace kmm with fs heap 2024-09-30 16:30:56 +08:00
fs_dup.c fs: fix dup not compatible with fdcheck & fdsan 2024-09-30 16:53:51 +08:00
fs_dup2.c fs/inode: remove unnecessary return value for inode_addrefs 2024-10-02 01:56:46 +08:00
fs_epoll.c fs/xxfs:Replace kmm with fs heap 2024-09-30 16:30:56 +08:00
fs_eventfd.c fs/xxfs:Replace kmm with fs heap 2024-09-30 16:30:56 +08:00
fs_fchstat.c fs/chmod/fchmod/lchmod: only set permissions by mode_t and ignore other bits 2024-09-23 14:57:37 +08:00
fs_fcntl.c fs_fcntl: fix the ret value not check error 2024-09-27 00:20:53 +08:00
fs_fstat.c vfs/file: add reference counting to prevent accidental close during reading writing... 2024-09-17 12:01:53 +08:00
fs_fstatfs.c Fix vfs/fs_fstatfs.c:60:21: warning: variable 'inode' set but not used 2024-09-17 12:01:53 +08:00
fs_fsync.c vfs/file: add reference counting to prevent accidental close during reading writing... 2024-09-17 12:01:53 +08:00
fs_ioctl.c vfs/file: add reference counting to prevent accidental close during reading writing... 2024-09-17 12:01:53 +08:00
fs_link.c fs: Implment link as a normal function instead macro 2023-02-04 18:31:23 -03:00
fs_lock.c fs_lock:Check the nwaiter when deleting a bucket 2024-10-05 21:09:46 +08:00
fs_lseek.c vfs/file: add reference counting to prevent accidental close during reading writing... 2024-09-17 12:01:53 +08:00
fs_mkdir.c fs/inode: using rwsem lock as inode_lock to avoid deadlock 2024-10-02 01:56:46 +08:00
fs_open.c BCH: Add readonly configuration for BCH devices 2024-09-19 03:53:20 +08:00
fs_poll.c fs/xxfs:Replace kmm with fs heap 2024-09-30 16:30:56 +08:00
fs_pread.c vfs/file: add reference counting to prevent accidental close during reading writing... 2024-09-17 12:01:53 +08:00
fs_pseudofile.c fs/inode: remove unnecessary return value for inode_addrefs 2024-10-02 01:56:46 +08:00
fs_pwrite.c vfs/file: add reference counting to prevent accidental close during reading writing... 2024-09-17 12:01:53 +08:00
fs_read.c file_read: fix a bogus cast 2024-09-17 20:10:31 +08:00
fs_readlink.c
fs_rename.c fs/inode: using rwsem lock as inode_lock to avoid deadlock 2024-10-02 01:56:46 +08:00
fs_rmdir.c fs/inode: using rwsem lock as inode_lock to avoid deadlock 2024-10-02 01:56:46 +08:00
fs_select.c fs/xxfs:Replace kmm with fs heap 2024-09-30 16:30:56 +08:00
fs_sendfile.c fs/xxfs:Replace kmm with fs heap 2024-09-30 16:30:56 +08:00
fs_signalfd.c fs/xxfs:Replace kmm with fs heap 2024-09-30 16:30:56 +08:00
fs_stat.c fs/shmfs: Fix stat() system call for shmfs object 2024-02-02 09:12:18 -08:00
fs_statfs.c fs: move memset to upper lever for statfs 2023-06-16 11:10:25 +08:00
fs_symlink.c fs/inode: using rwsem lock as inode_lock to avoid deadlock 2024-10-02 01:56:46 +08:00
fs_syncfs.c vfs/file: add reference counting to prevent accidental close during reading writing... 2024-09-17 12:01:53 +08:00
fs_timerfd.c fs/xxfs:Replace kmm with fs heap 2024-09-30 16:30:56 +08:00
fs_truncate.c vfs/file: add reference counting to prevent accidental close during reading writing... 2024-09-17 12:01:53 +08:00
fs_unlink.c fs/inode: using rwsem lock as inode_lock to avoid deadlock 2024-10-02 01:56:46 +08:00
fs_write.c vfs/file: add reference counting to prevent accidental close during reading writing... 2024-09-17 12:01:53 +08:00
lock.h fs_lock:Implementing file locks 2024-02-21 13:29:36 -03:00