Received: by 2002:ab2:7903:0:b0:1fb:b500:807b with SMTP id a3csp874882lqj; Mon, 3 Jun 2024 03:45:11 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXzoLX47gL+qWvGKdSKzguarItYIxoz5v1FY1xi1PNi0olRHUdbdLbmdBrd/D6+6wU3/TP1P1IUVhUxq0UWh4cEZjTbe8FQCNmTZ5if+A== X-Google-Smtp-Source: AGHT+IH9OJg8XPPVaECW763MORaBQbQ31C87oVhzhPHeWuW24FGO+giV2i29ox496ermlMfOJKxO X-Received: by 2002:a17:90b:4aca:b0:2c2:1fc6:c333 with SMTP id 98e67ed59e1d1-2c21fc6c6d1mr3027803a91.23.1717411511188; Mon, 03 Jun 2024 03:45:11 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717411511; cv=pass; d=google.com; s=arc-20160816; b=ikHNIac43iR4fESkfDNISrcpsCj7LSAn7fSscKtjiohMHfddNqEQuPt4btOBLcX/m5 t6qIzQxn/R3oyjCcMSnx8f7gPxKSX+GdVF7YEz7gDdYlmy/Ko7JEgu7jTFUuGp4Lf3cV 98ONn3FMghrgPBSJKlneiyBxnL/RkRiJAzr02dqBoeGRz1/t/aFku+DLqHq386yl4GMe biIqiRIGmcBhafkvLJdUrE0t+zXv6YRjnuetnmcBPU0LH89gAcAqP8Nue7UChqoD8Vvk uOGzNvPP0GiM30vVO4XM1l3D9Dy7Qf1Fd8SyYd6kvt9NwDrdO/85e07HL93m3RXl+TmZ VOxw== 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=kfV7kmRkDyinJf+bUMoT7DHiRfMmvoPa4tK/O23E5As=; fh=YSFdlVLyCQbmkmNshUqb4LkeBw+5a8SqpBrwzQfrvQ4=; b=evhT64awCcmuWov7YlDL241wFgp/F8LDR9cUmwH/lOfnNftL8jG7wcoLUTnDBRypkm WvVl247qJUhryZn6DkTvJaGRINqotuUkck22nNJ8iSYd7b/cujbkb7ZZwPSPs18BkzGE OdcA95Q0Bi0hWoexzudQq19ahCrU1L3xihwjUPe0yM8OfhONP2YxH6nCxzmTJwnBEVlW AKdjTGnPTPelhO93ZD17Or8ekR2xUjixTTFidvq69KuzeMmf73aON5nsSb85GI9mOu+g 7TFjrWfdlGo7RSCLQs8Ryir2wyzZYCoShZUbX7soNqbbNOq4tHrAx4W/LNpl99/oG9sp gw3Q==; 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-198993-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-198993-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id 98e67ed59e1d1-2c1c27ca31csi291979a91.61.2024.06.03.03.45.10 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 Jun 2024 03:45:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-198993-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=sina.com); spf=pass (google.com: domain of linux-kernel+bounces-198993-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-198993-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id E1F57286201 for ; Mon, 3 Jun 2024 10:42:45 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0C0D8839E5; Mon, 3 Jun 2024 10:42:41 +0000 (UTC) Received: from mail114-241.sinamail.sina.com.cn (mail114-241.sinamail.sina.com.cn [218.30.114.241]) (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 B33F019F for ; Mon, 3 Jun 2024 10:42:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=218.30.114.241 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717411360; cv=none; b=cRIKAy5KOGWbvMx+3fZnmnMFOGfflRa/MGU8OMRy4S4f6w9KIJ3tIxrtGUjGykQnttKDTo2Ato6xU5KnDafvR404m5qSV/kuJbzXwy3sMpwg8Ts5b4Tm0/d8Ig4wrougDS+eanSfYUVR+f0tM1jULhAANV4welE1qCxmEju9gEQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717411360; c=relaxed/simple; bh=WZE/wXk4w/29dBkOrSGAcse3U2x0Hn9pieqgKvJkZvw=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=Ol7PBvf4J4Cs7q/BhJd0tNXDNbdOP9DzHMi/T7k0O0wJeHZsF9BECA+f/wCndmS6bK24bYdNh6EG+vZvxEg2y7lwIG3RmhfymzYWTPxv7bVOS+TekkaTOwSbincdljnvX1FPDYKTvwXfRKdHkTKgqKtdzchFzHEpgCep4ecArOg= 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=218.30.114.241 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.118.66.186]) by sina.com (172.16.235.24) with ESMTP id 665D9E0B00002490; Mon, 3 Jun 2024 18:42:22 +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: 56327145089299 X-SMAIL-UIID: FAB669AF052A4A4A995B53A1ACC9F0A6-20240603-184222-1 From: Hillf Danton To: syzbot Cc: linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com Subject: Re: [syzbot] [ext4?] INFO: task hung in vfs_rmdir (2) Date: Mon, 3 Jun 2024 18:42:11 +0800 Message-Id: <20240603104211.1526-1-hdanton@sina.com> In-Reply-To: <00000000000054d8540619f43b86@google.com> 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 On Sun, 02 Jun 2024 20:50:18 -0700 > syzbot found the following issue on: > > HEAD commit: 4a4be1ad3a6e Revert "vfs: Delete the associated dentry whe.. > git tree: upstream > C reproducer: https://syzkaller.appspot.com/x/repro.c?x=103820f2980000 #syz test https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master --- x/fs/namei.c +++ y/fs/namei.c @@ -4198,6 +4198,8 @@ int vfs_rmdir(struct mnt_idmap *idmap, s if (!dir->i_op->rmdir) return -EPERM; + if (dir == dentry->d_inode) + return -EDEADLK; dget(dentry); inode_lock(dentry->d_inode); --