original_kernel/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
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
flexcan
ifi_canfd
m_can
mscan
peak_canfd
rcar
sja1000 net: handle HAS_IOPORT dependencies 2024-04-08 11:56:56 +01:00
slcan
softing
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
Kconfig
Makefile
at91_can.c
bxcan.c
can327.c
grcan.c
janz-ican3.c
kvaser_pciefd.c can: kvaser_pciefd: Add additional Xilinx interrupts 2024-03-19 15:26:01 +01:00
sun4i_can.c
ti_hecc.c
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