kernel BUG at net/core/skbuff.c:LINE!

46 views
Skip to first unread message

syzbot

unread,
Apr 10, 2019, 8:00:21 PM4/10/19
to syzkaller-a...@googlegroups.com
Hello,

syzbot found the following crash on:

HEAD commit: 47350a9f ANDROID: x86_64_cuttlefish_defconfig: Enable lz4 ..
git tree: android-4.14
console output: https://syzkaller.appspot.com/x/log.txt?x=129fc951400000
kernel config: https://syzkaller.appspot.com/x/.config?x=10d236078f3378a3
dashboard link: https://syzkaller.appspot.com/bug?extid=15a9a8d8299e821435ae
compiler: gcc (GCC) 8.0.1 20180413 (experimental)
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=129b3cb2400000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=134d6e3e400000

IMPORTANT: if you fix the bug, please add the following tag to the commit:
Reported-by: syzbot+15a9a8...@syzkaller.appspotmail.com

random: sshd: uninitialized urandom read (32 bytes read)
random: sshd: uninitialized urandom read (32 bytes read)
random: sshd: uninitialized urandom read (32 bytes read)
random: sshd: uninitialized urandom read (32 bytes read)
------------[ cut here ]------------
kernel BUG at net/core/skbuff.c:1455!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN NOPTI
Dumping ftrace buffer:
(ftrace buffer empty)
Modules linked in:
CPU: 0 PID: 1964 Comm: syz-executor691 Not tainted 4.14.67+ #1
task: ffff8801bc1d1780 task.stack: ffff8801c8de0000
RIP: 0010:pskb_expand_head+0xa65/0xb30 net/core/skbuff.c:1455
RSP: 0018:ffff8801c8de7548 EFLAGS: 00010297
RAX: ffff8801bc1d1780 RBX: ffff8801cadf8140 RCX: 0000000001080020
RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffff8801cadf821c
RBP: 0000000001080020 R08: 0000000000000004 R09: ffffed00391dd000
R10: ffffed00391dd000 R11: ffff8801c8ee8003 R12: ffff8801cadf8204
R13: 000000000000003f R14: 0000000000000040 R15: 0000000000000000
FS: 00007f67216b3700(0000) GS:ffff8801dba00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020005700 CR3: 00000001c6472003 CR4: 00000000001606b0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
__pskb_pull_tail+0xca/0x1500 net/core/skbuff.c:1876
pskb_may_pull include/linux/skbuff.h:2111 [inline]
ip6_datagram_recv_specific_ctl+0x1419/0x1710 net/ipv6/datagram.c:715
rawv6_recvmsg+0x90d/0xb40 net/ipv6/raw.c:521
sock_common_recvmsg+0xf3/0x190 net/core/sock.c:2946
sock_recvmsg_nosec net/socket.c:818 [inline]
sock_recvmsg+0xc0/0x100 net/socket.c:825
___sys_recvmsg+0x242/0x510 net/socket.c:2220
__sys_recvmmsg+0x236/0x690 net/socket.c:2328
SYSC_recvmmsg net/socket.c:2409 [inline]
SyS_recvmmsg+0xbf/0x170 net/socket.c:2393
do_syscall_64+0x19b/0x4b0 arch/x86/entry/common.c:289
entry_SYSCALL_64_after_hwframe+0x42/0xb7
RIP: 0033:0x4468d9
RSP: 002b:00007f67216b2da8 EFLAGS: 00000246 ORIG_RAX: 000000000000012b
RAX: ffffffffffffffda RBX: 00000000006dbc38 RCX: 00000000004468d9
RDX: 0000000000000006 RSI: 0000000020006780 RDI: 0000000000000004
RBP: 00000000006dbc30 R08: 0000000020006900 R09: 0000000000000000
R10: 0000000000000002 R11: 0000000000000246 R12: 00000000006dbc3c
R13: 0100000000000000 R14: 00007f67216b39c0 R15: 00000000006dbd2c
Code: e9 49 fa ff ff 4c 89 ef e8 49 a0 27 ff e9 b6 fd ff ff e8 3f a0 27 ff
e9 89 fb ff ff e8 35 a0 27 ff e9 98 fc ff ff e8 6b a7 05 ff <0f> 0b 48 8b
7c 24 18 e8 1f a0 27 ff e9 ff fa ff ff 48 8b 7c 24
RIP: pskb_expand_head+0xa65/0xb30 net/core/skbuff.c:1455 RSP:
ffff8801c8de7548
---[ end trace ef7e4a9084e8db7c ]---


