Received: by 2002:ab2:6816:0:b0:1f9:5764:f03e with SMTP id t22csp3208886lqo; Tue, 21 May 2024 09:43:44 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXL9+/t89usESizuL+sTBBOvtsC34P9bxUy6raEW4FFsXfYVKgaYneCeCSKxMJFX0Ell8l1UFsfSMn6s+CoNc5rrWQbqY5vzQ9gi7u2CA== X-Google-Smtp-Source: AGHT+IFzotBV/SpE5nBXkttfMtPLfxfEQbWXU82GQGL+XOh+9BIunQ0Io1949FW0sNhFmM4tWydP X-Received: by 2002:a17:90a:db54:b0:2b6:3034:4ae9 with SMTP id 98e67ed59e1d1-2b6ccd6bceemr27617144a91.35.1716309824123; Tue, 21 May 2024 09:43:44 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716309824; cv=pass; d=google.com; s=arc-20160816; b=bF0hqsikLNIygE2LF2CBbub5mZq0AIkWe1U1Va4/Zx7up/XUz+BXFI0tFLAKHfz9DF 1PS3LlbZQpKamBF0W6e44z9O/ZI6pMXw6OFzDpvBlk0NDlIS99MPM2BO4Zu+BmwVoVNA iO6HQbt/RAjZAufvNzq6jUTdY8wqU84gfPNNbMytztLsHiPwTN4df+l6hRiyYB9AZMsI bmQCs0hFulMKwq4APjv3Han7Mdz6j7CPszqS0Ty1IHCMBWv0v5Q/vI3bUdEKRJLABymf 1j6AKgN2Tt71LI47/7GqW93gayYGvlr29WnFGCDYFZPTtl+qHIjaBd4iFRi1mTtHd6e6 N/Sg== 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=MmEhScxUe+Uo6eKa7i3vTpMT8T4KPbQqxRd6WSRosK8=; fh=0TA1Qv9945mVIl41DtQDRUV1NDoSZg/V0JAqRvgkrj0=; b=HzE1VHfHC4vuiXO2A+rjDuU+8ODWyA0Bk9hFCnJFUPY1aW9+HGdxSHNB8IZSz9qjJ0 heip1RWv46hS8IAnKhqzjCaIrYfzPeFxDVWwpNuJJvOaDPMh89DofcHvxR4hN4DFMOlh cyCoIVC+FIlOpj4xvg7i8T/Qc3kvZzfzDCOWgV3ktwMlFROyvkmM0t1AWP/liHOsX6xy ujzUvgo1Esj1U/m3802PsRfruc2HkdOHNUrBZx0Z3GkLAv1LrciwcE8GkF0SOZmGtJMv HXxIIfDQgXvVqSv9+U5uCrqjnYY1SKy1Isj/NePQyt2AG/s6TFF2HIbSkelH+m1O2DNU 4TVw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=OpUtXNKF; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-185226-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-185226-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id 98e67ed59e1d1-2bd92b38a8dsi1656476a91.132.2024.05.21.09.43.43 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 May 2024 09:43:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-185226-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=OpUtXNKF; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-185226-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-185226-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id C49D6B21F53 for ; Tue, 21 May 2024 16:42:20 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 24620147C6F; Tue, 21 May 2024 16:42:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="OpUtXNKF" 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 442431CA80; Tue, 21 May 2024 16:42:09 +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=1716309729; cv=none; b=JoQpLb5bmyCNuYS/TMT9T+LbTRwHzt0VRsrmC25unI5duM8VBaycrj9fCXJzncbpY9LcZIex0MkHbvPUeM38OmHOfbegWFIADNw8qgo1E31PA9YqF6ZubxAWIHU+eMeTbXsZBRxaeSu/xjuf10KLQiTQUOTAz45XeFx+3oBR5k4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716309729; c=relaxed/simple; bh=iEwwAjVmjAqd0fVn9TW83urRHjma7JMbFSbxfrWbuS4=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=iLzyRMyP9LzYkbezXHCfZtT4hZ1uCu3S9344qmjgnhMoo+qs8kWkdWkrgyIF2wqGiO5NluSz7RG31g67dbl1nsm0iALKnVUJ9VZ2LHaNoiwTb0Utt3nlQR14KerPeYXpKyBEE4/uTI5V9ZjmgfH2WIdnR84ZPqMjSFmtJTbZuAw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=OpUtXNKF; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 22AB0C2BD11; Tue, 21 May 2024 16:42:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1716309729; bh=iEwwAjVmjAqd0fVn9TW83urRHjma7JMbFSbxfrWbuS4=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=OpUtXNKF8fozPxvzlIM0GKGSzyAk9IxZ79xw5Ot1IKqx+cCzJgc3jSGAW0zkkIlFI UleC7e8C/xMFGftbhjwVhEY7KQYif+Tt2pO8DPL87J94BGOiHF036g0yva09WJvgQq 6FLP06KE6eskW9AIj1EbWLEqujAUIal2R2ts3npTe2PcyQWGuke+IpePdfTmFVdWqC fP5c1Slho+2LrOn9mjWAcqOrcmlvh8MD3m5MrIp/OoFVcuxE2lhDexGKQDPILW65sY sWglfOXsuwqBGzDQ4HwI1ZsmTyOu/ucqIYDu2VEs+t29nz1f8tk+0GEqhaTZWOgRmj d+OMrOndprIrQ== Message-ID: <36642c37-787e-4cd0-bf21-f6cb9bb5dd7d@kernel.org> Date: Tue, 21 May 2024 18:42:04 +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 net v3] nfc: nci: Fix handling of zero-length payload packets in nci_rx_work() To: Ryosuke Yasuoka , davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, horms@kernel.org Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, syoshida@redhat.com References: <20240521153444.535399-1-ryasuoka@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iwv6nw8U+7Yyl6gU BLHFTg2hYnLFJI4Xjg+AX1hHFVKmvl3VBHIsBv0oDcsQWXqY+NaFahT0lRPjYtrTa1v3tem/ JoFzZ4B0p27K+qQCF2R96hVvuEyjzBmdq2esyE6zIqftdo4MOJho8uctOiWbwNNq2U9pPWmu 4vXVFBYIGmpyNPYzRm0QPwARAQABwsF8BBgBCgAmAhsMFiEEm9B+DgxR+NWWd7dUG5NDfTtB YpsFAmA872oFCRRflLYACgkQG5NDfTtBYpvScw/9GrqBrVLuJoJ52qBBKUBDo4E+5fU1bjt0 Gv0nh/hNJuecuRY6aemU6HOPNc2t8QHMSvwbSF+Vp9ZkOvrM36yUOufctoqON+wXrliEY0J4 ksR89ZILRRAold9Mh0YDqEJc1HmuxYLJ7lnbLYH1oui8bLbMBM8S2Uo9RKqV2GROLi44enVt vdrDvo+CxKj2K+d4cleCNiz5qbTxPUW/cgkwG0lJc4I4sso7l4XMDKn95c7JtNsuzqKvhEVS oic5by3fbUnuI0cemeizF4QdtX2uQxrP7RwHFBd+YUia7zCcz0//rv6FZmAxWZGy5arNl6Vm lQqNo7/Poh8WWfRS+xegBxc6hBXahpyUKphAKYkah+m+I0QToCfnGKnPqyYIMDEHCS/RfqA5 t8F+O56+oyLBAeWX7XcmyM6TGeVfb+OZVMJnZzK0s2VYAuI0Rl87FBFYgULdgqKV7R7WHzwD uZwJCLykjad45hsWcOGk3OcaAGQS6NDlfhM6O9aYNwGL6tGt/6BkRikNOs7VDEa4/HlbaSJo 7FgndGw1kWmkeL6oQh7wBvYll2buKod4qYntmNKEicoHGU+x91Gcan8mCoqhJkbqrL7+nXG2 5Q/GS5M9RFWS+nYyJh+c3OcfKqVcZQNANItt7+ULzdNJuhvTRRdC3g9hmCEuNSr+CLMdnRBY fv0= In-Reply-To: <20240521153444.535399-1-ryasuoka@redhat.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 21/05/2024 17:34, Ryosuke Yasuoka wrote: > When nci_rx_work() receives a zero-length payload packet, it should not > discard the packet and exit the loop. Instead, it should continue > processing subsequent packets. > > Fixes: d24b03535e5e ("nfc: nci: Fix uninit-value in nci_dev_up and nci_ntf_packet") > Signed-off-by: Ryosuke Yasuoka > --- > v3 Reviewed-by: Krzysztof Kozlowski Best regards, Krzysztof