syzbot


general protection fault in ipvlan_hard_header

Status: closed as invalid on 2022/10/12 18:15
Subsystems: net
[Documentation on labels]
First crash: 1750d, last: 1163d
Cause bisection: introduced by (bisect log) [merge commit]:
commit 9829a0bd664da613c6b44b210d8f0ab8dba2400b
Author: Kalle Valo <kvalo@codeaurora.org>
Date: Sun Jun 30 09:29:30 2019 +0000

  Merge tag 'mt76-for-kvalo-2019-06-27' of https://github.com/nbd168/wireless

Crash: KASAN: use-after-free Read in batadv_iv_ogm_queue_add (log)
Repro: C syz .config
  
Fix bisection: failed (error log, bisect log)
  
Similar bugs (3)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.14 general protection fault in ipvlan_hard_header 1 1460d 1460d 0/1 auto-closed as invalid on 2021/04/08 09:20
upstream general protection fault in ipvlan_hard_header (2) net 1 574d 574d 0/28 closed as invalid on 2023/09/01 06:55
linux-4.19 general protection fault in ipvlan_hard_header 1 1187d 1187d 0/1 auto-closed as invalid on 2022/01/05 12:41
Last patch testing requests (6)
Created Duration User Patch Repo Result
2022/10/03 02:30 19m retest repro upstream OK log
2022/10/02 02:30 18m retest repro upstream OK log
2022/09/18 04:29 18m retest repro upstream OK log
2022/09/16 04:29 18m retest repro net-next-old OK log
2022/09/15 16:29 18m retest repro net-old OK log
2022/09/11 04:27 18m retest repro upstream OK log
Fix bisection attempts (8)
Created Duration User Patch Repo Result
2021/01/07 15:36 9m bisect fix upstream error job log
2020/12/07 14:06 18m bisect fix upstream OK (0) job log log
2020/11/07 05:01 25m bisect fix upstream OK (0) job log log
2020/10/07 17:37 19m bisect fix upstream OK (0) job log log
2020/08/09 17:56 18m bisect fix upstream OK (0) job log log
2020/07/10 09:40 20m bisect fix upstream OK (0) job log log
2020/05/21 05:31 20m bisect fix upstream OK (0) job log log
2020/04/21 05:01 29m bisect fix upstream OK (0) job log log

