🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #24310

Re: [PATCH net 1/3] net/nfc: llcp: fix the 16-bit truncation that overruns the SNL response skb

#24310
From: Piyus Kedia
Date: Mon, 30 Nov 2026 01:34
38 lines
12239 bytes
Hi Willem,

Thanks for the review, and sorry for the threading mess in v1.

v2 is posted as one series with a cover letter:

  the series: https://lore.kernel.org/all/20261130012208.1962491-1-piyus@iiitd.ac.in/
  1/3 the SNL allocation truncated to 16 bits:
    https://lore.kernel.org/all/20261130012208.1962491-2-piyus@iiitd.ac.in/
  2/3 the skb reference taken after the frame is queued:
    https://lore.kernel.org/all/20261130012208.1962491-3-piyus@iiitd.ac.in/
  3/3 the NULL skb forwarded to the nfc core:
    https://lore.kernel.org/all/20261130012208.1962491-4-piyus@iiitd.ac.in/

All three patches now carry a Fixes: tag.  v1 had none because the clone we
were working from does not reach back that far, which we should have said
instead of just leaving them off:

  1/3  e0ae7bac06cc ("NFC: llcp: Service Name Lookup SDRES aggregation")
  2/3  1727cf937401 ("NFC: llcp: Fix Rx memory leak")
  3/3  122c195872e9 ("NFC: NCI: Forward data received in Target mode to nfc core")

The cover letter says why each of those is the commit that introduced the
bug rather than one that merely touched the line.  3/3 is the one worth a
second look: the NULL has been assigned since 2011, but until the
target-mode exit was added the shared exit path only reached
nci_data_exchange_complete(), which accepts a NULL skb.

The recipient list is now the full get_maintainer.pl output, and each patch
carries a Link: to its bug report in the commit message instead of being
threaded under it.

Thanks and regards,
Piyus Kedia
Kapil Vaswani

pw-bot: cr
Technical Details
Message-ID: <20261130013453.1973843-1-piyus@iiitd.ac.in>
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-373766-linux-kernel-netdev=dewy.ru
References: <20261123023548.3351531-1-piyus@iiitd.ac.in> <20261123023548.3351531-2-piyus@iiitd.ac.in> <willemb.360aecefa3166@google.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-373766-linux-kernel-netdev=dewy.ru
From: piyus@iiitd.ac.in (Piyus Kedia)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net 1/3] net/nfc: llcp: fix the 16-bit truncation that overruns the SNL response skb
Date: Mon, 30 Nov 2026 07:04:53 +0530
Organization: Usenet Network
Message-ID: <20261130013453.1973843-1-piyus@iiitd.ac.in>
References: <20261123023548.3351531-1-piyus@iiitd.ac.in> <20261123023548.3351531-2-piyus@iiitd.ac.in> <willemb.360aecefa3166@google.com>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
	logging-data="1303250"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:GeFycixTQxj13gmpq+x8JW3jOfU= sha256:DqP7iir0N9tsZXDtDs8Tlnlg2GqhY8MSj5JrtQiwV8Q=
	sha1:WA/1njDdMpTBU8cQ7T1/Y6ARopg= sha256:LF/OWISe69iFjgcXqneedTle6dtKmg6dL6DJ7rSkd4A=
List-ID: <netdev.vger.kernel.org>
X-Mailpost-Empty-Hdrs: X-Spam-Level
X-Received: from localhost (localhost [127.0.0.1])
	by mail.dewy.ru (Postfix) with ESMTP id 5F52F125FB9; Mon, 30 Nov 2026 04:35:21 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.151
X-Spam-Status: No, score=-3.151 tagged_above=-9999 required=6.31
	tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,
	HEADER_FROM_DIFFERENT_DOMAINS=0.249, MAILING_LIST_MULTI=-1,
	RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001]
	autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (1024-bit key)
	header.d=iiitd.ac.in
X-Received: from mail.dewy.ru ([127.0.0.1])
	by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id VQBPaFzfyTz6;
	Mon, 30 Nov 2026 04:35:17 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.232.135.74; helo=sto.lore.kernel.org; envelope-from=netdev+bounces-373766-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=none (p=none dis=none) header.from=iiitd.ac.in
