]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
can: purge socket error queue on sock destruct
authorWillem de Bruijn <willemb@google.com>
Fri, 7 Jun 2019 20:46:07 +0000 (16:46 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 25 Jun 2019 03:36:00 +0000 (11:36 +0800)
commit5ad9a23e6daef31c23895c5a0d8f0bc1fb4f69f6
treef34c3061f244ab432688af6c511e09809da4f33a
parent4ea81cc49c59007a23a54fcbe7ed3cc06eac2c6a
can: purge socket error queue on sock destruct

commit fd704bd5ee749d560e86c4f1fd2ef486d8abf7cf upstream.

CAN supports software tx timestamps as of the below commit. Purge
any queued timestamp packets on socket destroy.

Fixes: 51f31cabe3ce ("ip: support for TX timestamps on UDP and RAW sockets")
Reported-by: syzbot+a90604060cb40f5bdd16@syzkaller.appspotmail.com
Signed-off-by: Willem de Bruijn <willemb@google.com>
Cc: linux-stable <stable@vger.kernel.org>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/can/af_can.c