nuttx/fs
zhangshoukui 0b084308ba Fix Multiple close fd when SMP enable
task1:
The refs is 0 but the inode has not been released
task2:
Executing files_duplist, get filep with refs is zero, but the inode has not yet released.

[    0.530600] [CPU1] [ 6] [ ALERT] [ap] sched_dumpstack: backtrace:
[    0.530800] [CPU1] [ 6] [ ALERT] [ap] sched_dumpstack: [ 6] [<0x4045172>] backtrace_unwind+0x241/0x244
[    0.531200] [CPU1] [ 6] [ ALERT] [ap] sched_dumpstack: [ 6] [<0x4009150>] sched_backtrace+0x27/0x4c
[    0.531500] [CPU1] [ 6] [ ALERT] [ap] sched_dumpstack: [ 6] [<0x402f0fa>] sched_dumpstack+0x3d/0xa0
[    0.531700] [CPU1] [ 6] [ ALERT] [ap] sched_dumpstack: [ 6] [<0x4002c90>] _assert+0x1e3/0x564
[    0.532000] [CPU1] [ 6] [ ALERT] [ap] sched_dumpstack: [ 6] [<0x40221f6>] __assert+0x19/0x24
[    0.532200] [CPU1] [ 6] [ ALERT] [ap] sched_dumpstack: [ 6] [<0x41fe376>] tcp_stop_monitor+0x61/0x6c
[    0.532500] [CPU1] [ 6] [ ALERT] [ap] sched_dumpstack: [ 6] [<0x41fe19e>] tcp_close+0xad/0xdc
[    0.532700] [CPU1] [ 6] [ ALERT] [ap] sched_dumpstack: [ 6] [<0x41ecc18>] inet_close+0x7b/0x8c
[    0.533000] [CPU1] [ 6] [ ALERT] [ap] sched_dumpstack: [ 6] [<0x41ec374>] psock_close+0x27/0x70
[    0.533300] [CPU1] [ 6] [ ALERT] [ap] sched_dumpstack: [ 6] [<0x420b68e>] sock_file_close+0x15/0x3c
[    0.533500] [CPU1] [ 6] [ ALERT] [ap] sched_dumpstack: [ 6] [<0x4206704>] file_close+0x1f/0x80
[    0.533800] [CPU1] [ 6] [ ALERT] [ap] sched_dumpstack: [ 6] [<0x4205278>] files_duplist+0x39f/0x45c
[    0.534100] [CPU1] [ 6] [ ALERT] [ap] sched_dumpstack: [ 6] [<0x4000e3c>] group_setuptaskfiles+0x57/0xc0
[    0.534300] [CPU1] [ 6] [ ALERT] [ap] sched_dumpstack: [ 6] [<0x400bc6c>] nxtask_init+0x5b/0x13c

Signed-off-by: zhangshoukui <zhangshoukui@xiaomi.com>
2024-09-17 12:01:53 +08:00
..
aio vfs/file: add reference counting to prevent accidental close during reading writing... 2024-09-17 12:01:53 +08:00
binfs nuttx: fix multiple 'FAR', 'CODE' and style issues 2024-08-25 19:22:15 +08:00
cromfs nuttx: fix multiple 'FAR', 'CODE' and style issues 2024-08-25 19:22:15 +08:00
driver nuttx: fix multiple 'FAR', 'CODE' and style issues 2024-08-25 19:22:15 +08:00
fat nuttx: fix multiple 'FAR', 'CODE' and style issues 2024-08-25 19:22:15 +08:00
hostfs fs/hostfs: Replace strcpy with memcpy 2024-09-06 12:27:55 +08:00
inode Fix Multiple close fd when SMP enable 2024-09-17 12:01:53 +08:00
littlefs littlefs/Make.defs:Add get path temp patch 2024-02-21 06:15:39 -08:00
mmap vfs/file: add reference counting to prevent accidental close during reading writing... 2024-09-17 12:01:53 +08:00
mnemofs boards/sim: Defconfigs for nand and mnemofs 2024-09-05 11:02:05 +08:00
mount Revert "fs/mount and fs/romfs: Add support to mount a ROMFS volume using an MTD driver interface using the standard mount() operation." 2024-09-16 12:27:40 +08:00
mqueue fs/inode: using inode reference to indicate unlink and simply code 2024-09-09 08:42:34 +08:00
nfs fs: nfs: Fix nfsmount error 2024-08-27 21:57:18 +08:00
notify vfs/file: add reference counting to prevent accidental close during reading writing... 2024-09-17 12:01:53 +08:00
nxffs nuttx: resolve various 'FAR' and 'CODE' issues 2024-08-26 10:21:03 +08:00
partition fs: partition: fs_mbr: fix for MBR block count calculation. 2024-01-14 01:29:24 -08:00
procfs vfs/file: add reference counting to prevent accidental close during reading writing... 2024-09-17 12:01:53 +08:00
romfs Revert "fs/mount and fs/romfs: Add support to mount a ROMFS volume using an MTD driver interface using the standard mount() operation." 2024-09-16 12:27:40 +08:00
rpmsgfs rpmsgfs: fix out of bounds access caused by data transmission farmat 2024-08-22 20:25:49 +08:00
semaphore fs/inode: using inode reference to indicate unlink and simply code 2024-09-09 08:42:34 +08:00
shm fs/inode: using inode reference to indicate unlink and simply code 2024-09-09 08:42:34 +08:00
smartfs smartfs procfs: fix double declare g_smartfs_operations 2024-09-10 11:32:32 +08:00
socket vfs/file: add reference counting to prevent accidental close during reading writing... 2024-09-17 12:01:53 +08:00
spiffs nuttx: fix multiple 'FAR', 'CODE' and style issues 2024-08-25 19:22:15 +08:00
tmpfs fs: add fs_heap, support shm/tmpfs/pseudofile with indepent heap 2024-08-25 22:12:37 +08:00
unionfs nuttx: fix multiple 'FAR', 'CODE' and style issues 2024-08-25 19:22:15 +08:00
userfs fs: procfs add poll support 2023-12-26 19:23:13 -08:00
v9fs v9fs/client.c:fix in x86 qemu crash 2024-08-19 11:05:40 -03:00
vfs Fix vfs/fs_fstatfs.c:60:21: warning: variable 'inode' set but not used 2024-09-17 12:01:53 +08:00
zipfs fs: procfs add poll support 2023-12-26 19:23:13 -08:00
CMakeLists.txt fs: add fs_heap, support shm/tmpfs/pseudofile with indepent heap 2024-08-25 22:12:37 +08:00
fs_heap.c fs: add fs_heap, support shm/tmpfs/pseudofile with indepent heap 2024-08-25 22:12:37 +08:00
fs_heap.h fs: add fs_heap, support shm/tmpfs/pseudofile with indepent heap 2024-08-25 22:12:37 +08:00
fs_initialize.c fs: add fs_heap, support shm/tmpfs/pseudofile with indepent heap 2024-08-25 22:12:37 +08:00
Kconfig fs: add fs_heap, support shm/tmpfs/pseudofile with indepent heap 2024-08-25 22:12:37 +08:00
Makefile Revert "build depend:Revert Make.dep intermediate ddc file" 2024-09-15 19:29:47 +08:00