lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<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

Powered by Openwall GNU/*/Linux Powered by OpenVZ