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
| ||
|
Message-ID: <tencent_897491761D662E3D7336B297BA37064A7C09@qq.com> Date: Sun, 31 Dec 2023 09:04:04 +0800 From: Edward Adam Davis <eadavis@...com> To: syzbot+6450929faa7a97cd42d1@...kaller.appspotmail.com Cc: brauner@...nel.org, damien.lemoal@...nsource.wdc.com, edward.shishkin@...il.com, glider@...gle.com, jack@...e.cz, jlayton@...nel.org, linuszeng@...cent.com, linux-fsdevel@...r.kernel.org, linux-kernel@...r.kernel.org, reiserfs-devel@...r.kernel.org, syzkaller-bugs@...glegroups.com, willy@...radead.org Subject: [PATCH] reiserfs: fix uninit-value in reiserfs_new_inode Before creating a new inode, it is necessary to initialize the "new packing locality" tag of the dir. Signed-off-by: Edward Adam Davis <eadavis@...com> --- fs/reiserfs/namei.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/fs/reiserfs/namei.c b/fs/reiserfs/namei.c index 994d6e6995ab..3a824fb170d5 100644 --- a/fs/reiserfs/namei.c +++ b/fs/reiserfs/namei.c @@ -638,6 +638,10 @@ static int reiserfs_create(struct mnt_idmap *idmap, struct inode *dir, if (retval) return retval; +#ifdef DISPLACE_NEW_PACKING_LOCALITIES + REISERFS_I(dir)->new_packing_locality = 0; +#endif + if (!(inode = new_inode(dir->i_sb))) { return -ENOMEM; } -- 2.43.0
Powered by blists - more mailing lists