Date
July 12, 2025, 11:09 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 16.397371] ================================================================== [ 16.397457] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_left+0x2ec/0x320 [ 16.397508] Read of size 1 at addr fff00000c45d1a1f by task kunit_try_catch/138 [ 16.397558] [ 16.397594] CPU: 1 UID: 0 PID: 138 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5 #1 PREEMPT [ 16.397684] Tainted: [B]=BAD_PAGE, [N]=TEST [ 16.397719] Hardware name: linux,dummy-virt (DT) [ 16.397802] Call trace: [ 16.397910] show_stack+0x20/0x38 (C) [ 16.398066] dump_stack_lvl+0x8c/0xd0 [ 16.398541] print_report+0x118/0x5d0 [ 16.398928] kasan_report+0xdc/0x128 [ 16.399362] __asan_report_load1_noabort+0x20/0x30 [ 16.399735] kmalloc_oob_left+0x2ec/0x320 [ 16.400112] kunit_try_run_case+0x170/0x3f0 [ 16.400169] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 16.400232] kthread+0x328/0x630 [ 16.400398] ret_from_fork+0x10/0x20 [ 16.400454] [ 16.400471] Allocated by task 26: [ 16.400501] kasan_save_stack+0x3c/0x68 [ 16.400541] kasan_save_track+0x20/0x40 [ 16.400631] kasan_save_alloc_info+0x40/0x58 [ 16.400671] __kasan_kmalloc+0xd4/0xd8 [ 16.400742] __kmalloc_node_track_caller_noprof+0x194/0x4b8 [ 16.400842] kstrdup+0x54/0xc8 [ 16.400941] devtmpfs_work_loop+0x6f8/0xa58 [ 16.400991] devtmpfsd+0x50/0x58 [ 16.401141] kthread+0x328/0x630 [ 16.401184] ret_from_fork+0x10/0x20 [ 16.401253] [ 16.401466] Freed by task 26: [ 16.401580] kasan_save_stack+0x3c/0x68 [ 16.401842] kasan_save_track+0x20/0x40 [ 16.401891] kasan_save_free_info+0x4c/0x78 [ 16.401929] __kasan_slab_free+0x6c/0x98 [ 16.401970] kfree+0x214/0x3c8 [ 16.402005] devtmpfs_work_loop+0x804/0xa58 [ 16.402041] devtmpfsd+0x50/0x58 [ 16.402212] kthread+0x328/0x630 [ 16.402279] ret_from_fork+0x10/0x20 [ 16.402420] [ 16.402446] The buggy address belongs to the object at fff00000c45d1a00 [ 16.402446] which belongs to the cache kmalloc-16 of size 16 [ 16.402815] The buggy address is located 15 bytes to the right of [ 16.402815] allocated 16-byte region [fff00000c45d1a00, fff00000c45d1a10) [ 16.402953] [ 16.402972] The buggy address belongs to the physical page: [ 16.403003] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1045d1 [ 16.403058] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 16.403400] page_type: f5(slab) [ 16.403505] raw: 0bfffe0000000000 fff00000c0001640 dead000000000122 0000000000000000 [ 16.403556] raw: 0000000000000000 0000000080800080 00000000f5000000 0000000000000000 [ 16.403596] page dumped because: kasan: bad access detected [ 16.403626] [ 16.403645] Memory state around the buggy address: [ 16.403688] fff00000c45d1900: 00 00 fc fc 00 00 fc fc 00 00 fc fc fa fb fc fc [ 16.403901] fff00000c45d1980: fa fb fc fc 00 05 fc fc fa fb fc fc fa fb fc fc [ 16.403946] >fff00000c45d1a00: fa fb fc fc 00 07 fc fc fc fc fc fc fc fc fc fc [ 16.403982] ^ [ 16.404038] fff00000c45d1a80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.404081] fff00000c45d1b00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.404119] ==================================================================
[ 12.248190] ================================================================== [ 12.249331] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_left+0x361/0x3c0 [ 12.249566] Read of size 1 at addr ffff888102610b1f by task kunit_try_catch/155 [ 12.249789] [ 12.249878] CPU: 1 UID: 0 PID: 155 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5 #1 PREEMPT(voluntary) [ 12.249924] Tainted: [B]=BAD_PAGE, [N]=TEST [ 12.249935] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 12.249956] Call Trace: [ 12.249969] <TASK> [ 12.249985] dump_stack_lvl+0x73/0xb0 [ 12.250014] print_report+0xd1/0x610 [ 12.250037] ? __virt_addr_valid+0x1db/0x2d0 [ 12.250061] ? kmalloc_oob_left+0x361/0x3c0 [ 12.250082] ? kasan_complete_mode_report_info+0x2a/0x200 [ 12.250105] ? kmalloc_oob_left+0x361/0x3c0 [ 12.250128] kasan_report+0x141/0x180 [ 12.250149] ? kmalloc_oob_left+0x361/0x3c0 [ 12.250176] __asan_report_load1_noabort+0x18/0x20 [ 12.250201] kmalloc_oob_left+0x361/0x3c0 [ 12.250223] ? __pfx_kmalloc_oob_left+0x10/0x10 [ 12.250246] ? __schedule+0x10cc/0x2b60 [ 12.250282] ? __pfx_read_tsc+0x10/0x10 [ 12.250303] ? ktime_get_ts64+0x86/0x230 [ 12.250328] kunit_try_run_case+0x1a5/0x480 [ 12.250353] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.250376] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 12.250401] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 12.250424] ? __kthread_parkme+0x82/0x180 [ 12.250445] ? preempt_count_sub+0x50/0x80 [ 12.250469] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.250493] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 12.250518] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 12.250543] kthread+0x337/0x6f0 [ 12.250562] ? trace_preempt_on+0x20/0xc0 [ 12.250585] ? __pfx_kthread+0x10/0x10 [ 12.250606] ? _raw_spin_unlock_irq+0x47/0x80 [ 12.250627] ? calculate_sigpending+0x7b/0xa0 [ 12.250652] ? __pfx_kthread+0x10/0x10 [ 12.250673] ret_from_fork+0x116/0x1d0 [ 12.250691] ? __pfx_kthread+0x10/0x10 [ 12.250718] ret_from_fork_asm+0x1a/0x30 [ 12.250749] </TASK> [ 12.250759] [ 12.261817] Allocated by task 1: [ 12.261996] kasan_save_stack+0x45/0x70 [ 12.262199] kasan_save_track+0x18/0x40 [ 12.262357] kasan_save_alloc_info+0x3b/0x50 [ 12.262508] __kasan_kmalloc+0xb7/0xc0 [ 12.262679] __kmalloc_node_track_caller_noprof+0x1cb/0x500 [ 12.262949] kstrdup+0x3e/0xa0 [ 12.263117] kstrdup_const+0x2c/0x40 [ 12.263310] __kernfs_new_node+0xa7/0x6d0 [ 12.263514] kernfs_new_node+0x140/0x1e0 [ 12.263692] kernfs_create_dir_ns+0x30/0x140 [ 12.263849] sysfs_create_dir_ns+0x130/0x290 [ 12.264063] kobject_add_internal+0x222/0x9b0 [ 12.264291] kobject_init_and_add+0xf1/0x160 [ 12.264476] sysfs_slab_add+0x19a/0x1f0 [ 12.264611] slab_sysfs_init+0x76/0x110 [ 12.264750] do_one_initcall+0xd8/0x370 [ 12.264940] kernel_init_freeable+0x420/0x6f0 [ 12.265153] kernel_init+0x23/0x1e0 [ 12.265338] ret_from_fork+0x116/0x1d0 [ 12.265528] ret_from_fork_asm+0x1a/0x30 [ 12.265681] [ 12.265753] The buggy address belongs to the object at ffff888102610b00 [ 12.265753] which belongs to the cache kmalloc-16 of size 16 [ 12.266215] The buggy address is located 19 bytes to the right of [ 12.266215] allocated 12-byte region [ffff888102610b00, ffff888102610b0c) [ 12.266748] [ 12.266844] The buggy address belongs to the physical page: [ 12.267050] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102610 [ 12.267365] flags: 0x200000000000000(node=0|zone=2) [ 12.267598] page_type: f5(slab) [ 12.267747] raw: 0200000000000000 ffff888100041640 dead000000000122 0000000000000000 [ 12.267983] raw: 0000000000000000 0000000080800080 00000000f5000000 0000000000000000 [ 12.268245] page dumped because: kasan: bad access detected [ 12.268500] [ 12.268590] Memory state around the buggy address: [ 12.268808] ffff888102610a00: 00 02 fc fc 00 06 fc fc 00 06 fc fc 00 04 fc fc [ 12.269061] ffff888102610a80: 00 04 fc fc 00 01 fc fc 00 01 fc fc 00 04 fc fc [ 12.269308] >ffff888102610b00: 00 04 fc fc 00 07 fc fc fc fc fc fc fc fc fc fc [ 12.269621] ^ [ 12.269815] ffff888102610b80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.270097] ffff888102610c00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.270321] ==================================================================