🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #5088

[PATCH net-next 0/11] pull-request: can-next 2026-10-19

#5088
From: Marc Kleine-Budde
Date: Mon, 19 Oct 2026 17:01
94 lines
13919 bytes
Hello netdev-team,

this is a pull request of 11 patches for net-next/main and obsoletes
pull-request: can-next 2026-10-18.

The first patch is by Vincent Mailhol and drops CAN-XL frames on non
CAN-XL devices.

A patch by Sang-Heon Jeon removes a redundant NULL check before
netdev_hold() in the CAN RAW protocol.

A patch by Kaixuan Li for the CAN ISOTP protocol improves the check
for the correct CAN CC/FD frames.

The next 3 patches are by Cunhao Lu and make CAN skb freeing safe in
any context in several CAN helper functions.

A series by Oliver Hartkopp et al fixes several problems in the CAN
net-layer:

3 patches target the CAN procfs: A patch by Runyu Xiao resets the CAN
pkg_stats using atomics, a patch by Oliver Hartkopp fixes the stats
calculation after a statistics reset. Followed by a patch to remove
kernel pointers from the output.

The last s patches are by Oliver Hartkopp as well, they convert the
unreliable ARPHRD_CAN type check to the robust can_get_ml_priv() and
protect the CAN receive lists with a per-device lock.

regards,
Marc

---

The following changes since commit 98c2ad4f5d805dbc1ea436a334ee59311806a48c:

  Merge branch 'ipv4-remove-netns-argument-from-fib_table_lookup' (2026-10-16 18:52:36 -0700)

are available in the Git repository at:

  git://git.kernel.org/pub/scm/linux/kernel/git/mkl/linux-can-next.git tags/linux-can-next-for-7.4-20261019

for you to fetch changes up to 94f33aab0beb5c7eba56be9fab2032b82fa78b86:

  Merge patch series "can: protect the receive lists with a per-device lock" (2026-10-19 18:46:56 +0200)

----------------------------------------------------------------
linux-can-next-for-7.4-20261019

----------------------------------------------------------------
Cunhao Lu (3):
      can: skb: make echo skb freeing safe in any IRQ context
      can: skb: make CAN skb allocation failure paths IRQ-safe
      can: dev: can_put_echo_skb(): free skb on invalid echo index

Kaixuan Li (1):
      can: isotp: check the frame type, not just the length

Marc Kleine-Budde (2):
      Merge patch series "can: skb: make echo skb freeing safe in any IRQ context"
      Merge patch series "can: protect the receive lists with a per-device lock"

Oliver Hartkopp (4):
      can: proc: skip stats calculation after reset in can_stat_update()
      can: proc: remove pointers from CAN specific proc output
      can: replace ARPHRD_CAN type checks with can_get_ml_priv()
      can: protect the receive lists with a per-device lock

Runyu Xiao (1):
      can: proc: reset pkg_stats atomics individually

Sang-Heon Jeon (1):
      can: raw: remove redundant NULL check before netdev_hold()

Vincent Mailhol (1):
      can: dev: can_dropped_invalid_skb: drop CAN XL frames on non-CAN XL devices

 Documentation/networking/can.rst |  16 ++--
 drivers/net/can/dev/skb.c        |  16 ++--
 include/linux/can/can-ml.h       |   3 +
 include/linux/can/core.h         |   2 +-
 include/linux/can/dev.h          |   2 +-
 include/linux/can/skb.h          |   4 +-
 include/net/netns/can.h          |   2 +-
 net/can/af_can.c                 |  61 +++++++++-------
 net/can/af_can.h                 |   2 +-
 net/can/bcm.c                    |  64 ++++++----------
 net/can/gw.c                     |   9 ++-
 net/can/isotp.c                  |  57 +++++++++++----
 net/can/j1939/main.c             |   2 +-
 net/can/proc.c                   |  95 ++++++++++++++----------
 net/can/raw.c                    | 153 +++++++++++++++++++++++++--------------
 15 files changed, 286 insertions(+), 202 deletions(-)
