From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 BBA9BA955 for ; Sat, 30 Sep 2023 13:19:07 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A41F3C433C8; Sat, 30 Sep 2023 13:19:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1696079947; bh=TkJccJDta5ELpn2APXWKrpLmjnFVEgfNbXdHwnS1A48=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=prjRe/hp5ipBDD2VrPfn7Y262AKGszVcJxK1PYvUyF55UjcL9DBoaauzrNri8P8j9 FLAgxmAxBLxiC/wGxLLlcCa8ZQYCKKu71ysKk7vZdukPFg9c28C3UGbcwI7bVKJCMx jcIvGhaPTBydQL2n9niLuJTHP//SHlUTAxLxy0ymYcQbPnbb4Q7bmJWoSKIwhsJ5HA xfp/bsRIFyMzTOL1axA/8DRMKM+7TD1eFyPFYVRZI23wlhd+NtabSELBw1sENEuRMs odu6X7ueSEpUu2W44HurRkb8KmnvhbdFnmQ43YIOxX7KhkycqgcWi42cxc+sbwJFH7 IMKKuH77KCG6g== Date: Sat, 30 Sep 2023 15:19:03 +0200 From: Simon Horman To: Jeremy Cline Cc: Krzysztof Kozlowski , "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Lin Ma , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, syzbot+c1d0a03d305972dbbe14@syzkaller.appspotmail.com Subject: Re: [PATCH v2 net] net: nfc: llcp: Add lock when modifying device list Message-ID: <20230930131903.GA92317@kernel.org> References: <20230925192351.40744-1-jeremy@jcline.org> Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230925192351.40744-1-jeremy@jcline.org> On Mon, Sep 25, 2023 at 03:23:51PM -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 > Fixes: 6709d4b7bc2e ("net: nfc: Fix use-after-free caused by nfc_llcp_find_local") > Signed-off-by: Jeremy Cline Reviewed-by: Simon Horman