From nobody Tue Feb 10 20:47:09 2026 Received: from mail-oo1-f70.google.com (mail-oo1-f70.google.com [209.85.161.70]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5F79D1DF73A for ; Mon, 9 Feb 2026 05:14:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.161.70 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770614068; cv=none; b=qRJ9SzItfPqrTVHYs5DKU6P5evKdE9gelYroiq9JeKsQJGFZWcMTbVQt8eO1anmkZxChYOq4XgqdPEUjMV7tmamMZyAMCJMaA8RzoI3RQyhYUlnmGALdqjODkSW4tjbYNE3qsxrYndl+/BMJy9/UibZsd6DLGQ0mpY4A8BFOSzI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770614068; c=relaxed/simple; bh=258RPDun62T0n55W+TEwGDBJspSl94fZsfCt9qVmbGg=; h=MIME-Version:Date:In-Reply-To:Message-ID:Subject:From:To: Content-Type; b=b7g3ePti9bWoOiVdj9tAWpaWqzP260ub7WUmKiIJ3jroN6i4IULzw5ojdfiS5biso4CaRObPYd0I0U1SlLaKqRl8T7I91kxwpvqX5+21DOg9okUGIN0S77cBUxKA8gw1xCfgB2fR24/Sr6ezoWBZxJKEEjoR00dOwHNAW182nr8= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=syzkaller.appspotmail.com; spf=pass smtp.mailfrom=M3KW2WVRGUFZ5GODRSRYTGD7.apphosting.bounces.google.com; arc=none smtp.client-ip=209.85.161.70 Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=syzkaller.appspotmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=M3KW2WVRGUFZ5GODRSRYTGD7.apphosting.bounces.google.com Received: by mail-oo1-f70.google.com with SMTP id 006d021491bc7-663126bb42dso18567072eaf.1 for ; Sun, 08 Feb 2026 21:14:28 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1770614067; x=1771218867; h=to:from:subject:message-id:in-reply-to:date:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=roH3yb5sZb9FcXHftUnmVSRJymAzzkonuov5bM3zysk=; b=R7tKHpG2ckqfHwb+6zVVY+O15XgfgyOeUxKYMro5zP9XhRwLObPCWP/yayp5OqcCTq D0vYeXkl4RIFDPKgaFnmbtNYZXRAtyxmL8pP0giJ7p87eE1CsUp35KywxXGDKmZCem6O L/uuIc5m7pwaMLHCtglX3pruNXZ/UAxcjQmsIircGb2N3ckjvo5ih5Cu4PKES7LVz66E CghTq43SGpV28vPaW6AyE0jADeZABCezuTu9v8CYaMlbTfc63WK41E5/Is/hLo51AUYS LCZCoPcnWRZjAjws7IvhizAccd5FMuUAP2wv3QPDM3Lo2NvhjUvAQiqvS4CB//AD/K77 arOA== X-Gm-Message-State: AOJu0YyTO/UwcNkwQU1D0Zbr5l9BJqGZs9FB78IPBnoWJaLESbDBylYV +61kXm60B8VJD6tufBlPNJf7UIzm6ZtciR+P3gJeYFkAodgXDLIM3U6rDWpwTT9uF7DayQT/PVT 6sb0O3H5l0EiPkZQ7wyxTRdBzOUgKojBje6rQW3rQ1uNw5n2az0seihq05Fw= Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Received: by 2002:a05:6820:4cc1:b0:65d:aa2:2e30 with SMTP id 006d021491bc7-66d0a667db7mr5165805eaf.28.1770614067289; Sun, 08 Feb 2026 21:14:27 -0800 (PST) Date: Sun, 08 Feb 2026 21:14:27 -0800 In-Reply-To: <6767d8ea.050a0220.226966.0021.GAE@google.com> X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <69896d33.050a0220.3b3015.006a.GAE@google.com> Subject: Forwarded: Testing for v3 scsi: target: fix recursive locking in __configfs_open_file() From: syzbot To: linux-kernel@vger.kernel.org Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" For archival purposes, forwarding an incoming command email to linux-kernel@vger.kernel.org. *** Subject: Testing for v3 scsi: target: fix recursive locking in __configfs_o= pen_file() Author: activprithvi@gmail.com #syz test: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git= 3a8660878839faadb4f1a6dd72c3179c1df56787=20 --- drivers/target/target_core_configfs.c | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/drivers/target/target_core_configfs.c b/drivers/target/target_= core_configfs.c index b19acd662726..f29052e6a87d 100644 --- a/drivers/target/target_core_configfs.c +++ b/drivers/target/target_core_configfs.c @@ -108,8 +108,8 @@ static ssize_t target_core_item_dbroot_store(struct con= fig_item *item, const char *page, size_t count) { ssize_t read_bytes; - struct file *fp; ssize_t r =3D -EINVAL; + struct path path =3D {}; =20 mutex_lock(&target_devices_lock); if (target_devices) { @@ -131,17 +131,18 @@ static ssize_t target_core_item_dbroot_store(struct c= onfig_item *item, db_root_stage[read_bytes - 1] =3D '\0'; =20 /* validate new db root before accepting it */ - fp =3D filp_open(db_root_stage, O_RDONLY, 0); - if (IS_ERR(fp)) { + r =3D kern_path(db_root_stage, LOOKUP_FOLLOW, &path); + if (r) { pr_err("db_root: cannot open: %s\n", db_root_stage); goto unlock; } - if (!S_ISDIR(file_inode(fp)->i_mode)) { - filp_close(fp, NULL); + if (!d_is_dir(path.dentry)) { + path_put(&path); pr_err("db_root: not a directory: %s\n", db_root_stage); + r =3D -ENOTDIR; goto unlock; } - filp_close(fp, NULL); + path_put(&path); =20 strscpy(db_root, db_root_stage); pr_debug("Target_Core_ConfigFS: db_root set to %s\n", db_root); base-commit: 3a8660878839faadb4f1a6dd72c3179c1df56787 --=20 2.34.1