summaryrefslogtreecommitdiff
path: root/include/linux/debugobjects.h
diff options
context:
space:
mode:
authorChen Yu <yu.c.chen@intel.com>2026-05-13 23:39:19 +0300
committerPeter Zijlstra <peterz@infradead.org>2026-05-18 22:33:16 +0300
commit9f23469401b04cfd9a5d0a8b61760a48cce35dc1 (patch)
tree6f2b5b280086e3ef0a9f25363b565d693742c5a5 /include/linux/debugobjects.h
parentd943b86dfbf4e9b76be30cf90b1b3f82ff9abbac (diff)
downloadlinux-9f23469401b04cfd9a5d0a8b61760a48cce35dc1.tar.xz
sched/cache: Fix potential NULL mm pointer access
A concurrent task exit might cause a NULL pointer dereference in account_mm_sched(). Use the locally cached mm pointer instead, since the active_mm reference guarantees the structure remains allocated. Meanwhile, skip the kernel thread because it has nothing to do with cache aware scheduling. This bug was reported by sashiko and Vern. Fixes: df0d98475954 ("sched/cache: Introduce infrastructure for cache-aware load balancing") Reported-by: Vern Hao <haoxing990@gmail.com> Signed-off-by: Chen Yu <yu.c.chen@intel.com> Co-developed-by: Tim Chen <tim.c.chen@linux.intel.com> Signed-off-by: Tim Chen <tim.c.chen@linux.intel.com> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Link: https://lore.kernel.org/all/09cf7ee3-6e27-4505-9692-4b4a4707c8b2@gmail.com/ Link: https://patch.msgid.link/066d8cfa45d4822bf4367e788c50377c66bbcc82.1778703694.git.tim.c.chen@linux.intel.com
Diffstat (limited to 'include/linux/debugobjects.h')
0 files changed, 0 insertions, 0 deletions