Date
July 11, 2025, 11:09 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 16.307365] ================================================================== [ 16.307427] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_left+0x2ec/0x320 [ 16.307481] Read of size 1 at addr fff00000c3f2f57f by task kunit_try_catch/139 [ 16.307560] [ 16.307602] CPU: 0 UID: 0 PID: 139 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5 #1 PREEMPT [ 16.307742] Tainted: [B]=BAD_PAGE, [N]=TEST [ 16.307769] Hardware name: linux,dummy-virt (DT) [ 16.307859] Call trace: [ 16.307884] show_stack+0x20/0x38 (C) [ 16.308044] dump_stack_lvl+0x8c/0xd0 [ 16.308120] print_report+0x118/0x608 [ 16.308166] kasan_report+0xdc/0x128 [ 16.308218] __asan_report_load1_noabort+0x20/0x30 [ 16.308484] kmalloc_oob_left+0x2ec/0x320 [ 16.308530] kunit_try_run_case+0x170/0x3f0 [ 16.308577] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 16.308629] kthread+0x328/0x630 [ 16.308670] ret_from_fork+0x10/0x20 [ 16.308726] [ 16.308821] Allocated by task 10: [ 16.308989] kasan_save_stack+0x3c/0x68 [ 16.309103] kasan_save_track+0x20/0x40 [ 16.309199] kasan_save_alloc_info+0x40/0x58 [ 16.309395] __kasan_kmalloc+0xd4/0xd8 [ 16.309513] __kmalloc_node_track_caller_noprof+0x194/0x4b8 [ 16.309555] kvasprintf+0xe0/0x180 [ 16.309591] __kthread_create_on_node+0x16c/0x350 [ 16.309629] kthread_create_on_node+0xe4/0x130 [ 16.309664] create_worker+0x380/0x6b8 [ 16.309698] worker_thread+0x808/0xf38 [ 16.309738] kthread+0x328/0x630 [ 16.310121] ret_from_fork+0x10/0x20 [ 16.310267] [ 16.310413] The buggy address belongs to the object at fff00000c3f2f560 [ 16.310413] which belongs to the cache kmalloc-16 of size 16 [ 16.310672] The buggy address is located 19 bytes to the right of [ 16.310672] allocated 12-byte region [fff00000c3f2f560, fff00000c3f2f56c) [ 16.311218] [ 16.311294] The buggy address belongs to the physical page: [ 16.311348] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x103f2f [ 16.311437] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 16.311533] page_type: f5(slab) [ 16.311611] raw: 0bfffe0000000000 fff00000c0001640 dead000000000122 0000000000000000 [ 16.311659] raw: 0000000000000000 0000000080800080 00000000f5000000 0000000000000000 [ 16.311698] page dumped because: kasan: bad access detected [ 16.311728] [ 16.311745] Memory state around the buggy address: [ 16.312025] fff00000c3f2f400: 00 02 fc fc 00 02 fc fc 00 02 fc fc 00 05 fc fc [ 16.312169] fff00000c3f2f480: fa fb fc fc 00 02 fc fc fa fb fc fc fa fb fc fc [ 16.312212] >fff00000c3f2f500: fa fb fc fc fa fb fc fc fa fb fc fc 00 04 fc fc [ 16.312249] ^ [ 16.312362] fff00000c3f2f580: 00 07 fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.312404] fff00000c3f2f600: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.312486] ==================================================================
[ 11.754320] ================================================================== [ 11.754805] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_left+0x361/0x3c0 [ 11.755145] Read of size 1 at addr ffff888100a6e11f by task kunit_try_catch/155 [ 11.755481] [ 11.755593] CPU: 0 UID: 0 PID: 155 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5 #1 PREEMPT(voluntary) [ 11.755637] Tainted: [B]=BAD_PAGE, [N]=TEST [ 11.755649] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 11.755670] Call Trace: [ 11.755683] <TASK> [ 11.755700] dump_stack_lvl+0x73/0xb0 [ 11.755740] print_report+0xd1/0x650 [ 11.755762] ? __virt_addr_valid+0x1db/0x2d0 [ 11.755786] ? kmalloc_oob_left+0x361/0x3c0 [ 11.755806] ? kasan_complete_mode_report_info+0x2a/0x200 [ 11.755829] ? kmalloc_oob_left+0x361/0x3c0 [ 11.755849] kasan_report+0x141/0x180 [ 11.755870] ? kmalloc_oob_left+0x361/0x3c0 [ 11.755896] __asan_report_load1_noabort+0x18/0x20 [ 11.755930] kmalloc_oob_left+0x361/0x3c0 [ 11.755952] ? __pfx_kmalloc_oob_left+0x10/0x10 [ 11.755974] ? __schedule+0x10cc/0x2b60 [ 11.755996] ? __pfx_read_tsc+0x10/0x10 [ 11.756018] ? ktime_get_ts64+0x86/0x230 [ 11.756042] kunit_try_run_case+0x1a5/0x480 [ 11.756067] ? __pfx_kunit_try_run_case+0x10/0x10 [ 11.756089] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 11.756112] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 11.756136] ? __kthread_parkme+0x82/0x180 [ 11.756157] ? preempt_count_sub+0x50/0x80 [ 11.756181] ? __pfx_kunit_try_run_case+0x10/0x10 [ 11.756205] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 11.756231] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 11.756257] kthread+0x337/0x6f0 [ 11.756278] ? trace_preempt_on+0x20/0xc0 [ 11.756301] ? __pfx_kthread+0x10/0x10 [ 11.756321] ? _raw_spin_unlock_irq+0x47/0x80 [ 11.756342] ? calculate_sigpending+0x7b/0xa0 [ 11.756365] ? __pfx_kthread+0x10/0x10 [ 11.756386] ret_from_fork+0x116/0x1d0 [ 11.756404] ? __pfx_kthread+0x10/0x10 [ 11.756423] ret_from_fork_asm+0x1a/0x30 [ 11.756454] </TASK> [ 11.756465] [ 11.763273] Allocated by task 1: [ 11.763451] kasan_save_stack+0x45/0x70 [ 11.763684] kasan_save_track+0x18/0x40 [ 11.763955] kasan_save_alloc_info+0x3b/0x50 [ 11.764122] __kasan_kmalloc+0xb7/0xc0 [ 11.764256] __kmalloc_node_track_caller_noprof+0x1cb/0x500 [ 11.764436] kvasprintf+0xc5/0x150 [ 11.764560] __kthread_create_on_node+0x18b/0x3a0 [ 11.764856] kthread_create_on_node+0xab/0xe0 [ 11.765185] create_worker+0x3e5/0x7b0 [ 11.765375] alloc_unbound_pwq+0x8ea/0xdb0 [ 11.765580] apply_wqattrs_prepare+0x332/0xd20 [ 11.765819] apply_workqueue_attrs_locked+0x4d/0xa0 [ 11.766135] alloc_workqueue+0xcc7/0x1ad0 [ 11.766336] latency_fsnotify_init+0x1b/0x50 [ 11.766523] do_one_initcall+0xd8/0x370 [ 11.766683] kernel_init_freeable+0x420/0x6f0 [ 11.766885] kernel_init+0x23/0x1e0 [ 11.767021] ret_from_fork+0x116/0x1d0 [ 11.767165] ret_from_fork_asm+0x1a/0x30 [ 11.767359] [ 11.767451] The buggy address belongs to the object at ffff888100a6e100 [ 11.767451] which belongs to the cache kmalloc-16 of size 16 [ 11.767960] The buggy address is located 18 bytes to the right of [ 11.767960] allocated 13-byte region [ffff888100a6e100, ffff888100a6e10d) [ 11.768424] [ 11.768523] The buggy address belongs to the physical page: [ 11.768757] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x100a6e [ 11.769050] flags: 0x200000000000000(node=0|zone=2) [ 11.769220] page_type: f5(slab) [ 11.769340] raw: 0200000000000000 ffff888100041640 dead000000000122 0000000000000000 [ 11.769569] raw: 0000000000000000 0000000080800080 00000000f5000000 0000000000000000 [ 11.769917] page dumped because: kasan: bad access detected [ 11.770381] [ 11.770542] Memory state around the buggy address: [ 11.770706] ffff888100a6e000: 00 02 fc fc fa fb fc fc fa fb fc fc fa fb fc fc [ 11.770950] ffff888100a6e080: fa fb fc fc fa fb fc fc fa fb fc fc fa fb fc fc [ 11.771191] >ffff888100a6e100: 00 05 fc fc 00 07 fc fc fc fc fc fc fc fc fc fc [ 11.771402] ^ [ 11.771533] ffff888100a6e180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 11.771992] ffff888100a6e200: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 11.772382] ==================================================================