[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <b8ce5492-7dd8-4792-b134-b4ccb9187ed4@gmail.com>
Date: Wed, 31 Dec 2025 01:03:28 +0800
From: Qing Wang <wangqing7171@...il.com>
To: xiyou.wangcong@...il.com
Cc: cwang@...tikernel.io, linux-kernel@...r.kernel.org,
mathieu.desnoyers@...icios.com, peterz@...radead.org, tglx@...utronix.de
Subject: Re: [PATCH] sched: Fix NULL mm dereference in
sched_mm_cid_after_execve()
> 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
Powered by blists - more mailing lists