================================================================== BUG: KASAN: slab-out-of-bounds in __list_add_valid+0x36/0xc0 lib/list_debug.c:23 Read of size 8 at addr ffff888175ca0388 by task syz-executor.2/12689 CPU: 0 PID: 12689 Comm: syz-executor.2 Not tainted 5.4.53-syzkaller-00508-g5c3841e16e44 #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:0x45c369 Code: 8d 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 5b b6 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007f9d2ce8ec78 EFLAGS: 00000246 ORIG_RAX: 000000000000002e RAX: ffffffffffffffda RBX: 0000000000029500 RCX: 000000000045c369 RDX: 0000000000000000 RSI: 0000000020000180 RDI: 0000000000000004 RBP: 000000000078bf40 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 000000000078bf0c R13: 00007ffc8f4bb7ff R14: 00007f9d2ce8f9c0 R15: 000000000078bf0c Allocated by task 10814: 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 slab_post_alloc_hook mm/slab.h:584 [inline] slab_alloc_node mm/slub.c:2793 [inline] slab_alloc mm/slub.c:2801 [inline] kmem_cache_alloc+0x1d5/0x260 mm/slub.c:2806 skb_clone+0x1b2/0x370 net/core/skbuff.c:1448 do_one_broadcast net/netlink/af_netlink.c:1436 [inline] netlink_broadcast_filtered+0x5d5/0x10c0 net/netlink/af_netlink.c:1511 netlink_broadcast+0x35/0x50 net/netlink/af_netlink.c:1535 uevent_net_broadcast_untagged lib/kobject_uevent.c:330 [inline] kobject_uevent_net_broadcast lib/kobject_uevent.c:408 [inline] kobject_uevent_env+0xbb7/0x1100 lib/kobject_uevent.c:592 add_partition+0x981/0xc00 block/partition-generic.c:406 rescan_partitions+0x5fe/0xc30 block/partition-generic.c:568 __blkdev_reread_part block/ioctl.c:174 [inline] blkdev_reread_part+0x127/0x190 block/ioctl.c:194 loop_reread_partitions drivers/block/loop.c:646 [inline] loop_set_status+0x101c/0x1590 drivers/block/loop.c:1375 lo_ioctl+0xd3c/0x2370 drivers/block/loop.c:1485 __blkdev_driver_ioctl block/ioctl.c:304 [inline] blkdev_ioctl+0x903/0x2d10 block/ioctl.c:609 block_ioctl+0xb6/0xf0 fs/block_dev.c:1960 do_vfs_ioctl+0x770/0x1750 fs/ioctl.c:47 ksys_ioctl fs/ioctl.c:714 [inline] __do_sys_ioctl fs/ioctl.c:721 [inline] __se_sys_ioctl fs/ioctl.c:719 [inline] __x64_sys_ioctl+0xd4/0x110 fs/ioctl.c:719 do_syscall_64+0xcb/0x150 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x44/0xa9 Freed by task 0: (stack is not available) The buggy address belongs to the object at ffff888175ca0280 which belongs to the cache skbuff_head_cache of size 240 The buggy address is located 24 bytes to the right of 240-byte region [ffff888175ca0280, ffff888175ca0370) The buggy address belongs to the page: page:ffffea0005d72800 refcount:1 mapcount:0 mapping:ffff8881daab7b80 index:0xffff888175ca03c0 flags: 0x8000000000000200(slab) raw: 8000000000000200 ffffea00071f0d08 ffffea0005d3f608 ffff8881daab7b80 raw: ffff888175ca03c0 00000000000c000b 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff888175ca0280: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff888175ca0300: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc fc >ffff888175ca0380: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb ^ ffff888175ca0400: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff888175ca0480: fb fb fb fb fb fb fc fc fc fc fc fc fc fc fc fc ================================================================== list_add corruption. next->prev should be prev (ffffffff84cb6ab0), but was 0000000000000000. (next=ffff888175ca0380). ------------[ cut here ]------------ kernel BUG at lib/list_debug.c:25! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 1 PID: 12689 Comm: syz-executor.2 Tainted: G B 5.4.53-syzkaller-00508-g5c3841e16e44 #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: 1e ca 98 84 4c 89 fe 4c 89 e2 4c 89 f1 31 c0 e8 c2 b8 2e ff 0f 0b 48 c7 c7 69 c9 98 84 4c 89 e6 4c 89 f1 31 c0 e8 ac b8 2e ff <0f> 0b 48 c7 c7 cc c9 98 84 4c 89 f6 4c 89 e1 31 c0 e8 96 b8 2e ff RSP: 0018:ffff88816bdbf2c8 EFLAGS: 00010246 RAX: 0000000000000075 RBX: ffff888175ca0388 RCX: e9b6b18d5d800f00 RDX: ffffc90000859000 RSI: 000000000003ffff RDI: 0000000000040000 RBP: ffff888175ca0380 R08: ffffffff812bed5e R09: ffffed103b725df0 R10: ffffed103b725df0 R11: 0000000000000000 R12: ffffffff84cb6ab0 R13: dffffc0000000000 R14: ffff888175ca0380 R15: ffff8881c6b88480 FS: 00007f9d2ce8f700(0000) GS:ffff8881db900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000400200 CR3: 0000000175fdb003 CR4: 00000000001606e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 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:0x45c369 Code: 8d 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 5b b6 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007f9d2ce8ec78 EFLAGS: 00000246 ORIG_RAX: 000000000000002e RAX: ffffffffffffffda RBX: 0000000000029500 RCX: 000000000045c369 RDX: 0000000000000000 RSI: 0000000020000180 RDI: 0000000000000004 RBP: 000000000078bf40 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 000000000078bf0c R13: 00007ffc8f4bb7ff R14: 00007f9d2ce8f9c0 R15: 000000000078bf0c Modules linked in: ---[ end trace 836f1a920cb8a99b ]--- RIP: 0010:__list_add_valid+0xa0/0xc0 lib/list_debug.c:23 Code: 1e ca 98 84 4c 89 fe 4c 89 e2 4c 89 f1 31 c0 e8 c2 b8 2e ff 0f 0b 48 c7 c7 69 c9 98 84 4c 89 e6 4c 89 f1 31 c0 e8 ac b8 2e ff <0f> 0b 48 c7 c7 cc c9 98 84 4c 89 f6 4c 89 e1 31 c0 e8 96 b8 2e ff RSP: 0018:ffff88816bdbf2c8 EFLAGS: 00010246 RAX: 0000000000000075 RBX: ffff888175ca0388 RCX: e9b6b18d5d800f00 RDX: ffffc90000859000 RSI: 000000000003ffff RDI: 0000000000040000 RBP: ffff888175ca0380 R08: ffffffff812bed5e R09: ffffed103b725df0 R10: ffffed103b725df0 R11: 0000000000000000 R12: ffffffff84cb6ab0 R13: dffffc0000000000 R14: ffff888175ca0380 R15: ffff8881c6b88480 FS: 00007f9d2ce8f700(0000) GS:ffff8881db800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000000050d5d0 CR3: 0000000175fdb003 CR4: 00000000001606f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400