🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #10627

[PATCH net 0/15] pull-request: can 2026-11-03

#10627
From: Marc Kleine-Budde
Date: Tue, 03 Nov 2026 20:30
109 lines
14915 bytes
Hello netdev-team,

this is a pull request of 15 patches for net/main.

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

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:

Oliver Hartkopp contributes a patch to convert the unreliable
ARPHRD_CAN type check to the robust can_get_ml_priv(). Further a patch
that adds missing error checking to the bind callback of the CAN
ISO-TP protocol. Followed by converting the CAN RAW, BCM and ISO-TP
protocol to protect the receive lists with a per-device lock. Then the
RAW and ISO-TP protocols are converted to copy the socket options
outside of lock_sock().

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.

ChunYuZhiQiang contributes 2 patches for the CAN netlink interfaces,
to prevent waking up the CAN device, if the interface is down.

The last patch is by Liu Changjie and fixes the decoding of bulk USB
URBs in the Peak USB CAN driver.

regards,
Marc

---

The following changes since commit 647b81ddefc6364290e67bf33c89d54971f8995e:

  tcp: wait for TIME_WAIT teardown before freeing per-netns ehash (2026-11-03 15:43:22 +0100)

are available in the Git repository at:

  git://git.kernel.org/pub/scm/linux/kernel/git/mkl/linux-can.git tags/linux-can-fixes-for-7.4-20261103

for you to fetch changes up to 2d4c272e816a5b784f1fc7899256f8826df34edb:

  can: peak_usb: pcan_usb_fd_decode_buf(): accept short uCAN end-of-list records (2026-11-03 19:54:30 +0100)

----------------------------------------------------------------
linux-can-fixes-for-7.4-20261103

----------------------------------------------------------------
ChunYuZhiQiang (2):
      can: dev: can_fill_info(): don't wake up controller if interface is down
      can: dev: can_tdc_fill_info(): don't read automatic TDCV if interface is down

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

Liu Changjie (1):
      can: peak_usb: pcan_usb_fd_decode_buf(): accept short uCAN end-of-list records

Marc Kleine-Budde (3):
      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"
      Merge patch series "can: dev: can_fill_info(): don't wake up controller if interface is down"

Oliver Hartkopp (6):
      can: replace ARPHRD_CAN type checks with can_get_ml_priv()
      can: isotp: check the return values of can_rx_register() in isotp_bind()
      can: protect the receive lists with a per-device lock
      can: raw, isotp: copy socket options outside of lock_sock()
      can: proc: skip stats calculation after reset in can_stat_update()
      can: proc: remove pointers from CAN specific proc output

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

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/netlink.c              |  21 ++-
 drivers/net/can/dev/skb.c                  |  16 +-
 drivers/net/can/usb/peak_usb/pcan_usb_fd.c |   7 +-
 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                           |  62 ++++---
 net/can/af_can.h                           |   2 +-
 net/can/bcm.c                              |  64 +++----
 net/can/gw.c                               |   9 +-
 net/can/isotp.c                            | 236 ++++++++++++++----------
 net/can/j1939/main.c                       |   2 +-
 net/can/proc.c                             |  95 ++++++----
 net/can/raw.c                              | 278 +++++++++++++++++------------
 17 files changed, 477 insertions(+), 344 deletions(-)
