Received: by 10.223.164.200 with SMTP id h8csp37520wrb; Sun, 5 Nov 2017 02:27:57 -0800 (PST) X-Google-Smtp-Source: ABhQp+ShNPGuB6Y0wjo9ZGlwmgE0YU+rn7R8vf2NqKET2JhCPxJEQilJ9GR8T6nxKZLczBWPqOV+ X-Received: by 10.99.183.67 with SMTP id w3mr12146214pgt.329.1509877677778; Sun, 05 Nov 2017 02:27:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1509877677; cv=none; d=google.com; s=arc-20160816; b=sqK1mWLoRL6ZvQQQdcq+8gIeWwG8HHsnnHFbC+xerdOISylq9OrjTKcf4JuE4MAkTL +ElGvbp11aC1MqfWXptGI0avUD7PFeohuxQiTW9OwG9TQHAUl4kvlIwNVE9NQTyGybNk jSPkOl1HaUSz9ZKC5vmk5fpRPUoJLUexpa2eEvFvLKVkiC8U4WWoo/qfOqUOIib/+aZ8 eHHS4yvLcH7IpNquOQOAY90s3bA+0enzFN/W/7X57XiY81WhqH1nw6Idmwj+RRQ7731f u7NVuSZiJnZRjTY/q7rg78RCtmuk60bDiuyYO6tovYwcx3DYq0E7RGJam9xw+F5iL8By 56FQ== 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 :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=pCtAbk2RJzgHs1Y2k7KVOmpz58kPRmpEXpWuxPt4gvE=; b=JQBm5LrXXIgu0gPnCWXAbwM+JULO6qQwni99zXM8d2FjRliel0wJv5+3YLT1nVxe0Q oPdgBgQCuh7s4oO6RH0KV2jEpswq5u/3KxTiYmEw49GWVO5+2rPuvPLMAOXRhzZNjJ6c dVdGV+gehi59u1L6RLvQwES4wgQURJP882ruekhF1tBNX/5AGi3MA9DE/MRsF1RLFv9W 2+ZL3cudLS5Qc8M2r6jfNOxID0gFoamMzJZjA0kYeUikGjG42gQMMt4YZw9zwsNonwRn 0DlMgLjRvJrxH6fJa/odAogEmY8DiAzxjZajmnABIddotw3t8T7jeRN92rFrq/Coz+l8 BwbA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=b5+tSNTD; 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=NONE 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 y38si8422336plh.61.2017.11.05.02.27.44; Sun, 05 Nov 2017 02:27:57 -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=b5+tSNTD; 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=NONE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752535AbdKEKZc (ORCPT + 96 others); Sun, 5 Nov 2017 05:25:32 -0500 Received: from mail-qt0-f181.google.com ([209.85.216.181]:51783 "EHLO mail-qt0-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750955AbdKEKZa (ORCPT ); Sun, 5 Nov 2017 05:25:30 -0500 Received: by mail-qt0-f181.google.com with SMTP id h4so7813863qtk.8; Sun, 05 Nov 2017 02:25:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=pCtAbk2RJzgHs1Y2k7KVOmpz58kPRmpEXpWuxPt4gvE=; b=b5+tSNTDCzq3cC9gZVsrmBntAK3U0UOsyAjaUfZ7DSHrKstebrLF5HqtvQ2mTPLimb IXX5QgqZtZdQ1kIilXSZ/Nqpb8m3MWCdXn4cbjEWD+GXs1mGoSTTiJ2AuEExMZVqpW8B I5oJDA0K3m3reouBC4B9wV4zr9stWE2ZUTL7SjrDY/u2tiOP5VbzC60Ug9RqNt4Pg91A eKwytv7jC+M1EIt+9EeOqvtcxJakIZj/tGjnJbVxuN7jQc0TSWUQiiiA48WJPURi3xq3 7lDXddh4suvyHBOZ4+l91go0yCD8U2vlAMOrblkCniKaQRwRXPk1aokLBENZQSJ8o8nz xh0Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=pCtAbk2RJzgHs1Y2k7KVOmpz58kPRmpEXpWuxPt4gvE=; b=jIcMh62QGnBJ44MIgADMFw2lK2O3uS6k0X7dfLZV1RyK00A1y9R/cT9jQxiygcom9L yvs4vDt8n376GZwWoN1DliHoT9osa7BCFgVIISW3ku1rF02OjvDpPVzs62Rblp50qNJw BQOxXlL5RjWHTtI+9K32kwe8rc7kcu7xgCDcIK863MUgnQ5YrpmkvzSSlkY3+8T8cuVM nVBvoHMLJheIzpixdBxBJRpyDq/fcbvhntgNnEiD4h7yVnyS8brACzV9SgAdbCLsI0xL lcQYZ98aTo9g472O5VcBgIqwBEUJvul6OqdVBbv387ZfO0wzx5SeS364l+19zVAsvVPM nv+g== X-Gm-Message-State: AMCzsaUA/TqQ8soyMV9aQctY2+6F8ZxZh3tiir81wuhl2cGWHphsBVdx 7rAvJO6C3fbsl90y01qurPfkLgd7J9Rsoc+r5x0= X-Received: by 10.200.44.133 with SMTP id 5mr17788994qtw.169.1509877529189; Sun, 05 Nov 2017 02:25:29 -0800 (PST) MIME-Version: 1.0 Received: by 10.140.83.210 with HTTP; Sun, 5 Nov 2017 02:25:28 -0800 (PST) In-Reply-To: <001a1149c712d56ccc055cc48e37@google.com> References: <001a1149c712d56ccc055cc48e37@google.com> From: Xin Long Date: Sun, 5 Nov 2017 18:25:28 +0800 Message-ID: Subject: Re: kernel BUG at net/core/skbuff.c:LINE! (2) To: syzbot Cc: davem , LKML , linux-sctp@vger.kernel.org, network dev , Neil Horman , syzkaller-bugs@googlegroups.com, 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 Mon, Oct 30, 2017 at 10:36 PM, syzbot wrote: > Hello, > > syzkaller hit the following crash on > c69fe407803d4b554b7397fad9598a04717ac255 > git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git/master > compiler: gcc (GCC) 7.1.1 20170620 > .config is attached > Raw console output is attached. > > > > > sctp: [Deprecated]: syz-executor0 (pid 12122) Use of struct sctp_assoc_value > in delayed_ack socket option. > Use struct sctp_sack_info instead > skbuff: skb_over_panic: text:ffffffff848208a3 len:213348 put:213008 > head:ffff8801c99c2140 data:ffff8801c99c21f8 tail:0x3421c end:0x7ec0 > dev: 'put:213008' is buggy. we need to check strreset_req chunk, that's the only chunk I could see may exceed SCTP_MAX_CHUNK_LEN. --- a/net/sctp/sm_make_chunk.c +++ b/net/sctp/sm_make_chunk.c @@ -3603,6 +3603,9 @@ struct sctp_chunk *sctp_make_strreset_req( outlen = (sizeof(outreq) + stream_len) * out; inlen = (sizeof(inreq) + stream_len) * in; + if (outlen + inlen > SCTP_MAX_CHUNK_LEN - sizeof(struct sctp_chunkhdr)) + return NULL; + > ------------[ cut here ]------------ > kernel BUG at net/core/skbuff.c:105! > invalid opcode: 0000 [#1] SMP KASAN > Dumping ftrace buffer: > (ftrace buffer empty) > Modules linked in: > CPU: 1 PID: 12167 Comm: syz-executor5 Not tainted 4.14.0-rc5+ #100 > Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS > Google 01/01/2011 > task: ffff8801cd7ba3c0 task.stack: ffff8801c1fc0000 > RIP: 0010:skb_panic+0x15c/0x1f0 net/core/skbuff.c:101 > RSP: 0018:ffff8801c1fc63a8 EFLAGS: 00010286 > RAX: 0000000000000092 RBX: ffff8801a91dc680 RCX: 0000000000000000 > RDX: 0000000000000092 RSI: ffffffff8158d77e RDI: ffffed00383f8c69 > RBP: ffff8801c1fc6410 R08: 0000000000000000 R09: 1ffff100383f8c17 > R10: 000000006d0a2354 R11: ffffffff85b2cc98 R12: ffffffff853bcca0 > R13: ffffffff848208a3 R14: 0000000000034010 R15: ffffffff853bc4e0 > FS: 00007fbe84337700(0000) GS:ffff8801db300000(0000) knlGS:0000000000000000 > CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 > CR2: 0000000020001f68 CR3: 00000001c9045000 CR4: 00000000001406e0 > DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 > DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 > Call Trace: > skb_over_panic net/core/skbuff.c:110 [inline] > skb_put+0x181/0x1c0 net/core/skbuff.c:1699 > skb_put_data include/linux/skbuff.h:2047 [inline] > sctp_packet_pack net/sctp/output.c:472 [inline] > sctp_packet_transmit+0x1183/0x3750 net/sctp/output.c:605 > sctp_outq_flush+0x1216/0x4050 net/sctp/outqueue.c:1191 > sctp_outq_uncork+0x5a/0x70 net/sctp/outqueue.c:772 > sctp_cmd_interpreter net/sctp/sm_sideeffect.c:1822 [inline] > sctp_side_effects net/sctp/sm_sideeffect.c:1222 [inline] > sctp_do_sm+0x50e/0x6a30 net/sctp/sm_sideeffect.c:1193 > sctp_assoc_bh_rcv+0x283/0x4b0 net/sctp/associola.c:1065 > sctp_inq_push+0x23b/0x300 net/sctp/inqueue.c:95 > sctp_backlog_rcv+0x177/0xaa0 net/sctp/input.c:350 > sk_backlog_rcv include/net/sock.h:912 [inline] > __release_sock+0x124/0x360 net/core/sock.c:2266 > release_sock+0xa4/0x2a0 net/core/sock.c:2778 > sctp_wait_for_connect+0x346/0x570 net/sctp/socket.c:8099 > sctp_sendmsg+0x29fd/0x32b0 net/sctp/socket.c:2009 > inet_sendmsg+0x11f/0x5e0 net/ipv4/af_inet.c:763 > sock_sendmsg_nosec net/socket.c:633 [inline] > sock_sendmsg+0xca/0x110 net/socket.c:643 > SYSC_sendto+0x352/0x5a0 net/socket.c:1750 > SyS_sendto+0x40/0x50 net/socket.c:1718 > entry_SYSCALL_64_fastpath+0x1f/0xbe > RIP: 0033:0x452869 > RSP: 002b:00007fbe84336be8 EFLAGS: 00000212 ORIG_RAX: 000000000000002c > RAX: ffffffffffffffda RBX: 0000000000758020 RCX: 0000000000452869 > RDX: 0000000000034000 RSI: 0000000020c9bfff RDI: 0000000000000013 > RBP: 0000000000000000 R08: 0000000020a46000 R09: 000000000000001c > R10: 0000000000000000 R11: 0000000000000212 R12: 0000000000000000 > R13: 0000000000a6f7ff R14: 00007fbe843379c0 R15: 0000000000000000 > Code: 03 0f b6 04 01 84 c0 74 04 3c 03 7e 20 8b 4b 78 41 57 48 c7 c7 20 c5 > 3b 85 52 56 4c 89 ea 41 50 4c 89 e6 45 89 f0 e8 b9 19 77 fd <0f> 0b 4c 89 4d > b8 4c 89 45 c0 48 89 75 c8 48 89 55 d0 e8 6d 4b > RIP: skb_panic+0x15c/0x1f0 net/core/skbuff.c:101 RSP: ffff8801c1fc63a8 > ---[ end trace 6beb4fe15730f020 ]--- > > > --- > This bug is generated by a dumb bot. It may contain errors. > See https://goo.gl/tpsmEJ for details. > Direct all questions to syzkaller@googlegroups.com. > > syzbot will keep track of this bug report. > Once a fix for this bug is committed, please reply to this email with: > #syz fix: exact-commit-title > To mark this as a duplicate of another syzbot report, please reply with: > #syz dup: exact-subject-of-another-report > If it's a one-off invalid bug report, please reply with: > #syz invalid > Note: if the crash happens again, it will cause creation of a new bug > report. From 1586529268624011582@xxx Mon Dec 11 22:43:35 +0000 2017 X-GM-THRID: 1586451333708271213 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread