nuttx/fs/inode
Xiang Xiao 86fab49c46 fs: Fix the race condition in file_dup
NULL inode passed to files_allocate doesn't mark file struct in the
allocated state, so other threads which invovle in file allocation
(e.g. open or dup) may allocate the same file struct again.

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Change-Id: I53ff876eae3c7a1e311e7f671686b73a4b4ef891
2021-01-08 11:01:46 +08:00
..
fs_filedetach.c include/nuttx/sched.h: Make naming of all internal names consistent: 2020-05-09 14:19:08 -03:00
fs_fileopen.c fs/inode/fs_fileopen.c: use nx_close instead of close 2020-10-28 09:11:50 -07:00
fs_files.c fs: Fix the race condition in file_dup 2021-01-08 11:01:46 +08:00
fs_foreachinode.c fs: Skip the enumeration of root directory in foreach_inode 2020-09-30 12:26:57 +02:00
fs_inode.c vfs: Create a node as the root of pseudo file system 2020-09-16 11:44:57 -07:00
fs_inodeaddref.c Check return from nxsem_wait_initialize() 2020-03-30 01:33:31 +01:00
fs_inodebasename.c
fs_inodefind.c Check return from nxsem_wait_initialize() 2020-03-30 01:33:31 +01:00
fs_inodefree.c FS: Separate inode_search() and inode_free() from fs_inode.c and put in separate files. Flesh out symbolic link logic in stat() and readdir(). There are still some issues with stat(). 2017-02-03 11:23:57 -06:00
fs_inoderelease.c Fix a fatal typo in a recent change 2020-04-01 11:30:45 +01:00
fs_inoderemove.c fs: Add the relative path support 2020-09-24 03:13:27 -07:00
fs_inodereserve.c fs: Add the relative path support 2020-09-24 03:13:27 -07:00
fs_inodesearch.c fs: Add the relative path support 2020-09-24 03:13:27 -07:00
inode.h fs: Fix the race condition in file_dup 2021-01-08 11:01:46 +08:00
Make.defs fs: Move file_close from fs/inode/fs_fileclose.c to fs/vfs/fs_close.c 2021-01-03 15:45:52 +01:00