Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp1627203ybl; Sun, 18 Aug 2019 07:14:40 -0700 (PDT) X-Google-Smtp-Source: APXvYqxieG7Y0o+g6GwyKUaVNp/rIjCngmNJXCC1qBP1OCvkWl50bE7zB8AwGB0q1oDRklzepUQ1 X-Received: by 2002:a17:902:9b94:: with SMTP id y20mr18278431plp.260.1566137680424; Sun, 18 Aug 2019 07:14:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566137680; cv=none; d=google.com; s=arc-20160816; b=rWRsxDRAy6BcBV5VixqcbIxFy6f4jvPiOVuS/V4EzlamQYjjVJGqN6GRk1OBwi/FDH PBeCHyswrokjKFehI53ESqK3VDHYq71AfulV1UBy9dHlvFvha3kFYg0vbLQbyw/HMdlh 3cxbaduAVKjKzq9IPpUP9MqbZCN8lwJo3YzavWV3f/rP/h/G3Aph9SLuLPLKEzXdoH6G OHMcd+WwfN0rlWbG3DraStpK8B4VCV+vrW+AMA4eYGTvgig2N/AVGrfR13Y6kJjFI5Jb MDvVeicBVJnnMEZU/ZfOGiz7TyFdFUbpPdC3csG+Ur1/edT2Ipwk6LNJbWEEeHJ04uB3 6DcQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=KaGRWCANB9CA0IL07BKaXhZJ03Mhrd5EdLm0P90aJ6E=; b=pa6KJN1/RsXumbpUirDe3JAxBWf6pRbUwEzvBUxA4P2upJLkKW9tapLsCcE1eUENvG Zqj5VSAOQYJ70vfPR4kEb5F0/PRMBvAzpcHolao8Uc/TxuZTMsjwB0P3rujWqSo/5cej GqV60wLLzfKdf1CmfZeuzX9Yia2DCVAgk0W2ZBodsxTwt01TjTbH6Ruernah8wQaWbHk 8cumtVmpLBbxgz90jwWLNOF8dtM6cTQsddBdi80CdLzCzPEvOuoZentpfRO0JkRf5ngM iUE/FqFxrhEVwSlWxUjo7Aa/HHQAu/wbizuK/Xnf5mNlsnj73WLsJH83hgAR39QFCPxk 3BrA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=tMZOd+U+; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f15si8509830pfn.41.2019.08.18.07.14.25; Sun, 18 Aug 2019 07:14:40 -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; dkim=pass header.i=@google.com header.s=20161025 header.b=tMZOd+U+; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726760AbfHRONh (ORCPT + 99 others); Sun, 18 Aug 2019 10:13:37 -0400 Received: from mail-io1-f65.google.com ([209.85.166.65]:37746 "EHLO mail-io1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726097AbfHRONh (ORCPT ); Sun, 18 Aug 2019 10:13:37 -0400 Received: by mail-io1-f65.google.com with SMTP id q22so15420864iog.4 for ; Sun, 18 Aug 2019 07:13:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=KaGRWCANB9CA0IL07BKaXhZJ03Mhrd5EdLm0P90aJ6E=; b=tMZOd+U+SdcFRbmmTVkjpprdnQKI8xxNqqbKzQ2w5H9AMloaZQsI+4jW5hbmBYwcm3 82FUYnGRoyQgUc4Wf6c6/4GhUIMpnz6KJ5mZ52mhMALJo3BJnP/cVexV+r9RO5Vl0qhv nMu+mPhhDGFL8IvtmTKKvGAlcjAgLwkOAnT7ZvpYvv1Xi1Nm1hiYLwEkJjy//Dfgj68H 6omJJo+2HOjD/QQwxFPXh5kCBcx3N64m/HFHx18Jl6GxSACYSbkPSx+pjSoF90IXwyrg cRfFMZ8jypJn4CNBrHZMQEkjNq6dDtg/I8eRLZ0TjAWJWwwRcBw5A9kGXYIJxr/AFgdr FKIw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=KaGRWCANB9CA0IL07BKaXhZJ03Mhrd5EdLm0P90aJ6E=; b=SYaAepGW62U/w0dcKpb7DUpMbRaobwSuliq9SjGeUVJ5yzbjCALhpyPH2aOmeycNy0 TWNYMqAdTJbyKo5Ghm49UdQSvTUBpMnDFCYXCN3CQgZVBXv0JCtnn5LClPOh1RS9Dkng uoAyzAanQRK5ESo5+FLF/3Pi0qam4lrppojoBiYUaCOzKwnMzBU0NWpZWHejeVAhb2SW CuKEjKfVeb1GeCm9ysVbBKrTwTYFpqCCrRJjgLI5w06B0EPq99qJZ4w2NZ3QuOBI2qlg NuhKalH7Ys3M8N6vh03r5I5fDvsDwo0InZUfPCpICzWHbh1hYeu08Ba9NHhr/HYdDHnD M1aA== X-Gm-Message-State: APjAAAVXRngroxk95+VhfvcPF7ELIbkKjNCuXsYxvDTOzCMTi+uqg46C jQe2lAzupY3u8u0AD780ve2xB5xTa1YaO1B5YQlF+g== X-Received: by 2002:a05:6638:45:: with SMTP id a5mr19186887jap.61.1566137616303; Sun, 18 Aug 2019 07:13:36 -0700 (PDT) MIME-Version: 1.0 References: <0000000000008182a50590404a02@google.com> In-Reply-To: From: Dmitry Vyukov Date: Sun, 18 Aug 2019 07:13:22 -0700 Message-ID: Subject: Re: kernel BUG at include/linux/skbuff.h:LINE! (2) To: Xin Long Cc: syzbot , davem , LKML , linux-sctp@vger.kernel.org, Marcelo Ricardo Leitner , network dev , Neil Horman , syzkaller-bugs , Vlad Yasevich Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Aug 18, 2019 at 7:07 AM Xin Long wrote: > > On Sat, Aug 17, 2019 at 2:38 AM syzbot > wrote: > > > > Hello, > > > > syzbot found the following crash on: > > > > HEAD commit: 459c5fb4 Merge branch 'mscc-PTP-support' > > git tree: net-next > > console output: https://syzkaller.appspot.com/x/log.txt?x=13f2d33c600000 > > kernel config: https://syzkaller.appspot.com/x/.config?x=d4cf1ffb87d590d7 > > dashboard link: https://syzkaller.appspot.com/bug?extid=eb349eeee854e389c36d > > compiler: gcc (GCC) 9.0.0 20181231 (experimental) > > syz repro: https://syzkaller.appspot.com/x/repro.syz?x=111849e2600000 > > C reproducer: https://syzkaller.appspot.com/x/repro.c?x=1442c25a600000 > > > > IMPORTANT: if you fix the bug, please add the following tag to the commit: > > Reported-by: syzbot+eb349eeee854e389c36d@syzkaller.appspotmail.com > > > > ------------[ cut here ]------------ > > kernel BUG at include/linux/skbuff.h:2225! > > invalid opcode: 0000 [#1] PREEMPT SMP KASAN > > CPU: 0 PID: 9030 Comm: syz-executor649 Not tainted 5.3.0-rc3+ #134 > > Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS > > Google 01/01/2011 > > RIP: 0010:__skb_pull include/linux/skbuff.h:2225 [inline] > > RIP: 0010:__skb_pull include/linux/skbuff.h:2222 [inline] > > RIP: 0010:skb_pull_inline include/linux/skbuff.h:2231 [inline] > > RIP: 0010:skb_pull+0xea/0x110 net/core/skbuff.c:1902 > > Code: 9d c8 00 00 00 49 89 dc 49 89 9d c8 00 00 00 e8 9c e5 dd fb 4c 89 e0 > > 5b 41 5c 41 5d 41 5e 5d c3 45 31 e4 eb ea e8 86 e5 dd fb <0f> 0b e8 df 13 > > 18 fc e9 44 ff ff ff e8 d5 13 18 fc eb 8a e8 ee 13 > > RSP: 0018:ffff88808ac96e10 EFLAGS: 00010293 > > RAX: ffff88809c546000 RBX: 0000000000000004 RCX: ffffffff8594a3a6 > > RDX: 0000000000000000 RSI: ffffffff8594a3fa RDI: 0000000000000004 > > RBP: ffff88808ac96e30 R08: ffff88809c546000 R09: fffffbfff14a8f4f > > R10: fffffbfff14a8f4e R11: ffffffff8a547a77 R12: 0000000095e28bcc > > R13: ffff88808ac97478 R14: 00000000ffff8880 R15: ffff88808ac97478 > > FS: 0000555556549880(0000) GS:ffff8880ae800000(0000) knlGS:0000000000000000 > > CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 > > CR2: 0000000020000100 CR3: 0000000089c3c000 CR4: 00000000001406f0 > > Call Trace: > > sctp_inq_pop+0x2f1/0xd80 net/sctp/inqueue.c:202 > > sctp_endpoint_bh_rcv+0x184/0x8d0 net/sctp/endpointola.c:385 > > sctp_inq_push+0x1e4/0x280 net/sctp/inqueue.c:80 > > sctp_rcv+0x2807/0x3590 net/sctp/input.c:256 > > sctp6_rcv+0x17/0x30 net/sctp/ipv6.c:1049 > > ip6_protocol_deliver_rcu+0x2fe/0x1660 net/ipv6/ip6_input.c:397 > > ip6_input_finish+0x84/0x170 net/ipv6/ip6_input.c:438 > > NF_HOOK include/linux/netfilter.h:305 [inline] > > NF_HOOK include/linux/netfilter.h:299 [inline] > > ip6_input+0xe4/0x3f0 net/ipv6/ip6_input.c:447 > > dst_input include/net/dst.h:442 [inline] > > ip6_sublist_rcv_finish+0x98/0x1e0 net/ipv6/ip6_input.c:84 > Looks skb_list_del_init() should be called in ip6_sublist_rcv_finish, > as does in ip_sublist_rcv_finish(). This was recently introduced, right? Only in net-next and linux-next. Otherwise, is it a remote DoS? If so and if it's present in any releases, may need a CVE.