linux/net/can/j1939
Oleksij Rempel eb96c58907 can: j1939: transport: j1939_session_fresh_new(): initialize receive buffer
Zero the allocated buffer in j1939_session_fresh_new() to ensure it
contains no residual data.

While there is a potential performance impact if users allocate maximum
sized ETP buffers, most real-world use cases are not noticeably affected
since the maximum known buffer size is typically around 65K.

Fixes: 9d71dd0c70 ("can: add support of SAE J1939 protocol")
Reported-by: Ji'an Zhou <eilaimemedsnaimel@gmail.com>
Message-ID: <CAPAUci5dykCLjoijqkUtFqJFesgncrD7+S6y_V=gjbFkY2Tifg@mail.gmail.com>
Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de>
Link: https://patch.msgid.link/20260728055835.1151785-3-o.rempel@pengutronix.de
Cc: stable@kernel.org
[mkl: add Message-ID]
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
2026-07-29 10:15:33 +02:00
..
address-claim.c can: j1939: do not wait 250 ms if the same addr was already claimed 2023-02-07 15:00:22 +01:00
bus.c can: j1939: use netdevice_tracker for j1939_{priv,session,ecu} tracking 2026-07-29 10:15:08 +02:00
j1939-priv.h can: j1939: use netdevice_tracker for j1939_{priv,session,ecu} tracking 2026-07-29 10:15:08 +02:00
Kconfig
main.c can: j1939: use netdevice_tracker for j1939_{priv,session,ecu} tracking 2026-07-29 10:15:08 +02:00
Makefile
socket.c net: change sock_queue_rcv_skb_reason() to return a drop_reason 2026-04-12 14:30:25 -07:00
transport.c can: j1939: transport: j1939_session_fresh_new(): initialize receive buffer 2026-07-29 10:15:33 +02:00