X-Received: from sto.lore.kernel.org (sto.lore.kernel.org [172.232.135.74])
	by mail.dewy.ru (Postfix) with ESMTPS id 26E85125F08; Mon, 30 Nov 2026 04:35:08 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
	by sto.lore.kernel.org (Postfix) with ESMTP id 132DE600DC6; Mon, 30 Nov 2026 01:35:08 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass;
	t=1796002507;
	b=mLZLkUqOaGkdBliibeupKQWwtDdtWiBn1StOvVjyvfnsS7BG5PCx+DgAzu8ooi66JCod
	 fp1OhkYZ7+BAlB6x96l5VHWs1encGDLIrATplWkmcwe3xf0vyPxGBKcKzqDr5Uu/5VAoy
	 1u6/1m1x6qk4JFLqXZPST6pu/WIVrBxHS6YzDH1qMPDTdM8ZRpFd6VDwz2CJdgNZ8+YRO
	 TaDS++s/5fPaMHEO/LayAdYwC8RTMjdXn2l4Mxxqn5AT7rAA6wxfHsUv3/zTnFba8Zznr
	 A0C5JkCxa8IFeRHSXmJ8iSC7LXA7lgXxoQkZG4EM4n+09za9kcxxF2AV7Ystp/i3R5g==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1796002507;
	h=X-Original-To:Received:DMARC-Filter:Received:DKIM-Signature:
	 X-Google-DKIM-Signature:X-Forwarded-Encrypted:X-Gm-Message-State:
	 X-Gm-Gg:X-Received:Received:From:To:Cc:Subject:Date:Message-Id:
	 X-Mailer:In-Reply-To:References:X-Mailing-List:List-Id:List-Post:
	 List-Help:List-Subscribe:List-Unsubscribe:List-Owner:Precedence:
	 MIME-Version:Content-Transfer-Encoding;
	bh=4ac8aXaJXRn0vTaWZu6Gpegn/vQuKmQzyriXv20c7ss=;
	b=MiU1UVSkLo4ZyB7ElMtmnBwND1TomGfxIEQ4y19k8sine2AvBVoGdVpj6ql6RoFVDA5Y
	 6kNoy/61ewoZduMZrj7+YU9ckyWKK8BaWfNXgXRf0AzGh8F5XxwZocPLu2e8KSbZ4xSmO
	 tjKtsHpYmeOthKrHrqlMUX9qfiE7q0Zqn/nFNr+FvUWwFbgMGyS2i29tbdsXiu1OChKhM
	 Et4T9jYOdWdPVwiIRzzSFZoi0WMJD8if6IfuCYgn0Pi/wi6CMq7ArxcGoH7Yopq7jrhrR
	 A9pw1UI6smeTFApB69AOVppBdlSGnFFC/EEmnGHP2WTA0F1P1IvTYSiiNyMQ2GrGIDA==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; 
	dkim=pass header.d=iiitd.ac.in header.i=@iiitd.ac.in header.a=rsa-sha256 header.s=google header.b=Tsm9eu4w;
	dmarc=none header.from=iiitd.ac.in;
	spf=pass smtp.mailfrom=iiitd.ac.in;
	arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-Received: from localhost.localdomain (localhost [127.0.0.1])
	by smtp.subspace.kernel.org (Postfix) with ESMTP id 8881A606A327;
	Mon, 30 Nov 2026 01:35:07 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (1024-bit key) header.d=iiitd.ac.in header.i=@iiitd.ac.in header.a=rsa-sha256 header.s=google header.b=Tsm9eu4w
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.214.176
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
	t=1796002501;
	b=DBSJi1rKAGtReaTKs4BmOo676hcJkkRjduxaxlrKgDX+eWFs53Oi70lkR3kY9sn8nbYE
	 5FQszyR9okglRj96CeQ6wEFNGP7IeLjLAeDjp0KHBCLozT36UEY7ul86dNDqNCRT/6d1j
	 7kpYtImFuKEjm0VKfP6827smbgIKSUt9IRDUC/DHSaagE42CUrq1Rcu8ZuPlwgIMQP6m9
	 Ta+htvC+RXDBZ3xTHxjRRG7Tvq44LeipMJhWwCoXc1Jbp1BQpmTKF/c+Ph2obpBNwCAGC
	 vkTaFoRJ4jPX5e+HEk6Ydw7+DPEjoeFfrlisA/3H/LSZK1mRJUUK4xOj+zvNqsmgRsA==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1796002501;
	h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature:
	 X-Forwarded-Encrypted:X-Gm-Message-State:X-Gm-Gg:X-Received:Received:
	 From:To:Cc:Subject:Date:Message-Id:X-Mailer:In-Reply-To:References:
	 MIME-Version:Content-Transfer-Encoding;
	bh=4ac8aXaJXRn0vTaWZu6Gpegn/vQuKmQzyriXv20c7ss=;
	b=PS/XW9h6McJnGJybfU1A48Z4B757UeKeU2Ux9sff49JfmaGmN0kh4c5tLQNTEN4z6W/z
	 V6CYZy/zv4qRX34C9fGEEvTPItOlJJ/zt99biau+PmzQzQQhoBnh2pNJ5w//RST4o0i9L
	 JZAccgD8RHVyAhYPiUL4zc6H7vqY6QwTRdALBf26+XAu+T6QK3aWQdS+OIWCabmZzrw7t
	 rndDmCeMj96B4RNSrX7I7yqwP+NMpmzW1hgJDnjTBPn0cMQf3nc5cIvoZP3/Ygt967afC
	 Me+nok8thBWsLR7audJ9/pGY38utJqaIGUcraSs713xoRpa0BRU2m/0N6O9dRxN1y3A==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; 
	dmarc=none header.from=iiitd.ac.in;
	spf=pass smtp.mailfrom=iiitd.ac.in;
	dkim=pass header.d=iiitd.ac.in header.i=@iiitd.ac.in header.a=rsa-sha256 header.s=google header.b=Tsm9eu4w;
	arc=none smtp.remote-ip=209.85.214.176
