ubi0: attaching mtd0 ubi0: scanning is finished 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: 1 PID: 15651 Comm: syz-executor.2 Not tainted 4.19.211-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 RIP: 0010:__write_once_size include/linux/compiler.h:290 [inline] RIP: 0010:__hlist_del include/linux/list.h:688 [inline] RIP: 0010:hlist_del_rcu include/linux/rculist.h:457 [inline] RIP: 0010:vxlan_fdb_destroy+0xbe/0x1f0 drivers/net/vxlan.c:788 Code: 00 fc ff df 48 89 fa 48 c1 ea 03 80 3c 02 00 0f 85 11 01 00 00 48 b8 00 00 00 00 00 fc ff df 4c 8b 63 08 4c 89 e2 48 c1 ea 03 <80> 3c 02 00 0f 85 09 01 00 00 48 85 ed 49 89 2c 24 74 28 e8 4a 06 RSP: 0018:ffff888040f96d90 EFLAGS: 00010a02 RAX: dffffc0000000000 RBX: ffff8880af4c0b00 RCX: ffffc90008932000 RDX: 1bd5a00000000040 RSI: ffffffff844f7ebc RDI: ffff8880af4c0b08 RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000001 R11: 0000000000000000 R12: dead000000000200 R13: 0000000000000000 R14: ffff888040f96eb0 R15: ffff88809563e000 FS: 00007f8c4d183700(0000) GS:ffff8880ba100000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b2fc27000 CR3: 00000000954b0000 CR4: 00000000003406e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: __vxlan_dev_create+0x477/0x820 drivers/net/vxlan.c:3279 vxlan_newlink+0xc0/0x120 drivers/net/vxlan.c:3506 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 sock_no_sendpage+0xf5/0x140 net/core/sock.c:2686 kernel_sendpage net/socket.c:3585 [inline] sock_sendpage+0xdf/0x140 net/socket.c:912 pipe_to_sendpage+0x268/0x330 fs/splice.c:452 splice_from_pipe_feed fs/splice.c:503 [inline] __splice_from_pipe+0x389/0x800 fs/splice.c:627 splice_from_pipe fs/splice.c:662 [inline] generic_splice_sendpage+0xd4/0x140 fs/splice.c:833 do_splice_from fs/splice.c:852 [inline] do_splice fs/splice.c:1154 [inline] __do_sys_splice fs/splice.c:1428 [inline] __se_sys_splice+0xfe7/0x16d0 fs/splice.c:1408 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x7f8c4ec320c9 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 f1 19 00 00 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 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f8c4d183168 EFLAGS: 00000246 ORIG_RAX: 0000000000000113 RAX: ffffffffffffffda RBX: 00007f8c4ed52050 RCX: 00007f8c4ec320c9 RDX: 0000000000000005 RSI: 0000000000000000 RDI: 0000000000000003 RBP: 00007f8c4ec8dae9 R08: 000000000004ffb1 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffe8f7e42af R14: 00007f8c4d183300 R15: 0000000000022000 Modules linked in: ---[ end trace 16f4745872ee3ed3 ]--- RIP: 0010:__write_once_size include/linux/compiler.h:290 [inline] RIP: 0010:__hlist_del include/linux/list.h:688 [inline] RIP: 0010:hlist_del_rcu include/linux/rculist.h:457 [inline] RIP: 0010:vxlan_fdb_destroy+0xbe/0x1f0 drivers/net/vxlan.c:788 Code: 00 fc ff df 48 89 fa 48 c1 ea 03 80 3c 02 00 0f 85 11 01 00 00 48 b8 00 00 00 00 00 fc ff df 4c 8b 63 08 4c 89 e2 48 c1 ea 03 <80> 3c 02 00 0f 85 09 01 00 00 48 85 ed 49 89 2c 24 74 28 e8 4a 06 audit: type=1804 audit(1674602381.438:250): pid=15658 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=open_writers comm="syz-executor.4" name="/root/syzkaller-testdir2833285200/syzkaller.5q7Z52/100/bus" dev="sda1" ino=14612 res=1 RSP: 0018:ffff888040f96d90 EFLAGS: 00010a02 RAX: dffffc0000000000 RBX: ffff8880af4c0b00 RCX: ffffc90008932000 RDX: 1bd5a00000000040 RSI: ffffffff844f7ebc RDI: ffff8880af4c0b08 RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 audit: type=1804 audit(1674602381.538:251): pid=15665 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=ToMToU comm="syz-executor.4" name="/root/syzkaller-testdir2833285200/syzkaller.5q7Z52/100/bus" dev="sda1" ino=14612 res=1 ubi0 error: ubi_attach_mtd_dev: cannot spawn "ubi_bgt0d", error -4 R10: 0000000000000001 R11: 0000000000000000 R12: dead000000000200 R13: 0000000000000000 R14: ffff888040f96eb0 R15: ffff88809563e000 FS: 00007f8c4d183700(0000) GS:ffff8880ba100000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f7841ddc000 CR3: 00000000954b0000 CR4: 00000000003406e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess), 3 bytes skipped: 0: df 48 89 fisttps -0x77(%rax) 3: fa cli 4: 48 c1 ea 03 shr $0x3,%rdx 8: 80 3c 02 00 cmpb $0x0,(%rdx,%rax,1) c: 0f 85 11 01 00 00 jne 0x123 12: 48 b8 00 00 00 00 00 movabs $0xdffffc0000000000,%rax 19: fc ff df 1c: 4c 8b 63 08 mov 0x8(%rbx),%r12 20: 4c 89 e2 mov %r12,%rdx 23: 48 c1 ea 03 shr $0x3,%rdx * 27: 80 3c 02 00 cmpb $0x0,(%rdx,%rax,1) <-- trapping instruction 2b: 0f 85 09 01 00 00 jne 0x13a 31: 48 85 ed test %rbp,%rbp 34: 49 89 2c 24 mov %rbp,(%r12) 38: 74 28 je 0x62 3a: e8 .byte 0xe8 3b: 4a 06 rex.WX (bad)