linux/drivers/net/can
Eric Dumazet 1eb2cded45 net: annotate writes on dev->mtu from ndo_change_mtu()
Simon reported that ndo_change_mtu() methods were never
updated to use WRITE_ONCE(dev->mtu, new_mtu) as hinted
in commit 501a90c945 ("inet: protect against too small
mtu values.")

We read dev->mtu without holding RTNL in many places,
with READ_ONCE() annotations.

It is time to take care of ndo_change_mtu() methods
to use corresponding WRITE_ONCE()

Signed-off-by: Eric Dumazet <edumazet@google.com>
Reported-by: Simon Horman <horms@kernel.org>
Closes: https://lore.kernel.org/netdev/20240505144608.GB67882@kernel.org/
Reviewed-by: Jacob Keller <jacob.e.keller@intel.com>
Reviewed-by: Sabrina Dubroca <sd@queasysnail.net>
Reviewed-by: Simon Horman <horms@kernel.org>
Acked-by: Shannon Nelson <shannon.nelson@amd.com>
Link: https://lore.kernel.org/r/20240506102812.3025432-1-edumazet@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2024-05-07 16:19:14 -07:00
..
c_can net: can: Use device_get_match_data() 2024-01-19 08:08:53 -06:00
cc770 net: handle HAS_IOPORT dependencies 2024-04-08 11:56:56 +01:00
ctucanfd
dev net: annotate writes on dev->mtu from ndo_change_mtu() 2024-05-07 16:19:14 -07:00
esd can: esd: add support for esd GmbH PCIe/402 CAN interface family 2024-02-12 16:58:30 +01:00
flexcan net: can: Use device_get_match_data() 2024-01-19 08:08:53 -06:00
ifi_canfd can: Explicitly include correct DT includes, part 2 2023-07-28 08:49:52 +02:00
m_can can: tcan4x5x: support resuming from rx interrupt signal 2024-02-14 13:44:02 +01:00
mscan net: can: Use device_get_match_data() 2024-01-19 08:08:53 -06:00
peak_canfd
rcar can: Explicitly include correct DT includes, part 2 2023-07-28 08:49:52 +02:00
sja1000 net: handle HAS_IOPORT dependencies 2024-04-08 11:56:56 +01:00
slcan tty: use u8 for flags 2023-08-11 21:12:45 +02:00
softing can: softing: remove redundant NULL check 2024-02-12 17:25:42 +01:00
spi can: mcp251xfd: __mcp251xfd_get_berr_counter(): use CAN_BUS_OFF_THRESHOLD instead of open coding it 2024-03-04 08:47:04 +01:00
usb can: gs_usb: gs_cmd_reset(): use cpu_to_le32() to assign mode 2024-03-04 08:46:56 +01:00
at91_can.c can: at91_can: switch to rx-offload implementation 2023-10-05 21:47:45 +02:00
bxcan.c can: Explicitly include correct DT includes, part 2 2023-07-28 08:49:52 +02:00
can327.c tty: use u8 for flags 2023-08-11 21:12:45 +02:00
grcan.c
janz-ican3.c
Kconfig can: kvaser_pciefd: Add support for Kvaser PCIe 8xCAN 2024-03-04 08:38:34 +01:00
kvaser_pciefd.c can: kvaser_pciefd: Add additional Xilinx interrupts 2024-03-19 15:26:01 +01:00
Makefile can: esd: add support for esd GmbH PCIe/402 CAN interface family 2024-02-12 16:58:30 +01:00
sun4i_can.c can: Explicitly include correct DT includes, part 2 2023-07-28 08:49:52 +02:00
ti_hecc.c can: rx-offload: rename rx_offload_get_echo_skb() -> can_rx_offload_get_echo_skb_queue_timestamp() 2023-07-28 09:45:24 +02:00
vcan.c net: annotate writes on dev->mtu from ndo_change_mtu() 2024-05-07 16:19:14 -07:00
vxcan.c net: annotate writes on dev->mtu from ndo_change_mtu() 2024-05-07 16:19:14 -07:00
xilinx_can.c can: xilinx_can: Add ethtool stats interface for ECC errors 2024-02-16 14:18:31 +01:00