Technical Details
Message-ID: <20261019170834.1727150-1-mkl@pengutronix.de>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-348728-linux-kernel-netdev=dewy.ru

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-348728-linux-kernel-netdev=dewy.ru
From: mkl@pengutronix.de (Marc Kleine-Budde)
Newsgroups: linux.kernel.netdev
Subject: [PATCH net-next 0/11] pull-request: can-next 2026-10-19
Date: Mon, 19 Oct 2026 19:01:05 +0200
Organization: Usenet Network
Message-ID: <20261019170834.1727150-1-mkl@pengutronix.de>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
	logging-data="3691844"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:JonP6ZgvewXgDo9UNhX2/ulva00= sha256:OX8LOZfLzJ3VPVwyaoHGqtl1dstzY1PCwrauN94fOjo=
	sha1:QaDYjvuCvp5Dyar+Rak7/5pJ/R8= sha256:PXCiWcrnh1agDbKvjSiK5ZxBohH+IowTe0+EgvkzCBs=
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 5379B110AD8; Mon, 19 Oct 2026 22:08:49 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.05
X-Spam-Status: No, score=-3.05 tagged_above=-9999 required=6.31
	tests=[DCC_REPUT_70_89=0.1, DKIM_SIGNED=0.1, DKIM_VALID=-0.1,
	DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.25,
	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 (2048-bit key)
	header.d=pengutronix.de
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 6zu_QYLNQpTH;
	Mon, 19 Oct 2026 22:08:45 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-348728-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=none (p=none dis=none) header.from=pengutronix.de
X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10])
	by mail.dewy.ru (Postfix) with ESMTPS id 82A88110AC1; Mon, 19 Oct 2026 22:08:37 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
	by sea.lore.kernel.org (Postfix) with ESMTP id 467FAC6383; Mon, 19 Oct 2026 17:09:15 +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=3; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass;
	t=1792429736;
	b=UYZGhoYmRLFQC6QAuzFqqXdLspWpJXcURL9iqRzQqRmalY6D05Vo0mpn08ncYwXwdeFn
	 vyC6455jnEkxKM/IjUm1omZdMaJb+qWb9H3b1aixWuY3BI78zztLM/ofJJTi5O8eJiJIR
	 5TBaINE6oj2Wt94NFAshx8OMCsvjpcimIafXkC3ChfHMh88b61ycr9fgmBwNoXkHRCiiV
	 kjBDXksbmD2Pt7EZ56k3zcAAz09E7EzoWL+J+ABcXUnIBtIq7ujevFM3CYdCuQFj5tl9g
	 kcO0jR90mrrL4J965aHOrm9YupIL2sv9/UtA6jCNOIt7a+ifcsR2jAfAm8qoq7zQRTw==
X-ARC-Message-Signature: i=3; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1792429736;
	h=X-Original-To:Received:DMARC-Filter:Received:DKIM-Signature:Received:
	 Received:From:To:Cc:Subject:Date:Message-ID:X-Mailer:X-Mailing-List:
	 List-Id:List-Post:List-Help:List-Subscribe:List-Unsubscribe:
	 List-Owner:Precedence:MIME-Version:Content-Transfer-Encoding;
	bh=yLirZqB6CYhD/Z79OKPRPPcYk4WKwFA+Fgl+s2Ogd8I=;
	b=iO0dTbsikmfBUW35IoAAWvvqlgqCTU59uI3PiQGqUG72ICfEfO1sG/HXi5JljWP6CuyJ
	 gT07SxFHKJbECzGrbzpw7JnGuZXLdNuxqGaZYKsgParXKCDva2F3oEmuSS5KZBySRTh4/
	 aXbMYpLWOwzlt5Z/n20xiWibYmKwCJ8zyl71S48+Nf+HoJqkTfc8htn6aa4T2akWFMVMC
	 3xaGPXryfY/jDmE5VGHyYRmiNhsPDZgd3SKPo7yunrr/yV2Bnh+rE+HzdcdD5j8pGsRCj
	 g39710QTEx5d/xsVhTQDM6/VDC5nGIi+No63tDPDACTW+5WKJABUpHZ7InLK++3X5wA==
