Re: [PATCH can tree] can: dev: prevent potential information leak in can_fill_info()

From
Marc Kleine-Budde <mkl@pengutronix.de>
Date
2021-01-21 07:38:46
Also in
kernel-janitors
Reply to
Dan Carpenter, 2021-01-21
Hey Dan,

On Thu, Jan 21, 2021 at 09:08:05AM +0300, Dan Carpenter wrote:
The "bec" struct isn't necessarily always initialized.  For example,
the mcp251xfd_get_berr_counter() function doesn't initialize anything
if the interface is down.

Fixes: 52c793f24054 ("can: netlink support for bus-error reporting and counters")
Signed-off-by: Dan Carpenter <redacted>
Thanks for the patch. As this is a fix, I've backported it to net/master, which
is before the split of the dev.c into separate files. Applied to
linux-can/testing.

regards,
Marc

-- 
Pengutronix e.K.                 | Marc Kleine-Budde           |
Embedded Linux                   | https://www.pengutronix.de  |
Vertretung West/Dortmund         | Phone: +49-231-2826-924     |
Amtsgericht Hildesheim, HRA 2686 | Fax:   +49-5121-206917-5555 |

Attachments

Thread (2 messages) 2 messages, 2 authors, last reply 2021-01-21
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help