Oopenvela-robotshm_open: fix synax error
| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
fs: migrate to SPDX identifier Most tools used for compliance and SBOM generation use SPDX identifiers This change brings us a step closer to an easy SBOM generation. Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com> | 2 个月前 | |
Merge branch 'master' into vela apache/nuttx commit id: eb27ebba8adfe29644a7b890f86e6f16941921dc Signed-off-by: ligd <liguiding1@xiaomi.com> Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com> | 2 个月前 | |
fs: migrate to SPDX identifier Most tools used for compliance and SBOM generation use SPDX identifiers This change brings us a step closer to an easy SBOM generation. Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com> | 2 个月前 | |
shm_open: fix synax error Signed-off-by: tengshuangshuang <tengshuangshuang@xiaomi.com> | 2 个月前 | |
fs: Move inotify.c from fs/notify/ to fs/vfs/ and merge fs/notify/notify.h into fs/vfs/vfs.h Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com> | 2 个月前 | |
shmfs: Check for existing mapping before adding new entry Add pre-check in shmfs_add_map() to avoid duplicate memory mappings Reproduce testcase: test(void) { void *buffer; int memfd = memfd_create("optee", O_CREAT | O_CLOEXEC); ftruncate(memfd, size); buffer = mmap(NULL, size, PROT_READ | PROT_WRITE, MAP_SHARED, memfd, 0); close(memfd); *((int *)buffer) = 0xdeadbeef; usleep(10); *((int *)buffer) = 0xdeadbeef; munmap(buffer, size); } loop run test() in several pthreads, you will find used-after-free Root cause: thread 1: thread2: memfd_create() -- refs = 1 ftruncate() -- alloc mem mmap() -- refs = 2 close() -- refs = 1 memfd_create() -- refs = 2 ftruncate() mmap() -- refs = 3 close() -- refs = 2 munmap() -- refs = 2 munmap() -- refs = 1 //error -- free mem access used after free mmap() -- refs = 1 free mem Signed-off-by: ligd <liguiding1@xiaomi.com> | 2 个月前 | |
fs: migrate to SPDX identifier Most tools used for compliance and SBOM generation use SPDX identifiers This change brings us a step closer to an easy SBOM generation. Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com> | 2 个月前 | |
fs: add CONFIG_FS_HEAPLARGE_ONLY support User can decide only shm use fs heap Signed-off-by: ligd <liguiding1@xiaomi.com> | 2 个月前 |