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: 21486 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:ffff88822d04edf8 EFLAGS: 00010202 RAX: 0000000000000004 RBX: dffffc0000000000 RCX: ffffc90007e3d000 RDX: 000000000003c386 RSI: ffffffff87d7cc3c RDI: 0000000000000020 RBP: ffff88822d059640 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000001 R11: 0000000022949e46 R12: ffff88822d059640 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 FS: 00007f4db0c65700(0000) GS:ffff8880ba000000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000001fffff70 CR3: 0000000098267000 CR4: 00000000003406f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 audit: type=1800 audit(1650610836.542:812): pid=21488 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=collect_data cause=failed(directio) comm="syz-executor.2" name="bus" dev="sda1" ino=16233 res=0 Call Trace: batadv_hard_if_event+0xaf/0x15c0 net/batman-adv/hard-interface.c:1035 audit: type=1800 audit(1650610836.552:813): pid=21488 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=collect_data cause=failed(directio) comm="syz-executor.2" name="bus" dev="sda1" ino=16233 res=0 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:8761 br_dev_newlink+0x23/0x110 net/bridge/br_netlink.c:1300 rtnl_newlink+0x1030/0x15c0 net/core/rtnetlink.c:3141 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:0x7f4db22f00e9 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 b8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f4db0c65168 EFLAGS: 00000246 ORIG_RAX: 000000000000002e RAX: ffffffffffffffda RBX: 00007f4db2402f60 RCX: 00007f4db22f00e9 RDX: 0000000000000000 RSI: 0000000020000000 RDI: 0000000000000004 RBP: 00007f4db234a08d R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffc41e96e9f R14: 00007f4db0c65300 R15: 0000000000022000 Modules linked in: ---[ end trace d8e6cfdf0c878be7 ]--- 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:ffff88822d04edf8 EFLAGS: 00010202 RAX: 0000000000000004 RBX: dffffc0000000000 RCX: ffffc90007e3d000 RDX: 000000000003c386 RSI: ffffffff87d7cc3c RDI: 0000000000000020 RBP: ffff88822d059640 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000001 R11: 0000000022949e46 R12: ffff88822d059640 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 FS: 00007f4db0c65700(0000) GS:ffff8880ba000000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fb8c8d81718 CR3: 0000000098267000 CR4: 00000000003406f0 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