Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp1192732ybn; Wed, 2 Oct 2019 12:13:22 -0700 (PDT) X-Google-Smtp-Source: APXvYqx8WWhhWt2Ahw8as7hLjDGiRPOE1C4H9PZI2XiY4RZ78liW4LBdXLH0qLJ0NCkMZBcdmit+ X-Received: by 2002:a50:cf8b:: with SMTP id h11mr5304404edk.236.1570043602225; Wed, 02 Oct 2019 12:13:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570043602; cv=none; d=google.com; s=arc-20160816; b=owjz6p8nvQcxdPUxCL7Fwzzmvg9IkMgFhXYOKB6G2Kat7i7KCG86xE+uy0l66FUIQi rLga56zoQ/KBfngP5UE00ZsqjxauI2bhbauaoRUYUEqK/Bpi6+G75DRvQPo84reYBZI/ GYB9F1RB1rfypzO9aSXnkr6QeL3dauXBOS+B1vRoiCiUN5wASg7HuCeUuoTu+LoSunDH N9CtOWYexK4G9PwZj9SO7A51AeKuKBOcj3xrqnWdYIQ0u2h677CW09yXk4E7DnzKLzni OuqE1kM4yqIJQ/kaOni+7IBvr7x+96KL0c/MF9O4bU/zx/bIosv8GWwkHCLq32sjWOri nHCA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:subject:message-id:date:cc:to :from:mime-version:content-transfer-encoding:content-disposition; bh=MCuJZzprvis27Ic4UdVeIZ93Xkzk4grCLpcd3XHvXOI=; b=pWHRG2KkQMosaYtB+A1TpiuOW+hjqH+ThfeweQEWid4VhK1O2AQjmLXP23asSELiG6 6Rv0usK+oIWPCBBPokkapt/FuXWY3ccuBSMZNCKEwbu+1novae4Ua9xEymE/KcGfeRJK 9xby/crzrnohb2Bqx6lUuwqkAmkSgL0oO2s4gIYCe2/igt4jCYbn688Bbs2qRXW6tpR9 g+zhtR5C27+qZ8dZOGXr1EmVho6qb2dx1WKZYfWxWHZOWYifbWdrJxtPaPU4C3CcCy+I D+0D3po3i7/4bOfU+q9TjaK9ttx4zny/ZNL+hXD1oEaXvU9H7tMGgv6iut8msZfN+ALC yagg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h91si19702edd.270.2019.10.02.12.12.58; Wed, 02 Oct 2019 12:13:22 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729452AbfJBTLq (ORCPT + 99 others); Wed, 2 Oct 2019 15:11:46 -0400 Received: from shadbolt.e.decadent.org.uk ([88.96.1.126]:35598 "EHLO shadbolt.e.decadent.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729212AbfJBTIM (ORCPT ); Wed, 2 Oct 2019 15:08:12 -0400 Received: from [192.168.4.242] (helo=deadeye) by shadbolt.decadent.org.uk with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iFjyr-000366-G9; Wed, 02 Oct 2019 20:08:09 +0100 Received: from ben by deadeye with local (Exim 4.92.1) (envelope-from ) id 1iFjyo-0003dx-Lc; Wed, 02 Oct 2019 20:08:06 +0100 Content-Type: text/plain; charset="UTF-8" Content-Disposition: inline Content-Transfer-Encoding: 8bit MIME-Version: 1.0 From: Ben Hutchings To: linux-kernel@vger.kernel.org, stable@vger.kernel.org CC: akpm@linux-foundation.org, Denis Kirjanov , "Willem de Bruijn" , syzbot+a90604060cb40f5bdd16@syzkaller.appspotmail.com, "Marc Kleine-Budde" Date: Wed, 02 Oct 2019 20:06:51 +0100 Message-ID: X-Mailer: LinuxStableQueue (scripts by bwh) X-Patchwork-Hint: ignore Subject: [PATCH 3.16 51/87] can: purge socket error queue on sock destruct In-Reply-To: X-SA-Exim-Connect-IP: 192.168.4.242 X-SA-Exim-Mail-From: ben@decadent.org.uk X-SA-Exim-Scanned: No (on shadbolt.decadent.org.uk); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 3.16.75-rc1 review patch. If anyone has any objections, please let me know. ------------------ From: Willem de Bruijn 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 Signed-off-by: Marc Kleine-Budde Signed-off-by: Ben Hutchings --- net/can/af_can.c | 1 + 1 file changed, 1 insertion(+) --- a/net/can/af_can.c +++ b/net/can/af_can.c @@ -114,6 +114,7 @@ EXPORT_SYMBOL(can_ioctl); static void can_sock_destruct(struct sock *sk) { skb_queue_purge(&sk->sk_receive_queue); + skb_queue_purge(&sk->sk_error_queue); } static const struct can_proto *can_get_proto(int protocol)