Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp1260233rbb; Mon, 26 Feb 2024 04:09:50 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWv6gI2Cemu2gmVwUM5hQwqC4eaf3GpgC2kcDld32yjBr1mF8pU4Cgbe79ilVo6IonXVnzgdU7rNloks4AZ7BYgcXIiLxvYkmQJOlW3iw== X-Google-Smtp-Source: AGHT+IEuuFZr33wTtaeekaw1ndaIHOWW2/AvOxzGkrrc6fM7THEI/ER0igPMYgpA89xv4/cph3um X-Received: by 2002:a17:906:b796:b0:a3f:9df3:2a4f with SMTP id dt22-20020a170906b79600b00a3f9df32a4fmr4035714ejb.9.1708949390267; Mon, 26 Feb 2024 04:09:50 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708949390; cv=pass; d=google.com; s=arc-20160816; b=Iuw3UyrlOP5ZQw5naxXUImKn7P9c2ypdQDZvkoZQDusHMbwve/uRWz/PWBGnxnRUY5 KRti2UlYGvBfRaQZhXvQUgr4A5lOxtuoazaWOGi9G82lNCwgxKtPhr8ar2urZp9qiyuI NlKryyy9uPcVLs3XM2wfA0zTqSTDziyT/mBv8HGjWJtNfDUQZea1z1ABDZzbzmlhIPnL ZhTCUtGpZ+HRz/LjhXueDOMrSn70Al2y1QXIucCrm4vlkWs2sRlehGprbooanFv6Asdq ubI1JnNVq3Yrod3N6/FPgZRDb+7wNlvJCTKSkWX1vOu3Vj3BSdA5R7tn6RpXpEvC3Rhi XZ8w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from; bh=+nz8cyXF6u9uCYBECi6prIDgqxQ/0/Vp/BbjRtqW2UY=; fh=JrhUN1KvoDmLS90z7fUuod0iAOO8IpAzcgUD7W1N9f0=; b=vdqaH8FBkc0yG9JXkpelAzTHYdyB7i9yRiJ9+URN4LU9hRvPSgBTikd67Ltxk/asGx ap9G4xrxDQW8fb5NLjugegkh8iRIYb5dvaAWnaxrOaNz/tYiys9L5HSuTYEcJYv97V70 kHjDfZEE91FDrb4KybV+frF8AejQfZsARIR9245lAVAEguEmfQ/+5RqYQi9CgdERTDS/ johiksgq7A9pNt5R5eoAmZhn/klI8depAMseNqVfJlFOFN+ukp/L5XBybCX8iz5FKaRv AEzJ3z+T3XB9//e5wX8OAs8cyp8Eet8Xbnrr/BxP/eb18Q82m6J2YL3pjwY7snbcTa8o rnpg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=sina.com); spf=pass (google.com: domain of linux-kernel+bounces-81331-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-81331-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id lv8-20020a170906bc8800b00a3f93c5ed81si1941962ejb.1055.2024.02.26.04.09.50 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Feb 2024 04:09:50 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-81331-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=sina.com); spf=pass (google.com: domain of linux-kernel+bounces-81331-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-81331-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 5A5061F299D5 for ; Mon, 26 Feb 2024 12:07:35 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7493B5FDC8; Mon, 26 Feb 2024 12:07:26 +0000 (UTC) Received: from mail78-36.sinamail.sina.com.cn (mail78-36.sinamail.sina.com.cn [219.142.78.36]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 03B8D5B03B for ; Mon, 26 Feb 2024 12:07:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=219.142.78.36 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708949246; cv=none; b=pnbs2v1KjDj172zfImfdY2pAR6iq1y8OUXyiT8QUddab/fqbbBQNumOFyhX2ToQ+LKVzl+68s77frDPn6bMB4L6uo049WnlhUJPKow5mU1mykd2wZuXlCIHSFesMg0puJ6R88leQ/7UDKII/6Xp2uFe40wIXUXyfaOSnhzmpIbw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708949246; c=relaxed/simple; bh=pLt7uW/tLWOix+u8T0EY+yCzxoIKPC5tGiwPgZA82wQ=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=tkc8w8ojzDCMXSkF66hQFk5DTkcYoRJFPvp0vll9KHUIJORozvvoFnN1zgyrNskFFjBu4L2MallM9VR9vWtq1CZD73yh1RL2Q3/baDUVgFCPQwbawA1rOOpRZRaHiZDu5l7MYwVLBfphx1T/vdqO9tTN5mYOvezkwt9eiM5YfEU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=sina.com; spf=pass smtp.mailfrom=sina.com; arc=none smtp.client-ip=219.142.78.36 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=sina.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=sina.com X-SMAIL-HELO: localhost.localdomain Received: from unknown (HELO localhost.localdomain)([113.88.50.169]) by sina.com (172.16.235.25) with ESMTP id 65DC7EC900006951; Mon, 26 Feb 2024 20:06:35 +0800 (CST) X-Sender: hdanton@sina.com X-Auth-ID: hdanton@sina.com Authentication-Results: sina.com; spf=none smtp.mailfrom=hdanton@sina.com; dkim=none header.i=none; dmarc=none action=none header.from=hdanton@sina.com X-SMAIL-MID: 74897934210316 X-SMAIL-UIID: B7F26EFD82E247E782670C81FCE0147F-20240226-200635-1 From: Hillf Danton To: syzbot Cc: almaz.alexandrovich@paragon-software.com, boqun.feng@gmail.com, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, ntfs3@lists.linux.dev, penguin-kernel@i-love.sakura.ne.jp, syzkaller-bugs@googlegroups.com, torvalds@linux-foundation.org Subject: Re: [syzbot] [ntfs3?] possible deadlock in ntfs_set_state (2) Date: Mon, 26 Feb 2024 20:06:23 +0800 Message-Id: <20240226120623.1464-1-hdanton@sina.com> In-Reply-To: <00000000000044c2da06124774f7@google.com> (raw) References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Test non-zero subkey against the mainline tree. #syz test https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master --- x/fs/ntfs3/fsntfs.c +++ y/fs/ntfs3/fsntfs.c @@ -944,7 +944,7 @@ int ntfs_set_state(struct ntfs_sb_info * if (!ni) return -EINVAL; - mutex_lock_nested(&ni->ni_lock, NTFS_INODE_MUTEX_DIRTY); + mutex_lock_nested(&ni->ni_lock, (1 + NTFS_INODE_MUTEX_PARENT2)); attr = ni_find_attr(ni, NULL, NULL, ATTR_VOL_INFO, NULL, 0, NULL, &mi); if (!attr) { --