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: <7aa3a1cee63518cb13906d11ea130c9c@208suo.com>
Date:   Tue, 18 Jul 2023 14:35:11 +0800
From:   sunran001@...suo.com
To:     dennis@...nel.org, tj@...nel.org, cl@...ux.com,
        akpm@...ux-foundation.org
Cc:     linux-mm@...ck.org, linux-kernel@...r.kernel.org
Subject: [PATCH] mm/percpu.c: change GFP_KERNEL to GFP_ATOMIC

ERROR: function pcpu_balance_populated called on line 2238 inside lock
on line 2234 but uses GFP_KERNEL

Generated by: scripts/coccinelle/locks/call_kern.cocci

Signed-off-by: Ran Sun <sunran001@...suo.com>
---
  mm/percpu.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/mm/percpu.c b/mm/percpu.c
index 28e07ede46f6..d8809c7511cd 100644
--- a/mm/percpu.c
+++ b/mm/percpu.c
@@ -2033,7 +2033,7 @@ static void pcpu_balance_free(bool empty_only)
  static void pcpu_balance_populated(void)
  {
      /* gfp flags passed to underlying allocators */
-    const gfp_t gfp = GFP_KERNEL | __GFP_NORETRY | __GFP_NOWARN;
+    const gfp_t gfp = GFP_ATOMIC | __GFP_NORETRY | __GFP_NOWARN;
      struct pcpu_chunk *chunk;
      int slot, nr_to_pop, ret;

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