diff options
author | Paolo Abeni <pabeni@redhat.com> | 2024-02-15 12:31:22 +0100 |
---|---|---|
committer | Paolo Abeni <pabeni@redhat.com> | 2024-02-15 12:31:23 +0100 |
commit | f3ac28e1f8ae8e3dc18323d4fdf3b0a4f6c77f54 (patch) | |
tree | 569e1fd772ac163ed21b58b04928e60a20ebdfd9 /drivers/net | |
parent | 488b6d91b07112eaaaa4454332c1480894d4e06e (diff) | |
parent | 2aa0a5e65eae27dbd96faca92c84ecbf6f492d42 (diff) | |
download | linux-stable-f3ac28e1f8ae8e3dc18323d4fdf3b0a4f6c77f54.tar.gz linux-stable-f3ac28e1f8ae8e3dc18323d4fdf3b0a4f6c77f54.tar.bz2 linux-stable-f3ac28e1f8ae8e3dc18323d4fdf3b0a4f6c77f54.zip |
Merge tag 'linux-can-fixes-for-6.8-20240214' of git://git.kernel.org/pub/scm/linux/kernel/git/mkl/linux-can
Marc Kleine-Budde says:
====================
pull-request: can 2024-02-14
this is a pull request of 3 patches for net/master.
the first patch is by Ziqi Zhao and targets the CAN J1939 protocol, it
fixes a potential deadlock by replacing the spinlock by an rwlock.
Oleksij Rempel's patch adds a missing spin_lock_bh() to prevent a
potential Use-After-Free in the CAN J1939's
setsockopt(SO_J1939_FILTER).
Maxime Jayat contributes a patch to fix the transceiver delay
compensation (TDCO) calculation, which is needed for higher CAN-FD bit
rates (usually 2Mbit/s).
* tag 'linux-can-fixes-for-6.8-20240214' of git://git.kernel.org/pub/scm/linux/kernel/git/mkl/linux-can:
can: netlink: Fix TDCO calculation using the old data bittiming
can: j1939: Fix UAF in j1939_sk_match_filter during setsockopt(SO_J1939_FILTER)
can: j1939: prevent deadlock by changing j1939_socks_lock to rwlock
====================
Link: https://lore.kernel.org/r/20240214140348.2412776-1-mkl@pengutronix.de
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/can/dev/netlink.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/can/dev/netlink.c b/drivers/net/can/dev/netlink.c index 036d85ef07f5..dfdc039d92a6 100644 --- a/drivers/net/can/dev/netlink.c +++ b/drivers/net/can/dev/netlink.c @@ -346,7 +346,7 @@ static int can_changelink(struct net_device *dev, struct nlattr *tb[], /* Neither of TDC parameters nor TDC flags are * provided: do calculation */ - can_calc_tdco(&priv->tdc, priv->tdc_const, &priv->data_bittiming, + can_calc_tdco(&priv->tdc, priv->tdc_const, &dbt, &priv->ctrlmode, priv->ctrlmode_supported); } /* else: both CAN_CTRLMODE_TDC_{AUTO,MANUAL} are explicitly * turned off. TDC is disabled: do nothing |