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-next>] [day] [month] [year] [list]
Message-ID: <20200930020659.139283-1-wangkefeng.wang@huawei.com>
Date:   Wed, 30 Sep 2020 10:06:59 +0800
From:   Kefeng Wang <wangkefeng.wang@...wei.com>
To:     Andrew Morton <akpm@...ux-foundation.org>, <linux-mm@...ck.org>
CC:     <linux-kernel@...r.kernel.org>,
        Kefeng Wang <wangkefeng.wang@...wei.com>,
        Chunxin Zang <zangchunxin@...edance.com>
Subject: [PATCH -next] mm/vmscan: Drop duplicated code in drop_slab_node

The following patches fix same issue and both add fatal
signal check in drop_slab_node, kill a duplicated check.

  "mm/vmscan: add a fatal signals check in drop_slab_node"
  "mm/vmscan: fix infinite loop in drop_slab_node"

Cc: Chunxin Zang <zangchunxin@...edance.com>
Signed-off-by: Kefeng Wang <wangkefeng.wang@...wei.com>
---
 mm/vmscan.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/mm/vmscan.c b/mm/vmscan.c
index eae57d092931..980155e257bf 100644
--- a/mm/vmscan.c
+++ b/mm/vmscan.c
@@ -699,9 +699,6 @@ void drop_slab_node(int nid)
 	do {
 		struct mem_cgroup *memcg = NULL;
 
-		if (fatal_signal_pending(current))
-			return;
-
 		if (fatal_signal_pending(current))
 			return;
 
-- 
2.26.2

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