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 ]---