================================================================== BUG: KASAN: slab-out-of-bounds in blk_mq_free_rqs+0xde/0x680 block/blk-mq.c:-1 Read of size 8 at addr ffff8880264ea908 by task kworker/u8:3/42 CPU: 0 UID: 0 PID: 42 Comm: kworker/u8:3 Not tainted syzkaller #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/09/2026 Workqueue: nbd-del nbd_dev_remove_work Call Trace: dump_stack_lvl+0xe8/0x150 lib/dump_stack.c:120 print_address_description+0x55/0x1e0 mm/kasan/report.c:378 print_report+0x58/0x70 mm/kasan/report.c:482 kasan_report+0x117/0x150 mm/kasan/report.c:595 blk_mq_free_rqs+0xde/0x680 block/blk-mq.c:-1 blk_mq_free_map_and_rqs+0x40/0xf0 block/blk-mq.c:4148 blk_mq_free_sched_tags block/blk-mq-sched.c:425 [inline] blk_mq_free_sched_res+0xeb/0x280 block/blk-mq-sched.c:436 elevator_change_done+0x1d2/0x5c0 block/elevator.c:639 elevator_change+0x34f/0x480 block/elevator.c:685 elevator_set_none+0xb5/0x140 block/elevator.c:769 blk_unregister_queue+0x176/0x210 block/blk-sysfs.c:1073 __del_gendisk+0x414/0x920 block/genhd.c:743 del_gendisk+0xe7/0x160 block/genhd.c:823 nbd_dev_remove drivers/block/nbd.c:268 [inline] nbd_dev_remove_work+0x47/0xe0 drivers/block/nbd.c:284 process_one_work kernel/workqueue.c:3322 [inline] process_scheduled_works+0xa8e/0x14e0 kernel/workqueue.c:3405 worker_thread+0xa47/0xfb0 kernel/workqueue.c:3486 kthread+0x388/0x470 kernel/kthread.c:436 ret_from_fork+0x514/0xb70 arch/x86/kernel/process.c:158 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 Allocated by task 1: kasan_save_stack mm/kasan/common.c:57 [inline] kasan_save_track+0x3e/0x80 mm/kasan/common.c:78 poison_kmalloc_redzone mm/kasan/common.c:398 [inline] __kasan_kmalloc+0x93/0xb0 mm/kasan/common.c:415 kasan_kmalloc include/linux/kasan.h:263 [inline] __do_kmalloc_node mm/slub.c:5362 [inline] __kmalloc_node_noprof+0x4c8/0x740 mm/slub.c:5374 _kmalloc_array_node_noprof include/linux/slab.h:1275 [inline] blk_mq_alloc_tag_set+0x533/0x1000 block/blk-mq.c:4894 nbd_dev_add+0x30e/0xb60 drivers/block/nbd.c:1970 nbd_init+0x15f/0x1e0 drivers/block/nbd.c:2729 do_one_initcall+0x250/0x870 init/main.c:1347 do_initcall_level+0x10a/0x1a0 init/main.c:1409 do_initcalls+0x59/0xa0 init/main.c:1425 kernel_init_freeable+0x29d/0x3e0 init/main.c:1658 kernel_init+0x1d/0x1d0 init/main.c:1548 ret_from_fork+0x514/0xb70 arch/x86/kernel/process.c:158 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 The buggy address belongs to the object at ffff8880264ea900 which belongs to the cache kmalloc-8 of size 8 The buggy address is located 0 bytes to the right of allocated 8-byte region [ffff8880264ea900, ffff8880264ea908) The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x264ea flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) page_type: f5(slab) raw: 00fff00000000000 ffff88813fe25500 dead000000000100 dead000000000122 raw: 0000000000000000 0000000800800080 00000000f5000000 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 0, migratetype Unmovable, gfp_mask 0xd2cc0(GFP_KERNEL|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 1, tgid 1 (swapper/0), ts 5465599159, free_ts 0 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1f9/0x250 mm/page_alloc.c:1859 prep_new_page mm/page_alloc.c:1867 [inline] get_page_from_freelist+0x21fa/0x2270 mm/page_alloc.c:3946 __alloc_frozen_pages_noprof+0x18d/0x380 mm/page_alloc.c:5304 alloc_slab_page mm/slub.c:3294 [inline] allocate_slab+0x79/0x5e0 mm/slub.c:3408 new_slab mm/slub.c:3454 [inline] refill_objects+0x2d5/0x350 mm/slub.c:7338 refill_sheaf mm/slub.c:2832 [inline] __pcs_replace_empty_main+0x2bf/0x6b0 mm/slub.c:4703 alloc_from_pcs mm/slub.c:4801 [inline] slab_alloc_node mm/slub.c:4933 [inline] __do_kmalloc_node mm/slub.c:5361 [inline] __kmalloc_node_track_caller_noprof+0x557/0x730 mm/slub.c:5497 kvasprintf+0xeb/0x1a0 lib/kasprintf.c:25 kobject_set_name_vargs+0x61/0x110 lib/kobject.c:274 kobject_add_varg lib/kobject.c:368 [inline] kobject_add+0x121/0x240 lib/kobject.c:426 irq_sysfs_add kernel/irq/irqdesc.c:364 [inline] alloc_descs kernel/irq/irqdesc.c:532 [inline] __irq_alloc_descs+0x503/0x6b0 kernel/irq/irqdesc.c:922 irq_domain_alloc_descs kernel/irq/irqdomain.c:-1 [inline] irq_domain_alloc_irqs_locked+0x89/0xc50 kernel/irq/irqdomain.c:1639 __irq_domain_alloc_irqs+0xa5/0x100 kernel/irq/irqdomain.c:1711 __msi_domain_alloc_irqs+0x7b2/0x13f0 kernel/irq/msi.c:1336 __msi_domain_alloc_locked kernel/irq/msi.c:1393 [inline] msi_domain_alloc_locked+0x491/0xb40 kernel/irq/msi.c:1398 msi_domain_alloc_irqs_all_locked+0xab/0xf0 kernel/irq/msi.c:1474 page_owner free stack trace missing Memory state around the buggy address: ffff8880264ea800: 05 fc fc fc 06 fc fc fc 05 fc fc fc 05 fc fc fc ffff8880264ea880: 05 fc fc fc 00 fc fc fc 05 fc fc fc 00 fc fc fc >ffff8880264ea900: 00 fc fc fc 06 fc fc fc 06 fc fc fc 06 fc fc fc ^ ffff8880264ea980: 04 fc fc fc 05 fc fc fc 05 fc fc fc 05 fc fc fc ffff8880264eaa00: 04 fc fc fc 04 fc fc fc 04 fc fc fc 05 fc fc fc ==================================================================