Received: by 2002:ab2:6816:0:b0:1f9:5764:f03e with SMTP id t22csp662427lqo; Thu, 16 May 2024 19:06:39 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWykd2efG6xF0TQ1CTmfPtM2Y2t/6S1NgI60T8kDzxeMUAJ66ljU7Lhy8Ed19zE0sGFlxf8ZLqD+snF/f++SCqlcxaqQUe6JAJU0YRl0g== X-Google-Smtp-Source: AGHT+IHU3EYnxaaECNZVnk7tiN3HUXZthWqdjAwnNY6dChrkh4P4EkiSQO9FEaWsNuncn1QiZyOF X-Received: by 2002:a05:6870:d153:b0:23e:65ab:a3df with SMTP id 586e51a60fabf-24172a4937amr24954854fac.13.1715911599535; Thu, 16 May 2024 19:06:39 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715911599; cv=pass; d=google.com; s=arc-20160816; b=P8hhP3L3QGBnwFNouK9nbkloq6ReNI9JI8FuyfNVfAn4S8JlxxW/rMljcdTghEux4U alw/jss0qdeF3nHE270ixjQVw0rdp0s9Au9y9SFiK+3o0/5j8mV9TRcacYu+18kEO4wD C0BJQPAvOLundpDm/C4pYZveTTAywsUM2CxvyXRLjKdAD7gMRZ1/P/dieI2P9gPGU7tb W6GXMDGQHQqvE0U+Sz5LrseaKM1Dvx4ZkD5BURGAAJHtSGsjXfqRDnuxCLt/narzn8bD T6OL1YdM3+bHAov5LTZrabJ9LI66aMz97J4yXer+QpOdSPWUN53Nwc54/oOZVVMCodiu /6Rg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=a2qop7DDk0mOLQghvNp8dV8z552lIH0Gw3RJVGiNIog=; fh=Mc7W4ordrmy30qKXMnZCr/9LFkyTyHl+zwHmdO1++OA=; b=QKOpN3KeRnf4oEEWecHna5Umuwg9xvMjTFY5QXe7hsGFo+G0DB7IlUdZ1brn8y0gGt a0fjaDt14HtYfziOXojA+ZNKpmfggdolK9TVagtmBTaTBnSKZeabsmY8PH9rlOjXVp0S N+/s/ta7/Mff/xF7pXhVptQbp/doy+cGC/TKsPihvFTRxXjVBVFhv4++O076bidGgq5Y xn6YRRAwn3rqdhYGy0byhiW96Y0izN3wMOtGsH9rGznMGkuAklvBPdtWIrfQaX6oj5QB 8QANBtKZtVS86AYBrSaIZ2j+OMXcSzqS8fIFKkoDAuqtcxwAYeMAUoWe/AfsVWk2aCJ7 OM/Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=BMs0GACj; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-181690-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-181690-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id d2e1a72fcca58-6f4d2aef015si17013562b3a.184.2024.05.16.19.06.39 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 May 2024 19:06:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-181690-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=BMs0GACj; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-181690-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-181690-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 287DE282AA9 for ; Fri, 17 May 2024 02:06:39 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4EA4C79CF; Fri, 17 May 2024 02:06:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="BMs0GACj" Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (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 E2E9F184D for ; Fri, 17 May 2024 02:06:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.129.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715911590; cv=none; b=AwHDpD0AQ0yRCrVFRpj8xjQ7ITqj/dB+tPrlmACS9D7ptOFKrFKnLz0oXLVXc4qowq+wOXa/mX6l4AYhkHJKoPD/riI/nMLLqFBAVHh82NIDZg3JJPB9hOq4eI/PJ9A1udzL/cBWjbB2B0eA52y2x5jBoxwusizUjIri0k4IyH0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715911590; c=relaxed/simple; bh=SfHVswkbrQHqpzZdDcPeh/wRZ2CUDzHmY8tYWMbsUvI=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=c3cWACAji5C9a4RVk2zUsP039wGxtHLDYOdIxm1MHOdxYSeUQTHxV2ZbeDjEDiRfE2ZBW4rSa6ngP+BFiINXlRuxw8cgWDQZ6AVXZ02KHBu/mdypGWDTI7grl3SFBd3JjpTClvJubCtCrtnLaXbjN63SOx2zsgqCBJgZzShGE0E= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=BMs0GACj; arc=none smtp.client-ip=170.10.129.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1715911587; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=a2qop7DDk0mOLQghvNp8dV8z552lIH0Gw3RJVGiNIog=; b=BMs0GACjA0A2WaJb8jC/Ve6x/xuA3N6yZz2dSI5PYWpfyN31xW8IQ3yR9gUy+iSWSWmMkz DCVmTP/ymqSnth5+Dcl1qb3fSv+5njHKUQw21WX16IPGgbzLMFGU2u7ZJ+BzDbNqLLmZD4 ZOO27/mqPB84BSxE3Elm1CfCLpvZmWk= Received: from mail-pg1-f197.google.com (mail-pg1-f197.google.com [209.85.215.197]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-61-VzVrIw_3M0Kq4Fk-4TFPSw-1; Thu, 16 May 2024 22:06:26 -0400 X-MC-Unique: VzVrIw_3M0Kq4Fk-4TFPSw-1 Received: by mail-pg1-f197.google.com with SMTP id 41be03b00d2f7-5c65e666609so7832615a12.1 for ; Thu, 16 May 2024 19:06:25 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715911585; x=1716516385; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=a2qop7DDk0mOLQghvNp8dV8z552lIH0Gw3RJVGiNIog=; b=Em6mX9diqig2OIkJEl7wBMJxamqa6CnTyZoMg6wrdGv7WL/UoHfgAsucUEciM8WsU3 i0HC+bOwmmje6s55MpHZnwENFdlOZFBZDuHG4AHLyph3d3I/eMus9c38AeQ8fAxIpm8A YlYloXX4Ip0u3bAp5E3ilurp38G+kJhRbEsLs6UHCT5MvP2lqqotkAGrpcugHAsi+gAY yZgQqFy8EqSpf9kbsx519aqOr4R91XaOiRe9xTTcq3qRGT7nDzhetKohevXHRBdxMwhs fnBSA5zBIWqpeHEzpCfukwb7RLzmJHZ88ECdIzZGuvTktrxq3nHic0UPiPBA7GpmjO2d Nxpw== X-Forwarded-Encrypted: i=1; AJvYcCVMP9BoPP7n4Njl1QpD1nsAjoM0Z/eNF7tveOuZm32+cDWK9Jc3Yp7V5bwj6jwxP68XF2nxlHv11SBGJ4VLqx3VkxnNlBx3kTTX4OSm X-Gm-Message-State: AOJu0Yz8DLjz1Rz4idvAutmxyUJVyrxj1GKrjhekEqL8kubLIhwMaeRQ +B0fnssAbGn6JZadowMafsnm+RiT4Ju2bEND8NEFFHl6dD/1dD83QxbKggFUETI2V+7IKKg773q WR9ELTWe3pix+AFMucM/ej823srca3/gXwzZQzXUwD3ftpL8QsC9zFt2yTajACg== X-Received: by 2002:a05:6a20:729b:b0:1ab:82fe:910b with SMTP id adf61e73a8af0-1afde1df2b3mr26303603637.58.1715911584935; Thu, 16 May 2024 19:06:24 -0700 (PDT) X-Received: by 2002:a05:6a20:729b:b0:1ab:82fe:910b with SMTP id adf61e73a8af0-1afde1df2b3mr26303585637.58.1715911584524; Thu, 16 May 2024 19:06:24 -0700 (PDT) Received: from zeus.elecom ([240b:10:83a2:bd00:6e35:f2f5:2e21:ae3a]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-6f4d2af2b06sm13699721b3a.167.2024.05.16.19.06.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 May 2024 19:06:24 -0700 (PDT) From: Ryosuke Yasuoka To: krzk@kernel.org, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, syoshida@redhat.com, horms@kernel.org Cc: Ryosuke Yasuoka , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH net v2] nfc: nci: Fix handling of zero-length payload packets in nci_rx_work() Date: Fri, 17 May 2024 11:06:07 +0900 Message-ID: <20240517020609.476882-1-ryasuoka@redhat.com> X-Mailer: git-send-email 2.44.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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") Reported-by: Ryosuke Yasuoka Signed-off-by: Ryosuke Yasuoka --- v2 - Fix commit msg to be clearer to say - Remove inappropriate Closes tag net/nfc/nci/core.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/net/nfc/nci/core.c b/net/nfc/nci/core.c index b133dc55304c..f2ae8b0d81b9 100644 --- a/net/nfc/nci/core.c +++ b/net/nfc/nci/core.c @@ -1518,8 +1518,7 @@ static void nci_rx_work(struct work_struct *work) if (!nci_plen(skb->data)) { kfree_skb(skb); - kcov_remote_stop(); - break; + continue; } /* Process frame */ -- 2.44.0