netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v1 0/9] can: j1939: fix multiple issues found by syzbot
@ 2019-11-12 11:15 Oleksij Rempel
  2019-11-12 11:15 ` [PATCH v1 1/9] can: af_can: export can_sock_destruct() Oleksij Rempel
                   ` (8 more replies)
  0 siblings, 9 replies; 16+ messages in thread
From: Oleksij Rempel @ 2019-11-12 11:15 UTC (permalink / raw)
  To: dev.kurt, mkl, wg; +Cc: Oleksij Rempel, kernel, linux-can, netdev

Most of this issues was found by test provided with following syzbot report:
https://syzkaller.appspot.com/bug?extid=d9536adc269404a984f8

Other syzbot reports are probably different incarnation of the same or
combination of bugs:

https://syzkaller.appspot.com/bug?extid=07bb74aeafc88ba7d5b4
https://syzkaller.appspot.com/bug?extid=4857323ec1bb236f6a45
https://syzkaller.appspot.com/bug?extid=6d04f6a1b31a0ae12ca9
https://syzkaller.appspot.com/bug?extid=7044ea77452b6f92b4fd
https://syzkaller.appspot.com/bug?extid=95c8e0d9dffde15b6c5c
https://syzkaller.appspot.com/bug?extid=db4869ba599c0de9b13e
https://syzkaller.appspot.com/bug?extid=feff46f1778030d14234

Oleksij Rempel (9):
  can: af_can: export can_sock_destruct()
  can: j1939: move j1939_priv_put() into sk_destruct callback
  can: j1939: main: j1939_ndev_to_priv(): avoid crash if can_ml_priv is
    NULL
  can: j1939: socket: rework socket locking for j1939_sk_release() and
    j1939_sk_sendmsg()
  can: j1939: transport: make sure the aborted session will be
    deactivated only once
  can: j1939: make sure socket is held as long as session exists
  can: j1939: transport: j1939_cancel_active_session(): use
    hrtimer_try_to_cancel() instead of hrtimer_cancel()
  can: j1939: j1939_can_recv(): add priv refcounting
  can: j1939: warn if resources are still linked on destroy

 include/linux/can/core.h  |  1 +
 net/can/af_can.c          |  3 +-
 net/can/j1939/main.c      |  9 ++++
 net/can/j1939/socket.c    | 94 ++++++++++++++++++++++++++++++---------
 net/can/j1939/transport.c | 36 +++++++++++----
 5 files changed, 113 insertions(+), 30 deletions(-)

-- 
2.24.0.rc1


^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2019-11-13 10:10 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-11-12 11:15 [PATCH v1 0/9] can: j1939: fix multiple issues found by syzbot Oleksij Rempel
2019-11-12 11:15 ` [PATCH v1 1/9] can: af_can: export can_sock_destruct() Oleksij Rempel
2019-11-12 11:37   ` Uwe Kleine-König
2019-11-12 11:39     ` Marc Kleine-Budde
2019-11-12 11:45       ` Uwe Kleine-König
2019-11-12 18:24         ` Oliver Hartkopp
2019-11-12 20:10           ` Marc Kleine-Budde
2019-11-13 10:04             ` Oliver Hartkopp
2019-11-12 11:15 ` [PATCH v1 2/9] can: j1939: move j1939_priv_put() into sk_destruct callback Oleksij Rempel
2019-11-12 11:15 ` [PATCH v1 3/9] can: j1939: main: j1939_ndev_to_priv(): avoid crash if can_ml_priv is NULL Oleksij Rempel
2019-11-12 11:15 ` [PATCH v1 4/9] can: j1939: socket: rework socket locking for j1939_sk_release() and j1939_sk_sendmsg() Oleksij Rempel
2019-11-12 11:15 ` [PATCH v1 5/9] can: j1939: transport: make sure the aborted session will be deactivated only once Oleksij Rempel
2019-11-12 11:15 ` [PATCH v1 6/9] can: j1939: make sure socket is held as long as session exists Oleksij Rempel
2019-11-12 11:15 ` [PATCH v1 7/9] can: j1939: transport: j1939_cancel_active_session(): use hrtimer_try_to_cancel() instead of hrtimer_cancel() Oleksij Rempel
2019-11-12 11:15 ` [PATCH v1 8/9] can: j1939: j1939_can_recv(): add priv refcounting Oleksij Rempel
2019-11-12 11:16 ` [PATCH v1 9/9] can: j1939: warn if resources are still linked on destroy Oleksij Rempel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).