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_E137D8972436B24AC274C1761367D83C5D09@qq.com>
Date: Mon, 19 Aug 2024 19:50:43 +0800
From: Edward Adam Davis <eadavis@...com>
To: syzbot+05b9b39d8bdfe1a0861f@...kaller.appspotmail.com
Cc: linux-kernel@...r.kernel.org,
	syzkaller-bugs@...glegroups.com
Subject: [syzbot] [ext4?] [ocfs2?] KASAN: null-ptr-deref Write in jbd2_journal_update_sb_log_tail

Journal too short will cause ocfs2_check_volume failed, and will set journal->j_sb_buffer to NULL

#syz test: upstream c3f2d783a459

diff --git a/fs/ocfs2/super.c b/fs/ocfs2/super.c
index afee70125ae3..1ac19ac2ba2c 100644
--- a/fs/ocfs2/super.c
+++ b/fs/ocfs2/super.c
@@ -1819,6 +1819,9 @@ static int ocfs2_mount_volume(struct super_block *sb)
 	status = ocfs2_check_volume(osb);
 	if (status < 0) {
 		mlog_errno(status);
+		if (status == -EINVAL)
+			osb->s_feature_incompat &=
+				~OCFS2_FEATURE_INCOMPAT_LOCAL_MOUNT;
 		goto out_system_inodes;
 	}
 


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