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  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Date:   Fri, 20 Nov 2020 11:34:51 +0800
From:   qiang.zhang@...driver.com
To:     akpm@...ux-foundation.org
Cc:     paulmck@...nel.org, aryabinin@...tuozzo.com, glider@...gle.com,
        walter-zh.wu@...iatek.com, linux-kernel@...r.kernel.org,
        linux-mm@...ck.org
Subject: [PATCH v2] rcu: kasan: record and print kvfree_call_rcu call stack

From: Zqiang <qiang.zhang@...driver.com>

Add kasan_record_aux_stack function for kvfree_call_rcu function to
record call stacks.

Cc: Walter Wu <walter-zh.wu@...iatek.com>
Cc: Andrey Ryabinin <aryabinin@...tuozzo.com>
Cc: Alexander Potapenko <glider@...gle.com>
Cc: "Paul E. McKenney" <paulmck@...nel.org>
Signed-off-by: Zqiang <qiang.zhang@...driver.com>
---
 v1->v2:
 Add Cc tags.

 kernel/rcu/tree.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kernel/rcu/tree.c b/kernel/rcu/tree.c
index da3414522285..a252b2f0208d 100644
--- a/kernel/rcu/tree.c
+++ b/kernel/rcu/tree.c
@@ -3506,7 +3506,7 @@ void kvfree_call_rcu(struct rcu_head *head, rcu_callback_t func)
 		success = true;
 		goto unlock_return;
 	}
-
+	kasan_record_aux_stack(ptr);
 	success = kvfree_call_rcu_add_ptr_to_bulk(krcp, ptr);
 	if (!success) {
 		run_page_cache_worker(krcp);
-- 
2.17.1

Powered by blists - more mailing lists