Received: by 2002:a05:7412:b130:b0:e2:908c:2ebd with SMTP id az48csp505149rdb; Fri, 17 Nov 2023 05:18:14 -0800 (PST) X-Google-Smtp-Source: AGHT+IHtwpwdp38AxTOEiLLUZfDuQFjQwHxccBYeOkly1MK9w2CnGQuhJscxyL2iIy2UZ2bK+pVj X-Received: by 2002:a05:6a20:7353:b0:186:c0fe:b842 with SMTP id v19-20020a056a20735300b00186c0feb842mr13776861pzc.2.1700227094385; Fri, 17 Nov 2023 05:18:14 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1700227094; cv=pass; d=google.com; s=arc-20160816; b=BrEM1HblS5sI8m54zwMj7H2FVxs6+9dYZr1uk5kPrehk1Gt1an+FWruh/1y4vlPnq5 hNxJ3ZgibjXdhQmwV3s1zB2HFqeohh1/sCQXtFyoKV5J3E0+NZR1/5xkj7WD98Zai+qm OBDJia7OmIqh6EaGSyrMzIUrODIVtFRjAG75HAQnsnzx84Nq1EaaQtJK/azUFZciduL+ 17zLeZdYN6o+ChWB94qmACneHUx/9izTE1cgO2N/MJBXCpsO4/lUlzIUJExghimwaxme iXg6eOsH8/CRzbnZI2f3BZSTkNWKUBD686IV0MeBke7kAEf6fNE/IDa1za+rp14/DSs6 ZtxA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:importance:content-transfer-encoding :mime-version:subject:references:in-reply-to:message-id:cc:to:from :date:dkim-signature; bh=msTnUzBkdMrnWPUJZZzkIMxxIFsUva2SdUKhC65U6+A=; fh=xr4LB8FDsDsV36OhQfuq592N66pO5rJePAgLMSKoY4Q=; b=a9h/AFcwIZlgL1eeST2wFpwGW/kOxAj/k2N6m92mWUYUblnq5rKmZ6Bk8VmrBeVb6q k7xWwW1n3pD+90lqlkLJoP/CWXzfh3rqeWFeekVEq0juaY2f711aa127ECm9TQwbSNvR u5vok10pvkOeml13KKn8bQq0Jvx3MJksC0bdEOVvOMgOr7ZurFG/OMATCHX2H69omccM j2MiQCkLZ3sf19nSIvqrBToDrX7iKY6jwMo1cBNxe3hThV+A0sBf5L+gEvPQ1cp3aOna 2iWRi4sdvJM7b3IPYuouL5xPs5yE7RjdZZIeSgYcgaJnVseV+2xNkkxQhUSnlm3SwDER GM4g== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@siddh.me header.s=zmail header.b=QOsUk0Ki; arc=pass (i=1 spf=pass spfdomain=siddh.me dkim=pass dkdomain=siddh.me dmarc=pass fromdomain=siddh.me>); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=siddh.me Return-Path: Received: from fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id q18-20020a056a00089200b006c4f047a75asi1954710pfj.225.2023.11.17.05.18.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Nov 2023 05:18:14 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; dkim=pass header.i=@siddh.me header.s=zmail header.b=QOsUk0Ki; arc=pass (i=1 spf=pass spfdomain=siddh.me dkim=pass dkdomain=siddh.me dmarc=pass fromdomain=siddh.me>); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=siddh.me Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 45C0982DEE54; Fri, 17 Nov 2023 05:18:11 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345984AbjKQNSD (ORCPT + 99 others); Fri, 17 Nov 2023 08:18:03 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47234 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231391AbjKQNSC (ORCPT ); Fri, 17 Nov 2023 08:18:02 -0500 Received: from sender-of-o51.zoho.in (sender-of-o51.zoho.in [103.117.158.51]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8C501D49; Fri, 17 Nov 2023 05:17:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700227053; cv=none; d=zohomail.in; s=zohoarc; b=L8iWjvSUjcfPEqx47fEnsCGv+o2sCsDagd/2JFpM0bj5wE/MNctVF9Ij7RXOjAWxwCvxO0/SKMsjSGRZ6H1HN8f71PS4gNW8B3+Hr3OGekFL9rmNk2Up/NhGj94e+/q0S1CYxqza1CO0dlddep7UolW+tRzuYQuzd79C/JKBzNI= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.in; s=zohoarc; t=1700227053; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:Subject:To:To:Message-Id:Reply-To; bh=msTnUzBkdMrnWPUJZZzkIMxxIFsUva2SdUKhC65U6+A=; b=SUTYepuHUFeW+/lRCVUWHFcygPpaPuCMbljGCGId7+KXVV2F4KXJcEY6sQ4F4LRrTiyj0dmtlMYqYBlPJ8aYnKd8oefbVvRJZXzgNeVmtXUhqcX6vA6W0g+u/NGILw3R4a9G3UF1k39nt9JKyAAexrYCqEFc28e7QjUWq3iBQyY= ARC-Authentication-Results: i=1; mx.zohomail.in; dkim=pass header.i=siddh.me; spf=pass smtp.mailfrom=code@siddh.me; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1700227053; s=zmail; d=siddh.me; i=code@siddh.me; h=Date:Date:From:From:To:To:Cc:Cc:Message-ID:In-Reply-To:References:Subject:Subject:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-Id:Reply-To; bh=msTnUzBkdMrnWPUJZZzkIMxxIFsUva2SdUKhC65U6+A=; b=QOsUk0Kionx52e2ckSOZlYJGxjhZlNjFAAlgq2t1D7OYalIsfQtkicyrQBaeBMs8 xPDmnfY8m0jocWqBWW2qiBjV1cCJdd9GcnnBHEGYxRLhqrcCHMjLP0wsEWRM8rqp++s qrzVTIWVO8UvAAlbXGvzq7W42gE1x6kYJtPjrFpY= Received: from mail.zoho.in by mx.zoho.in with SMTP id 1700227022146705.98717921503; Fri, 17 Nov 2023 18:47:02 +0530 (IST) Date: Fri, 17 Nov 2023 18:47:02 +0530 From: Siddh Raman Pant To: "Krzysztof Kozlowski" Cc: "davem" , "edumazet" , "kuba" , "pabeni" , "linux-kernel" , "netdev" , "syzkaller-bugs" , "syzbot+bbe84a4010eeea00982d" Message-ID: <18bdd6d7d1e.f8bd3007064.1218727710101871071@siddh.me> In-Reply-To: References: <000000000000cb112e0609b419d3@google.com> <7824cf85-178f-4fca-8058-b9a1f49d3113@siddh.me> Subject: Re: [syzbot] [net?] [nfc?] KASAN: slab-use-after-free Read in nfc_alloc_send_skb MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Importance: Medium User-Agent: Zoho Mail X-Mailer: Zoho Mail 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,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email 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 (fry.vger.email [0.0.0.0]); Fri, 17 Nov 2023 05:18:11 -0800 (PST) On Fri, 17 Nov 2023 18:18:56 +0530, Krzysztof Kozlowski wrote: > Any checks would need to have proper locking. Or at least barriers... > Adding checks without locks usually does not solve race conditions. Yes of course. I just wanted to put whatever I tested out there. > Other start is proper ref counting, so the structures are not released > too early. We have several bugs like this in NFC before, so you can take > a look at their fixes. Sure. Thanks, Siddh