Sample crash report:
general protection fault, probably for non-canonical address 0xdffffc0020000068: 0000 [#1] PREEMPT SMP KASAN
KASAN: probably user-memory-access in range [0x0000000100000340-0x0000000100000347]
CPU: 1 PID: 0 Comm: swapper/1 Not tainted 5.6.0-rc3-next-20200228-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:ipvlan_hard_header+0x114/0x150 drivers/net/ipvlan/ipvlan_main.c:361
Code: 5c 41 5d 41 5e 41 5f c3 45 31 e4 eb e4 e8 04 73 d2 fc 48 8d bd 48 03 00 00 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 <80> 3c 02 00 75 2d 4c 8b a5 48 03 00 00 e9 32 ff ff ff e8 75 93 0f
RSP: 0018:ffffc90000da8810 EFLAGS: 00010203
RAX: dffffc0000000000 RBX: ffff88809469a000 RCX: ffff88809469a178
RDX: 0000000020000068 RSI: ffffffff84a0227c RDI: 0000000100000347
RBP: 00000000ffffffff R08: 0000000000000000 R09: 0000000000000060
R10: fffffbfff1852715 R11: ffffffff8c2938af R12: 0000000000000000
R13: ffff888094d30b40 R14: ffff88809469a178 R15: 0000000000000060
FS:  0000000000000000(0000) GS:ffff8880ae700000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00000000200000d0 CR3: 0000000090657000 CR4: 00000000001406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <IRQ>
 dev_hard_header include/linux/netdevice.h:2987 [inline]
 neigh_resolve_output net/core/neighbour.c:1482 [inline]
 neigh_resolve_output+0x4fd/0x930 net/core/neighbour.c:1467
 neigh_output include/net/neighbour.h:510 [inline]
 ip6_finish_output2+0x1091/0x25b0 net/ipv6/ip6_output.c:117
 __ip6_finish_output+0x442/0xab0 net/ipv6/ip6_output.c:143
 ip6_finish_output+0x34/0x1f0 net/ipv6/ip6_output.c:153
 NF_HOOK_COND include/linux/netfilter.h:296 [inline]
 ip6_output+0x239/0x810 net/ipv6/ip6_output.c:176
 dst_output include/net/dst.h:436 [inline]
 NF_HOOK include/linux/netfilter.h:307 [inline]
 NF_HOOK include/linux/netfilter.h:301 [inline]
 mld_sendpack+0x961/0xdf0 net/ipv6/mcast.c:1682
 mld_send_initial_cr.part.0+0x107/0x150 net/ipv6/mcast.c:2099
 mld_send_initial_cr net/ipv6/mcast.c:2083 [inline]
 mld_dad_timer_expire+0x3c/0x210 net/ipv6/mcast.c:2118
 call_timer_fn+0x195/0x760 kernel/time/timer.c:1405
 expire_timers kernel/time/timer.c:1450 [inline]
 __run_timers kernel/time/timer.c:1774 [inline]
 __run_timers kernel/time/timer.c:1741 [inline]
 run_timer_softirq+0x623/0x1600 kernel/time/timer.c:1787
 __do_softirq+0x26c/0x99d kernel/softirq.c:292
 invoke_softirq kernel/softirq.c:373 [inline]
 irq_exit+0x192/0x1d0 kernel/softirq.c:413
 exiting_irq arch/x86/include/asm/apic.h:546 [inline]
 smp_apic_timer_interrupt+0x19e/0x600 arch/x86/kernel/apic/apic.c:1146
 apic_timer_interrupt+0xf/0x20 arch/x86/entry/entry_64.S:829
 </IRQ>
RIP: 0010:native_safe_halt+0xe/0x10 arch/x86/include/asm/irqflags.h:61
Code: cc cc cc cc cc cc cc cc cc cc cc cc e9 07 00 00 00 0f 00 2d e4 35 65 00 f4 c3 66 90 e9 07 00 00 00 0f 00 2d d4 35 65 00 fb f4 <c3> cc 41 56 41 55 41 54 55 53 e8 f3 25 9d f9 e8 8e f7 cf fb 0f 1f
RSP: 0018:ffffc90000d3fdb8 EFLAGS: 00000286 ORIG_RAX: ffffffffffffff13
RAX: 1ffffffff132790a RBX: ffff8880a9634340 RCX: 0000000000000000
RDX: dffffc0000000000 RSI: 0000000000000006 RDI: ffff8880a9634bdc
RBP: dffffc0000000000 R08: ffff8880a9634340 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: ffffed10152c6868
R13: 0000000000000001 R14: ffffffff8a862140 R15: 0000000000000000
 arch_safe_halt arch/x86/include/asm/paravirt.h:144 [inline]
 default_idle+0x49/0x350 arch/x86/kernel/process.c:698
 cpuidle_idle_call kernel/sched/idle.c:154 [inline]
 do_idle+0x393/0x690 kernel/sched/idle.c:269
 cpu_startup_entry+0x14/0x20 kernel/sched/idle.c:361
 start_secondary+0x2f3/0x400 arch/x86/kernel/smpboot.c:268
 secondary_startup_64+0xa4/0xb0 arch/x86/kernel/head_64.S:242
Modules linked in:
---[ end trace d098a9fa3dac0906 ]---
RIP: 0010:ipvlan_hard_header+0x114/0x150 drivers/net/ipvlan/ipvlan_main.c:361
Code: 5c 41 5d 41 5e 41 5f c3 45 31 e4 eb e4 e8 04 73 d2 fc 48 8d bd 48 03 00 00 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 <80> 3c 02 00 75 2d 4c 8b a5 48 03 00 00 e9 32 ff ff ff e8 75 93 0f
RSP: 0018:ffffc90000da8810 EFLAGS: 00010203
RAX: dffffc0000000000 RBX: ffff88809469a000 RCX: ffff88809469a178
RDX: 0000000020000068 RSI: ffffffff84a0227c RDI: 0000000100000347
RBP: 00000000ffffffff R08: 0000000000000000 R09: 0000000000000060
R10: fffffbfff1852715 R11: ffffffff8c2938af R12: 0000000000000000
R13: ffff888094d30b40 R14: ffff88809469a178 R15: 0000000000000060
FS:  0000000000000000(0000) GS:ffff8880ae700000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00000000200000d0 CR3: 0000000090657000 CR4: 00000000001406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (13):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/03/09 17:25 linux-next 770fbb32d34e 2e9971bb .config console log report syz C ci-upstream-linux-next-kasan-gce-root
2020/02/26 23:33 upstream f8788d86ab28 59b57593 .config console log report syz C ci-upstream-kasan-gce-root
2020/02/24 14:55 upstream d2eee25858f2 d801cb02 .config console log report syz C ci-upstream-kasan-gce-smack-root
2020/02/23 18:37 upstream 0a115e5f23b9 2c36e7a7 .config console log report syz C ci-upstream-kasan-gce
2020/02/23 14:05 upstream 54dedb5b571d 2c36e7a7 .config console log report syz C ci-upstream-kasan-gce-386
2020/02/22 17:27 net-old 0c0ddd6ae47c 2c36e7a7 .config console log report syz C ci-upstream-net-this-kasan-gce
2020/02/22 17:05 net-next-old 732a0dee501f 2c36e7a7 .config console log report syz C ci-upstream-net-kasan-gce
2021/10/01 19:32 net-next-old 129291980f49 cc80db95 .config console log report info ci-upstream-net-kasan-gce general protection fault in ipvlan_hard_header
2021/05/02 09:00 net-next-old 95aafe911db6 77e2b668 .config console log report info ci-upstream-net-kasan-gce general protection fault in ipvlan_hard_header
2020/08/19 17:41 upstream 18445bf405cb 94b45706 .config console log report ci-upstream-kasan-gce-386
2020/03/22 05:01 upstream b74b991fb8b9 78267cec .config console log report ci-upstream-kasan-gce-386
2020/02/25 11:47 net-old 6132c1d9033d 59b57593 .config console log report ci-upstream-net-this-kasan-gce
2020/08/31 18:01 linux-next b36c969764ab d5a3ae1f .config console log report ci-upstream-linux-next-kasan-gce-root
* Struck through repros no longer work on HEAD.