Technical Details
Message-ID: <20261103204305.3211144-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-355951-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-355951-linux-kernel-netdev=dewy.ru
From: mkl@pengutronix.de (Marc Kleine-Budde)
Newsgroups: linux.kernel.netdev
Subject: [PATCH net 0/15] pull-request: can 2026-11-03
Date: Tue,  3 Nov 2026 21:30:21 +0100
Organization: Usenet Network
Message-ID: <20261103204305.3211144-1-mkl@pengutronix.de>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
	logging-data="3257916"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:QM/u8EZP6ymuSHLksOkBaUGReyU= sha256:+HOkttpcdbchw6AuDtnPlMKsOCupzco6xFcUNFqMA9Q=
	sha1:/bl8Bd+H2v6baB5PGB7CZD+WAgU= sha256:Mu6T7g+Q04GgRnU77HCUEHh3AHgrxvr2WClSrvt9NxY=
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 82958112A02; Tue,  3 Nov 2026 23:46:41 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.051
X-Spam-Status: No, score=-3.051 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.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 (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 LORcbfBMGvRP;
	Tue,  3 Nov 2026 23:46:39 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-355951-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 EA1A41129F5; Tue,  3 Nov 2026 23:46:30 +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 C93442E773; Tue,  3 Nov 2026 20:43:31 +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=1793738610;
	b=1p6IDwDd9j9W8HfDI1Ju+Uz8L/oN5gUOMF7+KNBydyZexa663HKs2DD0l9pWrtBi+qqn
	 0jjXZHJAsxmpOgz9pIa4EStaUJlL2oARWck9Ce7ryAul7FNAl4pTghIvAgECKgXLIPsMQ
	 8qHVkHI0Gk9UsPitn6zNE0GdP4gS2cpul8rY7JidqOsf2RWn1/JO8AeKi3F1r7K/bz1jv
	 xw5xItnmOumgopH/V2zkBBlwICEWd0ooD3XyRvuOtqHoPMSiaClnQTwHmI6OpMEY8wgXA
	 maYWESqwseV+Dv2ISBQAx+09Wts0WNIqdn5wWpwQS8yeIGmS+GWyLBada7K1Wv6vtRw==
X-ARC-Message-Signature: i=3; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1793738610;
	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=+J+J90AyqEyqknH8YtnvsaeCK8eG/0wfrDCDr/mTMZ8=;
	b=dbc0Hi9UzRLSew9ZsvhKRDt+dn6i60UQlw76F8yPgkjUUiQGGb7JoGW/ahqoF0mSVt3x
	 metRHfvy9R2Mlih+ANmf5EIJdEpmPwoioDRoqFmDdo7hQrTWOKxhHyKW0sLL5i50o63zq
	 zwsqOckDYFd9EsxAe2eXssc3KSJaC/HU7Yb3iEvy3qD5/jcJuv/B5ZnyvJpkJRP/FCP5Z
	 T81F4ZiDrwv5e4fnNQ5pxMu8/qr/3/DWsSo4MWybW3v8YL5Rm4Ta+Q4vfITlb4Jb+EHXJ
	 JVg4ugdBJUQcWPMCjEZuPzYfP5TvV2AOPM3osLBP/1e5bs/GiH2asbprZ1K5rOwGapA==
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=EIaux4U5;
	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 23BF4606D818;
	Tue,  3 Nov 2026 20:43:30 +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=EIaux4U5
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=1793738599;
	b=yaj5ADW+1XWfaZ3ZhSe0MQFM3embyH7WaRzesaMJGyYNvi+FhgTAqTMV+LmHihHQplCL
	 JasKGijaqaEO8XTeB5HhcVOOeZvNxq1YiVnzhvh+FuXBGW7jnSlvCvgEGMYW7IMJWKWSg
	 7qOvJlVYyRlcU6SLCZcpcsq9lbOXysf1h6GkXB03dvVo2+U83dqKBrVVErLogPV78tqr1
	 yxa5yNJ+/s7uABhe8/2x8yGY2hg/dkzd96rtRLarUGgxGYUYtNbB+f3lEQUQaqyAhrpVp
	 hRe1GitmCvtoQPnshVMK6+rbtzEnuRPWr8iDpJHmAgeywU4zay0F/ybP4JUwOaa5uRw==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1793738599;
	h=DMARC-Filter:Received:DKIM-Signature:Received:Received:From:To:Cc:
	 Subject:Date:Message-ID:X-Mailer:MIME-Version:
	 Content-Transfer-Encoding;
	bh=+J+J90AyqEyqknH8YtnvsaeCK8eG/0wfrDCDr/mTMZ8=;
	b=cZm90BBXw+zYApGrp4+BLeFlz8JEnqugQ5F+WHo+C6OrkzRtPbgheJrctbobqW7qCTu5
	 e6UY9K8xB+9KOGeQK3VquLUkwmyGerD52hi6ciPofDbri59zwH9trGHUHHXddbIUoJORx
	 IIvFqmAwNfhtIz2IQeQPxaDRWiuNAvZP3IhrWJ0sF6CS6aK41YDYaWa4LqaA0zmHVPqlp
	 W5xTQwBl8Hi5mPMKmpgP5eomvip1Zdrkjuqcv2kQVKTW6gBy/N9kF9Qxz02gliVyPGspZ
	 bmBBShGgp7U8CshC8Ikwtcjvgx7fPByXMSF5sgDY1wZ83/edfnKoT2qtIi/LlDcHTxQ==
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=EIaux4U5;
	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 DE443606A329;
	Tue,  3 Nov 2026 20:43:16 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org DE443606A329
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 81EF5200AD1;
	Tue, 03 Nov 2026 21:43:10 +0100 (CET)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pengutronix.de;
	s=20260414; t=1793738590;
	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=+J+J90AyqEyqknH8YtnvsaeCK8eG/0wfrDCDr/mTMZ8=;
	b=EIaux4U5rwEhu1dm4Q8vq0X1FOsPJtOP1S/Dwl2ayiHDXgIRdFszighjotfM44f4sBrLpb
	1Z4+nnTrZXcM4dY735slVIMSSpyer1hRDy8KgGjfHSjVl/iXhgC4Q5kEnAqokwQSPhgtTC
	dyJurmM/REF10EPwtsT/GXT5ZFsEVxsNeE+v7gL8ZbV4jw0Bxv+q3ZOMwRV5FSlRuwvPQh
	6Z/W0uCvJnnx3aCmMztHHxTJfcOVPt0MEkDfdXzPl+61HuHj0TEKB2uPiJl061NSHIRPfY
	fjCTJW203z1ZCbbT+7MHGhFjKAqduo3RQdb9cHrkMowhobfI57j88ZBlKARMnw==
X-ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=pengutronix.de;
	s=20260414; t=1793738590;
	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=+J+J90AyqEyqknH8YtnvsaeCK8eG/0wfrDCDr/mTMZ8=;
	b=gosv8x6v6kmBRPBthouujj9iVwdZb4Cxk+PZ8wR04V2VuXVxol/ToIngNwtb+vGvcH0su1
	9uJDUNMfb2+xYYFPnqjE8Ya1dy2kawkEEDXYdBvHpBKadA6OkmeTCdwE8971YRsJAPX3SE
	vSw7hpHX64IiL5/zeDX8ahq9Q3ExzQ4goZDsmTA8Qw38XrIj5lWcyIpbo7bTApOH9naEaf
	soGw3MbV03Vrki8SS9KXJ9+f0vkASdxWaT7uGVH/HhBU22V9/6jYhK4SfILzTwPUU5PauZ
	9rAykE54qJrNrOolhFCSxMJW30MREVBmEDB+ymWgqt3M6meKeTUXhkdLZtxJqg==
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-Seal: i=1; s=20260414; d=pengutronix.de; t=1793738590; a=rsa-sha256;
	cv=none;
	b=OuL4hW8NPVkoUEG6aKKZJRv68MwRu9uyomo10Y97Ww1tyXTCF81FQn3vcRUMJOF2IngbAn
	GoBuKQWoe0qFqV19yVWEOYj0DfvQB/3awB96aosnIPw/oiGJ5T7zo3unDTAN0fnHDcZ+Zp
	t2d1Od008OH5Ta6lrZH70sqqNK3Ka0UhkfYWnekKbn9AkzKbBh4L9KirUjgD5zntWHYMOd
	VZEcOcy9hdAc01WhBh+vK7bk2PBir/m6vcg7V9UcNX99Ue3xg5ouiVd7Y6Tq3c2uoAH+0y
	9Jo6R4kj4DthV6sG4zEQ1TT5zjR6v5/tBGYbdONOT0sQIKeW9VS9kuSbvgexRQ==
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 1xOLLa-002V8D-1K;
	Tue, 03 Nov 2026 21:43:10 +0100
X-Received: from blackshift.org (unknown [IPv6:2a00:20:73c1:227f:2cd5:5d72:938f:f03c])
	(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 66F765DDEB7;
	Tue, 03 Nov 2026 20:43:09 +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