X-Received: from mail-pl1-f176.google.com (mail-pl1-f176.google.com [209.85.214.176])
	(using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)
	 key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256)
	(No client certificate requested)
	by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4CD4A606A325
	for <netdev@vger.kernel.org>; Mon, 30 Nov 2026 01:35:01 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 4CD4A606A325
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=iiitd.ac.in
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=iiitd.ac.in
X-Received: by mail-pl1-f176.google.com with SMTP id d9443c01a7336-2f0414c1062so58301475ad.2
        for <netdev@vger.kernel.org>; Sun, 29 Nov 2026 17:35:01 -0800 (PST)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=iiitd.ac.in; s=google; t=1796002500; x=1796607300; darn=vger.kernel.org;
        h=content-transfer-encoding:mime-version:references:in-reply-to
         :message-id:date:subject:cc:to:from:from:to:cc:subject:date
         :message-id:reply-to:content-type;
        bh=4ac8aXaJXRn0vTaWZu6Gpegn/vQuKmQzyriXv20c7ss=;
        b=Tsm9eu4wZ22hnyE9jSSqKrSESgnp5+qHa+TbH53VuqyydSd4eg2f81ljilKpwgEv1S
         sEuTvjpneZZ/yf4MzDVLlRBkk/dzXOQYHwOq6l6gElzzncK/hlUAuz4MKs+IKjeSVXiK
         cqo5vDkHvzs+Uxwrw5pYS5xhg52C820PoUBEQ=
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20260707; t=1796002500; x=1796607300;
        h=content-transfer-encoding:mime-version:references:in-reply-to
         :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from
         :to:cc:subject:date:message-id:reply-to:content-type;
        bh=4ac8aXaJXRn0vTaWZu6Gpegn/vQuKmQzyriXv20c7ss=;
        b=F1PzUCPB1vTz+T2Yb22NXeYbWu9nmQfIOyLnBZQVNXTDRJ09izBxTObzNAjQ1uMieb
         rz8JggxJU1sV2EISbi93usV9p+yhbpy/hc9uv8brWY4RgzPlCkVMqwm9jK5QO1QuhdOX
         dtDufO+ybUp43A5Js1HAtqmHI5TTCpGYYALq1qGYDp77nNrwgB3qIlXfdMqms3tPpOhK
         S72ZzcqsItyeCwxu8ZKgddJhr4OjZ/+mF/tlG6diY3dZOzhDiQ6hwUJwQsL5adlxYJQe
         1QRykpHdtbpFaCGUyZX7A4SdNgfy5Y9JRji6XM4j36FAYIGEO7/d6tfdHSpahhAKUsZ4
         QfNQ==
