syzbot


general protection fault in hsr_addr_is_self

Status: auto-closed as invalid on 2020/07/18 00:22
Reported-by: syzbot+a390393df7043d087d18@syzkaller.appspotmail.com
First crash: 1532d, last: 1495d
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream general protection fault in hsr_addr_is_self (2) net 1 1495d 1495d 15/26 fixed on 2020/05/10 10:41
upstream general protection fault in hsr_addr_is_self net 3 1527d 1543d 15/26 fixed on 2020/02/18 14:31

Sample crash report:
device batadv0 left promiscuous mode
netlink: 20 bytes leftover after parsing attributes in process `syz-executor.5'.
device batadv0 entered promiscuous mode
kasan: CONFIG_KASAN_INLINE enabled
kasan: GPF could be caused by NULL-ptr deref or user memory access
general protection fault: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 19548 Comm: kworker/u4:6 Not tainted 4.19.111-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Workqueue: bat_events batadv_iv_send_outstanding_bat_ogm_packet
RIP: 0010:__read_once_size include/linux/compiler.h:193 [inline]
RIP: 0010:hsr_addr_is_self+0x70/0x2e0 net/hsr/hsr_framereg.c:64
Code: 34 c7 00 f1 f1 f1 f1 c7 40 04 00 f3 f3 f3 65 48 8b 04 25 28 00 00 00 48 89 44 24 58 31 c0 e8 17 12 53 fa 4c 89 e8 48 c1 e8 03 <42> 80 3c 30 00 0f 85 3e 02 00 00 48 8b 43 30 49 39 c5 48 89 44 24
RSP: 0018:ffff8880ae707a90 EFLAGS: 00010206
RAX: 0000000000000006 RBX: 0000000000000000 RCX: ffffffff871528af
RDX: 0000000000000100 RSI: ffffffff87149289 RDI: 0000000000000000
RBP: ffff888082b97cc8 R08: ffff88808bf76340 R09: ffffed1015ce4733
R10: ffffed1015ce4732 R11: ffff8880ae723993 R12: 1ffff11015ce0f52
R13: 0000000000000030 R14: dffffc0000000000 R15: 0000000000000000
FS:  0000000000000000(0000) GS:ffff8880ae700000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000c42d801700 CR3: 00000000916d9000 CR4: 00000000001426e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <IRQ>
 hsr_handle_frame+0x2d6/0x650 net/hsr/hsr_slave.c:38
 __netif_receive_skb_core+0xec3/0x2e80 net/core/dev.c:4876
 __netif_receive_skb_one_core+0x99/0x160 net/core/dev.c:4945
 __netif_receive_skb+0x27/0x1c0 net/core/dev.c:5059
 process_backlog+0x233/0x7c0 net/core/dev.c:5841
 napi_poll net/core/dev.c:6264 [inline]
 net_rx_action+0x4ab/0xfc0 net/core/dev.c:6330
 __do_softirq+0x26c/0x93c kernel/softirq.c:292
 invoke_softirq kernel/softirq.c:372 [inline]
 irq_exit+0x17b/0x1c0 kernel/softirq.c:412
 exiting_irq arch/x86/include/asm/apic.h:544 [inline]
 smp_apic_timer_interrupt+0x136/0x550 arch/x86/kernel/apic/apic.c:1094
 apic_timer_interrupt+0xf/0x20 arch/x86/entry/entry_64.S:893
 </IRQ>
RIP: 0010:check_kcov_mode kernel/kcov.c:67 [inline]
RIP: 0010:__sanitizer_cov_trace_pc+0x14/0x50 kernel/kcov.c:101
Code: e8 0a 1d eb ff 48 c7 05 66 e7 05 0a 00 00 00 00 e9 24 ec ff ff 90 48 8b 34 24 65 48 8b 04 25 40 ee 01 00 65 8b 15 1c 49 9a 7e <81> e2 00 01 1f 00 75 2b 8b 90 d0 12 00 00 83 fa 02 75 20 48 8b 88
RSP: 0018:ffff8880433bfb98 EFLAGS: 00000292 ORIG_RAX: ffffffffffffff13
RAX: ffff88808bf76340 RBX: 0000000000023980 RCX: ffffffff86ff2d5f
RDX: 0000000080000001 RSI: ffffffff8355bc45 RDI: 0000000000000001
RBP: 00000000000001f0 R08: ffff88808bf76340 R09: ffffed1015ce4733
R10: ffffed1015ce4732 R11: ffff8880ae723993 R12: 0000000000000000
R13: 0000000000000001 R14: ffff88809e1b0980 R15: 0000000000000000
 debug_smp_processor_id+0x5/0x20 lib/smp_processor_id.c:56
 rcu_dynticks_curr_cpu_in_eqs+0x12/0xa0 kernel/rcu/tree.c:348
 rcu_is_watching+0xc/0x20 kernel/rcu/tree.c:1025
 rcu_read_unlock include/linux/rcupdate.h:677 [inline]
 batadv_iv_ogm_slide_own_bcast_window net/batman-adv/bat_iv_ogm.c:952 [inline]
 batadv_iv_ogm_schedule_buff+0x9f7/0x1220 net/batman-adv/bat_iv_ogm.c:1006
 batadv_iv_ogm_schedule net/batman-adv/bat_iv_ogm.c:1050 [inline]
 batadv_iv_ogm_schedule net/batman-adv/bat_iv_ogm.c:1043 [inline]
 batadv_iv_send_outstanding_bat_ogm_packet+0x5e0/0x7a0 net/batman-adv/bat_iv_ogm.c:1869
 process_one_work+0x91f/0x1640 kernel/workqueue.c:2155
 worker_thread+0x96/0xe20 kernel/workqueue.c:2298
 kthread+0x34a/0x420 kernel/kthread.c:246
 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:415
Modules linked in:
---[ end trace e66633eb488e8552 ]---
RIP: 0010:__read_once_size include/linux/compiler.h:193 [inline]
RIP: 0010:hsr_addr_is_self+0x70/0x2e0 net/hsr/hsr_framereg.c:64
Code: 34 c7 00 f1 f1 f1 f1 c7 40 04 00 f3 f3 f3 65 48 8b 04 25 28 00 00 00 48 89 44 24 58 31 c0 e8 17 12 53 fa 4c 89 e8 48 c1 e8 03 <42> 80 3c 30 00 0f 85 3e 02 00 00 48 8b 43 30 49 39 c5 48 89 44 24
RSP: 0018:ffff8880ae707a90 EFLAGS: 00010206
RAX: 0000000000000006 RBX: 0000000000000000 RCX: ffffffff871528af
RDX: 0000000000000100 RSI: ffffffff87149289 RDI: 0000000000000000
RBP: ffff888082b97cc8 R08: ffff88808bf76340 R09: ffffed1015ce4733
R10: ffffed1015ce4732 R11: ffff8880ae723993 R12: 1ffff11015ce0f52
R13: 0000000000000030 R14: dffffc0000000000 R15: 0000000000000000
FS:  0000000000000000(0000) GS:ffff8880ae700000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000c42d801700 CR3: 00000000916d9000 CR4: 00000000001426e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (3):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/03/20 00:21 linux-4.19.y 93556fb211fa 2c31c529 .config console log report ci2-linux-4-19
2020/03/01 10:22 linux-4.19.y a083db76118d c88c7b75 .config console log report ci2-linux-4-19
2020/02/11 15:30 linux-4.19.y 357668399cf7 084454ae .config console log report ci2-linux-4-19
* Struck through repros no longer work on HEAD.