Received: by 2002:a89:d88:0:b0:1fa:5c73:8e2d with SMTP id eb8csp157847lqb; Thu, 23 May 2024 13:57:58 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXEZQReSkITVUlfyuLbkskHzQ8MggUr/BBPeb9gmfTd5kwOVN7ywsmG1jqSlAAasSzAz48xio+HhpNUo4kXBBwj1aSd0nmaKQ8qzb7QQQ== X-Google-Smtp-Source: AGHT+IFXYVGIP6cz+ycRwdw9aBFq6EtSKVmZi1jRZtuMC9bdz1e4MKPNHxkxRr2Jg+KWDmC4B5IG X-Received: by 2002:a17:906:1558:b0:a61:82c6:4665 with SMTP id a640c23a62f3a-a62641c2e5amr37586266b.7.1716497877834; Thu, 23 May 2024 13:57:57 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716497877; cv=pass; d=google.com; s=arc-20160816; b=sR6OVPJ+/wKP5B6Tt1Tev70nvWT2JGAtwOO5v/69tG6OzCgSWfMNEQENyNBkznAxUQ QDY+O4en1WNPQR7KeNjRCKt24026Ts7eY8uxx2Wa05HqvoYTSI6dwYkrg5eEPsuYxH+u 3MSSh0muHNJeS98mgGonldIO9jnWllQMVUH4T7if0RX5KCPu1WMI4lii+3qlOQ17knj8 HHMsadwARNtqJC9ch2aRAP7Nj99yuWj1jzFfffCP8ZQ/LXeXja8b+YS4aym+MTi9RmPb /PBuenC9V4z1RVGbN4hRtqAMBwNZmwdmk7PPKPqiliPC2Rz/A96HZtOJNv+9Pm7hyQrj z4/w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=26v69cdZHR88qOWgnjCjlho7Xx+de5LKxz/UUm1HIkQ=; fh=oH4tPRSJgK+JNk8/GOwRRQbrHSTQ/0QUMXHA0yNhyfI=; b=xFkOHbs8t3Bny5K5Hoogqhzn0nwoW6VQrxlhdn/4fRTdruJt0AKI8Em5cp/xRS4bbY sh9Av7OjKdLnm47S6SoBEz8z8QFbNbVvqsC8up141WULzcQLpw5z7WUB/8if88gC/DvU fpUGuydFj+O7Qht0EylVkfdfd0+0urQw3H/r1aPL32MBUjpDiT8t/SrTnGpXJokAQqHY kkM7VDF1S6ZqG/0yPSdQBhb0jOdmEgx+wWUWiWAMTHWHJkM06hOmOjPzUGSUTdN2REX9 lsRSDgbWAfGHJxWI0BxllLhVwCuGNnr6Z+cAWlqN5LQXvUYrslm052zky1Blte+ofKzh RBPg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@codewreck.org header.s=2 header.b=E2t9x9mp; arc=pass (i=1 spf=pass spfdomain=codewreck.org dkim=pass dkdomain=codewreck.org dmarc=pass fromdomain=codewreck.org); spf=pass (google.com: domain of linux-kernel+bounces-187997-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-187997-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=codewreck.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 a640c23a62f3a-a626cdd0ebcsi5578966b.918.2024.05.23.13.57.57 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 May 2024 13:57:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-187997-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; dkim=pass header.i=@codewreck.org header.s=2 header.b=E2t9x9mp; arc=pass (i=1 spf=pass spfdomain=codewreck.org dkim=pass dkdomain=codewreck.org dmarc=pass fromdomain=codewreck.org); spf=pass (google.com: domain of linux-kernel+bounces-187997-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-187997-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=codewreck.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 8482C1F23DE6 for ; Thu, 23 May 2024 20:57:57 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5843D126F33; Thu, 23 May 2024 20:57:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=codewreck.org header.i=@codewreck.org header.b="E2t9x9mp" Received: from submarine.notk.org (62-210-214-84.rev.poneytelecom.eu [62.210.214.84]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7E06D86ADB for ; Thu, 23 May 2024 20:57:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=62.210.214.84 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716497869; cv=none; b=tV4INker7kZCW7yTxPa2eknCx/3QdN/WCExFteGLlKncLGIzVF4EYOVx14mYybzxu9lAJg86JiH48LjKCaYdO4JZQMSQnQ0d6S3J8aLC5vqBVHSHPrhQL9QCU2bDtq8Edj/evucuWfNmDGbkOiQiZFxNSSj453ka7d1TT3r0djA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716497869; c=relaxed/simple; bh=B2vume0Zk1YqRsDnDJ6VeYzJZ6A+QH9zV+wpmsJkPJc=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=m0ZHcmVZt0CRs6mDbYDXaYgj6Mf13gVU2aM4lJthsSnfp63zv07VfcZxGUEWRabwtCb88mIUNAWgOYCdb+DkA56nGEP04vZ/Bm3JMzypdt9wXT0ALhpzTQp1uBk4rcCrg66t7ytnq+11jSFPkpA4qE9Mg+kJ1tPkpI3EokQx7oc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=codewreck.org; spf=pass smtp.mailfrom=codewreck.org; dkim=pass (2048-bit key) header.d=codewreck.org header.i=@codewreck.org header.b=E2t9x9mp; arc=none smtp.client-ip=62.210.214.84 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=codewreck.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=codewreck.org Received: from gaia.codewreck.org (localhost [127.0.0.1]) by submarine.notk.org (Postfix) with ESMTPS id 6562214C2DB; Thu, 23 May 2024 22:57:37 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=codewreck.org; s=2; t=1716497859; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=26v69cdZHR88qOWgnjCjlho7Xx+de5LKxz/UUm1HIkQ=; b=E2t9x9mppdKpE83YU3N6wGC75alQXfX+tRC9PcnCgyuOe3/jT5DoaVuR9652HNNbVR3I4i FdqimkYT3PxAJqbF0IMGbkk26UGsRdBsxAgJd74OyyLPuTcbiUzeBQtVcE37ByNSkw75zI 9kDzx7kWfp1ib1hg8sOpPm3miALhIDw3yGPUVizJQhI3fFq1EFDWCeYrcbJ8clnE+HKmUR UhV7rLaIoGlWL35+2wtVnHjO+fJEX2rQWncf/9c3zXlIRNNpNiFH3McF5wLwscfI5V4rjj 9D75AUWAlut3n/3cXDeGsEDzM2n8U1ffGSFI86rtweLj1UKPBf10q5jCp3Bxjg== Received: from localhost (gaia.codewreck.org [local]) by gaia.codewreck.org (OpenSMTPD) with ESMTPA id 87e35d6a; Thu, 23 May 2024 20:57:32 +0000 (UTC) Date: Fri, 24 May 2024 05:57:17 +0900 From: asmadeus@codewreck.org To: David Howells Cc: syzbot , brauner@kernel.org, hdanton@sina.com, linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com Subject: Re: [syzbot] [v9fs?] KASAN: slab-use-after-free Read in p9_fid_destroy Message-ID: References: <00000000000092914806191382ac@google.com> <580959.1716475058@warthog.procyon.org.uk> <641239.1716487625@warthog.procyon.org.uk> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <641239.1716487625@warthog.procyon.org.uk> David Howells wrote on Thu, May 23, 2024 at 07:07:05PM +0100: > asmadeus@codewreck.org wrote: > > > > There's a problem in 9p's interaction with netfslib whereby a crash occurs > > > because the 9p_fid structs get forcibly destroyed during client teardown > > > (without paying attention to their refcounts) before netfslib has finished > > > with them. However, it's not a simple case of deferring the clunking that > > > p9_fid_put() does as that requires the client. > > > > "as that requires the client" doesn't parse > > "... as that requires the p9_client record to still be present."? Ah! yes, that works. 'as that uses/depends on the client' would also work. Thanks, -- Dominique Martinet | Asmadeus