Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp2754303rdb; Tue, 12 Sep 2023 11:00:55 -0700 (PDT) X-Google-Smtp-Source: AGHT+IH6JjGaIWYc/JuGFfp16BUppSirfwm9BEZyY3Ks6VHbB5kvHMi18ThmW6563krm5DW27umr X-Received: by 2002:a17:902:6846:b0:1bf:34fb:3085 with SMTP id f6-20020a170902684600b001bf34fb3085mr504962pln.14.1694541655378; Tue, 12 Sep 2023 11:00:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694541655; cv=none; d=google.com; s=arc-20160816; b=Gu/usvhRWdcNNxlSDhS5wJ0b7C3qgDdDI1CgXBrNHYJcOsFU1TlWEhx7aOBgC0qsgG q+zaiL+VK5a5xqt6VLpVWRk/6YBWlwyCikJBTP8+q3Lk/E7E7SeULmX7lcGBUW4SFNGK 0hlL0vYn9UDiSHM7/AH1OgCEfHZNohq+9KFOEKwK+odFU48rU0XYfHcYp/nKlBrFILkQ MNySspFraP4A4u4fQazeej7nxZtdPufm2O+Rqwefd2qJLr8DCmTwPPNFaD0lsAnxfT8X JifddEaGBEefXWVDUZ/9S6TPNzlZdvS/rudFtcocGyDUMcsV5aGsLfSX3bEOUVQfKeX3 F0cg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:feedback-id :dkim-signature:dkim-signature; bh=vdxprn+VLunJ+Ba1KePDdQ8b/yp76261BQa2lBK+CxE=; fh=06gW3nZ6bP199xJ+1mFcF/d+zZdoUiIW5cshMq3XwsY=; b=HiLBQvNRoP4XU1Nzu6Galb0H2kCFjtHAeq83fjiG9lr1mmM8Ek0X5/2SEvUMGOJZpP 76sLWtf4TfibT9AfCyeu3MlYKEiP7cbLAren7MMwYGCCbMPG6YD359vFM2vbjMlSrR1i FwtAldr+2v08AynL+5GCpynTHo0qMxeP30uzxJuZtnmbwnethKvGZAoAGAi3wOA/4pCB oWDf+t0WpMbZ/r3nHd+yU/ycwUONI0W5Z3ucNvXERZ4e1gWu5QhRx86FYxX9tBN/NeSd ajK4Y3/YL4cFb2z1zwvQ6gFJ1YiBIb+/6jvHxJOf/VrxewgQ2b4BWbyDKyEocu2JRhx0 ED5g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@jcline.org header.s=fm1 header.b=AJ7hJV1s; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=Xq4W7g5R; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id l16-20020a170903121000b001b9e383bb34si8734606plh.120.2023.09.12.11.00.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Sep 2023 11:00:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; dkim=pass header.i=@jcline.org header.s=fm1 header.b=AJ7hJV1s; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=Xq4W7g5R; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 7203D807C7C6; Tue, 12 Sep 2023 08:40:50 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231213AbjILPkr (ORCPT + 99 others); Tue, 12 Sep 2023 11:40:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40266 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229661AbjILPkp (ORCPT ); Tue, 12 Sep 2023 11:40:45 -0400 Received: from out2-smtp.messagingengine.com (out2-smtp.messagingengine.com [66.111.4.26]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0DADA10DE; Tue, 12 Sep 2023 08:40:41 -0700 (PDT) Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 2BEE35C023B; Tue, 12 Sep 2023 11:40:41 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Tue, 12 Sep 2023 11:40:41 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jcline.org; h=cc :cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:sender :subject:subject:to:to; s=fm1; t=1694533241; x=1694619641; bh=vd xprn+VLunJ+Ba1KePDdQ8b/yp76261BQa2lBK+CxE=; b=AJ7hJV1s7pfeQAa3Qh vNTywaHGJhoVph3GxX4hX98F3+HoybDiAqHP33z67xzU3bXSLghtYkJXxcmhO79J 91PITxUkDNeaNUiUayE1aGKxl8nO55oBuZxFEr6fhu3VKUug9JNVI1BLotMMk0AC Vj9F1YJYHBD19nd4gY8d8gTB2LRBhO409+1rXQGz2ghqyzReb03tDE4Bh6hcI4J2 t8EszkIKbgSdwk5MPku6nfVI0eKeeAalqRYpAAD46L/M6dvNZJxefhIRsL9NUQ/H 5+pyCsPSSlzxKO9cKoPdIID8KaN8Rh6R74u25eoyeC9BI3ro/Z4ZtQX+puXD5a/p Duug== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; t=1694533241; x=1694619641; bh=vdxprn+VLunJ+ Ba1KePDdQ8b/yp76261BQa2lBK+CxE=; b=Xq4W7g5RYo6XiSHOwOxqSGJOX1kyE yg/PbEVL+mDRmeC18+aKI3ogxnU2gaFFXHUUfN1YIuz/ZeQ32l6vnRx7aCNPnyz6 xIoxI2IYK4vjWd0lEDUbomD2PphyLbQ3GyFWDynUJYk42kjKZCcTX/8G8sMEmRr3 mW/jJyPRJqUWG3aZpLLN6opktBorzgvmN0Gx6HtXQ9K7eDcz1ZgYhckP1GjcvbK3 4gwooD2uhcTVr9aFN2tj1ty0OSiu1QprXCI3AtwpGRHsbCKkHeROL1ZIgIxkjtBd WfoLo+u5/h1v831jfESqrD2/oZ4xYZUIgrsaVJNyt6VJ8IqcbzOUFRqCw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedviedrudeiiedgledvucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvfevuffkfhggtggujgesthdtredttddtvdenucfhrhhomheplfgvrhgv mhihucevlhhinhgvuceojhgvrhgvmhihsehjtghlihhnvgdrohhrgheqnecuggftrfgrth htvghrnhephfefjeejueelueevveelvdehffeufeffvdejkeevteekieduudeludevgeeu vdeinecuffhomhgrihhnpehshiiikhgrlhhlvghrrdgrphhpshhpohhtrdgtohhmnecuve hluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepjhgvrhgvmhih sehjtghlihhnvgdrohhrgh X-ME-Proxy: Feedback-ID: i7a7146c5:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 12 Sep 2023 11:40:40 -0400 (EDT) Date: Tue, 12 Sep 2023 11:40:38 -0400 From: Jeremy Cline To: Simon Horman Cc: Krzysztof Kozlowski , "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, syzbot+c1d0a03d305972dbbe14@syzkaller.appspotmail.com Subject: Re: [PATCH net] net: nfc: llcp: Add lock when modifying device list Message-ID: References: <20230908235853.1319596-1-jeremy@jcline.org> <20230910152812.GJ775887@kernel.org> <20230911055904.GN775887@kernel.org> <20230911125251.GA23672@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230911125251.GA23672@kernel.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Tue, 12 Sep 2023 08:40:50 -0700 (PDT) X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email On Mon, Sep 11, 2023 at 02:52:51PM +0200, Simon Horman wrote: > On Mon, Sep 11, 2023 at 07:59:04AM +0200, Simon Horman wrote: > > On Sun, Sep 10, 2023 at 07:06:19PM -0400, Jeremy Cline wrote: > > > On Sun, Sep 10, 2023 at 05:28:12PM +0200, Simon Horman wrote: > > > > On Fri, Sep 08, 2023 at 07:58:53PM -0400, Jeremy Cline wrote: > > > > > The device list needs its associated lock held when modifying it, or the > > > > > list could become corrupted, as syzbot discovered. > > > > > > > > > > Reported-and-tested-by: syzbot+c1d0a03d305972dbbe14@syzkaller.appspotmail.com > > > > > Closes: https://syzkaller.appspot.com/bug?extid=c1d0a03d305972dbbe14 > > > > > Signed-off-by: Jeremy Cline > > > > > > > > Hi Jeremy, > > > > > > > > thanks for your patch. > > > > > > > > I don't think you need to resubmit for this, > > > > I think this patch warrants a fixes tag: > > > > > > > > Fixes: d646960f7986 ("NFC: Initial LLCP support") > > > > > > > > > > My bad, indeed. The lock in question looks to have been added in > > > 6709d4b7bc2e ("net: nfc: Fix use-after-free caused by > > > nfc_llcp_find_local") which itself includes a couple fix tags, should > > > this reference that commit instead as it won't backport without that > > > one? > > > > Yes, I think that is likely. > > Sorry for not noticing that. > > And further, sorry for being vague in my previous email. > Having now looked over 6709d4b7bc2e I agree it is > the correct commit for a fixes tag for this patch. > Super, thanks. If it's helpful I can re-roll the patch, otherwise I'll just leave it as-is. Thanks, Jeremy