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  PHC 
Open Source and information security mailing list archives
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date:   Wed, 15 Mar 2023 18:18:54 +0000
From:   "Joel Fernandes (Google)" <>
To:     "Theodore Ts'o" <>,
        Andreas Dilger <>
Cc:     "Uladzislau Rezki (Sony)" <>,
        Lukas Czerner <>,
        "Paul E . McKenney" <>,
        Joel Fernandes <>,,
Subject: [PATCH v2 07/14] ext4/super: Rename kfree_rcu() to kfree_rcu_mightsleep()

From: "Uladzislau Rezki (Sony)" <>

The kfree_rcu() and kvfree_rcu() macros' single-argument forms are
deprecated.  Therefore switch to the new kfree_rcu_mightsleep() and
kvfree_rcu_mightsleep() variants. The goal is to avoid accidental use
of the single-argument forms, which can introduce functionality bugs in
atomic contexts and latency bugs in non-atomic contexts.

Cc: Theodore Ts'o <>
Cc: Lukas Czerner <>
Signed-off-by: Uladzislau Rezki (Sony) <>
Signed-off-by: Paul E. McKenney <>
Signed-off-by: Joel Fernandes (Google) <>
 fs/ext4/super.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fs/ext4/super.c b/fs/ext4/super.c
index 88f7b8a88c76..405a66b47311 100644
--- a/fs/ext4/super.c
+++ b/fs/ext4/super.c
@@ -2500,7 +2500,7 @@ static void ext4_apply_quota_options(struct fs_context *fc,
 			qname = rcu_replace_pointer(sbi->s_qf_names[i], qname,
 			if (qname)
-				kfree_rcu(qname);
+				kfree_rcu_mightsleep(qname);

Powered by blists - more mailing lists