syzbot


general protection fault in batadv_hardif_get_by_netdev

Status: auto-closed as invalid on 2020/12/20 01:53
Reported-by: syzbot+7182ce6b40c8c4869787@syzkaller.appspotmail.com
First crash: 727d, last: 727d
similar bugs (3):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream general protection fault in batadv_hardif_get_by_netdev 3 724d 766d 0/23 auto-closed as invalid on 2020/12/23 07:00
linux-4.19 general protection fault in batadv_hardif_get_by_netdev (3) 1 119d 119d 0/1 upstream: reported on 2022/04/22 07:01
linux-4.19 general protection fault in batadv_hardif_get_by_netdev (2) 1 283d 283d 0/1 auto-closed as invalid on 2022/03/08 19:35

Sample crash report:
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: 0 PID: 1430 Comm: syz-executor.1 Not tainted 4.19.141-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:batadv_hardif_get_by_netdev+0x147/0x3e0 net/batman-adv/hard-interface.c:83
Code: 80 3c 18 00 0f 85 7b 02 00 00 4d 8b 3f 49 81 ff e0 65 50 8c 0f 84 af 01 00 00 e8 a4 4b 49 fa 49 8d 7f 20 48 89 f8 48 c1 e8 03 <80> 3c 18 00 0f 85 5e 02 00 00 49 39 6f 20 75 ba e8 84 4b 49 fa 4d
RSP: 0018:ffff888206ab75f0 EFLAGS: 00010202
RAX: 0000000000000004 RBX: dffffc0000000000 RCX: ffffc90007cf3000
RDX: 0000000000040000 RSI: ffffffff8720655c RDI: 0000000000000020
RBP: ffff888211bd6a40 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000001 R11: 0000000000000000 R12: ffff888211bd6a40
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
FS:  00007f030865f700(0000) GS:ffff8880ae600000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00000000016a8660 CR3: 0000000207262000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 batadv_hard_if_event+0xaf/0x15c0 net/batman-adv/hard-interface.c:1035
 notifier_call_chain+0xc0/0x230 kernel/notifier.c:93
 call_netdevice_notifiers net/core/dev.c:1762 [inline]
 register_netdevice+0xdd2/0x10f0 net/core/dev.c:8747
 __ip_tunnel_create+0x398/0x580 net/ipv4/ip_tunnel.c:280
 ip_tunnel_init_net+0x330/0x990 net/ipv4/ip_tunnel.c:1025
 ops_init+0xb3/0x410 net/core/net_namespace.c:129
 setup_net+0x2c2/0x720 net/core/net_namespace.c:315
 copy_net_ns+0x1f7/0x335 net/core/net_namespace.c:438
 create_new_namespaces+0x3f6/0x7b0 kernel/nsproxy.c:107
 copy_namespaces+0x325/0x3c0 kernel/nsproxy.c:165
 copy_process.part.0+0x3e13/0x7f40 kernel/fork.c:1900
 copy_process kernel/fork.c:1694 [inline]
 _do_fork+0x22f/0xf30 kernel/fork.c:2207
 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x45d4d9
Code: 5d b4 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 0f 83 2b b4 fb ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007f030865ec78 EFLAGS: 00000246 ORIG_RAX: 0000000000000038
RAX: ffffffffffffffda RBX: 0000000000001f40 RCX: 000000000045d4d9
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 000000006e20cf00
RBP: 000000000118cf90 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 000000000118cf4c
R13: 00007ffe429e9eaf R14: 00007f030865f9c0 R15: 000000000118cf4c
Modules linked in:
kasan: CONFIG_KASAN_INLINE enabled
kasan: GPF could be caused by NULL-ptr deref or user memory access
general protection fault: 0000 [#2] PREEMPT SMP KASAN
CPU: 1 PID: 1447 Comm: syz-executor.3 Tainted: G      D           4.19.141-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:193 [inline]
RIP: 0010:mm_update_next_owner+0x3c6/0x650 kernel/exit.c:452
Code: 48 8d bd 30 03 00 00 48 89 f8 48 c1 e8 03 80 3c 18 00 0f 85 52 02 00 00 48 8b ad 30 03 00 00 4c 8d 6d 10 4c 89 e8 48 c1 e8 03 <80> 3c 18 00 0f 85 29 02 00 00 48 8b 45 10 48 8d a8 70 fa ff ff 49
RSP: 0018:ffff888203f5fd48 EFLAGS: 00010202
RAX: 0000004040404002 RBX: dffffc0000000000 RCX: ffffffff813ecb4e
RDX: 0000000000000000 RSI: ffffffff813ecb5c RDI: ffff8880001be9c0
RBP: 0000020202020000 R08: ffff88805641a6a0 R09: 0000000000000000
R10: 0000000000000005 R11: 000000001e9b12f9 R12: ffff8880a5da6e00
R13: 0000020202020010 R14: ffff8882055b0100 R15: ffff888055f2cf80
FS:  0000000000000000(0000) GS:ffff8880ae700000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ffb5a0f2008 CR3: 000000020d2b8000 CR4: 00000000001406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 exit_mm kernel/exit.c:545 [inline]
 do_exit+0xaad/0x2b70 kernel/exit.c:874
 do_group_exit+0x125/0x310 kernel/exit.c:990
 __do_sys_exit_group kernel/exit.c:1001 [inline]
 __se_sys_exit_group kernel/exit.c:999 [inline]
 __x64_sys_exit_group+0x3a/0x50 kernel/exit.c:999
 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x45d4d9
Code: 5d b4 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 0f 83 2b b4 fb ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007ffd3cc40978 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7
RAX: ffffffffffffffda RBX: 000000000000001e RCX: 000000000045d4d9
RDX: 0000000000416e21 RSI: fffffffffffffff7 RDI: 0000000000000000
RBP: 0000000000000000 R08: 0000000000000000 R09: 00007ffd3cc409d0
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000001
R13: 00007ffd3cc409d0 R14: 0000000000000000 R15: 00007ffd3cc409e0
Modules linked in:
---[ end trace 4753b6118a500d00 ]---
RIP: 0010:batadv_hardif_get_by_netdev+0x147/0x3e0 net/batman-adv/hard-interface.c:83
Code: 80 3c 18 00 0f 85 7b 02 00 00 4d 8b 3f 49 81 ff e0 65 50 8c 0f 84 af 01 00 00 e8 a4 4b 49 fa 49 8d 7f 20 48 89 f8 48 c1 e8 03 <80> 3c 18 00 0f 85 5e 02 00 00 49 39 6f 20 75 ba e8 84 4b 49 fa 4d
RSP: 0018:ffff888206ab75f0 EFLAGS: 00010202
RAX: 0000000000000004 RBX: dffffc0000000000 RCX: ffffc90007cf3000
RDX: 0000000000040000 RSI: ffffffff8720655c RDI: 0000000000000020
RBP: ffff888211bd6a40 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000001 R11: 0000000000000000 R12: ffff888211bd6a40
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
FS:  0000000000000000(0000) GS:ffff8880ae700000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ffb5a0f2008 CR3: 000000020d2b8000 CR4: 00000000001406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (1):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-linux-4-19 2020/08/22 01:52 linux-4.19.y d18b78abc0c6 6436ce4b .config log report