Date
July 22, 2025, 2:40 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 16.824608] ================================================================== [ 16.825718] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_left+0x2ec/0x320 [ 16.826200] Read of size 1 at addr fff00000c16d061f by task kunit_try_catch/140 [ 16.826526] [ 16.826700] CPU: 0 UID: 0 PID: 140 Comm: kunit_try_catch Tainted: G B N 6.15.8-rc1 #1 PREEMPT [ 16.827078] Tainted: [B]=BAD_PAGE, [N]=TEST [ 16.827304] Hardware name: linux,dummy-virt (DT) [ 16.827347] Call trace: [ 16.827369] show_stack+0x20/0x38 (C) [ 16.827420] dump_stack_lvl+0x8c/0xd0 [ 16.827468] print_report+0x118/0x5d0 [ 16.828147] kasan_report+0xdc/0x128 [ 16.828216] __asan_report_load1_noabort+0x20/0x30 [ 16.828265] kmalloc_oob_left+0x2ec/0x320 [ 16.828427] kunit_try_run_case+0x170/0x3f0 [ 16.828479] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 16.828924] kthread+0x328/0x630 [ 16.829179] ret_from_fork+0x10/0x20 [ 16.829375] [ 16.829440] Allocated by task 26: [ 16.829472] kasan_save_stack+0x3c/0x68 [ 16.829761] kasan_save_track+0x20/0x40 [ 16.829806] kasan_save_alloc_info+0x40/0x58 [ 16.830151] __kasan_kmalloc+0xd4/0xd8 [ 16.830248] __kmalloc_node_track_caller_noprof+0x194/0x4b8 [ 16.830757] kstrdup+0x54/0xc8 [ 16.830943] devtmpfs_work_loop+0x6f8/0xa58 [ 16.831083] devtmpfsd+0x50/0x58 [ 16.831209] kthread+0x328/0x630 [ 16.831312] ret_from_fork+0x10/0x20 [ 16.831452] [ 16.831517] Freed by task 26: [ 16.831730] kasan_save_stack+0x3c/0x68 [ 16.831997] kasan_save_track+0x20/0x40 [ 16.832086] kasan_save_free_info+0x4c/0x78 [ 16.832242] __kasan_slab_free+0x6c/0x98 [ 16.832336] kfree+0x214/0x3c8 [ 16.832436] devtmpfs_work_loop+0x804/0xa58 [ 16.832514] devtmpfsd+0x50/0x58 [ 16.832746] kthread+0x328/0x630 [ 16.832822] ret_from_fork+0x10/0x20 [ 16.832872] [ 16.832926] The buggy address belongs to the object at fff00000c16d0600 [ 16.832926] which belongs to the cache kmalloc-16 of size 16 [ 16.832982] The buggy address is located 15 bytes to the right of [ 16.832982] allocated 16-byte region [fff00000c16d0600, fff00000c16d0610) [ 16.833290] [ 16.833329] The buggy address belongs to the physical page: [ 16.833460] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1016d0 [ 16.833580] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 16.833706] page_type: f5(slab) [ 16.833804] raw: 0bfffe0000000000 fff00000c0001640 dead000000000122 0000000000000000 [ 16.833927] raw: 0000000000000000 0000000080800080 00000000f5000000 0000000000000000 [ 16.833987] page dumped because: kasan: bad access detected [ 16.834017] [ 16.834051] Memory state around the buggy address: [ 16.834119] fff00000c16d0500: 00 05 fc fc 00 05 fc fc 00 05 fc fc 00 05 fc fc [ 16.834475] fff00000c16d0580: 00 05 fc fc 00 05 fc fc fa fb fc fc fa fb fc fc [ 16.834550] >fff00000c16d0600: fa fb fc fc 00 07 fc fc fc fc fc fc fc fc fc fc [ 16.834670] ^ [ 16.834746] fff00000c16d0680: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.834811] fff00000c16d0700: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.834920] ==================================================================
[ 10.396585] ================================================================== [ 10.397189] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_left+0x361/0x3c0 [ 10.397528] Read of size 1 at addr ffff8881022195bf by task kunit_try_catch/158 [ 10.397927] [ 10.398173] CPU: 1 UID: 0 PID: 158 Comm: kunit_try_catch Tainted: G B N 6.15.8-rc1 #1 PREEMPT(voluntary) [ 10.398395] Tainted: [B]=BAD_PAGE, [N]=TEST [ 10.398414] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 10.398439] Call Trace: [ 10.398453] <TASK> [ 10.398604] dump_stack_lvl+0x73/0xb0 [ 10.398639] print_report+0xd1/0x610 [ 10.398694] ? __virt_addr_valid+0x1db/0x2d0 [ 10.398717] ? kmalloc_oob_left+0x361/0x3c0 [ 10.398738] ? kasan_complete_mode_report_info+0x2a/0x200 [ 10.398759] ? kmalloc_oob_left+0x361/0x3c0 [ 10.398781] kasan_report+0x141/0x180 [ 10.398805] ? kmalloc_oob_left+0x361/0x3c0 [ 10.398836] __asan_report_load1_noabort+0x18/0x20 [ 10.398856] kmalloc_oob_left+0x361/0x3c0 [ 10.398878] ? __pfx_kmalloc_oob_left+0x10/0x10 [ 10.398899] ? __schedule+0x10c6/0x2b60 [ 10.398923] ? __pfx_read_tsc+0x10/0x10 [ 10.398963] ? ktime_get_ts64+0x86/0x230 [ 10.398990] kunit_try_run_case+0x1a5/0x480 [ 10.399025] ? __pfx_kunit_try_run_case+0x10/0x10 [ 10.399043] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 10.399073] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 10.399096] ? __kthread_parkme+0x82/0x180 [ 10.399118] ? preempt_count_sub+0x50/0x80 [ 10.399156] ? __pfx_kunit_try_run_case+0x10/0x10 [ 10.399175] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 10.399197] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 10.399238] kthread+0x337/0x6f0 [ 10.399255] ? trace_preempt_on+0x20/0xc0 [ 10.399279] ? __pfx_kthread+0x10/0x10 [ 10.399296] ? _raw_spin_unlock_irq+0x47/0x80 [ 10.399317] ? calculate_sigpending+0x7b/0xa0 [ 10.399339] ? __pfx_kthread+0x10/0x10 [ 10.399367] ret_from_fork+0x41/0x80 [ 10.399387] ? __pfx_kthread+0x10/0x10 [ 10.399404] ret_from_fork_asm+0x1a/0x30 [ 10.399435] </TASK> [ 10.399446] [ 10.412808] Allocated by task 24: [ 10.413176] kasan_save_stack+0x45/0x70 [ 10.413508] kasan_save_track+0x18/0x40 [ 10.413827] kasan_save_alloc_info+0x3b/0x50 [ 10.414214] __kasan_kmalloc+0xb7/0xc0 [ 10.414370] __kmalloc_node_track_caller_noprof+0x1cb/0x500 [ 10.414939] kvasprintf+0xc5/0x150 [ 10.415370] __kthread_create_on_node+0x18b/0x3a0 [ 10.415833] kthread_create_on_node+0xab/0xe0 [ 10.416032] create_worker+0x3e5/0x7b0 [ 10.416418] worker_thread+0x992/0x1220 [ 10.416688] kthread+0x337/0x6f0 [ 10.416801] ret_from_fork+0x41/0x80 [ 10.417151] ret_from_fork_asm+0x1a/0x30 [ 10.417598] [ 10.417756] The buggy address belongs to the object at ffff8881022195a0 [ 10.417756] which belongs to the cache kmalloc-16 of size 16 [ 10.418295] The buggy address is located 19 bytes to the right of [ 10.418295] allocated 12-byte region [ffff8881022195a0, ffff8881022195ac) [ 10.419060] [ 10.419134] The buggy address belongs to the physical page: [ 10.419315] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102219 [ 10.420016] flags: 0x200000000000000(node=0|zone=2) [ 10.420556] page_type: f5(slab) [ 10.420932] raw: 0200000000000000 ffff888100041640 dead000000000122 0000000000000000 [ 10.421647] raw: 0000000000000000 0000000080800080 00000000f5000000 0000000000000000 [ 10.422407] page dumped because: kasan: bad access detected [ 10.422998] [ 10.423161] Memory state around the buggy address: [ 10.423325] ffff888102219480: 00 06 fc fc 00 06 fc fc 00 04 fc fc 00 04 fc fc [ 10.423948] ffff888102219500: 00 01 fc fc 00 01 fc fc 00 04 fc fc 00 04 fc fc [ 10.424623] >ffff888102219580: 00 05 fc fc 00 04 fc fc 00 07 fc fc fc fc fc fc [ 10.425167] ^ [ 10.425630] ffff888102219600: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 10.426010] ffff888102219680: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 10.426719] ==================================================================