[osv-dev] [PATCH] trace: do not use malloc/free when interrupts are disabled

2022-08-28 Thread Waldemar Kozaczuk
This patch fixes a subtle bug found when working on lazy stack changes and trying to establish some invariants in relevant places in the kernel code. One of the findings was that the memory allocation logic or more specifically the functions malloc() and free() require both interrupts and preemptio

[osv-dev] [PATCH] aarch64 trace: make compiler pick a register instead of x0

2022-08-28 Thread Waldemar Kozaczuk
This subtle 1-character patch fixes a nasty bug that causes interrupts to be enabled instead of correctly restored to the state it was when saving the state. This bug would affect the tracing logic and result in crashes described by the issues #1158 and #1195. This bug in inline assembly was most

[osv-dev] [COMMIT osv master] pthread_create() - prefault top of stack

2022-08-28 Thread Commit Bot
From: Nadav Har'El Committer: Waldemar Kozaczuk Branch: master pthread_create() - prefault top of stack This is the original patch from Jan 11, 2021 applied manually to resolve conflicts caused by subsequent changes to the relevant files since. Waldemar Kozaczuk