Re: [PATCH] sched: Fix NULL mm dereference in sched_mm_cid_after_execve()
From: Qing Wang
Date: Tue Dec 30 2025 - 12:03:35 EST
void sched_mm_cid_after_execve(struct task_struct *t)
{
- sched_mm_cid_fork(t);
+ if (t->mm)
+ sched_mm_cid_fork(t);
}
Hi,
It's a correct solution, but I have a small suggestion that putting the 'mm'
checking into sched_mm_cid_fork(), just like sched_mm_cid_exit().
Best regards,
Qing Wang