X-Forwarded-Encrypted: i=1; AL+hErEk3SQ8PSeQov+xctec1grj0w1eCqj/o2DWGBRcJGgKcHp1VGNrT9oSSgH/sVEMmC/xMxbFqsI=@vger.kernel.org
X-Gm-Message-State: APuU4Z9TCCb0BxlYCcWoMWWZECHHRfR8A+KSy5QIQobGlREFwqLiqvsH
	4k/K+eAaqfZCm2pFSerjpslkuF2OYg65feO8NvvEbrjP2FbdZMj4/c8gX3pzMKoQamQ=
X-Gm-Gg: AZFdTZcK54UNxQFVbP4Lj9wuycU28yDwpvl2MDDCS/Ex8ShEwl7/bDmXa1I7fxoLx7R
	jDqvgg71pRMscc3fKp/yWD2Wq8/hAnrkq1bPspG7ja41joC6x0v7dix5E4opmAvN1dEPqAOWw0A
	sEYZnvi8reccqVof+J/eayRXDcaAmgx46+zNtsmkQTL0PSRKPnKPh8eOLw0vTLmyBvLpZcUGmUg
	tgKCKuNmEbWe1SMqnASsEAMZJ5uS7RSdWpPKa8/7zQjzb2vsxGOd6xc1jblB0NwY9kPBFSWUTp8
	qnNf3VPHYi7Xr7R5SxONNTsbkveU8wqdl/j9ppenA8mae9fjWoakbcjTWDnGvURQ/ytLAL/KdgN
	HxhU00mApYGCYwflbO1Kfgipabl9JORYP37qj56XVIuegvtmqM42JF/74LYX6MexV6mZEdL26QI
	UhUfmuYM3UbRi2rQqbkAPsHxa1WSwjq5nUWaH42Cx76loPI/X9MHSlB53Q+XYT1/NimayzRfE8L
	oDwQVji4O9PI6HjXG5eXG1aWjU6JM6Bmt7HlxEouzIakFCZufxBzJB0mAiieMgXH/7C1k152vFm
	CVmnWPEZw6lDC273WNe5/il1OaS0DibZX9oSyw3TL3AM7kpJDbrmbhfN3yVg52hFPkeoZU8EhOx
	2+62ayNRr1fUET5HGmB0i36mlxxuDXAlfrMI9yr0H/OmuA9T8O5nMcEEGOj6F4Y55MW0X99YGWz
	7+nytbcC7uaA==
X-Received: by 2002:a17:903:1aa6:b0:2ef:ddd6:7176 with SMTP id d9443c01a7336-2f09ca7f39emr213845585ad.70.1796002500612;
        Sun, 29 Nov 2026 17:35:00 -0800 (PST)
X-Received: from iiitd-S2600STB.iiitd.edu.in ([103.25.231.160])
        by smtp.gmail.com with ESMTPSA id d9443c01a7336-2f03f120282sm153878445ad.59.2026.11.29.17.34.56
        (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
        Sun, 29 Nov 2026 17:34:59 -0800 (PST)
X-Cc: oe-linux-nfc@lists.linux.dev,
	linux-kernel@vger.kernel.org,
	Kapil Vaswani <kapil@presceralabs.ai>
X-Mailer: git-send-email 2.34.1
X-In-Reply-To: <willemb.360aecefa3166@google.com>
X-Mailing-List: netdev@vger.kernel.org
X-List-Post: <mailto:netdev@vger.kernel.org>
X-List-Help: <mailto:netdev+help@vger.kernel.org>
X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org>
X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org>
X-List-Owner: <mailto:netdev+owner@vger.kernel.org>
X-Precedence: list