From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753562AbcKITYZ (ORCPT ); Wed, 9 Nov 2016 14:24:25 -0500 Received: from mail-vk0-f43.google.com ([209.85.213.43]:36497 "EHLO mail-vk0-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750917AbcKITYW (ORCPT ); Wed, 9 Nov 2016 14:24:22 -0500 MIME-Version: 1.0 In-Reply-To: References: From: Andrey Konovalov Date: Wed, 9 Nov 2016 20:24:20 +0100 Message-ID: Subject: Re: net/sctp: null-ptr-deref in sctp_inet_listen To: syzkaller Cc: Vlad Yasevich , Neil Horman , "David S. Miller" , linux-sctp@vger.kernel.org, netdev , LKML , Dmitry Vyukov , Alexander Potapenko , Kostya Serebryany , Eric Dumazet , Marcelo Ricardo Leitner Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Nov 9, 2016 at 4:32 AM, Xin Long wrote: > this fix may break TYPE_SCTP_PRIMITIVE_SHUTDOWN statetable, > could you give the following one a try ? thanks. This one also works. Thanks. > > --- a/net/sctp/socket.c > +++ b/net/sctp/socket.c > @@ -4288,9 +4288,9 @@ static void sctp_shutdown(struct sock *sk, int how) > return; > > if (how & SEND_SHUTDOWN) { > - sk->sk_state = SCTP_SS_CLOSING; > ep = sctp_sk(sk)->ep; > if (!list_empty(&ep->asocs)) { > + sk->sk_state = SCTP_SS_CLOSING; > asoc = list_entry(ep->asocs.next, > struct sctp_association, asocs); > sctp_primitive_SHUTDOWN(net, asoc, NULL); > > -- > You received this message because you are subscribed to the Google Groups "syzkaller" group. > To unsubscribe from this group and stop receiving emails from it, send an email to syzkaller+unsubscribe@googlegroups.com. > For more options, visit https://groups.google.com/d/optout.