syzbot


general protection fault in hsr_addr_is_self (2)

Status: fixed on 2020/05/10 10:41
Subsystems: net
[Documentation on labels]
Reported-by: syzbot+fcf5dd39282ceb27108d@syzkaller.appspotmail.com
Fix commit: 3a303cfdd28d hsr: fix general protection fault in hsr_addr_is_self()
First crash: 1498d, last: 1498d
Discussions (8)
Title Replies (including bot) Last reply
[PATCH 4.9 000/102] 4.9.218-rc1 review 112 (112) 2020/04/07 06:05
[PATCH 4.14 000/148] 4.14.175-rc1 review 153 (153) 2020/04/02 22:47
[PATCH 4.19 000/116] 4.19.114-rc1 review 129 (129) 2020/04/02 20:04
[PATCH 5.5 000/170] 5.5.14-rc1 review 180 (180) 2020/04/02 17:40
[PATCH 4.4 00/91] 4.4.218-rc1 review 97 (97) 2020/04/02 14:13
[PATCH 5.4 000/155] 5.4.29-rc1 review 156 (156) 2020/03/31 08:59
[PATCH net] hsr: fix general protection fault in hsr_addr_is_self() 2 (2) 2020/03/22 02:50
general protection fault in hsr_addr_is_self (2) 0 (1) 2020/03/20 07:14
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.19 general protection fault in hsr_addr_is_self 3 1498d 1535d 0/1 auto-closed as invalid on 2020/07/18 00:22
upstream general protection fault in hsr_addr_is_self net 3 1530d 1546d 15/26 fixed on 2020/02/18 14:31

