netlink: 8 bytes leftover after parsing attributes in process `syz-executor.3'. platform regulatory.0: Direct firmware load for regulatory.db failed with error -2 platform regulatory.0: Falling back to sysfs fallback for: regulatory.db ================================================================== BUG: KASAN: slab-out-of-bounds in __list_add_valid+0x36/0xc0 lib/list_debug.c:23 Read of size 8 at addr ffff88814b4d1588 by task syz-executor.3/5678 CPU: 1 PID: 5678 Comm: syz-executor.3 Not tainted 5.4.54-syzkaller-00672-ga6b381772d46 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x14a/0x1ce lib/dump_stack.c:118 print_address_description+0x93/0x620 mm/kasan/report.c:374 __kasan_report+0x16d/0x1e0 mm/kasan/report.c:506 kasan_report+0x36/0x60 mm/kasan/common.c:634 __list_add_valid+0x36/0xc0 lib/list_debug.c:23 __list_add include/linux/list.h:60 [inline] list_add include/linux/list.h:79 [inline] fw_load_sysfs_fallback drivers/base/firmware_loader/fallback.c:515 [inline] fw_load_from_user_helper drivers/base/firmware_loader/fallback.c:580 [inline] firmware_fallback_sysfs+0x48d/0xb30 drivers/base/firmware_loader/fallback.c:654 _request_firmware+0xe82/0x1360 drivers/base/firmware_loader/main.c:783 request_firmware+0x33/0x50 drivers/base/firmware_loader/main.c:826 reg_reload_regdb+0xa6/0x220 net/wireless/reg.c:1083 genl_family_rcv_msg net/netlink/genetlink.c:629 [inline] genl_rcv_msg+0xeef/0x13c0 net/netlink/genetlink.c:654 netlink_rcv_skb+0x200/0x480 net/netlink/af_netlink.c:2478 genl_rcv+0x24/0x40 net/netlink/genetlink.c:665 netlink_unicast_kernel net/netlink/af_netlink.c:1303 [inline] netlink_unicast+0x8ad/0xa50 net/netlink/af_netlink.c:1329 netlink_sendmsg+0x9de/0xd80 net/netlink/af_netlink.c:1918 sock_sendmsg_nosec net/socket.c:638 [inline] sock_sendmsg net/socket.c:658 [inline] ____sys_sendmsg+0x58a/0x8d0 net/socket.c:2298 ___sys_sendmsg net/socket.c:2352 [inline] __sys_sendmsg+0x2d5/0x3c0 net/socket.c:2398 do_syscall_64+0xcb/0x150 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x44/0xa9 RIP: 0033:0x45cc79 Code: 2d b6 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 fb b5 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007f3e25fd4c78 EFLAGS: 00000246 ORIG_RAX: 000000000000002e RAX: ffffffffffffffda RBX: 0000000000029e40 RCX: 000000000045cc79 RDX: 0000000000000000 RSI: 0000000020000000 RDI: 0000000000000003 RBP: 000000000078bf40 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 000000000078bf0c R13: 00007ffd9bf741ef R14: 00007f3e25fd59c0 R15: 000000000078bf0c Allocated by task 4796: save_stack mm/kasan/common.c:69 [inline] set_track mm/kasan/common.c:77 [inline] __kasan_kmalloc+0x12c/0x1c0 mm/kasan/common.c:510 __kmalloc+0xf7/0x2d0 mm/slub.c:3848 kmalloc_array+0x2d/0x50 include/linux/slab.h:618 kcalloc include/linux/slab.h:629 [inline] iter_file_splice_write+0x229/0xf60 fs/splice.c:690 splice_direct_to_actor+0x496/0xb00 fs/splice.c:976 do_splice_direct+0x28b/0x3e0 fs/splice.c:1064 do_sendfile+0x8d6/0x1100 fs/read_write.c:1467 __do_sys_sendfile64 fs/read_write.c:1522 [inline] __se_sys_sendfile64 fs/read_write.c:1514 [inline] __x64_sys_sendfile64+0x169/0x230 fs/read_write.c:1514 do_syscall_64+0xcb/0x150 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x44/0xa9 Freed by task 4796: save_stack mm/kasan/common.c:69 [inline] set_track mm/kasan/common.c:77 [inline] kasan_set_free_info mm/kasan/common.c:332 [inline] __kasan_slab_free+0x181/0x230 mm/kasan/common.c:471 slab_free_hook mm/slub.c:1443 [inline] slab_free_freelist_hook+0xd0/0x150 mm/slub.c:1476 slab_free mm/slub.c:3041 [inline] kfree+0x12b/0x600 mm/slub.c:4002 iter_file_splice_write+0xd2d/0xf60 fs/splice.c:773 splice_direct_to_actor+0x496/0xb00 fs/splice.c:976 do_splice_direct+0x28b/0x3e0 fs/splice.c:1064 do_sendfile+0x8d6/0x1100 fs/read_write.c:1467 __do_sys_sendfile64 fs/read_write.c:1522 [inline] __se_sys_sendfile64 fs/read_write.c:1514 [inline] __x64_sys_sendfile64+0x169/0x230 fs/read_write.c:1514 do_syscall_64+0xcb/0x150 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x44/0xa9 The buggy address belongs to the object at ffff88814b4d1400 which belongs to the cache kmalloc-256 of size 256 The buggy address is located 136 bytes to the right of 256-byte region [ffff88814b4d1400, ffff88814b4d1500) The buggy address belongs to the page: page:ffffea00052d3400 refcount:1 mapcount:0 mapping:ffff8881da802780 index:0x0 compound_mapcount: 0 flags: 0x8000000000010200(slab|head) raw: 8000000000010200 dead000000000100 dead000000000122 ffff8881da802780 raw: 0000000000000000 0000000000100010 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff88814b4d1480: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff88814b4d1500: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff88814b4d1580: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff88814b4d1600: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff88814b4d1680: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ================================================================== list_add corruption. next->prev should be prev (ffffffff84cb6a70), but was 0000000000000000. (next=ffff88814b4d1580). ------------[ cut here ]------------ kernel BUG at lib/list_debug.c:25! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 1 PID: 5678 Comm: syz-executor.3 Tainted: G B 5.4.54-syzkaller-00672-ga6b381772d46 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:__list_add_valid+0xa0/0xc0 lib/list_debug.c:23 Code: de cb 98 84 4c 89 fe 4c 89 e2 4c 89 f1 31 c0 e8 72 b7 2e ff 0f 0b 48 c7 c7 29 cb 98 84 4c 89 e6 4c 89 f1 31 c0 e8 5c b7 2e ff <0f> 0b 48 c7 c7 8c cb 98 84 4c 89 f6 4c 89 e1 31 c0 e8 46 b7 2e ff RSP: 0018:ffff88813634f2c8 EFLAGS: 00010246 RAX: 0000000000000075 RBX: ffff88814b4d1588 RCX: 2239d3cd7a16db00 RDX: ffffc90003b5f000 RSI: 000000000003ffff RDI: 0000000000040000 RBP: ffff88814b4d1580 R08: ffffffff812becce R09: ffffed103b725df0 R10: ffffed103b725df0 R11: 0000000000000000 R12: ffffffff84cb6a70 R13: dffffc0000000000 R14: ffff88814b4d1580 R15: ffff8881c8654b80 FS: 00007f3e25fd5700(0000) GS:ffff8881db900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fb9b20fa620 CR3: 000000018ceb8003 CR4: 00000000001606e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000600 Call Trace: __list_add include/linux/list.h:60 [inline] list_add include/linux/list.h:79 [inline] fw_load_sysfs_fallback drivers/base/firmware_loader/fallback.c:515 [inline] fw_load_from_user_helper drivers/base/firmware_loader/fallback.c:580 [inline] firmware_fallback_sysfs+0x48d/0xb30 drivers/base/firmware_loader/fallback.c:654 _request_firmware+0xe82/0x1360 drivers/base/firmware_loader/main.c:783 request_firmware+0x33/0x50 drivers/base/firmware_loader/main.c:826 reg_reload_regdb+0xa6/0x220 net/wireless/reg.c:1083 genl_family_rcv_msg net/netlink/genetlink.c:629 [inline] genl_rcv_msg+0xeef/0x13c0 net/netlink/genetlink.c:654 netlink_rcv_skb+0x200/0x480 net/netlink/af_netlink.c:2478 genl_rcv+0x24/0x40 net/netlink/genetlink.c:665 netlink_unicast_kernel net/netlink/af_netlink.c:1303 [inline] netlink_unicast+0x8ad/0xa50 net/netlink/af_netlink.c:1329 netlink_sendmsg+0x9de/0xd80 net/netlink/af_netlink.c:1918 sock_sendmsg_nosec net/socket.c:638 [inline] sock_sendmsg net/socket.c:658 [inline] ____sys_sendmsg+0x58a/0x8d0 net/socket.c:2298 ___sys_sendmsg net/socket.c:2352 [inline] __sys_sendmsg+0x2d5/0x3c0 net/socket.c:2398 do_syscall_64+0xcb/0x150 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x44/0xa9 RIP: 0033:0x45cc79 Code: 2d b6 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 fb b5 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007f3e25fd4c78 EFLAGS: 00000246 ORIG_RAX: 000000000000002e RAX: ffffffffffffffda RBX: 0000000000029e40 RCX: 000000000045cc79 RDX: 0000000000000000 RSI: 0000000020000000 RDI: 0000000000000003 RBP: 000000000078bf40 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 000000000078bf0c R13: 00007ffd9bf741ef R14: 00007f3e25fd59c0 R15: 000000000078bf0c Modules linked in: ---[ end trace fec31928bd5ccfed ]--- RIP: 0010:__list_add_valid+0xa0/0xc0 lib/list_debug.c:23 Code: de cb 98 84 4c 89 fe 4c 89 e2 4c 89 f1 31 c0 e8 72 b7 2e ff 0f 0b 48 c7 c7 29 cb 98 84 4c 89 e6 4c 89 f1 31 c0 e8 5c b7 2e ff <0f> 0b 48 c7 c7 8c cb 98 84 4c 89 f6 4c 89 e1 31 c0 e8 46 b7 2e ff RSP: 0018:ffff88813634f2c8 EFLAGS: 00010246 RAX: 0000000000000075 RBX: ffff88814b4d1588 RCX: 2239d3cd7a16db00 RDX: ffffc90003b5f000 RSI: 000000000003ffff RDI: 0000000000040000 RBP: ffff88814b4d1580 R08: ffffffff812becce R09: ffffed103b725df0 R10: ffffed103b725df0 R11: 0000000000000000 R12: ffffffff84cb6a70 R13: dffffc0000000000 R14: ffff88814b4d1580 R15: ffff8881c8654b80 FS: 00007f3e25fd5700(0000) GS:ffff8881db800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000000078c000 CR3: 000000018ceb8001 CR4: 00000000001606f0 DR0: 0000000020000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000600