syzbot


general protection fault in batadv_hardif_get_by_netdev (2)

Status: auto-closed as invalid on 2022/03/08 19:35
Reported-by: syzbot+c5be263e1d8a4e5accd8@syzkaller.appspotmail.com
First crash: 283d, last: 283d
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 727d 727d 0/1 auto-closed as invalid on 2020/12/20 01:53
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

Sample crash report:
x_tables: ip6_tables: rpfilter match: used from hooks INPUT, but only valid from PREROUTING
FAT-fs (loop4): bogus number of reserved sectors
FAT-fs (loop4): Can't find a valid FAT filesystem
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: 29268 Comm: syz-executor.3 Not tainted 4.19.211-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 60 8c db 8d 0f 84 af 01 00 00 e8 34 b9 8a f9 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 14 b9 8a f9 4d
RSP: 0018:ffff888213a3ec10 EFLAGS: 00010207
RAX: 000000e0e000e0e4 RBX: dffffc0000000000 RCX: ffffc9000c637000
RDX: 0000000000040000 RSI: ffffffff87d7cc3c RDI: 0000070700070727
RBP: ffff88821dc90d00 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000001 R11: 0000000000000000 R12: ffff88821dc90d00
R13: 0000000000000000 R14: 0000000000000000 R15: 0000070700070707
FS:  00007f566ccae700(0000) GS:ffff8880ba000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f55c7bb66b8 CR3: 000000021430e000 CR4: 00000000003426f0
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
 netdev_lower_state_changed+0xa9/0x130 net/core/dev.c:7433
 bond_lower_state_changed drivers/net/bonding/bond_main.c:1374 [inline]
 bond_commit_link_state include/net/bonding.h:552 [inline]
 bond_set_slave_link_state include/net/bonding.h:566 [inline]
 bond_enslave+0x4112/0x5250 drivers/net/bonding/bond_main.c:1632
 do_set_master+0x1c8/0x220 net/core/rtnetlink.c:2321
 rtnl_newlink+0x1279/0x15c0 net/core/rtnetlink.c:3170
 rtnetlink_rcv_msg+0x453/0xb80 net/core/rtnetlink.c:4782
 netlink_rcv_skb+0x160/0x440 net/netlink/af_netlink.c:2463
 netlink_unicast_kernel net/netlink/af_netlink.c:1325 [inline]
 netlink_unicast+0x4d5/0x690 net/netlink/af_netlink.c:1351
 netlink_sendmsg+0x6c3/0xc50 net/netlink/af_netlink.c:1917
 sock_sendmsg_nosec net/socket.c:651 [inline]
 sock_sendmsg+0xc3/0x120 net/socket.c:661
 ___sys_sendmsg+0x7bb/0x8e0 net/socket.c:2227
 __sys_sendmsg net/socket.c:2265 [inline]
 __do_sys_sendmsg net/socket.c:2274 [inline]
 __se_sys_sendmsg net/socket.c:2272 [inline]
 __x64_sys_sendmsg+0x132/0x220 net/socket.c:2272
 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x7f566f77aae9
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 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 73 01 c3 48 c7 c1 bc ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f566ccae188 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 00007f566f88e0e0 RCX: 00007f566f77aae9
RDX: 0000000000000000 RSI: 0000000020000340 RDI: 0000000000000005
RBP: 00007f566f7d4f25 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffc1360417f R14: 00007f566ccae300 R15: 0000000000022000
Modules linked in:
---[ end trace c6fa03e0a3c269b2 ]---
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 60 8c db 8d 0f 84 af 01 00 00 e8 34 b9 8a f9 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 14 b9 8a f9 4d
RSP: 0018:ffff888213a3ec10 EFLAGS: 00010207
RAX: 000000e0e000e0e4 RBX: dffffc0000000000 RCX: ffffc9000c637000
RDX: 0000000000040000 RSI: ffffffff87d7cc3c RDI: 0000070700070727
RBP: ffff88821dc90d00 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000001 R11: 0000000000000000 R12: ffff88821dc90d00
R13: 0000000000000000 R14: 0000000000000000 R15: 0000070700070707
FS:  00007f566ccae700(0000) GS:ffff8880ba000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f57f8032000 CR3: 000000021430e000 CR4: 00000000003426f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
   0:	80 3c 18 00          	cmpb   $0x0,(%rax,%rbx,1)
   4:	0f 85 7b 02 00 00    	jne    0x285
   a:	4d 8b 3f             	mov    (%r15),%r15
   d:	49 81 ff 60 8c db 8d 	cmp    $0xffffffff8ddb8c60,%r15
  14:	0f 84 af 01 00 00    	je     0x1c9
  1a:	e8 34 b9 8a f9       	callq  0xf98ab953
  1f:	49 8d 7f 20          	lea    0x20(%r15),%rdi
  23:	48 89 f8             	mov    %rdi,%rax
  26:	48 c1 e8 03          	shr    $0x3,%rax
* 2a:	80 3c 18 00          	cmpb   $0x0,(%rax,%rbx,1) <-- trapping instruction
  2e:	0f 85 5e 02 00 00    	jne    0x292
  34:	49 39 6f 20          	cmp    %rbp,0x20(%r15)
  38:	75 ba                	jne    0xfffffff4
  3a:	e8 14 b9 8a f9       	callq  0xf98ab953
  3f:	4d                   	rex.WRB

Crashes (1):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-linux-4-19 2021/11/08 19:35 linux-4.19.y 3f8a27f9e27b d29682f1 .config log report info general protection fault in batadv_hardif_get_by_netdev