Sample crash report:
general protection fault, probably for non-canonical address 0xdffffc0000000006: 0000 [#1] PREEMPT SMP KASAN
KASAN: null-ptr-deref in range [0x0000000000000030-0x0000000000000037]
CPU: 1 PID: 9421 Comm: udevd Not tainted 5.6.0-rc6-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:__read_once_size include/linux/compiler.h:199 [inline]
RIP: 0010:hsr_addr_is_self+0x70/0x2e0 net/hsr/hsr_framereg.c:44
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 f7 23 c2 f9 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:ffffc90000da8a90 EFLAGS: 00010206
RAX: 0000000000000006 RBX: 0000000000000000 RCX: ffffffff87b0901a
RDX: 0000000000000100 RSI: ffffffff87b00129 RDI: 0000000000000000
RBP: ffff8880a40d7448 R08: ffff8880917d4580 R09: ffffed1015ce7074
R10: ffffed1015ce7073 R11: ffff8880ae73839b R12: 1ffff920001b5152
R13: 0000000000000030 R14: dffffc0000000000 R15: 0000000000000000
FS:  00007f387c3777a0(0000) GS:ffff8880ae700000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f387c37e000 CR3: 0000000095237000 CR4: 00000000001406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <IRQ>
 hsr_handle_frame+0x2d1/0x650 net/hsr/hsr_slave.c:33
 __netif_receive_skb_core+0xfbc/0x30b0 net/core/dev.c:5088
 __netif_receive_skb_one_core+0x99/0x160 net/core/dev.c:5185
 __netif_receive_skb+0x27/0x1c0 net/core/dev.c:5301
 process_backlog+0x21e/0x7a0 net/core/dev.c:6133
 napi_poll net/core/dev.c:6571 [inline]
 net_rx_action+0x4c2/0x1070 net/core/dev.c:6639
 __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:arch_local_irq_restore arch/x86/include/asm/paravirt.h:759 [inline]
RIP: 0010:lock_acquire+0x209/0x420 kernel/locking/lockdep.c:4487
Code: 94 08 00 00 00 00 00 00 48 c1 e8 03 80 3c 10 00 0f 85 de 01 00 00 48 83 3d a3 0f 1b 08 00 0f 84 5a 01 00 00 48 8b 3c 24 57 9d <0f> 1f 44 00 00 48 83 c4 18 5b 5d 41 5c 41 5d 41 5e 41 5f c3 65 8b
RSP: 0018:ffffc900020d7800 EFLAGS: 00000286 ORIG_RAX: ffffffffffffff13
RAX: 1ffffffff12e7698 RBX: ffff8880917d4580 RCX: 0000000000004cd1
RDX: dffffc0000000000 RSI: 1ffff9200041aee9 RDI: 0000000000000286
RBP: ffff8880a8369070 R08: ffffffff8c04d188 R09: fffffbfff180e577
R10: fffffbfff180e576 R11: ffffffff8c072bb7 R12: 0000000000000000
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
 __raw_spin_lock include/linux/spinlock_api_smp.h:142 [inline]
 _raw_spin_lock+0x2a/0x40 kernel/locking/spinlock.c:151
 spin_lock include/linux/spinlock.h:338 [inline]
 copy_pte_range mm/memory.c:816 [inline]
 copy_pmd_range mm/memory.c:892 [inline]
 copy_pud_range mm/memory.c:926 [inline]
 copy_p4d_range mm/memory.c:948 [inline]
 copy_page_range+0xa6a/0x1f30 mm/memory.c:1010
 dup_mmap kernel/fork.c:604 [inline]
 dup_mm+0x9cf/0x1340 kernel/fork.c:1360
 copy_mm kernel/fork.c:1416 [inline]
 copy_process+0x2987/0x7290 kernel/fork.c:2081
 _do_fork+0x12d/0x1010 kernel/fork.c:2430
 __do_sys_clone kernel/fork.c:2585 [inline]
 __se_sys_clone kernel/fork.c:2566 [inline]
 __x64_sys_clone+0x182/0x210 kernel/fork.c:2566
 do_syscall_64+0xf6/0x7d0 arch/x86/entry/common.c:294
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x7f387ba5af46
Code: f7 d8 64 89 04 25 d4 02 00 00 64 4c 8b 14 25 10 00 00 00 31 d2 49 81 c2 d0 02 00 00 31 f6 bf 11 00 20 01 b8 38 00 00 00 0f 05 <48> 3d 00 f0 ff ff 0f 87 31 01 00 00 85 c0 41 89 c4 0f 85 3b 01 00
RSP: 002b:00007ffff9bfad00 EFLAGS: 00000246 ORIG_RAX: 0000000000000038
RAX: ffffffffffffffda RBX: 00007ffff9bfad00 RCX: 00007f387ba5af46
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000001200011
RBP: 00007ffff9bfad60 R08: 00000000000024cd R09: 00000000000024cd
R10: 00007f387c377a70 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffff9bfad20 R14: 0000000000000005 R15: 0000000000000005
Modules linked in:
---[ end trace 3228e95e3491c130 ]---
RIP: 0010:__read_once_size include/linux/compiler.h:199 [inline]
RIP: 0010:hsr_addr_is_self+0x70/0x2e0 net/hsr/hsr_framereg.c:44
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 f7 23 c2 f9 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:ffffc90000da8a90 EFLAGS: 00010206
RAX: 0000000000000006 RBX: 0000000000000000 RCX: ffffffff87b0901a
RDX: 0000000000000100 RSI: ffffffff87b00129 RDI: 0000000000000000
RBP: ffff8880a40d7448 R08: ffff8880917d4580 R09: ffffed1015ce7074
R10: ffffed1015ce7073 R11: ffff8880ae73839b R12: 1ffff920001b5152
R13: 0000000000000030 R14: dffffc0000000000 R15: 0000000000000000
FS:  00007f387c3777a0(0000) GS:ffff8880ae700000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f387c37e000 CR3: 0000000095237000 CR4: 00000000001406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/03/19 21:30 upstream cd607737f3b8 2c31c529 .config console log report ci-upstream-kasan-gce
* Struck through repros no longer work on HEAD.