Received: by 2002:ac0:aed5:0:0:0:0:0 with SMTP id t21csp5198338imb; Thu, 7 Mar 2019 09:50:44 -0800 (PST) X-Google-Smtp-Source: APXvYqxVPL5nW6c0TGIS6imVgQ4j8rbFkIRLgdl95J5N4BDpZ0IUP2BJ+hTGD7FGZ7MqoZTXZT6o X-Received: by 2002:aa7:8a0a:: with SMTP id m10mr13851243pfa.129.1551981043986; Thu, 07 Mar 2019 09:50:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551981043; cv=none; d=google.com; s=arc-20160816; b=RSXZV+3kZk+RPBYEBj0MQPVRpV6ne2wgNOuXq2Mxsg/aT+LiGVckWDbBiDJFqxbAgG 81VPj6cTfF1nZHr4o2j3UVqrIjpHoDmKlFGYQD57GN4eqwKyMQXeL/jE6FGeg7l9jIUF kzguo3eAYiWk7AfwnkYPHm3yW2rYwTnfg5dUB91BXFG/4DEz2r+DH+Ya6k9xRrfY6raS mMmj7HMjMBLArKTUnVh0kqJhR3NqDdJO/NOeKtC8fB8NUNtg7/AcSzxAnSxbCFbXLTze NWi2JWXmN90MrdfWb4bwl+UXSycB2708eqsGtnPhGrsBVDIwe2lh86BoZS+LI+mxz6cp a3Zw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=6ghKtnVBoDroLX7UVl1KrnOuRQZ/CsTVRox/BQ4Gn2s=; b=ZEJsSskjEeqpWM8nbSAG6iJViWIQFUNsFDiA8exhEETvEDTd+IjMBsiM3wGICpejF/ Mve6UXMuSZHQ0pFaDA2rhUy7g1UmvlFBraajy2KbMHkTCIVb8K5aQNUjrPduKOb9Y0cP lJ2EWGm3hyCDLd2TYER6RHN/p7LkVRgL7q3molJBi2NLWcvcf/axwFLiKykTNFvAyGkW KmIZQPV+5OaQhuU0IcqSrn7sFKtlFCZwl01VynGW6JDrrqOhMVyWWDBinLpntYs4jQ6x QN2MjyUwjmaIMhnqMAjZMwtduVUNGuWXp1DChLDQJuQghMx/J5VznouS2k3eNo+wHf53 G+RA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=RIcG9CkC; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d23si4778256pfm.181.2019.03.07.09.50.28; Thu, 07 Mar 2019 09:50:43 -0800 (PST) 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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=RIcG9CkC; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727048AbfCGRuJ (ORCPT + 99 others); Thu, 7 Mar 2019 12:50:09 -0500 Received: from mail-qt1-f194.google.com ([209.85.160.194]:42679 "EHLO mail-qt1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726741AbfCGRuH (ORCPT ); Thu, 7 Mar 2019 12:50:07 -0500 Received: by mail-qt1-f194.google.com with SMTP id u7so18103291qtg.9; Thu, 07 Mar 2019 09:50:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=6ghKtnVBoDroLX7UVl1KrnOuRQZ/CsTVRox/BQ4Gn2s=; b=RIcG9CkCNIGxCTqh7D0bn1YWNcKwPX23Z7HulZ5RLcnmH0wfDm07x0vuq4lPwO3gct ojlRcsUMEO2DppexGnAtfiCdbUXDChWRIg7HjHSM190D/Tf0FLejqPZO18l0P+tiX7Yn ekqCsywyNnNxHUFhTRCd2Q3omMTEkQ9+f0TizmxhBzeC5OtTbZFd/CRpPIO9o4xSXN24 CJ9jNC4nDD0g9CN/o0D6AKrsLkc67Vu5GJPLiLAivmt3GBtkw3HePDuM5GWwYIDB5mo+ Jf5bSYGXMW9sgzTJJtIogGTShAosFUp/wOTcDvuomN9QQgyTrArq/2wKOTLmYwsDLZ+W wLiQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=6ghKtnVBoDroLX7UVl1KrnOuRQZ/CsTVRox/BQ4Gn2s=; b=qa8NQz2yqebIvQp9DSPmWKSj7dGNHksBrRKhOA9wFCM3yH6id/lGW7virB3s45kofb 18s2N7vkSDFebv43UjCjqB5XmAhU40PxxnbDqiaqzuB5f6vV/lh9bDufHPVJMF37GRsf nBNRk78dK4nVr6etFOfSIKCfI61dGHaCen8fy1Dtq4ZyckYj6j5/q0F4uhJofJlAFbK6 yE5nk2idTxmxreDhDqtQ/w/EXFjmMCKbHS0IM4zDW0FeBKnr7y2l4f6EcRGjwxFPP5Go Wxln2rOIdNKs21+2hOw8X5o+nxQGHmd1iiKWp/KvGfmtj4RyRO84ZWYl+qn+gC0Bj0xz c8vg== X-Gm-Message-State: APjAAAWLJxbGiR3sVs7sDsDyE/PGNvmS7cexAZ/GuOVh7UKy0PbcCP9u rVoC9EdnJNPlX9Au2VQVbaI= X-Received: by 2002:aed:21cb:: with SMTP id m11mr10925392qtc.257.1551981005317; Thu, 07 Mar 2019 09:50:05 -0800 (PST) Received: from localhost.localdomain ([2001:1284:f013:3791:2e0d:70cd:9752:703c]) by smtp.gmail.com with ESMTPSA id b83sm2950377qkg.12.2019.03.07.09.50.04 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 07 Mar 2019 09:50:04 -0800 (PST) Received: by localhost.localdomain (Postfix, from userid 1000) id 05225180B7B; Thu, 7 Mar 2019 14:50:01 -0300 (-03) Date: Thu, 7 Mar 2019 14:50:01 -0300 From: Marcelo Ricardo Leitner To: Neil Horman Cc: Xin Long , syzbot , davem , LKML , linux-sctp@vger.kernel.org, network dev , syzkaller-bugs , Vlad Yasevich Subject: Re: general protection fault in sctp_sched_rr_dequeue Message-ID: <20190307175001.GA13515@localhost.localdomain> References: <000000000000cc734405836318dc@google.com> <20190306120310.GA6711@hmswarspite.think-freely.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190306120310.GA6711@hmswarspite.think-freely.org> User-Agent: Mutt/1.11.3 (2019-02-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Mar 06, 2019 at 07:03:10AM -0500, Neil Horman wrote: > On Wed, Mar 06, 2019 at 06:43:48PM +0800, Xin Long wrote: > > On Wed, Mar 6, 2019 at 9:42 AM syzbot > > wrote: > > > > > > Hello, > > > > > > syzbot found the following crash on: > > > > > > HEAD commit: 63bdf4284c38 Merge branch 'linus' of git://git.kernel.org/.. > > > git tree: upstream > > > console output: https://syzkaller.appspot.com/x/log.txt?x=100347cb200000 > > > kernel config: https://syzkaller.appspot.com/x/.config?x=872be05707464aaa > > > dashboard link: https://syzkaller.appspot.com/bug?extid=4c9934f20522c0efd657 > > > compiler: gcc (GCC) 9.0.0 20181231 (experimental) > > > syz repro: https://syzkaller.appspot.com/x/repro.syz?x=11cd9b03200000 > > > C reproducer: https://syzkaller.appspot.com/x/repro.c?x=127de8e7200000 > > > > > > IMPORTANT: if you fix the bug, please add the following tag to the commit: > > > Reported-by: syzbot+4c9934f20522c0efd657@syzkaller.appspotmail.com > > > > > > kauditd_printk_skb: 2 callbacks suppressed > > > audit: type=1400 audit(1551833288.424:35): avc: denied { map } for > > > pid=8035 comm="bash" path="/bin/bash" dev="sda1" ino=1457 > > > scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 > > > tcontext=system_u:object_r:file_t:s0 tclass=file permissive=1 > > > audit: type=1400 audit(1551833294.934:36): avc: denied { map } for > > > pid=8047 comm="syz-executor778" path="/root/syz-executor778173561" > > > dev="sda1" ino=16484 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 > > > tcontext=unconfined_u:object_r:user_home_t:s0 tclass=file permissive=1 > > > kasan: CONFIG_KASAN_INLINE enabled > > > kasan: GPF could be caused by NULL-ptr deref or user memory access > > > general protection fault: 0000 [#1] PREEMPT SMP KASAN > > > CPU: 1 PID: 8047 Comm: syz-executor778 Not tainted 5.0.0+ #7 > > > Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS > > > Google 01/01/2011 > > > RIP: 0010:sctp_sched_rr_dequeue+0xd3/0x170 net/sctp/stream_sched_rr.c:141 > > The panic was caused by sched->init() reset stream->rr_next = NULL, even > > if outq->out_chunk_list is not empty. > > > > We should remove the sched->init() from sctp_stream_init(), since > > all sched info was moved into sout->ext and sctp_stream_alloc_out() > > will not afffect it. > > > I think what you're saying is we can just let sctp_outq_init handle the stream > scheduler initalization, correct? If so, ACK to that approach > Neil +1 Marcelo