---
This bug is generated by a bot. It may contain errors.
See https://goo.gl/tpsmEJ for more information about syzbot.
syzbot engineers can be reached at syzk...@googlegroups.com.

syzbot will keep track of this bug report. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.
syzbot can test patches for this bug, for details see:
https://goo.gl/tpsmEJ#testing-patches

syzbot

unread,
Apr 11, 2019, 4:44:49 AM4/11/19
to syzkaller-a...@googlegroups.com
Hello,

syzbot found the following crash on:

HEAD commit: c3c51ea3 x86: vdso: Fix leaky vdso linker with CC=clang.
git tree: android-4.4
console output: https://syzkaller.appspot.com/x/log.txt?x=10e97da7800000
kernel config: https://syzkaller.appspot.com/x/.config?x=69a973bb5ca1350a
dashboard link: https://syzkaller.appspot.com/bug?extid=4e061abd11510de9f6c6
compiler: gcc (GCC) 8.0.1 20180413 (experimental)
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=171ad82f800000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=172b9757800000

IMPORTANT: if you fix the bug, please add the following tag to the commit:
Reported-by: syzbot+4e061a...@syzkaller.appspotmail.com

------------[ cut here ]------------
kernel BUG at net/core/skbuff.c:2192!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
Dumping ftrace buffer:
(ftrace buffer empty)
Modules linked in:
CPU: 1 PID: 7712 Comm: syz-executor759 Not tainted 4.4.132-gc3c51ea #47
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS
Google 01/01/2011
task: ffff8801cb108000 task.stack: ffff8801b2c88000
RIP: 0010:[<ffffffff82f3b04a>] [<ffffffff82f3b04a>]
skb_copy_and_csum_bits+0x69a/0x7d0 net/core/skbuff.c:2192
RSP: 0000:ffff8801db307260 EFLAGS: 00010206
RAX: ffff8801cb108000 RBX: 0000000099babfd0 RCX: 1ffff1003713ddf9
RDX: 0000000000000100 RSI: ffffffff82f3b04a RDI: ffff8801b89eefc8
RBP: ffff8801db3072e0 R08: 0000000000000000 R09: 0000000000000000
R10: 000000000000003c R11: ffff8801b96c9ddf R12: 0000000000000000
R13: 0000000000000224 R14: 0000000000000000 R15: ffff8801b89eefc0
FS: 00007f55c074a700(0000) GS:ffff8801db300000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020deb000 CR3: 000000009c82c000 CR4: 00000000001606f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Stack:
ffffffff8129085c ffff8801d2270844 ffffffff838c36ec ffffffff8113f75d
ffff8801d2270848 ffff8801b96c9b68 99babfd00000003c 000001e80000003c
0000003c0000003c ffff8801d2270780 0000000000000000 ffff8801cda5f0c0
Call Trace:
<IRQ>
[<ffffffff832e296f>] icmp_glue_bits+0x7f/0x1e0 net/ipv4/icmp.c:344
[<ffffffff83212842>] __ip_append_data.isra.44+0x1e22/0x2920
net/ipv4/ip_output.c:1043
[<ffffffff83213424>] ip_append_data.part.46+0xe4/0x150
net/ipv4/ip_output.c:1192
[<ffffffff8321b878>] ip_append_data+0x68/0x80 net/ipv4/ip_output.c:1181
[<ffffffff832e257e>] icmp_push_reply+0x19e/0x510 net/ipv4/icmp.c:362
[<ffffffff832e6f1a>] icmp_send+0xaca/0x13d0 net/ipv4/icmp.c:727
[<ffffffff832173ba>] ip_fragment.constprop.50+0x1aa/0x200
net/ipv4/ip_output.c:509
[<ffffffff83217ad4>] ip_finish_output+0x6c4/0xbc0 net/ipv4/ip_output.c:286
[<ffffffff8321b569>] NF_HOOK_COND include/linux/netfilter.h:240 [inline]
[<ffffffff8321b569>] ip_output+0x219/0x4c0 net/ipv4/ip_output.c:362
[<ffffffff832184ab>] dst_output include/net/dst.h:498 [inline]
[<ffffffff832184ab>] ip_local_out+0x9b/0x180 net/ipv4/ip_output.c:119
[<ffffffff832197ae>] ip_queue_xmit+0x88e/0x1ab0 net/ipv4/ip_output.c:461
[<ffffffff8327f352>] tcp_transmit_skb+0x1642/0x2bf0
net/ipv4/tcp_output.c:1029
[<ffffffff83289dac>] __tcp_retransmit_skb+0x5fc/0x1860
net/ipv4/tcp_output.c:2647
[<ffffffff8328b703>] tcp_retransmit_skb+0x23/0x2c0
net/ipv4/tcp_output.c:2664
[<ffffffff83290fed>] tcp_retransmit_timer+0x7bd/0x1ed0
net/ipv4/tcp_timer.c:461
[<ffffffff832928f1>] tcp_write_timer_handler+0x1f1/0x6f0
net/ipv4/tcp_timer.c:543
[<ffffffff83292eaa>] tcp_write_timer+0xba/0xd0 net/ipv4/tcp_timer.c:561
[<ffffffff8129085c>] call_timer_fn+0x18c/0x870 kernel/time/timer.c:1185
[<ffffffff81291582>] __run_timers kernel/time/timer.c:1261 [inline]
[<ffffffff81291582>] run_timer_softirq+0x642/0xb90 kernel/time/timer.c:1444
[<ffffffff838c36ec>] __do_softirq+0x22c/0xa1a kernel/softirq.c:273
[<ffffffff8113f75d>] invoke_softirq kernel/softirq.c:350 [inline]
[<ffffffff8113f75d>] irq_exit+0x10d/0x140 kernel/softirq.c:391
[<ffffffff838c2e51>] exiting_irq arch/x86/include/asm/apic.h:653 [inline]
[<ffffffff838c2e51>] smp_apic_timer_interrupt+0x81/0xa0
arch/x86/kernel/apic/apic.c:926
[<ffffffff838c1d90>] apic_timer_interrupt+0xa0/0xb0
arch/x86/entry/entry_64.S:741
<EOI>
[<ffffffff811a4447>] ___might_sleep+0x1c7/0x260 kernel/sched/core.c:7960
[<ffffffff8149f0ee>] clear_huge_page+0x8e/0x470 mm/memory.c:3860
[<ffffffff815087df>] __do_huge_pmd_anonymous_page mm/huge_memory.c:739
[inline]
[<ffffffff815087df>] do_huge_pmd_anonymous_page+0x21f/0x9d0
mm/huge_memory.c:867
[<ffffffff8149cf82>] create_huge_pmd mm/memory.c:3259 [inline]
[<ffffffff8149cf82>] __handle_mm_fault mm/memory.c:3378 [inline]
[<ffffffff8149cf82>] handle_mm_fault+0x2852/0x30b0 mm/memory.c:3472
[<ffffffff810d7aa0>] __do_page_fault+0x360/0xa10 arch/x86/mm/fault.c:1245
[<ffffffff810d8177>] do_page_fault+0x27/0x30 arch/x86/mm/fault.c:1308
[<ffffffff838c1608>] page_fault+0x28/0x30 arch/x86/entry/entry_64.S:1037
Code: 00 00 4d 8b 24 24 44 8b 6d d0 4d 85 e4 0f 85 1b ff ff ff 8b 5d b4 e8
a6 61 41 fe 8b 45 bc 85 c0 0f 84 7f fe ff ff e8 96 61 41 fe <0f> 0b 8b 5d
b4 e9 70 fe ff ff c7 45 b0 00 00 00 00 e9 8c fa ff
RIP [<ffffffff82f3b04a>] skb_copy_and_csum_bits+0x69a/0x7d0
net/core/skbuff.c:2192
RSP <ffff8801db307260>
---[ end trace 4567effcfd8fa14e ]---

