Received: by 2002:ab2:2441:0:b0:1f3:1f8c:d0c6 with SMTP id k1csp4547lqe; Wed, 3 Apr 2024 19:15:06 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUCBtLZBeHAj7EQcC1+SehjNS5VCVwMZeZfnqedMUoJM4YyOsylwRyP43FqM0sv+1JO+W+7SFG8XQlecF1HiI4vI8VYJuJOU0rLK4aojA== X-Google-Smtp-Source: AGHT+IHB6Ip9+zIc1KbwzDiIdNU7Y9EcM8Xd31HFYGXEFLQ2ctrFRL7dZNj/j8Rojru7QZIeT3Zq X-Received: by 2002:a81:8353:0:b0:615:5465:f6be with SMTP id t80-20020a818353000000b006155465f6bemr1243573ywf.33.1712196905797; Wed, 03 Apr 2024 19:15:05 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712196905; cv=pass; d=google.com; s=arc-20160816; b=1JYgUYhSOve/bjertmQxxTj56L7ZH7QnUZi5jcfIztPhAMmlhIM5S/onIxXC/oj54D O0az/XprKIgj0rEIw+Zu8GP0XGhPDSLAvD5o3pImohVbRKlxL+w3FEJygQGzEyhUoqyx uHNEgR+yy2Y3MGywUBjXACn/6/Ym2ko5kMZHSQpf4P110dBykTyYQEFCkhXaPo5OQM3D WvKi3cXKHgfFcmxF1+Llck6ihvdGiF/cK/jZnkCtuJqWtsAdMgAZCsTapD3wUsXaXqyW Z+IBFZD8A2Jy5Qn4xk2u2GfxfIcPtkEsWm5ew5uXhX4dfy9ZjQoVN5hk/V0GgjNOTNt3 2F3w== 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=w+Zvg5pj0mZ6c61HDKViQjiJAIXhWOoiLmNMXAdfs5I=; fh=LcBAW9EghRJ8Sx6xpvL+htd+Puw+6XtDoYC73G0seDs=; b=Wj700UE2vW7K0xEgf1RBw9sqaITXk8qGReCfZ0DE3z3m1KpS2l3A4ngonqmKKkX8Th J7zL3KLT5SHgJQ2ue2vnl24sX8PlkIWYYXe37pkKi4mWMfyDbZviiH8ZQcFwkb8sZJXv k8PJl/l/wFfXC9wVPJSbkfdPllbv7PFFtw3CuzTRT/CvRURTvgWSP39DARkGefTv1fIE xWpQIiLI9HouT1yf3UlBR1YsqPzBcQ3n5ccRD7dwYDwDZV1jyjJmS0mYJmqb9CkOi8yc 9P8asF+n858gPvzjMpfecd4Tghy10x1Ayoz6ZHEUD2f52+JaZMMZXZ/wBAeDCqNl3Rxy wZdg==; 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-130832-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-130832-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id j15-20020a63b60f000000b005d8b5979996si14562118pgf.492.2024.04.03.19.15.04 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Apr 2024 19:15:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-130832-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=sina.com); spf=pass (google.com: domain of linux-kernel+bounces-130832-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-130832-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id DCF39B24FE7 for ; Thu, 4 Apr 2024 02:13:24 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1DA151B28D; Thu, 4 Apr 2024 02:13:17 +0000 (UTC) Received: from mail115-100.sinamail.sina.com.cn (mail115-100.sinamail.sina.com.cn [218.30.115.100]) (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 DD54FDDA3 for ; Thu, 4 Apr 2024 02:13:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=218.30.115.100 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712196796; cv=none; b=leqE0TY4O5cSOOaIgw2Zbu8jH+cy/o53a9NApHPlyb9kkR2/2wCEtuOxbPiuIBxQoGaZYCK9jEDIo+8Iv4t/ZG8f5qha3QtPdxJ9luCrSom1wiLQLCSUswOJwu0CmGt0XumjeiaskJeShrM12XnUfWp4ZloZ3+CDuAE1eMw8rOs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712196796; c=relaxed/simple; bh=z7BkxFJVzxOf2S0RNFaj+RkUoL5NLhpfjuXiSbRfpcw=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=QsjOp9q3XDWksr67rdkADhGGFUoR6pZWC6Ph8ew0Cwpo1xt7uTalzXrFv07Pk/m/XTVVaprWzLl2FY+huxc+ppJaEAHEHvVJNh0/+kfgcGYFvK1LeMmy/IxO2qGgnOzoqDy+wlVNnSwmembw2wQ+ajCvEnUpXR/LVidjWvDASQY= 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.115.100 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.48.253]) by sina.com (172.16.235.24) with ESMTP id 660E0CB2000020DC; Thu, 4 Apr 2024 10:13:09 +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: 9655045089351 X-SMAIL-UIID: BCF4CD0B993E4605825F83FBC34E4B36-20240404-101309-1 From: Hillf Danton To: syzbot Cc: linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com Subject: Re: [syzbot] [kernfs?] possible deadlock in kernfs_fop_llseek Date: Thu, 4 Apr 2024 10:12:57 +0800 Message-Id: <20240404021257.4018-1-hdanton@sina.com> In-Reply-To: <00000000000098f75506153551a1@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 Wed, 03 Apr 2024 11:23:26 -0700 > syzbot found the following issue on: > > HEAD commit: fe46a7dd189e Merge tag 'sound-6.9-rc1' of git://git.kernel.. > git tree: upstream > C reproducer: https://syzkaller.appspot.com/x/repro.c?x=15c38139180000 #syz test https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git fe46a7dd189e --- x/fs/overlayfs/util.c +++ y/fs/overlayfs/util.c @@ -1159,9 +1159,8 @@ int ovl_nlink_start(struct dentry *dentr return err; } - err = ovl_inode_lock_interruptible(inode); - if (err) - return err; + if (!mutex_trylock(&OVL_I(inode)->lock)) + return -EBUSY; err = ovl_want_write(dentry); if (err) --