public inbox for linux-can@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v3 0/3] can: bcm: add/fix locking for config updates at runtime
@ 2026-02-19 16:51 Oliver Hartkopp via B4 Relay
  2026-02-19 16:51 ` [PATCH v3 1/3] can: bcm: fix locking for bcm_op runtime updates Oliver Hartkopp via B4 Relay
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Oliver Hartkopp via B4 Relay @ 2026-02-19 16:51 UTC (permalink / raw)
  To: Marc Kleine-Budde, David S. Miller, Urs Thuermann,
	Vincent Mailhol
  Cc: linux-can, linux-kernel, Oliver Hartkopp,
	syzbot+5b11eccc403dd1cea9f8, syzbot+75e5e4ae00c3b4bb544e

Address three locking issues detected by KASAN and KCSAN.

The first patch fixes an unintialized spin_lock in the KASAN fix.
The second patch addresses the update of content in bcm_rx_setup().
The third patch adds a missing atomic conversion in can_rcv_filter().

Signed-off-by: Oliver Hartkopp <socketcan@hartkopp.net>
---
Changes in v3:
- Add a third patch that fixes a KCSAN issue that showed up while testing
  patch 2 8-)
- Link to v2: https://patch.msgid.link/20260219-bcm_spin_lock_init-v2-0-694352bfca62@hartkopp.net

Changes in v2:
- Add a second patch addressing the KCSAN report
- Link to v1: https://patch.msgid.link/20260218-bcm_spin_lock_init-v1-1-592634c8a5b5@hartkopp.net

---
Oliver Hartkopp (3):
      can: bcm: fix locking for bcm_op runtime updates
      can: bcm: add locking when updating filter and timer values
      can: statistics: add missing atomic access in hot path

 net/can/af_can.c |  4 ++--
 net/can/af_can.h |  2 +-
 net/can/bcm.c    | 40 +++++++++++++++++++++++++++++++++-------
 3 files changed, 36 insertions(+), 10 deletions(-)
---
base-commit: 2961f841b025fb234860bac26dfb7fa7cb0fb122
change-id: 20260218-bcm_spin_lock_init-2518eb8d4501

Best regards,
--  
Oliver Hartkopp <socketcan@hartkopp.net>



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

end of thread, other threads:[~2026-03-23  9:52 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-02-19 16:51 [PATCH v3 0/3] can: bcm: add/fix locking for config updates at runtime Oliver Hartkopp via B4 Relay
2026-02-19 16:51 ` [PATCH v3 1/3] can: bcm: fix locking for bcm_op runtime updates Oliver Hartkopp via B4 Relay
2026-02-19 16:51 ` [PATCH v3 2/3] can: bcm: add locking when updating filter and timer values Oliver Hartkopp via B4 Relay
2026-03-02 10:21   ` Marc Kleine-Budde
2026-03-23  9:42     ` Marc Kleine-Budde
2026-03-23  9:46       ` Oliver Hartkopp
2026-02-19 16:51 ` [PATCH v3 3/3] can: statistics: add missing atomic access in hot path Oliver Hartkopp via B4 Relay
2026-03-02 10:22   ` Marc Kleine-Budde

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