Received: by 2002:a05:7208:31d3:b0:81:e143:7c29 with SMTP id v19csp413224rbd; Fri, 5 Apr 2024 08:09:59 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUtm3uhow2dYLYpxkFbgZPkJSgpuULQjORsmnUXaHnREQuOQKTxGhTjRc03himg0yFBl88aiZAMkmijknoVrO2/d7V3eJIINw6tKgCeHA== X-Google-Smtp-Source: AGHT+IFd4jsAJVgFMClE5XRfu8Vnzwg75vTFzXbEbb5uRiaEstQ5Qj9dQ5NITFtB8GUmc4fCbDMn X-Received: by 2002:a05:6a00:3c8c:b0:6e7:117:c5d5 with SMTP id lm12-20020a056a003c8c00b006e70117c5d5mr1758368pfb.23.1712329799346; Fri, 05 Apr 2024 08:09:59 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712329799; cv=pass; d=google.com; s=arc-20160816; b=gElovsm/ZRGDKIavMDZs0BQb6ucM0mCW8qvSUy/UCZnpZwLMCJxWWaCbxssu90rNfM aEDUjpGC0LjH+jVYpX/1ICylbVtRXxEfjMCIgUm/If11jmqIig6zp01SermLUeIwYqCW In454O5ZIxBYdu58e6X1XuLcuZ7aQi1qIovKLIrFA+Amjt8f1vu+N87cAPcKDfb4BNAr aZDl8rI6BnfUFYZAu6UOcYmBF8Z0PYYybshpD+iltz866hT5rZh8oJj3DmJL2L6Ry61G 2beHyAC4H6MSRmsBLp8cx3q07obdL63+jpllaIdkxy+A+X1RNN2sMIMeaG5Axtob9isI o5ZA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=d56tBBvKhdU/LZ/YsQQXpTmVNEsS5p7VvT7fAO/irxw=; fh=4YcHBMA53mJ4+n8hHX4gbnhF9gxJMi1EqVP78SlmaJs=; b=J6pEX3YAlHQhknjTClPld0vtDvbaGEhxaxrXczbuXacKSjyDnxR1iIUXcPSy2Dg4zg 7KU9xZl8oU6cztpSiJ/PQT/OJhCohKbS5Y5xeqzPvVcxbikUjfff7vCKSzXWlKUZ52mT 06uN0EamRrEIe/Esy366zEKVvSXZo0qPk335Wwm/g2aXnVQ5w96amUV909PS30xKVsXp lmsxV0mVwml4xd+378VhqnMv/ZMTwyvP8w+E+0Op7pLFdAeYKd+C7d1kHyrG+AvRTSV5 9Uq+Fakj+91XkeSE0yhtrTLqlAgvcu6NS6drSbMOIs9UQcT6XMSZjJaysbBQ2e6OIDPG t+2w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=JFFmoZoa; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-133218-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-133218-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id r13-20020a63ce4d000000b005d8e379746asi1535168pgi.630.2024.04.05.08.09.58 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Apr 2024 08:09:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-133218-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=JFFmoZoa; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-133218-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-133218-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com 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 90991B227F1 for ; Fri, 5 Apr 2024 15:08:37 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4E9AA16F854; Fri, 5 Apr 2024 15:08:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="JFFmoZoa" Received: from mail-qv1-f54.google.com (mail-qv1-f54.google.com [209.85.219.54]) (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 1015316EBF3; Fri, 5 Apr 2024 15:08:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.54 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712329707; cv=none; b=RcxNkvjD2bX6U9mqRAiZg8TqpTRL9khWPga6Ip7KcibX97bGEUfenYKGZe21Bl0BccEjEwIb+OIrb6GS8gXxOSR5rnW0zIdaG45ETwNUsh7iCETzmilWZ8kbHSMRNxwRQBrTbFK6GUnoZ/c/Ga69jQHtWKG89uKTo6t42PgS32c= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712329707; c=relaxed/simple; bh=8OTJYRkxJEPH+ieN+Wz+w9QPRHjkaVsc32knKowB3cU=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=MOkJ10xsY8bTODKtsWcZbH1mZhfVUXeDB7hS2N7BJjs3Yd/gJfXIZE7vWiftB9sTAXdUGBTUJQaTnLqMe1f0DqKOFbDs014N0va/OTVEiCp4Ft5StuLkRtdZKyd/5ZN2+BOZ9NvnCHg2gjs+p60gPAUeZbZuzsWVoIvQIDWzclo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=JFFmoZoa; arc=none smtp.client-ip=209.85.219.54 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-qv1-f54.google.com with SMTP id 6a1803df08f44-6993f39ac53so3839516d6.1; Fri, 05 Apr 2024 08:08:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1712329705; x=1712934505; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=d56tBBvKhdU/LZ/YsQQXpTmVNEsS5p7VvT7fAO/irxw=; b=JFFmoZoa/Rptz37vqJ3VSqJU5RmAWxOJzIwnwNsGNLesESCpoucwCDPqHryReQklgf 1cRZdoiBjv/ZkbR3lg/dUuBK1Qhm3RsfatEwYHyc+aX9LFZW7gqlJcNto5zk1Kfzxvo8 uLQeMfe+Sgq+U4TCCglYRNQpx3Oti2/XoCMA2fmupPrQvAeGa5ezMcka1qqfY0dIo5fw 7YM0dbQKGm6dx4Wx2UDlTiTxUDZEgaLbMLLOnU3+c7AMMCXXGPaIpGg+Pja/Umv7NmJe jP+uQDAzN0Of6ATgcOuI+vLRgMa5v2uxANdxvAA35Z7HXDQgFQqZJ1Y1NfkLhKxAZ5fK e/4A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712329705; x=1712934505; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=d56tBBvKhdU/LZ/YsQQXpTmVNEsS5p7VvT7fAO/irxw=; b=h3u+z8Zq2gQa58dJ0GVHu82wiFdwzeeh6ICDJdNYKiuVKZZwgiqXcxshd/5wUa2pEH x/GljFnlfkoCBg3v/VDWGL3QDk12ESEYwsu0t6PaMX1BGJz+Bn7GoR2yf2qsZdBsYEbG qts6UQbeilCTJE3+qq0Di1s4l+3crYWEHHOKVoHk23JagR38ekTgjF1KPQwd/TGHUK5b TYo6vD0bIgiH/vC8j+Udw7yNv31pwVhQl//XRaqicuDLdZLNr23Im6JMK68+HZDFykkY hc9/or64LHVJRW1wFEOIWtvUbx8ErUxKzxjv488PWcxKLEO5mM2ahtw36hM1SiJPNWwY SC5g== X-Forwarded-Encrypted: i=1; AJvYcCXMmgpIqQ8IapK2xm9RpPH36YqWQOZkjW4GYg+huQt7WIxv/x3KP9PGbYKJdqTMaZ4y6uPRBDAtVn4GLqEtAPqHvZIBGkWdncoJCHpGKa0HTLo6GRw/CySvnYi1k1MSQ14lVDj2Bq50FU8Gkw== X-Gm-Message-State: AOJu0YwCNbk57M+JLBbgB4R2r/NJOwMLsJ2u9ngndMzPSv1ojR0/g77N +zqQE20kZ6C+pGmnbezzXP4GAmMIHN/Q418NZ9Cfp7f5abE6Ol46K0YglyFo5e9/K+5JQ0fClKD C5MkS0znO8gwKXZx3j7lMybdKy0U= X-Received: by 2002:a05:6214:20aa:b0:696:4256:9fa6 with SMTP id 10-20020a05621420aa00b0069642569fa6mr1916749qvd.26.1712329704925; Fri, 05 Apr 2024 08:08:24 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <00000000000098f75506153551a1@google.com> <0000000000002f2066061539e54b@google.com> In-Reply-To: From: Amir Goldstein Date: Fri, 5 Apr 2024 18:08:13 +0300 Message-ID: Subject: Re: [syzbot] [kernfs?] possible deadlock in kernfs_fop_llseek To: syzbot Cc: gregkh@linuxfoundation.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com, tj@kernel.org, valesini@yandex-team.ru, Christoph Hellwig , Christian Brauner , Jan Kara , Miklos Szeredi , Al Viro Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Thu, Apr 4, 2024 at 9:54=E2=80=AFAM Amir Goldstein = wrote: > > On Thu, Apr 4, 2024 at 2:51=E2=80=AFAM syzbot > wrote: > > > > syzbot has bisected this issue to: > > > > commit 0fedefd4c4e33dd24f726b13b5d7c143e2b483be > > Author: Valentine Sinitsyn > > Date: Mon Sep 25 08:40:12 2023 +0000 > > > > kernfs: sysfs: support custom llseek method for sysfs entries > > > > bisection log: https://syzkaller.appspot.com/x/bisect.txt?x=3D17cb5e03= 180000 > > start commit: fe46a7dd189e Merge tag 'sound-6.9-rc1' of git://git.ker= nel.. > > git tree: upstream > > final oops: https://syzkaller.appspot.com/x/report.txt?x=3D142b5e03= 180000 > > console output: https://syzkaller.appspot.com/x/log.txt?x=3D102b5e03180= 000 > > kernel config: https://syzkaller.appspot.com/x/.config?x=3D4d90a36f0ca= b495a > > dashboard link: https://syzkaller.appspot.com/bug?extid=3D9a5b0ced8b1bf= b238b56 > > syz repro: https://syzkaller.appspot.com/x/repro.syz?x=3D17f1d93d1= 80000 > > C reproducer: https://syzkaller.appspot.com/x/repro.c?x=3D15c38139180= 000 > > > > Reported-by: syzbot+9a5b0ced8b1bfb238b56@syzkaller.appspotmail.com > > Fixes: 0fedefd4c4e3 ("kernfs: sysfs: support custom llseek method for s= ysfs entries") > > > > For information about bisection process see: https://goo.gl/tpsmEJ#bise= ction > > > Let's test Al's solution. #syz test: https://github.com/amir73il/linux/ vfs-fixes Thanks, Amir.