Received: by 2002:a89:48b:0:b0:1f5:f2ab:c469 with SMTP id a11csp209602lqd; Tue, 23 Apr 2024 22:39:13 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVLIMs6anJTb/Ce1SyAU4h3HMpVa8pAffqUQXjJYo3WZUiDmbclAWfjrAlZU0CLXd1yEQ/ttiVs3TKjK7TqOxwc9UBKd74YLbxCS2g7Cg== X-Google-Smtp-Source: AGHT+IEl1Kz8xHF9tfpTH0ZCbYMCYbhzqq9HOPn+xEHCfVtYpfYjpbZ1250lu++Q+J+bZLqKuhKk X-Received: by 2002:a17:906:4ec1:b0:a57:e5fd:a77d with SMTP id i1-20020a1709064ec100b00a57e5fda77dmr801608ejv.5.1713937153732; Tue, 23 Apr 2024 22:39:13 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713937153; cv=pass; d=google.com; s=arc-20160816; b=ELjYoDxpUSyb43XlvMqE45F8pZDd6qt0Rthbl9YJWSzTE4yGDvaScS+lUfO38aNFvu C7CWyPf4DLX1vgcYjGTY1Y6rynzAm+/PZNlnxBQ2IrY0XV4Fgb+nebXDJi/Ihdowf5fm XwqzHTk+L+vzk7U4h4sGkITNn6zROCz8mrz0tZcMhHXR3Kslxc6pmilHF+NcsBlphwrZ a5wFfFgHALv4gFqS4kmuvLt0MTgwwudrZW2VY80vIEWYBc8gS0NOf/JtrVNIYjm+jkig DN3lpJ8aqgDAY92UR7N8flNuBUojVStFZ9RgXeNtlLrllpDLsNgaiwm+vat34oJFMW1y 1J/w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:autocrypt:content-language :from:references:cc:to:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature; bh=UaFhDhkNBINeqEHYoB3R2u4qqYUb/HRjzOjq5GROip0=; fh=HcMFox4M+QwJFV1YNPHsKT+QXr/UL/sz0pTIL3qlzFo=; b=E5/BFXcVqOzo0vYDO7cA0tUem+0s0IunS6nZNR9O3zGbk/rEv7p4iLkKGkESMIofEW zHlSI3tqAbGiiVSPgee6ZrqdYy7TCND69cjF4KjxA4ZGuBA6CJFnBl1zUjT2EkTX7Tjs 7s7Kpy98jLsoOdN+sopW9wto6/FXic2jxbE6KyKzGAmn6gJ5zDovOnuFJiszoSRCW6KD CNRbyqnBqGM4hUO6Lueheg/w2Dtn5nTr4fPfAAZ1ruhHL5iAjx8NCzdOBAgJeWY0pGQi H99z3adVPS8r5TwhWTL0h7wSx6XjsTOTmqCOOXbkMvY/H3OAdxRxn2bt3WYhe8SrEtLZ ckOA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=KJ0uprlH; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-156321-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-156321-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.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 f2-20020a17090624c200b00a525d60efb6si7983490ejb.844.2024.04.23.22.39.13 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Apr 2024 22:39:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-156321-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=@kernel.org header.s=k20201202 header.b=KJ0uprlH; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-156321-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-156321-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.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 772C41F23EB9 for ; Wed, 24 Apr 2024 05:39:13 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0E0C515686F; Wed, 24 Apr 2024 05:39:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="KJ0uprlH" 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 2765C13CFAD; Wed, 24 Apr 2024 05:39:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713937142; cv=none; b=HNB8yljLfes+YZ8OtAnyDSBWKrybuCbrcffLpa9CQ1E/74Nx8fM/89qx5kc8mqyT9Ns6nBtl9by/GpO0ndNIspKJJ/ab/4jzsteVHUaKK18tKZPvqFqId1f344YT+PBxBiXnWtEgl7++wIGOcL3h26I/Yodpa0mvtfwIFkaAz48= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713937142; c=relaxed/simple; bh=ay9Awlh5bevS7aC0s4/0vSKV1IHpC9vfF+b2hfqoGKs=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=Zvr7LaaSapyEsLZIfYtYtlDIO7jkbo4nNWIrPR/B6Xwl5cL2AQ+tbUqEXu9tWYp1RlmEAicVv2d3zNiSZ+2xxjAujMt7EULw5/EM865tUfCFi/7JQPqXdaBbFOiTEE0BbD/YJDHWrfQmFEkYhsIzRbvg6AamTgzY+H6kJnw6XTQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=KJ0uprlH; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id C500AC113CE; Wed, 24 Apr 2024 05:38:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1713937141; bh=ay9Awlh5bevS7aC0s4/0vSKV1IHpC9vfF+b2hfqoGKs=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=KJ0uprlHown4qsaCkUVlFJjtPPccNrXH7pCXV8H5Qzt+cafh3RjqfLeY62cmJXeyg K6tiWYSizKwv+B8ZCJJqLGIsF44+3sr2RaPel5BkqFcID/rBx7erK+MD8oVql7F2yb jGwUtI8Hl5w+ZKBae+d5Qi6DbeGPr+cOpHJl/4WmSfs6BOlu+JszapSBSTFOM13GKa JWUL9U8AG/k8NHVR/oqRWC6U2jqaac4UfkuBYqE0gQ2eeKxAb3+hhg1zVWYSX5R5D2 5rdm5kc/FIlAKVaDtwpoDkbW0h32XeyO6mCN3KngB/fePp1ZNSdi/V1ILsX1ZiXVA4 rdZUiJKSFx2zw== Message-ID: <39fe27f8-545f-4246-9b18-ab1c50ff8edc@kernel.org> Date: Wed, 24 Apr 2024 07:38:55 +0200 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] nfc: pn533: Fix null-ptr-deref in pn533_recv_frame() To: Yuxuan Hu <20373622@buaa.edu.cn>, gregkh@linuxfoundation.org, johan@kernel.org, davem@davemloft.net, u.kleine-koenig@pengutronix.de, Jonathan.Cameron@huawei.com, francesco.dolcini@toradex.com, jirislaby@kernel.org Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, baijiaju1990@gmail.com, sy2239101@buaa.edu.cn, Yuxuan Hu References: <20240422080408.1639247-1-20373622@buaa.edu.cn> From: Krzysztof Kozlowski Content-Language: en-US Autocrypt: addr=krzk@kernel.org; keydata= xsFNBFVDQq4BEAC6KeLOfFsAvFMBsrCrJ2bCalhPv5+KQF2PS2+iwZI8BpRZoV+Bd5kWvN79 cFgcqTTuNHjAvxtUG8pQgGTHAObYs6xeYJtjUH0ZX6ndJ33FJYf5V3yXqqjcZ30FgHzJCFUu JMp7PSyMPzpUXfU12yfcRYVEMQrmplNZssmYhiTeVicuOOypWugZKVLGNm0IweVCaZ/DJDIH gNbpvVwjcKYrx85m9cBVEBUGaQP6AT7qlVCkrf50v8bofSIyVa2xmubbAwwFA1oxoOusjPIE J3iadrwpFvsZjF5uHAKS+7wHLoW9hVzOnLbX6ajk5Hf8Pb1m+VH/E8bPBNNYKkfTtypTDUCj NYcd27tjnXfG+SDs/EXNUAIRefCyvaRG7oRYF3Ec+2RgQDRnmmjCjoQNbFrJvJkFHlPeHaeS BosGY+XWKydnmsfY7SSnjAzLUGAFhLd/XDVpb1Een2XucPpKvt9ORF+48gy12FA5GduRLhQU vK4tU7ojoem/G23PcowM1CwPurC8sAVsQb9KmwTGh7rVz3ks3w/zfGBy3+WmLg++C2Wct6nM Pd8/6CBVjEWqD06/RjI2AnjIq5fSEH/BIfXXfC68nMp9BZoy3So4ZsbOlBmtAPvMYX6U8VwD TNeBxJu5Ex0Izf1NV9CzC3nNaFUYOY8KfN01X5SExAoVTr09ewARAQABzSVLcnp5c3p0b2Yg S296bG93c2tpIDxrcnprQGtlcm5lbC5vcmc+wsGVBBMBCgA/AhsDBgsJCAcDAgYVCAIJCgsE FgIDAQIeAQIXgBYhBJvQfg4MUfjVlne3VBuTQ307QWKbBQJgPO8PBQk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VcZQNANItt7+ULzdNJuhvTRRdC3g9hmCEuNSr+CLMdnRBY fv0= In-Reply-To: <20240422080408.1639247-1-20373622@buaa.edu.cn> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 22/04/2024 10:04, Yuxuan Hu wrote: > ? kthread_blkcg+0xa0/0xa0 > ret_from_fork_asm+0x11/0x20 > > Modules linked in: nfcvirt(O) pn533(O) nfc(O) ki_coverage(O) [last unloaded: pn533(O)] > CR2: 0000000000000014 > ---[ end trace 0000000000000000 ]--- > RIP: 0010:pn533_recv_frame+0x18a/0x1e0 [pn533] > Code: 43 ff ff ff 48 8b bb 80 02 00 00 48 c7 c6 0b 02 46 c0 31 c0 e8 97 64 4f c4 48 83 bb b0 01 00 00 00 74 3f 48 8b 83 b0 01 00 00 40 14 fb ff ff ff 48 8b 83 b0 01 00 00 48 85 c0 0f 85 3b ff ff > RSP: 0018:ffff88802665fc68 EFLAGS: 00010246 > RAX: 0000000000000000 RBX: ffff88804a13b800 RCX: ad381de3b3cd5e00 > RDX: 1ffff11004ccbf38 RSI: 0000000000000008 RDI: ffff88802665f9e0 > RBP: ffff88804fb25000 R08: ffff88802665f9e7 R09: 1ffff11004ccbf3c > R10: dffffc0000000000 R11: ffffed1004ccbf3d R12: 0000000000001950 > R13: ffff88804ab80000 R14: ffff888021d22640 R15: ffff88802665fcb0 > FS: 0000000000000000(0000) GS:ffff88806d200000(0000) knlGS:0000000000000000 > CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 > CR2: 0000000000000014 CR3: 0000000004ebc000 CR4: 00000000000006f0 > > Signed-off-by: Yuxuan Hu Also, please provide here Fixes, Cc:stable and Closes tags. Best regards, Krzysztof