Linux CAN drivers development
 help / color / mirror / Atom feed
* [PATCH can-next v4 0/6] can: bittiming: fix integer overflows in the userspace bit rate conversion and reject invalid timing constants
@ 2026-12-02 13:57 Marc Kleine-Budde
  2026-12-02 13:57 ` [PATCH can-next v4 1/6] can: bittiming: can_calc_bittiming(): fix potential divide-by-zero Marc Kleine-Budde
                   ` (5 more replies)
  0 siblings, 6 replies; 11+ messages in thread
From: Marc Kleine-Budde @ 2026-12-02 13:57 UTC (permalink / raw)
  To: Marc Kleine-Budde, Vincent Mailhol, Oliver Hartkopp,
	Wolfgang Grandegger, David S. Miller
  Cc: kernel, linux-can, Sureshkumar S, stable, YuanZhe Liu, Bin Yu,
	Cheng Wen

This series combines all bit timing relates fixes into one series.

Patch #1 by Sureshkumar S fixes a potential divide-by-zero in
can_calc_bittiming(). If the 32 bit `tsegall * bt->bitrate` product wraps
to zero for bit rates carrying enough factors of two, the following
division faults. A bit rate of 16777216 is already enough, which is below
the 20 Mbit/s CAN XL data bit rate ceiling.

Patch #2 by me fixes fixes a similar 32 bit multiplication overflow in
can_calc_bittiming() for `brp * tsegall`.

Patch #3 by Sureshkumar S hardens the candidate rating in
can_calc_bittiming(), which applies abs() to an unsigned subtraction. A
wrapped difference is read back as a small error, so a bit rate far outside
what the controller can reach passes the 5% gate and is silently accepted
instead of rejected.

Patch #4 by me applies the same hardening to an abs on an unsigned int
subtraction in can_update_sample_point().

Patch #5 (by me) rejects too high values for prop-seg/phase-seg1 in
can_fixup_bittiming().

Patch #6 (by YuanZhe Liu) reject unusable bit timing constants while
registering CAN interfaces with register_candev().

Sureshkumar S says:

Both problems were found with a netlink fuzzer against dummy_can and
verified under KASAN in QEMU. Testing covered the unpatched tree, patch #1
alone and the full series: bit rates from 125 kbit/s to 10 Mbit/s produce
byte-identical bittiming at every step, patch #1 alone removes the oops,
and patch #3 turns the silently accepted out-of-range bit rates into
-EINVAL.

---
Changes in v4:
- reordered patches
- patch #1: reworked patch description
- patch #2: new
- patch #3: reworked patch description
- patch #4: reworked patch description
- patch #5: reworked patch description + add Fixes tag + stable on Cc
- patch #6: reworked patch description + also check brp_max
- Link to v3: https://patch.msgid.link/20261130-bittiming-fix-conversion-v3-0-e61f92dc76d0@pengutronix.de

Changes in v3:
- patch #1: reject divisor exceeding 32 bit instead of using 64 bit math
- patch #4: rename constant
- patch #5: new
- patch #6: new
- Link to v2: https://patch.msgid.link/20261130-bittiming-fix-conversion-v2-0-36e8a0275923@pengutronix.de

---
Marc Kleine-Budde (3):
      can: bittiming: can_calc_bittiming(): catch brp * tsegall overflow
      can: bittiming: can_update_sample_point(): harden sample point error calculation on unsigned operands
      can: bittiming: can_fixup_bittiming(): reject too high values for prop-seg/phase-seg1

Sureshkumar S (2):
      can: bittiming: can_calc_bittiming(): fix potential divide-by-zero
      can: bittiming: can_calc_bittiming(): harden bitrate error calculation on unsigned operands

YuanZhe Liu (1):
      can: bittiming: register_candev(): reject unusable bit-timing constants

 drivers/net/can/dev/bittiming.c      |  8 +++-
 drivers/net/can/dev/calc_bittiming.c | 17 ++++++--
 drivers/net/can/dev/dev.c            | 85 ++++++++++++++++++++++++++++++++++--
 3 files changed, 101 insertions(+), 9 deletions(-)
---
base-commit: cb9006be6e667801260d6135696979c17a8e915d
base-tree: git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net-next.git main
change-id: 20261021-bittiming-fix-conversion-24a033ebf153

Best regards,
--  
Marc Kleine-Budde <mkl@pengutronix.de>


^ permalink raw reply	[flat|nested] 11+ messages in thread

* [PATCH can-next v4 1/6] can: bittiming: can_calc_bittiming(): fix potential divide-by-zero
  2026-12-02 13:57 [PATCH can-next v4 0/6] can: bittiming: fix integer overflows in the userspace bit rate conversion and reject invalid timing constants Marc Kleine-Budde
@ 2026-12-02 13:57 ` Marc Kleine-Budde
  2026-12-02 13:57 ` [PATCH can-next v4 2/6] can: bittiming: can_calc_bittiming(): catch brp * tsegall overflow Marc Kleine-Budde
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 11+ messages in thread
From: Marc Kleine-Budde @ 2026-12-02 13:57 UTC (permalink / raw)
  To: Marc Kleine-Budde, Vincent Mailhol, Oliver Hartkopp,
	Wolfgang Grandegger, David S. Miller
  Cc: kernel, linux-can, Sureshkumar S, stable

From: Sureshkumar S <ssureshmsd7@gmail.com>

can_calc_bittiming() scans the possible time segment combinations and
computes the prescaler for each of them as:

	brp = priv->clock.freq / (tsegall * bt->bitrate)

