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 for Android: free password hash cracker in your pocket
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20241117234334.722730-4-pZ010001011111@proton.me>
Date: Sun, 17 Nov 2024 23:48:23 +0000
From: Piotr Zalewski <pZ010001011111@...ton.me>
To: kent.overstreet@...ux.dev, nathan@...nel.org, ndesaulniers@...gle.com, morbo@...gle.com, justinstitt@...gle.com, linux-bcachefs@...r.kernel.org, linux-kernel@...r.kernel.org, llvm@...ts.linux.dev
Cc: skhan@...uxfoundation.org, Piotr Zalewski <pZ010001011111@...ton.me>
Subject: [PATCH] bcachefs: initialize local variables in bch2_evacuate_bucket

Compiling bcachefs sources with LLVM triggers uninitialized variables
warnings.

Signed-off-by: Piotr Zalewski <pZ010001011111@...ton.me>
---
 fs/bcachefs/move.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/fs/bcachefs/move.c b/fs/bcachefs/move.c
index 8c032ef3a567..94cac498d372 100644
--- a/fs/bcachefs/move.c
+++ b/fs/bcachefs/move.c
@@ -674,8 +674,8 @@ int bch2_evacuate_bucket(struct moving_context *ctxt,
 	struct bkey_buf sk;
 	struct bkey_s_c k;
 	struct data_update_opts data_opts;
-	unsigned dirty_sectors, bucket_size;
-	u64 fragmentation;
+	unsigned dirty_sectors = 0, bucket_size = 0;
+	u64 fragmentation = 0;
 	int ret = 0;
 
 	struct bch_dev *ca = bch2_dev_tryget(c, bucket.inode);
-- 
2.47.0



Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