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-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <tencent_9EA7E746DE92DBC66049A62EDF6ED64CA706@qq.com>
Date: Tue, 26 Dec 2023 15:16:09 +0800
From: Edward Adam Davis <eadavis@...com>
To: syzbot+b3b14fb9f8a14c5d0267@...kaller.appspotmail.com
Cc: akpm@...ux-foundation.org,
	axboe@...nel.dk,
	bvanassche@....org,
	linux-fsdevel@...r.kernel.org,
	linux-kernel@...r.kernel.org,
	reiserfs-devel@...r.kernel.org,
	song@...nel.org,
	syzkaller-bugs@...glegroups.com,
	yi.zhang@...wei.com
Subject: [PATCH] reiserfs: fix uninit-value in comp_keys

The cpu_key was not initialized in reiserfs_delete_solid_item(), which triggered
this issue.

Reported-and-tested-by: syzbot+b3b14fb9f8a14c5d0267@...kaller.appspotmail.com
Signed-off-by: Edward Adam Davis <eadavis@...com>
---
 fs/reiserfs/stree.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fs/reiserfs/stree.c b/fs/reiserfs/stree.c
index 2138ee7d271d..5faf702f8d15 100644
--- a/fs/reiserfs/stree.c
+++ b/fs/reiserfs/stree.c
@@ -1407,7 +1407,7 @@ void reiserfs_delete_solid_item(struct reiserfs_transaction_handle *th,
 	INITIALIZE_PATH(path);
 	int item_len = 0;
 	int tb_init = 0;
-	struct cpu_key cpu_key;
+	struct cpu_key cpu_key = {};
 	int retval;
 	int quota_cut_bytes = 0;
 
-- 
2.43.0


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