bt->bitrate is supplied by userspace via IFLA_CAN_BITTIMING and
`tsegall * bt->bitrate` is a 32 bit multiplication, so the product wraps
to zero as soon as bt->bitrate carries enough factors of two for the
tsegall values walked by the loop. The division then faults:

  Oops: divide error: 0000 [#1] SMP KASAN NOPTI
  RIP: 0010:can_calc_bittiming+0x32e/0xcc0
  Call Trace:
   can_changelink+0x8ba/0x2060
   __rtnl_newlink+0x1013/0x18a0
   rtnl_newlink+0x6b/0xa0
   rtnetlink_rcv_msg+0x6f9/0xb70
   netlink_rcv_skb+0x11f/0x350
   netlink_unicast+0x5f5/0x860
   netlink_sendmsg+0x70a/0xba0

This does not require an absurd bit rate. With the segment limits of a
typical controller tsegall reaches 256, so a bit rate of 16777216 is
already enough to wrap the product, and that value is below the 20 Mbit/s
CAN XL data bit rate ceiling. Any CAN driver providing a bittiming_const is
affected; reproduced on dummy_can. Triggering it needs CAP_NET_ADMIN in the
netns owning the device.

priv->bitrate_max cannot guard against this: can_changelink() only consults
it after can_get_bittiming() has already returned.

Since the dividend priv->clock.freq is 32 bits wide, a divisor that exceeds
32 bits would result in a quotient of 0, which is not a valid value for
brp.

Check whether `tsegall * bt->bitrate` exceeds the value of an unsigned int,
and abort the calculation for this value if this is the case.

Fixes: 39549eef3587 ("can: CAN Network device driver and Netlink interface")
Signed-off-by: Sureshkumar S <ssureshmsd7@gmail.com>
Cc: stable@vger.kernel.org
Closes: https://sashiko.dev/#/bug/linux-880c95de-8fd9-4e53-8531-985d9b140f44
Co-developed-by: Marc Kleine-Budde <mkl@pengutronix.de>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
---
 drivers/net/can/dev/calc_bittiming.c | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/drivers/net/can/dev/calc_bittiming.c b/drivers/net/can/dev/calc_bittiming.c
index 42498e9d3f38..8889d55fea65 100644
--- a/drivers/net/can/dev/calc_bittiming.c
+++ b/drivers/net/can/dev/calc_bittiming.c
@@ -6,6 +6,7 @@
  */
 
 #include <linux/units.h>
+#include <linux/overflow.h>
 #include <linux/can/dev.h>
 
 #define CAN_CALC_MAX_ERROR 500 /* max error 5% */
@@ -117,10 +118,15 @@ int can_calc_bittiming(const struct net_device *dev, struct can_bittiming *bt,
 	/* tseg even = round down, odd = round up */
 	for (tseg = (btc->tseg1_max + btc->tseg2_max) * 2 + 1;
 	     tseg >= (btc->tseg1_min + btc->tseg2_min) * 2; tseg--) {
+		unsigned int div;
+
 		tsegall = CAN_SYNC_SEG + tseg / 2;
 
+		if (check_mul_overflow(tsegall, bt->bitrate, &div))
+			continue;
+
 		/* Compute all possible tseg choices (tseg=tseg1+tseg2) */
-		brp = priv->clock.freq / (tsegall * bt->bitrate) + tseg % 2;
+		brp = priv->clock.freq / div + tseg % 2;
 
 		/* choose brp step which is possible in system */
 		brp = (brp / btc->brp_inc) * btc->brp_inc;

-- 
2.53.0


^ permalink raw reply related	[flat|nested] 11+ messages in thread

* [PATCH can-next v4 2/6] can: bittiming: can_calc_bittiming(): catch brp * tsegall overflow
  2026-12-02 13:57 [PATCH can-next v4 0/6] can: bittiming: fix integer overflows in the userspace bit rate conversion and reject invalid timing constants Marc Kleine-Budde
  2026-12-02 13:57 ` [PATCH can-next v4 1/6] can: bittiming: can_calc_bittiming(): fix potential divide-by-zero Marc Kleine-Budde
@ 2026-12-02 13:57 ` Marc Kleine-Budde
  2026-12-04  3:51   ` netdev-bot+sashiko
  2026-12-02 13:57 ` [PATCH can-next v4 3/6] can: bittiming: can_calc_bittiming(): harden bitrate error calculation on unsigned operands Marc Kleine-Budde
                   ` (3 subsequent siblings)
  5 siblings, 1 reply; 11+ messages in thread
From: Marc Kleine-Budde @ 2026-12-02 13:57 UTC (permalink / raw)
  To: Marc Kleine-Budde, Vincent Mailhol, Oliver Hartkopp,
	Wolfgang Grandegger, David S. Miller
  Cc: kernel, linux-can, stable

can_calc_bittiming() scans the possible time segment combinations and
computes the bit rate for each of them as:

        bitrate = priv->clock.freq / (brp * tsegall)

The threshold values for brp and tsegall are set by the CAN controller. On
some controllers, these values are read via USB. `brp * tsegall` is a 32
bit multiplication, so the product may overflow or wraps to zero.

Check whether `brp * tsegall` exceeds the value of an unsigned int, and
abort the calculation for this value if this is the case.

Fixes: 39549eef3587 ("can: CAN Network device driver and Netlink interface")
Cc: stable@vger.kernel.org
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
---
 drivers/net/can/dev/calc_bittiming.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/drivers/net/can/dev/calc_bittiming.c b/drivers/net/can/dev/calc_bittiming.c
index 8889d55fea65..cf8310537df2 100644
--- a/drivers/net/can/dev/calc_bittiming.c
+++ b/drivers/net/can/dev/calc_bittiming.c
@@ -133,7 +133,10 @@ int can_calc_bittiming(const struct net_device *dev, struct can_bittiming *bt,
 		if (brp < btc->brp_min || brp > btc->brp_max)
 			continue;
 
-		bitrate = priv->clock.freq / (brp * tsegall);
+		if (check_mul_overflow(brp, tsegall, &div))
+			continue;
+
+		bitrate = priv->clock.freq / div;
 		bitrate_error = abs(bt->bitrate - bitrate);
 
 		/* tseg brp biterror */

-- 
2.53.0


^ permalink raw reply related	[flat|nested] 11+ messages in thread

* [PATCH can-next v4 3/6] can: bittiming: can_calc_bittiming(): harden bitrate error calculation on unsigned operands
  2026-12-02 13:57 [PATCH can-next v4 0/6] can: bittiming: fix integer overflows in the userspace bit rate conversion and reject invalid timing constants Marc Kleine-Budde
  2026-12-02 13:57 ` [PATCH can-next v4 1/6] can: bittiming: can_calc_bittiming(): fix potential divide-by-zero Marc Kleine-Budde
  2026-12-02 13:57 ` [PATCH can-next v4 2/6] can: bittiming: can_calc_bittiming(): catch brp * tsegall overflow Marc Kleine-Budde
@ 2026-12-02 13:57 ` Marc Kleine-Budde
  2026-12-04  3:51   ` netdev-bot+sashiko
  2026-12-02 13:57 ` [PATCH can-next v4 4/6] can: bittiming: can_update_sample_point(): harden sample point " Marc Kleine-Budde
                   ` (2 subsequent siblings)
  5 siblings, 1 reply; 11+ messages in thread
From: Marc Kleine-Budde @ 2026-12-02 13:57 UTC (permalink / raw)
  To: Marc Kleine-Budde, Vincent Mailhol, Oliver Hartkopp,
	Wolfgang Grandegger, David S. Miller
  Cc: kernel, linux-can, Sureshkumar S

From: Sureshkumar S <ssureshmsd7@gmail.com>

can_calc_bittiming() rates each candidate against the requested bitrate
with:

	bitrate_error = abs(bt->bitrate - bitrate);

Both operands are unsigned int, the subtraction may wrap instead of
becoming negative, abs() resolves an unsigned int argument to its int
branch. A wrapped difference is therefore reinterpreted as a small positive
value instead of the large error it actually represents.

Use abs_diff(), which subtracts the smaller operand from the larger one and
keeps the whole comparison unsigned.

Signed-off-by: Sureshkumar S <ssureshmsd7@gmail.com>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
---
 drivers/net/can/dev/calc_bittiming.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/can/dev/calc_bittiming.c b/drivers/net/can/dev/calc_bittiming.c
index cf8310537df2..7b5dc72d1127 100644
--- a/drivers/net/can/dev/calc_bittiming.c
+++ b/drivers/net/can/dev/calc_bittiming.c
@@ -137,7 +137,7 @@ int can_calc_bittiming(const struct net_device *dev, struct can_bittiming *bt,
 			continue;
 
 		bitrate = priv->clock.freq / div;
-		bitrate_error = abs(bt->bitrate - bitrate);
+		bitrate_error = abs_diff(bt->bitrate, bitrate);
 
 		/* tseg brp biterror */
 		if (bitrate_error > best_bitrate_error)

-- 
2.53.0


^ permalink raw reply related	[flat|nested] 11+ messages in thread

* [PATCH can-next v4 4/6] can: bittiming: can_update_sample_point(): harden sample point error calculation on unsigned operands
  2026-12-02 13:57 [PATCH can-next v4 0/6] can: bittiming: fix integer overflows in the userspace bit rate conversion and reject invalid timing constants Marc Kleine-Budde
                   ` (2 preceding siblings ...)
  2026-12-02 13:57 ` [PATCH can-next v4 3/6] can: bittiming: can_calc_bittiming(): harden bitrate error calculation on unsigned operands Marc Kleine-Budde
@ 2026-12-02 13:57 ` Marc Kleine-Budde
  2026-12-04  3:51   ` netdev-bot+sashiko
  2026-12-02 13:57 ` [PATCH can-next v4 5/6] can: bittiming: can_fixup_bittiming(): reject too high values for prop-seg/phase-seg1 Marc Kleine-Budde
  2026-12-02 13:57 ` [PATCH can-next v4 6/6] can: bittiming: register_candev(): reject unusable bit-timing constants Marc Kleine-Budde
  5 siblings, 1 reply; 11+ messages in thread
From: Marc Kleine-Budde @ 2026-12-02 13:57 UTC (permalink / raw)
  To: Marc Kleine-Budde, Vincent Mailhol, Oliver Hartkopp,
	Wolfgang Grandegger, David S. Miller
  Cc: kernel, linux-can

can_update_sample_point() rates each candidate against the requested sample
point with:

	sample_point_error = abs(sample_point_reference - sample_point);

Both operands are unsigned int, the subtraction may wrap instead of
becoming negative, abs() resolves an unsigned int argument to its int
branch. A wrapped difference is therefore reinterpreted as a small positive
value instead of the large error it actually represents.

Use abs_diff(), which subtracts the smaller operand from the larger one and
keeps the whole comparison unsigned.

Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
---
 drivers/net/can/dev/calc_bittiming.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/can/dev/calc_bittiming.c b/drivers/net/can/dev/calc_bittiming.c
index 7b5dc72d1127..9984641ddc72 100644
--- a/drivers/net/can/dev/calc_bittiming.c
+++ b/drivers/net/can/dev/calc_bittiming.c
@@ -74,7 +74,7 @@ can_update_sample_point(const struct can_bittiming_const *btc,
 
 		sample_point = 1000 * (tseg + CAN_SYNC_SEG - tseg2) /
 			(tseg + CAN_SYNC_SEG);
-		sample_point_error = abs(sample_point_reference - sample_point);
+		sample_point_error = abs_diff(sample_point_reference, sample_point);
 
 		if (sample_point <= sample_point_reference &&
 		    sample_point_error < best_sample_point_error) {

-- 
2.53.0


^ permalink raw reply related	[flat|nested] 11+ messages in thread

* [PATCH can-next v4 5/6] can: bittiming: can_fixup_bittiming(): reject too high values for prop-seg/phase-seg1
  2026-12-02 13:57 [PATCH can-next v4 0/6] can: bittiming: fix integer overflows in the userspace bit rate conversion and reject invalid timing constants Marc Kleine-Budde
                   ` (3 preceding siblings ...)
  2026-12-02 13:57 ` [PATCH can-next v4 4/6] can: bittiming: can_update_sample_point(): harden sample point " Marc Kleine-Budde
@ 2026-12-02 13:57 ` Marc Kleine-Budde
  2026-12-02 13:57 ` [PATCH can-next v4 6/6] can: bittiming: register_candev(): reject unusable bit-timing constants Marc Kleine-Budde
  5 siblings, 0 replies; 11+ messages in thread
From: Marc Kleine-Budde @ 2026-12-02 13:57 UTC (permalink / raw)
  To: Marc Kleine-Budde, Vincent Mailhol, Oliver Hartkopp,
	Wolfgang Grandegger, David S. Miller
  Cc: kernel, linux-can, stable

In can_fixup_bittiming() the sum pf `bt->prop_seg + bt->phase_seg1` is
calculated. These are user space supplied values, and the sum can overflow
and still pass the following tseg1_min and tseg1_max checks.

Refuse too high values for bt->prop_seg and bt->phase_seg1 by using
check_add_overflow() to calculate the sum.

Closes: https://sashiko.dev/#/bug/linux-afe8ea64-0e1f-42a4-a82c-6275ddeeaebc
Fixes: 39549eef3587 ("can: CAN Network device driver and Netlink interface")
Cc: stable@vger.kernel.org
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
---
 drivers/net/can/dev/bittiming.c | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/drivers/net/can/dev/bittiming.c b/drivers/net/can/dev/bittiming.c
index 8f82418230ce..40a571f6f939 100644
--- a/drivers/net/can/dev/bittiming.c
+++ b/drivers/net/can/dev/bittiming.c
@@ -51,11 +51,17 @@ static int can_fixup_bittiming(const struct net_device *dev, struct can_bittimin
 			       const struct can_bittiming_const *btc,
 			       struct netlink_ext_ack *extack)
 {
-	const unsigned int tseg1 = bt->prop_seg + bt->phase_seg1;
 	const struct can_priv *priv = netdev_priv(dev);
+	unsigned int tseg1;
 	u64 brp64;
 	int err;
 
+	if (check_add_overflow(bt->prop_seg, bt->phase_seg1, &tseg1)) {
+		NL_SET_ERR_MSG_FMT(extack, "prop-seg + phase-seg1: greater than tseg1-max: %u",
+				   btc->tseg1_max);
+		return -EINVAL;
+	}
+
 	if (tseg1 < btc->tseg1_min) {
 		NL_SET_ERR_MSG_FMT(extack, "prop-seg + phase-seg1: %u less than tseg1-min: %u",
 				   tseg1, btc->tseg1_min);

-- 
2.53.0


^ permalink raw reply related	[flat|nested] 11+ messages in thread

* [PATCH can-next v4 6/6] can: bittiming: register_candev(): reject unusable bit-timing constants
  2026-12-02 13:57 [PATCH can-next v4 0/6] can: bittiming: fix integer overflows in the userspace bit rate conversion and reject invalid timing constants Marc Kleine-Budde
                   ` (4 preceding siblings ...)
  2026-12-02 13:57 ` [PATCH can-next v4 5/6] can: bittiming: can_fixup_bittiming(): reject too high values for prop-seg/phase-seg1 Marc Kleine-Budde
@ 2026-12-02 13:57 ` Marc Kleine-Budde
  2026-12-04  3:51   ` netdev-bot+sashiko
  5 siblings, 1 reply; 11+ messages in thread
From: Marc Kleine-Budde @ 2026-12-02 13:57 UTC (permalink / raw)
  To: Marc Kleine-Budde, Vincent Mailhol, Oliver Hartkopp,
	Wolfgang Grandegger, David S. Miller
  Cc: kernel, linux-can, YuanZhe Liu, stable, Bin Yu, Cheng Wen

From: YuanZhe Liu <25031212351@stu.xidian.edu.cn>

Reject unusable bit timing constants during registration, so that a device
or driver handing out such values fails to probe instead of taking the
kernel down later.

can_bittiming_const_valid() is the hook register_candev() uses to verify
the constants a driver registers. The values can_calc_bittiming() and
can_calc_pwm() depend on are not checked.

The gs_usb driver builds its struct can_bittiming_const and its clock
frequency from the response of the GS_USB_BREQ_BT_CONST control request, so
both come from the USB device. A device that reports brp_inc = 0 crashes
the kernel with a division by zero as soon as a user with CAP_NET_ADMIN
configures a bitrate:

  Oops: divide error: 0000 [#1] SMP KASAN
  RIP: 0010:can_calc_bittiming+0x3dd/0xcd0
  Call Trace:
   can_get_bittiming (drivers/net/can/dev/bittiming.c:146)
   can_changelink (drivers/net/can/dev/netlink.c:594)
   rtnetlink_rcv_msg (net/core/rtnetlink.c:7137)

Controllers may read the bit timing constants via USB, check the
minimum/maximum values and avoid divide by zero in the calculation.

Also limit the bit time to CAN_BIT_TIME_TQ_MAX and brp_max to
CAN_BITTIMING_CONST_BRP_MAX. This ensures that their product fits into an
int (see can_get_relative_tdco(), can_bit_time_tqmin()). The bit times of
the currently supported controllers stay well below these limits.

can_calc_bittiming() also divides by the clock frequency, gs_usb and ucan
take it from the device as well, so reject a zero frequency while the
device is registered.

The data bit timing builds on the nominal bit timing: CAN-FD requires
CAN-CC, CAN XL requires CAN-FD, and the XL PWM constants require CAN XL,
validate the constants along the chain.

Fixes: d58ac89d0d38 ("can: dev: register_candev(): ensure that bittiming const are valid")
Cc: stable@vger.kernel.org
Co-developed-by: Bin Yu <byu@xidian.edu.cn>
Signed-off-by: Bin Yu <byu@xidian.edu.cn>
Co-developed-by: Cheng Wen <wencheng@xidian.edu.cn>
Signed-off-by: Cheng Wen <wencheng@xidian.edu.cn>
Signed-off-by: YuanZhe Liu <25031212351@stu.xidian.edu.cn>
[mkl: rewrite commit message, also check brp_max]
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
---
 drivers/net/can/dev/dev.c | 85 ++++++++++++++++++++++++++++++++++++++++++++---
 1 file changed, 81 insertions(+), 4 deletions(-)

diff --git a/drivers/net/can/dev/dev.c b/drivers/net/can/dev/dev.c
index 3207c0e08712..50fd17035d8f 100644
--- a/drivers/net/can/dev/dev.c
+++ b/drivers/net/can/dev/dev.c
@@ -13,6 +13,7 @@
 #include <linux/kernel.h>
 #include <linux/netdevice.h>
 #include <linux/of.h>
+#include <linux/overflow.h>
 #include <linux/slab.h>
 #include <linux/workqueue.h>
 
@@ -595,15 +596,65 @@ static int can_get_termination(struct net_device *ndev)
 	return 0;
 }
 
+/* Upper limit for the bit time in time quanta. This limit ensures that the time interval scan in
+ * `can_calc_bittiming()` remains within bounds.
+ */
+#define CAN_BIT_TIME_TQ_MAX 1024
+
+/* Upper limit for the divisor of the maximum bit rate. This limit ensures that the result of
+ * `brp * can_bit_time()` remains within the range of an int.
+ */
+#define CAN_BITTIMING_CONST_BRP_MAX 65536
+
+/* Ensure that the constants are chosen such that `brp * can_bit_time()` fits into an int. */
+static_assert((u64)CAN_BIT_TIME_TQ_MAX * CAN_BITTIMING_CONST_BRP_MAX < INT_MAX);
+
 static bool
 can_bittiming_const_valid(const struct can_bittiming_const *btc)
 {
-	if (!btc)
-		return true;
+	u32 bit_time;
+
+	/* Controllers may read the bit timing constants via USB, check the
+	 * minimum/maximum values and avoid overflows in the calculation.
+	 */
+	if (!btc->tseg1_min || btc->tseg1_min > btc->tseg1_max)
+		return false;
+
+	if (!btc->tseg2_min || btc->tseg2_min > btc->tseg2_max)
+		return false;
+
+	if (check_add_overflow(btc->tseg1_max, btc->tseg2_max, &bit_time) ||
+	    check_add_overflow(bit_time, CAN_SYNC_SEG, &bit_time) ||
+	    bit_time > CAN_BIT_TIME_TQ_MAX)
+		return false;
 
 	if (!btc->sjw_max)
 		return false;
 
+	if (!btc->brp_min || btc->brp_min > btc->brp_max || !btc->brp_inc)
+		return false;
+
+	if (btc->brp_max > CAN_BITTIMING_CONST_BRP_MAX)
+		return false;
+
+	return true;
+}
+
+static bool
+can_pwm_const_valid(const struct can_pwm_const *pwm_const)
+{
+	u32 shortest_symbol;
+
+	if (pwm_const->pwms_min > pwm_const->pwms_max ||
+	    pwm_const->pwml_min > pwm_const->pwml_max ||
+	    pwm_const->pwmo_min > pwm_const->pwmo_max)
+		return false;
+
+	/* can_calc_pwm() divides by the shortest PWM symbol. */
+	if (check_add_overflow(pwm_const->pwms_min, pwm_const->pwml_min,
+			       &shortest_symbol) || !shortest_symbol)
+		return false;
+
 	return true;
 }
 
@@ -632,8 +683,34 @@ int register_candev(struct net_device *dev)
 	    (priv->bittiming_const || priv->fd.data_bittiming_const))
 		return -EINVAL;
 
-	if (!can_bittiming_const_valid(priv->bittiming_const) ||
-	    !can_bittiming_const_valid(priv->fd.data_bittiming_const))
+	/* Validate CAN clock and CAN-CC bittiming */
+	if (priv->bittiming_const &&
+	    (!priv->clock.freq ||
+	     !can_bittiming_const_valid(priv->bittiming_const)))
+		return -EINVAL;
+
+	/* For CAN-FD:
+	 * Ensure CAN-CC bittiming and validate CAN-FD bittiming
+	 */
+	if (priv->fd.data_bittiming_const &&
+	    (!priv->bittiming_const ||
+	     !can_bittiming_const_valid(priv->fd.data_bittiming_const)))
+		return -EINVAL;
+
+	/* For CAN XL:
+	 * Ensure CAN-FD bittiming and validate CAN XL bittiming
+	 */
+	if (priv->xl.data_bittiming_const &&
+	    (!priv->fd.data_bittiming_const ||
+	     !can_bittiming_const_valid(priv->xl.data_bittiming_const)))
+		return -EINVAL;
+
+	/* For CAN XL PWM:
+	 * Ensure CAN XL bittiming and validate CAN XL PWM constants
+	 */
+	if (priv->xl.pwm_const &&
+	    (!priv->xl.data_bittiming_const ||
+	     !can_pwm_const_valid(priv->xl.pwm_const)))
 		return -EINVAL;
 
 	if (!priv->termination_const) {

-- 
2.53.0


^ permalink raw reply related	[flat|nested] 11+ messages in thread

* Re: [PATCH can-next v4 2/6] can: bittiming: can_calc_bittiming(): catch brp * tsegall overflow
  2026-12-02 13:57 ` [PATCH can-next v4 2/6] can: bittiming: can_calc_bittiming(): catch brp * tsegall overflow Marc Kleine-Budde
@ 2026-12-04  3:51   ` netdev-bot+sashiko
  0 siblings, 0 replies; 11+ messages in thread
From: netdev-bot+sashiko @ 2026-12-04  3:51 UTC (permalink / raw)
  To: mkl
  Cc: mailhol, socketcan, wg, davem, kernel, linux-can, 25031212351,
	stable, byu, wencheng, kuba

Thank you for your contribution! Sashiko AI review found 2 potential
issue(s) to consider.

Critical: 0 · High: 0 · Medium: 2 · Low: 0

If you believe none of the issues are legitimate, please reply to each
issue of Medium severity or higher and explain why the AI is wrong.
If any of them are legitimate and you plan to respin, please let patchwork
know by including "pw-bot: cr" as a separate line at the end of your reply
(one such reply per series is enough).

- [Medium] In can_calc_bittiming()
  (drivers/net/can/dev/calc_bittiming.c), the new…
- [Medium] can_fixup_bittiming() (drivers/net/can/dev/bittiming.c:106 at
  this commit) computes 'priv->clock.freq / (bt->brp *…

--

can: bittiming: can_calc_bittiming(): catch brp * tsegall overflow

This patch replaces the unchecked brp * tsegall multiplication in
can_calc_bittiming() with check_mul_overflow(). Any time segment
combination whose product does not fit in an unsigned int is now
skipped. The brp and tsegall limits come from the CAN controller, and some
devices report them over USB.

> diff --git a/drivers/net/can/dev/calc_bittiming.c b/drivers/net/can/dev/calc_bittiming.c
> index 8889d55fea652..cf8310537df23 100644
> --- a/drivers/net/can/dev/calc_bittiming.c
> +++ b/drivers/net/can/dev/calc_bittiming.c
> @@ -133,7 +133,10 @@ int can_calc_bittiming(const struct net_device *dev, struct can_bittiming *bt,
>  		if (brp < btc->brp_min || brp > btc->brp_max)
>  			continue;
>  
> -		bitrate = priv->clock.freq / (brp * tsegall);
> +		if (check_mul_overflow(brp, tsegall, &div))
> +			continue;
> +
> +		bitrate = priv->clock.freq / div;

[Severity: Medium]
Can div still be zero at this division?

check_mul_overflow() only catches products that wrap. A product of zero
that does not overflow still passes.

Take an even tseg where tsegall * bt->bitrate is larger than
priv->clock.freq. Earlier in the loop, brp then comes out as zero:

	brp = priv->clock.freq / div + tseg % 2;

If the device reports brp_min == 0, the range check above does not reject
brp == 0:

	if (brp < btc->brp_min || brp > btc->brp_max)
		continue;

In that case check_mul_overflow(0, tsegall, &div) returns false with
div == 0, and priv->clock.freq / div divides by zero.

gs_usb and ucan copy brp_min from the device without validating it. For
example, gs_make_candev() does:

	dev->bt_const.brp_min = le32_to_cpu(bt_const.brp_min);

A CAP_NET_ADMIN user who sets a high enough bitrate reaches this path
through can_changelink()->can_get_bittiming()->can_calc_bittiming() with
RTNL held.

The last commit in this series, "can: bittiming: register_candev(): reject
unusable bit-timing constants", appears to fix this. Its
can_bittiming_const_valid() rejects !btc->brp_min at registration, so the
division can only fault at commits before that one.

This patch is marked for stable. Would it be worth also skipping div == 0
here, or moving the registration check ahead of this patch in the series?

>  		bitrate_error = abs(bt->bitrate - bitrate);
>  
>  		/* tseg brp biterror */

[Severity: Medium]
This guards the brp * tsegall product in can_calc_bittiming(). Does
can_fixup_bittiming() in drivers/net/can/dev/bittiming.c have the same
unchecked 32-bit multiplication?

drivers/net/can/dev/bittiming.c:can_fixup_bittiming() {
    ...
	bt->bitrate = priv->clock.freq / (bt->brp * can_bit_time(bt));
    ...
}

bt->brp comes from the user-supplied tq and is bounded only by the
device's brp_min and brp_max. can_bit_time() is bounded only by the
device's tseg1_max and tseg2_max.

Suppose a gs_usb or ucan device reports a large brp_max, for example 2^28
or more. With a bit time of 16 the product wraps to exactly 2^32, which
makes the divisor 0. A device brp_min of 0 would also allow bt->brp == 0.

can_get_bittiming() reaches this function when the user sets tq and
leaves bitrate at 0:

	if (bt->tq && !bt->bitrate && btc)
		return can_fixup_bittiming(dev, bt, btc, extack);

Later commits in the series seem to fix this. "can: bittiming:
register_candev(): reject unusable bit-timing constants" requires
brp_min >= 1, brp_max <= 65536 and tseg1_max + tseg2_max + 1 <= 1024.

"can: bittiming: can_fixup_bittiming(): reject too high values for
prop-seg/phase-seg1" also stops the prop_seg + phase_seg1 sum from
wrapping. Together they keep the product between 1 and 2^26.

Should this patch also guard the division in can_fixup_bittiming(), so
the stable backport covers both places?

-- 
Sashiko AI review · https://netdev-ai.bots.linux.dev/sashiko/#/patchset/20261202-bittiming-fix-conversion-v4-0-fae7aaaf3191%40pengutronix.de

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [PATCH can-next v4 3/6] can: bittiming: can_calc_bittiming(): harden bitrate error calculation on unsigned operands
  2026-12-02 13:57 ` [PATCH can-next v4 3/6] can: bittiming: can_calc_bittiming(): harden bitrate error calculation on unsigned operands Marc Kleine-Budde
@ 2026-12-04  3:51   ` netdev-bot+sashiko
  0 siblings, 0 replies; 11+ messages in thread
From: netdev-bot+sashiko @ 2026-12-04  3:51 UTC (permalink / raw)
  To: mkl
  Cc: mailhol, socketcan, wg, davem, kernel, linux-can, 25031212351,
	stable, byu, wencheng, kuba

Thank you for your contribution! Sashiko AI review found more severe
issue(s) in other patches of this series. This mail is only an FYI, in case
you want to address the nit picks below when you respin.

Low priority / nit picks for your consideration:

- [Low] The commit message describes a bug that the old code did not
  have.

--

can: bittiming: can_calc_bittiming(): harden bitrate error calculation on unsigned operands

This commit replaces abs(bt->bitrate - bitrate) with
abs_diff(bt->bitrate, bitrate) in can_calc_bittiming(). The commit
message says the old expression turned a wrapped unsigned difference into
a small positive value, which would mis-score bitrate candidates.

> Both operands are unsigned int, the subtraction may wrap instead of
> becoming negative, abs() resolves an unsigned int argument to its int
> branch. A wrapped difference is therefore reinterpreted as a small positive
> value instead of the large error it actually represents.

[Severity: Low]
Is this description accurate? The kernel's abs() converts an unsigned int
to int before it takes the absolute value:

include/linux/math.h:
#define __abs_choose_expr(x, type, other) __builtin_choose_expr(	\
	__builtin_types_compatible_p(typeof(x),   signed type) ||	\
	__builtin_types_compatible_p(typeof(x), unsigned type),		\
	({ signed type __x = (x); __x < 0 ? -__x : __x; }), other)

Say the computed bitrate is larger than bt->bitrate by d. The subtraction
wraps to 2^32 - d, the cast to int gives -d, and abs() returns d. That is
the real bitrate error, not a hidden large one.

The old result could only be wrong if the true difference were 2^31 or
more. In can_calc_bittiming(), this check skips every candidate where
tsegall * bt->bitrate overflows:

		if (check_mul_overflow(tsegall, bt->bitrate, &div))
			continue;

Any constants with tseg1_min + tseg2_min >= 1 give tsegall >= 2, and every
in-tree driver table meets that. So every candidate that gets evaluated
has bt->bitrate below 2^31, and bitrate = priv->clock.freq / div is at
most UINT_MAX / 2.

The only exception is tseg1_min == tseg2_min == 0, where tsegall can be 1.
With those constants the unsigned loop condition tseg >= 0 is always true,
so the loop does not end properly anyway. The later commit "can:
bittiming: register_candev(): reject unusable bit-timing constants" also
rejects such constants.

So abs_diff() seems to give the same value as the old code on every
reachable path. The word "harden" in the subject fits that.

Could the body be reworded so it doesn't describe this as a fix for
mis-scored bitrate candidates? As written, it could lead stable
backporters to treat this cleanup as a functional fix.

-- 
Sashiko AI review · https://netdev-ai.bots.linux.dev/sashiko/#/patchset/20261202-bittiming-fix-conversion-v4-0-fae7aaaf3191%40pengutronix.de

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [PATCH can-next v4 4/6] can: bittiming: can_update_sample_point(): harden sample point error calculation on unsigned operands
  2026-12-02 13:57 ` [PATCH can-next v4 4/6] can: bittiming: can_update_sample_point(): harden sample point " Marc Kleine-Budde
@ 2026-12-04  3:51   ` netdev-bot+sashiko
  0 siblings, 0 replies; 11+ messages in thread
From: netdev-bot+sashiko @ 2026-12-04  3:51 UTC (permalink / raw)
  To: mkl
  Cc: mailhol, socketcan, wg, davem, kernel, linux-can, 25031212351,
	stable, byu, wencheng, kuba

Thank you for your contribution! Sashiko AI review found more severe
issue(s) in other patches of this series. This mail is only an FYI, in case
you want to address the nit picks below when you respin.

Low priority / nit picks for your consideration:

- [Low] The commit message describes a bug that does not exist in
  can_update_sample_point() (drivers/net/can/dev/calc_bittiming.c).

--

can: bittiming: can_update_sample_point(): harden sample point error calculation on unsigned operands

This commit changes how can_update_sample_point() computes
sample_point_error. It now uses abs_diff() instead of abs() on the
difference of two unsigned int operands, so the calculation stays
unsigned.

> Both operands are unsigned int, the subtraction may wrap instead of
> becoming negative, abs() resolves an unsigned int argument to its int
> branch. A wrapped difference is therefore reinterpreted as a small positive
> value instead of the large error it actually represents.

[Severity: Low]
Is this description accurate? It reads as if the old code mis-rated
sample point candidates, but the change does not seem to alter behaviour.

The abs() macro in include/linux/math.h handles an unsigned int through
the int branch:

	({ signed type __x = (x); __x < 0 ? -__x : __x; })

Say sample_point is larger than sample_point_reference by a small d. The
subtraction wraps to 2^32 - d, the int conversion turns that into -d, and
abs() returns d. That is the true error, and abs_diff() returns the same
value.

Also, sample_point_error is only used under this guard in
can_update_sample_point():

	if (sample_point <= sample_point_reference &&
	    sample_point_error < best_sample_point_error) {

*sample_point_error_ptr only gets best_sample_point_error, and that is
only updated inside this branch. On that path the subtraction cannot
wrap.

The reference also stays below 1000. For the nominal, FD data and XL data
bittiming, can_validate_bittiming() in drivers/net/can/dev/netlink.c
rejects larger user values:

	if (bt->sample_point >= 1000) {
		NL_SET_ERR_MSG(extack, "sample point must be between 0 and 100%");
		return -EINVAL;
	}

The defaults from can_calc_sample_point_nrz() and
can_calc_sample_point_pwm() are in the 520..875 range.

The wording looks like it was carried over from the companion patch
"can: bittiming: can_calc_bittiming(): harden bitrate error calculation
on unsigned operands". Could the commit message describe this as a
type-safety and consistency cleanup with no functional change?

-- 
Sashiko AI review · https://netdev-ai.bots.linux.dev/sashiko/#/patchset/20261202-bittiming-fix-conversion-v4-0-fae7aaaf3191%40pengutronix.de

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [PATCH can-next v4 6/6] can: bittiming: register_candev(): reject unusable bit-timing constants
  2026-12-02 13:57 ` [PATCH can-next v4 6/6] can: bittiming: register_candev(): reject unusable bit-timing constants Marc Kleine-Budde
@ 2026-12-04  3:51   ` netdev-bot+sashiko
  0 siblings, 0 replies; 11+ messages in thread
From: netdev-bot+sashiko @ 2026-12-04  3:51 UTC (permalink / raw)
  To: mkl
  Cc: mailhol, socketcan, wg, davem, kernel, linux-can, 25031212351,
	stable, byu, wencheng, kuba

Thank you for your contribution! Sashiko AI review found more severe
issue(s) in other patches of this series. This mail is only an FYI, in case
you want to address the nit picks below when you respin.

Low priority / nit picks for your consideration:

- [Low] can_pwm_const_valid() (drivers/net/can/dev/dev.c:643-659) checks
  `pwms_min + pwml_min` for overflow but puts no bound on `pwms_max +…

Pre-existing issues:
- [High] This problem wasn't introduced by this patch, but the patch
  hardens can_calc_pwm() against bad registered constants and leaves a…

--

can: bittiming: register_candev(): reject unusable bit-timing constants

This commit tightens can_bittiming_const_valid() so it rejects zero or
inverted tseg and brp ranges, a zero brp_inc, bit times above
CAN_BIT_TIME_TQ_MAX and a brp_max above CAN_BITTIMING_CONST_BRP_MAX. It also
adds can_pwm_const_valid() for the CAN XL PWM constants. register_candev()
now rejects a zero clock frequency and validates the constants along the
CC -> FD -> XL -> PWM chain.

> diff --git a/drivers/net/can/dev/dev.c b/drivers/net/can/dev/dev.c
> index 3207c0e08712c..50fd17035d8f6 100644
> --- a/drivers/net/can/dev/dev.c
> +++ b/drivers/net/can/dev/dev.c

[ ... ]

> @@ -595,15 +596,65 @@ static int can_get_termination(struct net_device *ndev)

[ ... ]

> +static bool
> +can_pwm_const_valid(const struct can_pwm_const *pwm_const)
> +{
> +	u32 shortest_symbol;
> +
> +	if (pwm_const->pwms_min > pwm_const->pwms_max ||
> +	    pwm_const->pwml_min > pwm_const->pwml_max ||
> +	    pwm_const->pwmo_min > pwm_const->pwmo_max)
> +		return false;

[Severity: Low]
Should the maxima be bounded here as well? Only pwms_min + pwml_min is
checked for overflow. can_pwm_changelink() limits the PWMS and PWML values
from user space only to [pwms_min, pwms_max] and [pwml_min, pwml_max], and
then passes them to can_validate_pwm_bittiming():

drivers/net/can/dev/bittiming.c:can_validate_pwm_bittiming() {
    ...
	if (xl_bit_time_tqmin % (pwm->pwms + pwm->pwml) != 0) {
    ...
}

That sum is computed in u32. Take clock.freq = 1 GHz, pwms = 10 and
pwml = 2^32 - 10. The earlier checks all pass:

  pwms_ns + pwml_ns wraps to 0, so it passes the CAN_PWM_NS_MAX check
  pwms_ns >= CAN_PWM_DECODE_NS
  pwms < pwml
  pwml_ns - pwms_ns = 2^32 - 20 >= 2 * CAN_PWM_DECODE_NS

Then pwm->pwms + pwm->pwml wraps to 0.

If a driver registers a pwm_const with pwms_max + pwml_max >= 2^32, can
this divide by zero?

No in-tree driver has such constants today. dummy_can is the only
pwm_const user, and its values are small and static.

Would it be enough to reject a pwms_max + pwml_max that overflows, or to
cap each maximum at CAN_BIT_TIME_TQ_MAX * CAN_BITTIMING_CONST_BRP_MAX?

> +
> +	/* can_calc_pwm() divides by the shortest PWM symbol. */
> +	if (check_add_overflow(pwm_const->pwms_min, pwm_const->pwml_min,
> +			       &shortest_symbol) || !shortest_symbol)
> +		return false;

[Severity: High]
This is a pre-existing issue, but this check is meant to protect the
divisions in can_calc_pwm(), and that function has a second divisor that
can still be zero:

drivers/net/can/dev/calc_bittiming.c:can_calc_pwm() {
	u32 xl_tqmin = can_bit_time_tqmin(&priv->xl.data_bittiming);
	u32 xl_ns = can_tqmin_to_ns(xl_tqmin, priv->clock.freq);
    ...
	int pwm_per_bit_max = xl_tqmin / (pwm_const->pwms_min + pwm_const->pwml_min);
    ...
	for (pwm_per_bit = DIV_ROUND_UP(xl_ns, CAN_PWM_NS_MAX);
	     pwm_per_bit <= pwm_per_bit_max; pwm_per_bit++)
		if (xl_tqmin % pwm_per_bit == 0)
			break;
    ...
}

Suppose priv->xl.data_bittiming is all zero while CAN_CTRLMODE_XL_TMS is
set. Then xl_tqmin and xl_ns are both 0, so pwm_per_bit and
pwm_per_bit_max both start at 0. The loop body then computes 0 % 0.

Can that state be reached? With the interface down,
can_ctrlmode_changelink() commits the new flags before any bit timing is
validated:

	priv->ctrlmode &= ~cm->mask;
	priv->ctrlmode |= maskedflags;

Take a changelink request with mask = flags = XL | XL_TMS, plus
IFLA_CAN_BITTIMING and IFLA_CAN_XL_DATA_BITTIMING. If it later fails in
can_get_bittiming() or in the XL can_dbt_changelink(), can_changelink()
returns the error without rolling back ctrlmode. XL_TMS stays set and
xl.data_bittiming stays zeroed.

A second changelink can then carry an IFLA_INFO_DATA with no CTRLMODE,
BITTIMING or XL_PWM attributes. That request reaches:

can_changelink()
  can_pwm_changelink()
    can_calc_pwm()

can_pwm_changelink() only checks XL_TMS and pwm_const before calling it:

	if (!(priv->ctrlmode & CAN_CTRLMODE_XL_TMS))
		return 0;
    ...
	if (!pwm_nla)
		return can_calc_pwm(dev, extack);

Triggering this needs CAP_NET_ADMIN and a driver that sets xl.pwm_const
and supports XL_TMS, such as dummy_can in-tree. The divide error happens
while RTNL is held.

Should can_pwm_changelink() or can_calc_pwm() check that the XL data bit
timing has been configured? Alternatively, should can_changelink() restore
ctrlmode when a later step fails?

> +
> +	return true;
>  }

[ ... ]

-- 
Sashiko AI review · https://netdev-ai.bots.linux.dev/sashiko/#/patchset/20261202-bittiming-fix-conversion-v4-0-fae7aaaf3191%40pengutronix.de

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2026-12-04  3:51 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-12-02 13:57 [PATCH can-next v4 0/6] can: bittiming: fix integer overflows in the userspace bit rate conversion and reject invalid timing constants Marc Kleine-Budde
2026-12-02 13:57 ` [PATCH can-next v4 1/6] can: bittiming: can_calc_bittiming(): fix potential divide-by-zero Marc Kleine-Budde
2026-12-02 13:57 ` [PATCH can-next v4 2/6] can: bittiming: can_calc_bittiming(): catch brp * tsegall overflow Marc Kleine-Budde
2026-12-04  3:51   ` netdev-bot+sashiko
2026-12-02 13:57 ` [PATCH can-next v4 3/6] can: bittiming: can_calc_bittiming(): harden bitrate error calculation on unsigned operands Marc Kleine-Budde
2026-12-04  3:51   ` netdev-bot+sashiko
2026-12-02 13:57 ` [PATCH can-next v4 4/6] can: bittiming: can_update_sample_point(): harden sample point " Marc Kleine-Budde
2026-12-04  3:51   ` netdev-bot+sashiko
2026-12-02 13:57 ` [PATCH can-next v4 5/6] can: bittiming: can_fixup_bittiming(): reject too high values for prop-seg/phase-seg1 Marc Kleine-Budde
2026-12-02 13:57 ` [PATCH can-next v4 6/6] can: bittiming: register_candev(): reject unusable bit-timing constants Marc Kleine-Budde
2026-12-04  3:51   ` netdev-bot+sashiko

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox