Date
July 2, 2025, 11:09 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 17.765930] ================================================================== [ 17.765990] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_left+0x2ec/0x320 [ 17.766042] Read of size 1 at addr fff00000c3fc675f by task kunit_try_catch/138 [ 17.766734] [ 17.766786] CPU: 1 UID: 0 PID: 138 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc4 #1 PREEMPT [ 17.767362] Tainted: [B]=BAD_PAGE, [N]=TEST [ 17.767393] Hardware name: linux,dummy-virt (DT) [ 17.767436] Call trace: [ 17.767519] show_stack+0x20/0x38 (C) [ 17.767586] dump_stack_lvl+0x8c/0xd0 [ 17.767701] print_report+0x118/0x608 [ 17.767804] kasan_report+0xdc/0x128 [ 17.769800] __asan_report_load1_noabort+0x20/0x30 [ 17.769879] kmalloc_oob_left+0x2ec/0x320 [ 17.769925] kunit_try_run_case+0x170/0x3f0 [ 17.770010] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 17.770326] kthread+0x328/0x630 [ 17.770409] ret_from_fork+0x10/0x20 [ 17.770479] [ 17.770595] Allocated by task 24: [ 17.771090] kasan_save_stack+0x3c/0x68 [ 17.771329] kasan_save_track+0x20/0x40 [ 17.771549] kasan_save_alloc_info+0x40/0x58 [ 17.771698] __kasan_kmalloc+0xd4/0xd8 [ 17.771941] __kmalloc_node_track_caller_noprof+0x194/0x4b8 [ 17.772130] kvasprintf+0xe0/0x180 [ 17.772320] __kthread_create_on_node+0x16c/0x350 [ 17.772602] kthread_create_on_node+0xe4/0x130 [ 17.772646] create_worker+0x380/0x6b8 [ 17.772680] worker_thread+0x808/0xf38 [ 17.772762] kthread+0x328/0x630 [ 17.772807] ret_from_fork+0x10/0x20 [ 17.773016] [ 17.773039] The buggy address belongs to the object at fff00000c3fc6740 [ 17.773039] which belongs to the cache kmalloc-16 of size 16 [ 17.773129] The buggy address is located 19 bytes to the right of [ 17.773129] allocated 12-byte region [fff00000c3fc6740, fff00000c3fc674c) [ 17.773316] [ 17.773338] The buggy address belongs to the physical page: [ 17.773731] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x103fc6 [ 17.773792] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 17.774258] page_type: f5(slab) [ 17.774446] raw: 0bfffe0000000000 fff00000c0001640 dead000000000122 0000000000000000 [ 17.774896] raw: 0000000000000000 0000000080800080 00000000f5000000 0000000000000000 [ 17.774940] page dumped because: kasan: bad access detected [ 17.774970] [ 17.774987] Memory state around the buggy address: [ 17.775019] fff00000c3fc6600: 00 02 fc fc 00 02 fc fc 00 05 fc fc fa fb fc fc [ 17.775060] fff00000c3fc6680: 00 02 fc fc fa fb fc fc fa fb fc fc fa fb fc fc [ 17.775101] >fff00000c3fc6700: fa fb fc fc fa fb fc fc 00 04 fc fc 00 07 fc fc [ 17.775507] ^ [ 17.775993] fff00000c3fc6780: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 17.776239] fff00000c3fc6800: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 17.776430] ==================================================================
[ 10.750821] ================================================================== [ 10.751856] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_left+0x361/0x3c0 [ 10.752157] Read of size 1 at addr ffff888101c19ebf by task kunit_try_catch/157 [ 10.752681] [ 10.752886] CPU: 0 UID: 0 PID: 157 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc4 #1 PREEMPT(voluntary) [ 10.752934] Tainted: [B]=BAD_PAGE, [N]=TEST [ 10.752945] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 10.752969] Call Trace: [ 10.752982] <TASK> [ 10.753002] dump_stack_lvl+0x73/0xb0 [ 10.753050] print_report+0xd1/0x650 [ 10.753084] ? __virt_addr_valid+0x1db/0x2d0 [ 10.753108] ? kmalloc_oob_left+0x361/0x3c0 [ 10.753128] ? kasan_complete_mode_report_info+0x2a/0x200 [ 10.753148] ? kmalloc_oob_left+0x361/0x3c0 [ 10.753168] kasan_report+0x141/0x180 [ 10.753189] ? kmalloc_oob_left+0x361/0x3c0 [ 10.753213] __asan_report_load1_noabort+0x18/0x20 [ 10.753235] kmalloc_oob_left+0x361/0x3c0 [ 10.753256] ? __pfx_kmalloc_oob_left+0x10/0x10 [ 10.753278] ? __schedule+0x10cc/0x2b60 [ 10.753300] ? __pfx_read_tsc+0x10/0x10 [ 10.753322] ? ktime_get_ts64+0x86/0x230 [ 10.753346] kunit_try_run_case+0x1a5/0x480 [ 10.753371] ? __pfx_kunit_try_run_case+0x10/0x10 [ 10.753403] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 10.753426] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 10.753447] ? __kthread_parkme+0x82/0x180 [ 10.753467] ? preempt_count_sub+0x50/0x80 [ 10.753491] ? __pfx_kunit_try_run_case+0x10/0x10 [ 10.753513] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 10.753534] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 10.753573] kthread+0x337/0x6f0 [ 10.753591] ? trace_preempt_on+0x20/0xc0 [ 10.753614] ? __pfx_kthread+0x10/0x10 [ 10.753633] ? _raw_spin_unlock_irq+0x47/0x80 [ 10.753652] ? calculate_sigpending+0x7b/0xa0 [ 10.753675] ? __pfx_kthread+0x10/0x10 [ 10.753695] ret_from_fork+0x116/0x1d0 [ 10.753712] ? __pfx_kthread+0x10/0x10 [ 10.753731] ret_from_fork_asm+0x1a/0x30 [ 10.753776] </TASK> [ 10.753788] [ 10.764455] Allocated by task 1: [ 10.764749] kasan_save_stack+0x45/0x70 [ 10.765147] kasan_save_track+0x18/0x40 [ 10.765339] kasan_save_alloc_info+0x3b/0x50 [ 10.765542] __kasan_kmalloc+0xb7/0xc0 [ 10.765977] __kmalloc_node_track_caller_noprof+0x1cb/0x500 [ 10.766486] kvasprintf+0xc5/0x150 [ 10.766865] __kthread_create_on_node+0x18b/0x3a0 [ 10.767326] kthread_create_on_node+0xab/0xe0 [ 10.767564] create_worker+0x3e5/0x7b0 [ 10.767713] alloc_unbound_pwq+0x8ea/0xdb0 [ 10.768281] apply_wqattrs_prepare+0x332/0xd20 [ 10.768693] apply_workqueue_attrs_locked+0x4d/0xa0 [ 10.769008] alloc_workqueue+0xcc7/0x1ad0 [ 10.769329] latency_fsnotify_init+0x1b/0x50 [ 10.769543] do_one_initcall+0xd8/0x370 [ 10.770018] kernel_init_freeable+0x420/0x6f0 [ 10.770230] kernel_init+0x23/0x1e0 [ 10.770400] ret_from_fork+0x116/0x1d0 [ 10.770808] ret_from_fork_asm+0x1a/0x30 [ 10.771100] [ 10.771195] The buggy address belongs to the object at ffff888101c19ea0 [ 10.771195] which belongs to the cache kmalloc-16 of size 16 [ 10.772341] The buggy address is located 18 bytes to the right of [ 10.772341] allocated 13-byte region [ffff888101c19ea0, ffff888101c19ead) [ 10.773076] [ 10.773320] The buggy address belongs to the physical page: [ 10.773751] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x101c19 [ 10.774253] flags: 0x200000000000000(node=0|zone=2) [ 10.774493] page_type: f5(slab) [ 10.774882] raw: 0200000000000000 ffff888100041640 dead000000000122 0000000000000000 [ 10.775409] raw: 0000000000000000 0000000080800080 00000000f5000000 0000000000000000 [ 10.775967] page dumped because: kasan: bad access detected [ 10.776210] [ 10.776301] Memory state around the buggy address: [ 10.776519] ffff888101c19d80: 00 06 fc fc 00 06 fc fc 00 00 fc fc 00 02 fc fc [ 10.777271] ffff888101c19e00: 00 02 fc fc 00 06 fc fc 00 06 fc fc fa fb fc fc [ 10.777734] >ffff888101c19e80: fa fb fc fc 00 05 fc fc 00 07 fc fc fc fc fc fc [ 10.778211] ^ [ 10.778447] ffff888101c19f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 10.779123] ffff888101c19f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 10.779675] ==================================================================