syzbot


general protection fault in batadv_hardif_get_by_netdev

Status: auto-closed as invalid on 2020/12/23 07:00
Reported-by: syzbot+4a2d01c2df834fe6e86d@syzkaller.appspotmail.com
First crash: 808d, last: 764d
similar bugs (3):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.19 general protection fault in batadv_hardif_get_by_netdev 1 767d 767d 0/1 auto-closed as invalid on 2020/12/20 01:53
linux-4.19 general protection fault in batadv_hardif_get_by_netdev (3) 1 159d 159d 0/1 auto-closed as invalid on 2022/08/20 07:01
linux-4.19 general protection fault in batadv_hardif_get_by_netdev (2) 1 323d 323d 0/1 auto-closed as invalid on 2022/03/08 19:35

Sample crash report:
general protection fault, probably for non-canonical address 0xdffffc0000000003: 0000 [#1] PREEMPT SMP KASAN
KASAN: null-ptr-deref in range [0x0000000000000018-0x000000000000001f]
CPU: 0 PID: 7961 Comm: syz-executor.1 Not tainted 5.9.0-rc2-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:batadv_hardif_get_by_netdev+0x14c/0x400 net/batman-adv/hard-interface.c:72
Code: 18 00 0f 85 92 02 00 00 4d 8b 24 24 49 81 fc 20 4b 55 8d 0f 84 b4 01 00 00 e8 b0 f9 9d f9 49 8d 7c 24 18 48 89 f8 48 c1 e8 03 <80> 3c 18 00 0f 85 73 02 00 00 4d 39 6c 24 18 75 b7 e8 8e f9 9d f9
RSP: 0018:ffffc90017506cc8 EFLAGS: 00010206
RAX: 0000000000000003 RBX: dffffc0000000000 RCX: ffffc9000af87000
RDX: 0000000000040000 RSI: ffffffff87d64560 RDI: 0000000000000018
RBP: ffff88802c538000 R08: 0000000000000000 R09: ffffffff8c5f39e7
R10: 0000000000000000 R11: 0000000000000001 R12: 0000000000000000
R13: ffff88802c538000 R14: 0000000000000000 R15: ffffffff8aa7d9a0
FS:  00007f8063b68700(0000) GS:ffff8880ae600000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ffe8131df0c CR3: 00000002121d7000 CR4: 00000000001526f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 batadv_hard_if_event+0x62/0x1340 net/batman-adv/hard-interface.c:1033
 notifier_call_chain+0xb5/0x200 kernel/notifier.c:83
 call_netdevice_notifiers_info+0xb5/0x130 net/core/dev.c:2033
 call_netdevice_notifiers_extack net/core/dev.c:2045 [inline]
 call_netdevice_notifiers net/core/dev.c:2059 [inline]
 register_netdevice+0xa52/0x1540 net/core/dev.c:9824
 veth_newlink+0x3fe/0x9f0 drivers/net/veth.c:1351
 __rtnl_newlink+0x108b/0x1740 net/core/rtnetlink.c:3441
 rtnl_newlink+0x64/0xa0 net/core/rtnetlink.c:3500
 rtnetlink_rcv_msg+0x44e/0xad0 net/core/rtnetlink.c:5563
 netlink_rcv_skb+0x15a/0x430 net/netlink/af_netlink.c:2470
 netlink_unicast_kernel net/netlink/af_netlink.c:1304 [inline]
 netlink_unicast+0x533/0x7d0 net/netlink/af_netlink.c:1330
 netlink_sendmsg+0x856/0xd90 net/netlink/af_netlink.c:1919
 sock_sendmsg_nosec net/socket.c:651 [inline]
 sock_sendmsg+0xcf/0x120 net/socket.c:671
 ____sys_sendmsg+0x6e8/0x810 net/socket.c:2353
 ___sys_sendmsg+0xf3/0x170 net/socket.c:2407
 __sys_sendmsg+0xe5/0x1b0 net/socket.c:2440
 do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xa9
RIP: 0033:0x45d579
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:00007f8063b67c78 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 000000000002cd40 RCX: 000000000045d579
RDX: 0000000000000000 RSI: 0000000020000040 RDI: 0000000000000006
RBP: 000000000118cf80 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 000000000118cf4c
R13: 000000000169fb6f R14: 00007f8063b689c0 R15: 000000000118cf4c
Modules linked in:

Crashes (3):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-upstream-kasan-gce 2020/08/25 06:59 upstream 6a9dc5fd6170 344da168 .config log report
ci-upstream-kasan-gce 2020/07/26 21:34 upstream 04300d66f0a0 51265195 .config log report
ci-upstream-kasan-gce-386 2020/07/12 19:18 upstream 0aea6d5c5be3 115e1930 .config log report
* Struck through repros no longer work on HEAD.