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_71B14BCF1B112524BA87BB2B339C9E6F1B08@qq.com>
Date: Wed,  9 Oct 2024 22:33:01 +0800
From: Edward Adam Davis <eadavis@...com>
To: syzbot+cee29f5a48caf10cd475@...kaller.appspotmail.com
Cc: linux-kernel@...r.kernel.org,
	syzkaller-bugs@...glegroups.com
Subject: Re: [btrfs?] general protection fault in getname_kernel (2)

The origin fc's source is NULL

#syz test

diff --git a/fs/btrfs/super.c b/fs/btrfs/super.c
index 692f81f1e23e..06bdf0cf7b88 100644
--- a/fs/btrfs/super.c
+++ b/fs/btrfs/super.c
@@ -2148,6 +2148,8 @@ static int btrfs_dup_fs_context(struct fs_context *fc, struct fs_context *src_fc
 	 * mounting, and then once we free the dup it'll free ->source, so we
 	 * need to make sure we're only pointing to it in one fc.
 	 */
+	if (!src_fc->source)
+		return -EINVAL;
 	refcount_inc(&ctx->refs);
 	fc->fs_private = ctx;
 	fc->source = src_fc->source;


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