sched: Identify the stack need to free by TCB_FLAG_FREE_STACK

instead calling kmm_heapmember or umm_heapmember because:
1.The stack supplied by caller may allocate from heap too
2.It's hard to implement these two function in ASan case

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Change-Id: I196377822b7c4643ab4f29b7c1dc41dcd7c4dab1
This commit is contained in:
Xiang Xiao
2021-06-14 02:08:34 +08:00
committed by David Sidrane
parent af5e0c620f
commit ab974edc84
44 changed files with 146 additions and 222 deletions
+2 -1
View File
@@ -107,7 +107,8 @@
#define TCB_FLAG_SIGNAL_ACTION (1 << 9) /* Bit 8: In a signal handler */
#define TCB_FLAG_SYSCALL (1 << 10) /* Bit 9: In a system call */
#define TCB_FLAG_EXIT_PROCESSING (1 << 11) /* Bit 10: Exitting */
/* Bits 11-15: Available */
#define TCB_FLAG_FREE_STACK (1 << 12) /* Bit 12: Free stack after exit */
/* Bits 13-15: Available */
/* Values for struct task_group tg_flags */