X-ARC-Authentication-Results: i=3; smtp.subspace.kernel.org; 
	dkim=pass header.d=pengutronix.de header.i=@pengutronix.de header.a=rsa-sha256 header.s=20260414 header.b=O84lvzkv;
	dmarc=none header.from=pengutronix.de;
	spf=pass smtp.mailfrom=pengutronix.de;
	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 6E4FD60A2628;
	Mon, 19 Oct 2026 17:08:56 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (2048-bit key, unprotected) header.d=pengutronix.de header.i=@pengutronix.de header.a=rsa-sha256 header.s=20260414 header.b=O84lvzkv
X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=185.203.200.13
X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass;
	t=1792429730;
	b=wjoU6ZT1vjqgdYejbWKjozckltUDQEeUc1KQA8jq+WF3py9nbNIjldR5K3XFyydYVWs5
	 vMYEuOL8oByPvgqzqOlSqbn1nb3JlsDnrtRR2BBsQuBRP87jCpbpOGWkgK5JCkbnbEm3N
	 7+e+5UAqSrUpQGV/V7oXmNiLpm4FjxLKHB1XXl72CmNI7g4h+sVDUe458iuOlPNxt68Lk
	 uV3ewYHZQ7ihnVKzW/9Pgdl8ho5NUWCDM1UNJN2N+Qgq4C9hIj9uGA+DKalp6jx54F0ZB
	 E4b2toyh53e5AXksxXYBAmmOlsVyH+PadT2ZjL0Y1hSc9ER37qAQWMOFdn15CV9Y2Dw==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1792429730;
	h=DMARC-Filter:Received:DKIM-Signature:Received:Received:From:To:Cc:
	 Subject:Date:Message-ID:X-Mailer:MIME-Version:
	 Content-Transfer-Encoding;
	bh=yLirZqB6CYhD/Z79OKPRPPcYk4WKwFA+Fgl+s2Ogd8I=;
	b=NOaNW/2FEcDW4TBdwVp/f8cIttp9uhyYiF4eestW2s0IoEqvCNp76fRAsx86ny3tcc+m
	 u57ak3EP6xvxKXfG7b2uTeQpRk1UeZE+qCMjb6UFHtV8JsmCdPf/jNmOKfdWMJk6vj/VX
	 ru6i3GALwBZqeiAqs99FNA7rn7RSnCmR6d0rlI0qfb8YmgRfocEP9EGBED1uvWMTFlvqx
	 KWqr2qw0QJerkGuoo/nliFnnunk1q12YxPE3iTkB6uXrQreS/SOm+nklGGXuPpWvS64Gm
	 YXiLFSLdIPXt79y8lrMAGHooVedkjCdR3Obn0oQOPi+b6Iu4PUYgqca8y989VicebZg==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; 
	dmarc=none header.from=pengutronix.de;
	spf=pass smtp.mailfrom=pengutronix.de;
	dkim=pass header.d=pengutronix.de header.i=@pengutronix.de header.a=rsa-sha256 header.s=20260414 header.b=O84lvzkv;
	arc=pass header.oldest-pass=0 smtp.remote-ip=185.203.200.13
X-Received: from mx1.white.stw.pengutronix.de (mx1.white.stw.pengutronix.de [185.203.200.13])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256)
	(No client certificate requested)
	by smtp.subspace.kernel.org (Postfix) with ESMTPS id B3B55606A31F;
	Mon, 19 Oct 2026 17:08:48 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org B3B55606A31F
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=pengutronix.de
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=pengutronix.de
X-Received: from drehscheibe.grey.stw.pengutronix.de (drehscheibe.grey.stw.pengutronix.de [IPv6:2a0a:edc0:0:c01:1d::a2])
	(Authenticated sender: relay-from-drehscheibe.grey.stw.pengutronix.de)
	by mx1.white.stw.pengutronix.de (Postfix) with ESMTPSA id B04372018E7;
	Mon, 19 Oct 2026 19:08:36 +0200 (CEST)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pengutronix.de;
	s=20260414; t=1792429716;
	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=yLirZqB6CYhD/Z79OKPRPPcYk4WKwFA+Fgl+s2Ogd8I=;
	b=O84lvzkvhHhjpjaL4+hC59mHOqC8giCyxOXckr6lubf4hYsJ4DLeLOl44lmXDiMqPvxbFw
	WEI2FoXoZFfA6Ogoxb1L0A8jtuVgAm5FTHq/30Iq9h2Gp7wuKIXyzxxgIfE69dL3w5ym1Z
	pVxMyDJxVLmEWqgaJJ6PVuyl68tmak/0Wwp0jpW8YvQ/yco5ue10Nen3T2LlcVRwbx39I2
	mQNGk1PAHDqIIrpfdbM58IOEEb51vpY5/DzI6Bb4x3NdvYbXr/DZo0OGbejsTlFOijx72a
	7kzfzc7FXUoISwCGtAcSri/6cjywGDUVNJ6NZfvjc5I6m1anRgESjjoIT0eU5w==
