Oopenvela-robotRevert "fs/procfs: fix format warning in proc_groupstatus"
| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
procfs: provide the simple procfs implementation Signed-off-by: chenzepei517 <chenzepei@xiaomi.com> | 2 个月前 | |
fs/procfs: Supports any number of thread displays After the number of threads exceeds the array size, it will not be displayed. Any number of threads can be displayed using dynamic adaptation Signed-off-by: yinshengkai <yinshengkai@xiaomi.com> | 2 个月前 | |
procfs: provide the simple procfs implementation Signed-off-by: chenzepei517 <chenzepei@xiaomi.com> | 2 个月前 | |
procfs: fix procfs direntry duplication issue Signed-off-by: yezhonghui <yezhonghui@xiaomi.com> | 2 个月前 | |
fs/procfs: delete all child nodes dup implementation Use the dup implementation on top of procfs like pseudo file, use open instead of dup implementation Signed-off-by: yinshengkai <yinshengkai@xiaomi.com> | 2 个月前 | |
fs/procfs: delete all child nodes dup implementation Use the dup implementation on top of procfs like pseudo file, use open instead of dup implementation Signed-off-by: yinshengkai <yinshengkai@xiaomi.com> | 2 个月前 | |
percpu: remove all per_cpu_var use per_cpu_var_smp Use this_cpu for this_cpu_var to keep compatible with AMP Move this_cpu from sched.h to percpu.h for compatible issue Signed-off-by: buxiasen <buxiasen@xiaomi.com> | 2 个月前 | |
fs/procfs: delete all child nodes dup implementation Use the dup implementation on top of procfs like pseudo file, use open instead of dup implementation Signed-off-by: yinshengkai <yinshengkai@xiaomi.com> | 2 个月前 | |
fs/procfs: delete all child nodes dup implementation Use the dup implementation on top of procfs like pseudo file, use open instead of dup implementation Signed-off-by: yinshengkai <yinshengkai@xiaomi.com> | 2 个月前 | |
fs/procfs: fix race condition in meminfo traversal using ref counting When Thread A is traversing the procfs meminfo linked list and gets preempted, Thread B may exit (while in critical_section) and call procfs_unregister_meminfo, which removes the entry and frees the heap. When Thread A resumes and tries to access the entry's heap, it causes a use-after-free bug. This patch fixes the issue by: 1. Adding reference counting (refs) and a deletion flag (deleted) to procfs_meminfo_entry_s. 2. Using spinlock instead of mutex for list protection, since the unregister can happen in critical_section context. 3. Implementing a reference counting protocol: - Readers increment refs before accessing heap, decrement after - unregister sets deleted=true and removes from list - If refs==0 at unregister time, entry is freed immediately - Otherwise, the last reader (when refs becomes 0) frees the entry Signed-off-by: ligd <liguiding1@xiaomi.com> | 2 个月前 | |
fs/procfs: delete all child nodes dup implementation Use the dup implementation on top of procfs like pseudo file, use open instead of dup implementation Signed-off-by: yinshengkai <yinshengkai@xiaomi.com> | 2 个月前 | |
Revert "fs/procfs: fix format warning in proc_groupstatus" This reverts commit 89ad8fd921027e0a6790af7df367e2dd2549f989. Reason for revert: revert type warning process Signed-off-by: zhangyu117 <zhangyu117@xiaomi.com> | 2 个月前 | |
procfs: provide the simple procfs implementation Signed-off-by: chenzepei517 <chenzepei@xiaomi.com> | 2 个月前 | |
fs/procfs: delete all child nodes dup implementation Use the dup implementation on top of procfs like pseudo file, use open instead of dup implementation Signed-off-by: yinshengkai <yinshengkai@xiaomi.com> | 2 个月前 | |
fs/procfs: delete all child nodes dup implementation Use the dup implementation on top of procfs like pseudo file, use open instead of dup implementation Signed-off-by: yinshengkai <yinshengkai@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/procfs: delete all child nodes dup implementation Use the dup implementation on top of procfs like pseudo file, use open instead of dup implementation Signed-off-by: yinshengkai <yinshengkai@xiaomi.com> | 2 个月前 | |
fs/procfs: delete all child nodes dup implementation Use the dup implementation on top of procfs like pseudo file, use open instead of dup implementation Signed-off-by: yinshengkai <yinshengkai@xiaomi.com> | 2 个月前 |