RBP: 00007fc7d1900580 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffdfc2d748f R14: 00007fc7d0218300 R15: 0000000000022000 BUG at fs/jfs/jfs_dmap.c:3002 assert(n < 4) ------------[ cut here ]------------ kernel BUG at fs/jfs/jfs_dmap.c:3002! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 1 PID: 17694 Comm: syz-executor.4 Not tainted 4.19.211-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/22/2022 RIP: 0010:dbFindLeaf+0x147/0x240 fs/jfs/jfs_dmap.c:3002 Code: fe 83 fb 04 75 96 e8 88 2f ed fe 48 c7 c1 e0 f7 9a 88 ba ba 0b 00 00 48 c7 c6 60 f7 9a 88 48 c7 c7 a0 f7 9a 88 e8 d4 60 7e 05 <0f> 0b e8 62 2f ed fe 41 83 ef 01 31 ff 8d 04 ad 01 00 00 00 44 89 RSP: 0018:ffff8880450cf650 EFLAGS: 00010286 RAX: 000000000000002b RBX: 0000000000000004 RCX: 0000000000000000 RDX: 000000000000cd29 RSI: ffffffff814dff01 RDI: ffffed1008a19ebc RBP: 0000000000000058 R08: 000000000000002b R09: 0000000000000000 R10: 0000000000000005 R11: 0000000000000000 R12: ffff88823891e010 R13: 0000000000000000 R14: 00000000ffffffff R15: 0000000000000001 FS: 00007fc7d01f7700(0000) GS:ffff8880ba100000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fc7d01d6718 CR3: 0000000042548000 CR4: 00000000003406e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: dbAllocDmapLev+0xaf/0x330 fs/jfs/jfs_dmap.c:2010 dbAlloc+0x82b/0xb00 fs/jfs/jfs_dmap.c:830 extBalloc fs/jfs/jfs_extent.c:531 [inline] extAlloc+0x4cb/0xdb0 fs/jfs/jfs_extent.c:138 jfs_get_block+0x1f5/0xae0 fs/jfs/inode.c:258 nobh_write_begin+0x446/0x1030 fs/buffer.c:2619 sysfs: cannot create duplicate filename '/class/ieee80211/©,í…×;qO!' jfs_write_begin+0x3e/0x1a0 fs/jfs/inode.c:323 generic_perform_write+0x1f8/0x4d0 mm/filemap.c:3170 __generic_file_write_iter+0x24b/0x610 mm/filemap.c:3295 generic_file_write_iter+0x3f8/0x730 mm/filemap.c:3323 call_write_iter include/linux/fs.h:1821 [inline] new_sync_write fs/read_write.c:474 [inline] __vfs_write+0x51b/0x770 fs/read_write.c:487 vfs_write+0x1f3/0x540 fs/read_write.c:549 ksys_write+0x12b/0x2a0 fs/read_write.c:599 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x7fc7d18a55a9 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:00007fc7d01f7168 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007fc7d19c6050 RCX: 00007fc7d18a55a9 RDX: 000000000208e24b RSI: 0000000020000480 RDI: 0000000000000005 RBP: 00007fc7d1900580 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffdfc2d748f R14: 00007fc7d01f7300 R15: 0000000000022000 Modules linked in: CPU: 1 PID: 17719 Comm: syz-executor.1 Tainted: G D 4.19.211-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/22/2022 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x1fc/0x2ef lib/dump_stack.c:118 sysfs_warn_dup.cold+0x1c/0x29 fs/sysfs/dir.c:30 sysfs_do_create_link_sd+0x116/0x130 fs/sysfs/symlink.c:50 sysfs_do_create_link fs/sysfs/symlink.c:79 [inline] sysfs_create_link+0x5f/0xc0 fs/sysfs/symlink.c:91 device_add_class_symlinks drivers/base/core.c:1934 [inline] device_add+0x7d1/0x16d0 drivers/base/core.c:2136 wiphy_register+0x1664/0x2130 net/wireless/core.c:832 ieee80211_register_hw+0x13be/0x3550 net/mac80211/main.c:1106 mac80211_hwsim_new_radio+0x1d3f/0x3c60 drivers/net/wireless/mac80211_hwsim.c:2896 hwsim_new_radio_nl+0x5c3/0x850 drivers/net/wireless/mac80211_hwsim.c:3374 genl_family_rcv_msg+0x642/0xc40 net/netlink/genetlink.c:602 genl_rcv_msg+0xbf/0x160 net/netlink/genetlink.c:627 netlink_rcv_skb+0x160/0x440 net/netlink/af_netlink.c:2463 genl_rcv+0x24/0x40 net/netlink/genetlink.c:638 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:0x7f6003ade5a9 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:00007f60023ee168 EFLAGS: 00000246 ORIG_RAX: 000000000000002e RAX: ffffffffffffffda RBX: 00007f6003bff1f0 RCX: 00007f6003ade5a9 ---[ end trace 35887f484792e4e6 ]--- RDX: 0000000000000000 RSI: 0000000020000400 RDI: 0000000000000004 RBP: 00007f6003b39580 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffe2b85e8bf R14: 00007f60023ee300 R15: 0000000000022000 RIP: 0010:dbFindLeaf+0x147/0x240 fs/jfs/jfs_dmap.c:3002 Code: fe 83 fb 04 75 96 e8 88 2f ed fe 48 c7 c1 e0 f7 9a 88 ba ba 0b 00 00 48 c7 c6 60 f7 9a 88 48 c7 c7 a0 f7 9a 88 e8 d4 60 7e 05 <0f> 0b e8 62 2f ed fe 41 83 ef 01 31 ff 8d 04 ad 01 00 00 00 44 89 RSP: 0018:ffff8880450cf650 EFLAGS: 00010286 RAX: 000000000000002b RBX: 0000000000000004 RCX: 0000000000000000 RDX: 000000000000cd29 RSI: ffffffff814dff01 RDI: ffffed1008a19ebc RBP: 0000000000000058 R08: 000000000000002b R09: 0000000000000000 R10: 0000000000000005 R11: 0000000000000000 R12: ffff88823891e010 R13: 0000000000000000 R14: 00000000ffffffff R15: 0000000000000001 FS: 00007fc7d01f7700(0000) GS:ffff8880ba000000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f8c4b9d8718 CR3: 0000000042548000 CR4: 00000000003406f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400