[PATCH v3 0/3] can: bcm: add/fix locking for config updates at runtime

Oliver Hartkopp via B4 Relay posted 3 patches 1 month, 1 week ago
net/can/af_can.c |  4 ++--
net/can/af_can.h |  2 +-
net/can/bcm.c    | 40 +++++++++++++++++++++++++++++++++-------
3 files changed, 36 insertions(+), 10 deletions(-)
[PATCH v3 0/3] can: bcm: add/fix locking for config updates at runtime
Posted by Oliver Hartkopp via B4 Relay 1 month, 1 week ago
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>