syzbot

unread,
Apr 11, 2019, 8:00:53 PM4/11/19
to syzkaller-a...@googlegroups.com
Hello,

syzbot found the following crash on:

HEAD commit: c5aceac7 x86: vdso: Fix leaky vdso linker with CC=clang.
git tree: android-4.9
console output: https://syzkaller.appspot.com/x/log.txt?x=13396227800000
kernel config: https://syzkaller.appspot.com/x/.config?x=e4b307d57c80b074
dashboard link: https://syzkaller.appspot.com/bug?extid=948bff2aeebe1d375087
compiler: gcc (GCC) 8.0.1 20180413 (experimental)
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=132d30b7800000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=17769a0f800000

IMPORTANT: if you fix the bug, please add the following tag to the commit:
Reported-by: syzbot+948bff...@syzkaller.appspotmail.com

------------[ cut here ]------------
kernel BUG at net/core/skbuff.c:2237!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
Dumping ftrace buffer:
(ftrace buffer empty)
Modules linked in:
CPU: 0 PID: 0 Comm: swapper/0 Not tainted 4.9.102-gc5aceac #35
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS
Google 01/01/2011
task: ffffffff84629800 task.stack: ffffffff84600000
RIP: 0010:[<ffffffff830363a0>] [<ffffffff830363a0>]
skb_copy_and_csum_bits+0x670/0x7a0 net/core/skbuff.c:2237
RSP: 0018:ffff8801db207238 EFLAGS: 00010206
RAX: ffffffff84629800 RBX: 000000008ccebe6e RCX: 1ffff1003939b449
RDX: 0000000000000100 RSI: ffffffff830363a0 RDI: ffff8801c9cda248
RBP: ffff8801db2072b8 R08: 0000000000000000 R09: 0000000000000000
R10: 000000000000003c R11: ffff8801a1428bdf R12: 0000000000000000
R13: 0000000000000224 R14: 0000000000000000 R15: ffff8801c9cda240
FS: 0000000000000000(0000) GS:ffff8801db200000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f7753987db8 CR3: 00000001c2ca6000 CR4: 00000000001606f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Stack:
ffffffff81298b23 ffff8801d494b844 ffffffff839fe4bb ffffffff8114b0b7
ffff8801d494b848 ffff8801a1428968 8ccebe6e0000003c 000001e80000003c
0000003c0000003c ffff8801d494b780 0000000000000000 ffff8801d4127540
Call Trace:
[<ffffffff8340b7cf>] icmp_glue_bits+0x7f/0x1d0 net/ipv4/icmp.c:344
[<ffffffff83334da5>] __ip_append_data.isra.49+0x1d15/0x2860
net/ipv4/ip_output.c:1079
[<ffffffff833359d4>] ip_append_data.part.51+0xe4/0x150
net/ipv4/ip_output.c:1228
[<ffffffff8333e428>] ip_append_data+0x68/0x80 net/ipv4/ip_output.c:1217
[<ffffffff8340b3de>] icmp_push_reply+0x19e/0x510 net/ipv4/icmp.c:362
[<ffffffff8340ff0a>] icmp_send+0xaca/0x1430 net/ipv4/icmp.c:727
[<ffffffff8333993a>] ip_fragment.constprop.56+0x1aa/0x200
net/ipv4/ip_output.c:548
[<ffffffff8333a0d1>] ip_finish_output+0x741/0xac0 net/ipv4/ip_output.c:311
[<ffffffff8333e03d>] NF_HOOK_COND include/linux/netfilter.h:246 [inline]
[<ffffffff8333e03d>] ip_output+0x1cd/0x550 net/ipv4/ip_output.c:401
[<ffffffff8333aa9b>] dst_output include/net/dst.h:507 [inline]
[<ffffffff8333aa9b>] ip_local_out+0x9b/0x180 net/ipv4/ip_output.c:124
[<ffffffff8333be57>] ip_queue_xmit+0x897/0x1b60 net/ipv4/ip_output.c:500
[<ffffffff833a3dac>] tcp_transmit_skb+0x168c/0x2e30
net/ipv4/tcp_output.c:1036
[<ffffffff833ae1ce>] __tcp_retransmit_skb+0x42e/0x1cf0
net/ipv4/tcp_output.c:2749
[<ffffffff833b02a9>] tcp_retransmit_skb+0x29/0x2a0
net/ipv4/tcp_output.c:2768
[<ffffffff833b698a>] tcp_retransmit_timer+0x92a/0x2290
net/ipv4/tcp_timer.c:507
[<ffffffff833b84e1>] tcp_write_timer_handler+0x1f1/0x7a0
net/ipv4/tcp_timer.c:591
[<ffffffff833b8b52>] tcp_write_timer+0xc2/0x180 net/ipv4/tcp_timer.c:609
[<ffffffff81298b23>] call_timer_fn+0x163/0x6e0 kernel/time/timer.c:1319
[<ffffffff8129fc87>] expire_timers kernel/time/timer.c:1359 [inline]
[<ffffffff8129fc87>] __run_timers kernel/time/timer.c:1658 [inline]
[<ffffffff8129fc87>] run_timer_softirq+0x1047/0x1590
kernel/time/timer.c:1684
[<ffffffff839fe4bb>] __do_softirq+0x20b/0x937 kernel/softirq.c:284
[<ffffffff8114b0b7>] invoke_softirq kernel/softirq.c:364 [inline]
[<ffffffff8114b0b7>] irq_exit+0x147/0x190 kernel/softirq.c:405
[<ffffffff839fd0a1>] exiting_irq arch/x86/include/asm/apic.h:659 [inline]
[<ffffffff839fd0a1>] smp_apic_timer_interrupt+0x81/0xa0
arch/x86/kernel/apic/apic.c:960
[<ffffffff839f9230>] apic_timer_interrupt+0xa0/0xb0
arch/x86/entry/entry_64.S:648
<EOI> [ 145.367011] [<ffffffff839f64f6>] ? native_safe_halt+0x6/0x10
arch/x86/include/asm/irqflags.h:53
[<ffffffff839f5b35>] arch_safe_halt arch/x86/include/asm/paravirt.h:104
[inline]
[<ffffffff839f5b35>] default_idle+0x55/0x360 arch/x86/kernel/process.c:437
[<ffffffff8106ab20>] arch_cpu_idle+0x10/0x20 arch/x86/kernel/process.c:428
[<ffffffff839f6955>] default_idle_call+0x45/0x60 kernel/sched/idle.c:97
[<ffffffff81222fb5>] cpuidle_idle_call kernel/sched/idle.c:155 [inline]
[<ffffffff81222fb5>] cpu_idle_loop kernel/sched/idle.c:248 [inline]
[<ffffffff81222fb5>] cpu_startup_entry+0x2b5/0x380 kernel/sched/idle.c:303
[<ffffffff839e37bc>] rest_init+0x183/0x189 init/main.c:409
[<ffffffff84c97943>] start_kernel+0x67e/0x6b2 init/main.c:664
[<ffffffff84c9629a>] x86_64_start_reservations+0x29/0x2b
arch/x86/kernel/head64.c:196
[<ffffffff84c963db>] x86_64_start_kernel+0x13f/0x162
arch/x86/kernel/head64.c:177
Code: 00 00 4d 8b 24 24 44 8b 6d d0 4d 85 e4 0f 85 30 ff ff ff 8b 5d b4 e8
10 88 32 fe 8b 45 bc 85 c0 0f 84 94 fe ff ff e8 00 88 32 fe <0f> 0b 8b 5d
b4 e9 85 fe ff ff c7 45 b0 00 00 00 00 e9 b6 fa ff
RIP [<ffffffff830363a0>] skb_copy_and_csum_bits+0x670/0x7a0
net/core/skbuff.c:2237
RSP <ffff8801db207238>
---[ end trace a350ec536efbced6 ]---
Reply all
Reply to author
Forward
0 new messages