]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
mm/memory-failure: remove obsolete comment in kill_proc()
authorMiaohe Lin <linmiaohe@huawei.com>
Wed, 12 Jun 2024 07:18:34 +0000 (15:18 +0800)
committerAndrew Morton <akpm@linux-foundation.org>
Thu, 4 Jul 2024 02:30:12 +0000 (19:30 -0700)
When user sets SIGBUS to SIG_IGN, it won't cause loop now.  For action
required mce error, SIGBUS cannot be blocked.  Also when a hwpoisoned page
is re-accessed, kill_accessing_process() will be called to kill the
process.

Link: https://lkml.kernel.org/r/20240612071835.157004-13-linmiaohe@huawei.com
Signed-off-by: Miaohe Lin <linmiaohe@huawei.com>
Cc: Borislav Petkov (AMD) <bp@alien8.de>
Cc: David Hildenbrand <david@redhat.com>
Cc: kernel test robot <lkp@intel.com>
Cc: Naoya Horiguchi <nao.horiguchi@gmail.com>
Cc: Tony Luck <tony.luck@intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/memory-failure.c

index 475524f795501718142f3f78350f34632aadfc63..12b516895ee7c019f4e807c84553934ef2abe0f1 100644 (file)
@@ -354,8 +354,6 @@ static int kill_proc(struct to_kill *tk, unsigned long pfn, int flags)
                 * PF_MCE_EARLY set.
                 * Don't use force here, it's convenient if the signal
                 * can be temporarily blocked.
-                * This could cause a loop when the user sets SIGBUS
-                * to SIG_IGN, but hopefully no one will do that?
                 */
                ret = send_sig_mceerr(BUS_MCEERR_AO, (void __user *)tk->addr,
                                      addr_lsb, t);