X-ARC-Seal: i=1; s=20260414; d=pengutronix.de; t=1792429716; a=rsa-sha256;
	cv=none;
	b=Ems0u8a1dJzrK/3NAw+uFwye/0YNv+9fN0mLpwtP7IIBeiw7T/zAmJDu4vUUNN08gVIRIm
	du+3MgiGFRd7Y0rAeakvHTqYWUd2xViLZVn4DFEu2vqAUFN8wDkIQHj3oTm6K22agn4znA
	P01hlC1/ZptYQoqNyMGg0GP6d6OJpyfIdo2MNhR0mlNkLWAvCuvvJTpW11a7AhEAX9BbBE
	rij+xjkPMzh0rONysMz0m3Xbdrkael6Ji4Q+TwrBUYzF/xe2sjLADpxFN7Ng8Qf1BndnF/
	9OKZUaf6TJRCV6I8AXdb8DvaGukNOBagZt8iw89tHWzOqhzRpW1PBz/N14tUJQ==
X-ARC-Authentication-Results: i=1;
	ORIGINATING;
	auth=pass smtp.auth=relay-from-drehscheibe.grey.stw.pengutronix.de smtp.mailfrom=mkl@pengutronix.de
X-ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=pengutronix.de;
	s=20260414; t=1792429716;
	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=yLirZqB6CYhD/Z79OKPRPPcYk4WKwFA+Fgl+s2Ogd8I=;
	b=PQCko3uml0S9ppWgRG+O+vz3agEgeLRyt4wn6cuYrdRkhs0eYPfP4D9yKpM9fbRLSIGUJr
	GC4BiMLpb+ajT3r7c6znGC+rXRfvHe+XwzzX0iAOaH01a2zXt7nu0HlC5vnVElip+fHx5I
	5nQCuXyc/rtpAGakuC3acUmSocK8eD0Pp4sit7VBF/fwvMy0hL0V5zICGCQFe04EPUkcZJ
	Y35DdhJZiDj7r8E4+VCKKCVSDUbXjv9aG8NnWLD0ZSqJtbYuluMrDlDeQJGGggRyys/LIF
	2Fx8vP4r3bDnSMZUJlmfq+OCOEi7dO3zKcVSuY8qTmrL57nviDuLsqB5xTxITw==
X-Received: from moin.white.stw.pengutronix.de ([2a0a:edc0:0:b01:1d::7b] helo=bjornoya.blackshift.org)
	by drehscheibe.grey.stw.pengutronix.de with esmtps  (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384
	(Exim 4.96)
	(envelope-from <mkl@pengutronix.de>)
	id 1xIqqi-000Fg8-1y;
	Mon, 19 Oct 2026 19:08:36 +0200
X-Received: from blackshift.org (p4ffb23c7.dip0.t-ipconnect.de [79.251.35.199])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519MLKEM768 server-signature RSA-PSS (4096 bits) server-digest SHA256)
	(Client did not present a certificate)
	(Authenticated sender: mkl-all@blackshift.org)
	by smtp.blackshift.org (Postfix) with ESMTPSA id 56D8A5C948A;
	Mon, 19 Oct 2026 17:08:36 +0000 (UTC)
X-Cc: davem@davemloft.net,
	kuba@kernel.org,
	linux-can@vger.kernel.org,
	kernel@pengutronix.de
X-Mailer: git-send-email 2.53.0
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