Date
July 15, 2025, 2:09 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 17.515300] ================================================================== [ 17.515389] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_left+0x2ec/0x320 [ 17.515854] Read of size 1 at addr fff00000c45d8abf by task kunit_try_catch/140 [ 17.515925] [ 17.516019] CPU: 0 UID: 0 PID: 140 Comm: kunit_try_catch Tainted: G B N 6.15.7-rc1 #1 PREEMPT [ 17.516099] Tainted: [B]=BAD_PAGE, [N]=TEST [ 17.516136] Hardware name: linux,dummy-virt (DT) [ 17.516168] Call trace: [ 17.516197] show_stack+0x20/0x38 (C) [ 17.516266] dump_stack_lvl+0x8c/0xd0 [ 17.516313] print_report+0x118/0x5d0 [ 17.516357] kasan_report+0xdc/0x128 [ 17.516400] __asan_report_load1_noabort+0x20/0x30 [ 17.516449] kmalloc_oob_left+0x2ec/0x320 [ 17.516495] kunit_try_run_case+0x170/0x3f0 [ 17.516541] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 17.516595] kthread+0x328/0x630 [ 17.516652] ret_from_fork+0x10/0x20 [ 17.516708] [ 17.516726] Allocated by task 26: [ 17.516753] kasan_save_stack+0x3c/0x68 [ 17.516791] kasan_save_track+0x20/0x40 [ 17.516826] kasan_save_alloc_info+0x40/0x58 [ 17.516863] __kasan_kmalloc+0xd4/0xd8 [ 17.516896] __kmalloc_node_track_caller_noprof+0x194/0x4b8 [ 17.516938] kstrdup+0x54/0xc8 [ 17.516983] devtmpfs_work_loop+0x6f8/0xa58 [ 17.517025] devtmpfsd+0x50/0x58 [ 17.517059] kthread+0x328/0x630 [ 17.517102] ret_from_fork+0x10/0x20 [ 17.517136] [ 17.517178] Freed by task 26: [ 17.517233] kasan_save_stack+0x3c/0x68 [ 17.517272] kasan_save_track+0x20/0x40 [ 17.517307] kasan_save_free_info+0x4c/0x78 [ 17.517924] __kasan_slab_free+0x6c/0x98 [ 17.518006] kfree+0x214/0x3c8 [ 17.518062] devtmpfs_work_loop+0x804/0xa58 [ 17.518195] devtmpfsd+0x50/0x58 [ 17.518326] kthread+0x328/0x630 [ 17.518555] ret_from_fork+0x10/0x20 [ 17.518970] [ 17.519071] The buggy address belongs to the object at fff00000c45d8aa0 [ 17.519071] which belongs to the cache kmalloc-16 of size 16 [ 17.519332] The buggy address is located 15 bytes to the right of [ 17.519332] allocated 16-byte region [fff00000c45d8aa0, fff00000c45d8ab0) [ 17.519616] [ 17.519718] The buggy address belongs to the physical page: [ 17.519869] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1045d8 [ 17.520020] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 17.520070] page_type: f5(slab) [ 17.520108] raw: 0bfffe0000000000 fff00000c0001640 dead000000000122 0000000000000000 [ 17.520629] raw: 0000000000000000 0000000080800080 00000000f5000000 0000000000000000 [ 17.520728] page dumped because: kasan: bad access detected [ 17.520803] [ 17.520863] Memory state around the buggy address: [ 17.521233] fff00000c45d8980: 00 05 fc fc fa fb fc fc fa fb fc fc 00 02 fc fc [ 17.521573] fff00000c45d8a00: fa fb fc fc fa fb fc fc 00 01 fc fc fa fb fc fc [ 17.521631] >fff00000c45d8a80: fa fb fc fc fa fb fc fc 00 07 fc fc fc fc fc fc [ 17.521705] ^ [ 17.521765] fff00000c45d8b00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 17.521872] fff00000c45d8b80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 17.521911] ==================================================================
[ 10.382404] ================================================================== [ 10.382836] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_left+0x361/0x3c0 [ 10.383155] Read of size 1 at addr ffff8881027e743f by task kunit_try_catch/157 [ 10.383455] [ 10.383550] CPU: 1 UID: 0 PID: 157 Comm: kunit_try_catch Tainted: G B N 6.15.7-rc1 #1 PREEMPT(voluntary) [ 10.383591] Tainted: [B]=BAD_PAGE, [N]=TEST [ 10.383602] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 10.383619] Call Trace: [ 10.383630] <TASK> [ 10.383642] dump_stack_lvl+0x73/0xb0 [ 10.383663] print_report+0xd1/0x610 [ 10.383684] ? __virt_addr_valid+0x1db/0x2d0 [ 10.383704] ? kmalloc_oob_left+0x361/0x3c0 [ 10.383725] ? kasan_complete_mode_report_info+0x2a/0x200 [ 10.383746] ? kmalloc_oob_left+0x361/0x3c0 [ 10.383768] kasan_report+0x141/0x180 [ 10.383790] ? kmalloc_oob_left+0x361/0x3c0 [ 10.383816] __asan_report_load1_noabort+0x18/0x20 [ 10.383836] kmalloc_oob_left+0x361/0x3c0 [ 10.383866] ? __pfx_kmalloc_oob_left+0x10/0x10 [ 10.383899] ? __schedule+0x10cc/0x2b60 [ 10.383922] ? __pfx_read_tsc+0x10/0x10 [ 10.383940] ? ktime_get_ts64+0x86/0x230 [ 10.383966] kunit_try_run_case+0x1a5/0x480 [ 10.383986] ? __pfx_kunit_try_run_case+0x10/0x10 [ 10.384003] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 10.384025] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 10.384048] ? __kthread_parkme+0x82/0x180 [ 10.384068] ? preempt_count_sub+0x50/0x80 [ 10.384091] ? __pfx_kunit_try_run_case+0x10/0x10 [ 10.384110] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 10.384131] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 10.384153] kthread+0x337/0x6f0 [ 10.384169] ? trace_preempt_on+0x20/0xc0 [ 10.384190] ? __pfx_kthread+0x10/0x10 [ 10.384207] ? _raw_spin_unlock_irq+0x47/0x80 [ 10.384228] ? calculate_sigpending+0x7b/0xa0 [ 10.384248] ? __pfx_kthread+0x10/0x10 [ 10.384265] ret_from_fork+0x41/0x80 [ 10.384284] ? __pfx_kthread+0x10/0x10 [ 10.384300] ret_from_fork_asm+0x1a/0x30 [ 10.384330] </TASK> [ 10.384339] [ 10.390701] Allocated by task 1: [ 10.391158] kasan_save_stack+0x45/0x70 [ 10.391357] kasan_save_track+0x18/0x40 [ 10.391547] kasan_save_alloc_info+0x3b/0x50 [ 10.391760] __kasan_kmalloc+0xb7/0xc0 [ 10.391991] __kmalloc_node_track_caller_noprof+0x1cb/0x500 [ 10.392307] kstrdup+0x3e/0xa0 [ 10.392425] kstrdup_const+0x2c/0x40 [ 10.392617] __kernfs_new_node+0xa7/0x6d0 [ 10.392820] kernfs_new_node+0x140/0x1e0 [ 10.393006] kernfs_create_dir_ns+0x30/0x140 [ 10.393158] sysfs_create_dir_ns+0x130/0x290 [ 10.393300] kobject_add_internal+0x222/0x9b0 [ 10.393494] kobject_init_and_add+0xf1/0x160 [ 10.393700] sysfs_slab_add+0x19a/0x1f0 [ 10.393982] slab_sysfs_init+0x76/0x110 [ 10.394177] do_one_initcall+0xd8/0x370 [ 10.394328] kernel_init_freeable+0x420/0x6f0 [ 10.394535] kernel_init+0x23/0x1e0 [ 10.394708] ret_from_fork+0x41/0x80 [ 10.394916] ret_from_fork_asm+0x1a/0x30 [ 10.395085] [ 10.395162] The buggy address belongs to the object at ffff8881027e7420 [ 10.395162] which belongs to the cache kmalloc-16 of size 16 [ 10.395627] The buggy address is located 19 bytes to the right of [ 10.395627] allocated 12-byte region [ffff8881027e7420, ffff8881027e742c) [ 10.396167] [ 10.396259] The buggy address belongs to the physical page: [ 10.396428] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1027e7 [ 10.396663] flags: 0x200000000000000(node=0|zone=2) [ 10.396827] page_type: f5(slab) [ 10.397000] raw: 0200000000000000 ffff888100041640 dead000000000122 0000000000000000 [ 10.397352] raw: 0000000000000000 0000000080800080 00000000f5000000 0000000000000000 [ 10.397683] page dumped because: kasan: bad access detected [ 10.398074] [ 10.398251] Memory state around the buggy address: [ 10.398414] ffff8881027e7300: 00 02 fc fc 00 02 fc fc 00 06 fc fc 00 06 fc fc [ 10.398626] ffff8881027e7380: 00 04 fc fc 00 04 fc fc 00 01 fc fc 00 01 fc fc [ 10.398980] >ffff8881027e7400: 00 04 fc fc 00 04 fc fc 00 07 fc fc fc fc fc fc [ 10.399299] ^ [ 10.399531] ffff8881027e7480: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 10.399831] ffff8881027e7500: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 10.400112] ==================================================================