Date
June 17, 2025, 3:40 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 21.019680] ================================================================== [ 21.019862] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_left+0x2ec/0x320 [ 21.019954] Read of size 1 at addr fff00000c58ac1df by task kunit_try_catch/140 [ 21.020011] [ 21.020063] CPU: 0 UID: 0 PID: 140 Comm: kunit_try_catch Tainted: G B N 6.15.3-rc1 #1 PREEMPT [ 21.020176] Tainted: [B]=BAD_PAGE, [N]=TEST [ 21.020207] Hardware name: linux,dummy-virt (DT) [ 21.020243] Call trace: [ 21.020270] show_stack+0x20/0x38 (C) [ 21.020328] dump_stack_lvl+0x8c/0xd0 [ 21.020385] print_report+0x118/0x608 [ 21.020434] kasan_report+0xdc/0x128 [ 21.020482] __asan_report_load1_noabort+0x20/0x30 [ 21.020536] kmalloc_oob_left+0x2ec/0x320 [ 21.020587] kunit_try_run_case+0x170/0x3f0 [ 21.020642] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 21.020700] kthread+0x328/0x630 [ 21.020827] ret_from_fork+0x10/0x20 [ 21.020957] [ 21.021003] Allocated by task 26: [ 21.021113] kasan_save_stack+0x3c/0x68 [ 21.021218] kasan_save_track+0x20/0x40 [ 21.021802] kasan_save_alloc_info+0x40/0x58 [ 21.022047] __kasan_kmalloc+0xd4/0xd8 [ 21.022122] __kmalloc_node_track_caller_noprof+0x194/0x4b8 [ 21.022210] kstrdup+0x54/0xc8 [ 21.022281] devtmpfs_work_loop+0x6f8/0xa58 [ 21.022352] devtmpfsd+0x50/0x58 [ 21.022419] kthread+0x328/0x630 [ 21.022497] ret_from_fork+0x10/0x20 [ 21.022596] [ 21.022709] Freed by task 26: [ 21.022854] kasan_save_stack+0x3c/0x68 [ 21.022983] kasan_save_track+0x20/0x40 [ 21.023100] kasan_save_free_info+0x4c/0x78 [ 21.023186] __kasan_slab_free+0x6c/0x98 [ 21.023274] kfree+0x214/0x3c8 [ 21.023351] devtmpfs_work_loop+0x804/0xa58 [ 21.023439] devtmpfsd+0x50/0x58 [ 21.023518] kthread+0x328/0x630 [ 21.023599] ret_from_fork+0x10/0x20 [ 21.023697] [ 21.023757] The buggy address belongs to the object at fff00000c58ac1c0 [ 21.023757] which belongs to the cache kmalloc-16 of size 16 [ 21.023883] The buggy address is located 15 bytes to the right of [ 21.023883] allocated 16-byte region [fff00000c58ac1c0, fff00000c58ac1d0) [ 21.024013] [ 21.024062] The buggy address belongs to the physical page: [ 21.024148] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1058ac [ 21.024283] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 21.024405] page_type: f5(slab) [ 21.024498] raw: 0bfffe0000000000 fff00000c0001640 dead000000000122 0000000000000000 [ 21.024624] raw: 0000000000000000 0000000080800080 00000000f5000000 0000000000000000 [ 21.024725] page dumped because: kasan: bad access detected [ 21.025129] [ 21.025180] Memory state around the buggy address: [ 21.025312] fff00000c58ac080: 00 05 fc fc fa fb fc fc 00 05 fc fc fa fb fc fc [ 21.025432] fff00000c58ac100: 00 00 fc fc fa fb fc fc 00 00 fc fc fa fb fc fc [ 21.025861] >fff00000c58ac180: 00 04 fc fc fa fb fc fc fa fb fc fc 00 07 fc fc [ 21.025983] ^ [ 21.026092] fff00000c58ac200: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 21.026193] fff00000c58ac280: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 21.026367] ==================================================================
[ 17.739531] ================================================================== [ 17.741016] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_left+0x361/0x3c0 [ 17.741920] Read of size 1 at addr ffff8881026cd01f by task kunit_try_catch/158 [ 17.742851] [ 17.744158] CPU: 0 UID: 0 PID: 158 Comm: kunit_try_catch Tainted: G B N 6.15.3-rc1 #1 PREEMPT(voluntary) [ 17.744578] Tainted: [B]=BAD_PAGE, [N]=TEST [ 17.744629] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 17.744853] Call Trace: [ 17.745237] <TASK> [ 17.745475] dump_stack_lvl+0x73/0xb0 [ 17.745596] print_report+0xd1/0x650 [ 17.745650] ? __virt_addr_valid+0x1db/0x2d0 [ 17.745687] ? kmalloc_oob_left+0x361/0x3c0 [ 17.745723] ? kasan_complete_mode_report_info+0x64/0x200 [ 17.745759] ? kmalloc_oob_left+0x361/0x3c0 [ 17.745794] kasan_report+0x141/0x180 [ 17.745829] ? kmalloc_oob_left+0x361/0x3c0 [ 17.745868] __asan_report_load1_noabort+0x18/0x20 [ 17.745901] kmalloc_oob_left+0x361/0x3c0 [ 17.745936] ? __pfx_kmalloc_oob_left+0x10/0x10 [ 17.746020] ? __schedule+0x10cc/0x2b60 [ 17.746106] ? __pfx_read_tsc+0x10/0x10 [ 17.746147] ? ktime_get_ts64+0x86/0x230 [ 17.746188] kunit_try_run_case+0x1a5/0x480 [ 17.746228] ? __pfx_kunit_try_run_case+0x10/0x10 [ 17.746263] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 17.746327] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 17.746366] ? __kthread_parkme+0x82/0x180 [ 17.746402] ? preempt_count_sub+0x50/0x80 [ 17.746441] ? __pfx_kunit_try_run_case+0x10/0x10 [ 17.746479] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 17.746514] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 17.746551] kthread+0x337/0x6f0 [ 17.746578] ? trace_preempt_on+0x20/0xc0 [ 17.746616] ? __pfx_kthread+0x10/0x10 [ 17.746643] ? _raw_spin_unlock_irq+0x47/0x80 [ 17.746678] ? calculate_sigpending+0x7b/0xa0 [ 17.746712] ? __pfx_kthread+0x10/0x10 [ 17.746740] ret_from_fork+0x41/0x80 [ 17.746772] ? __pfx_kthread+0x10/0x10 [ 17.746800] ret_from_fork_asm+0x1a/0x30 [ 17.746885] </TASK> [ 17.747027] [ 17.769761] Allocated by task 1: [ 17.771214] kasan_save_stack+0x45/0x70 [ 17.771940] kasan_save_track+0x18/0x40 [ 17.772244] kasan_save_alloc_info+0x3b/0x50 [ 17.772696] __kasan_kmalloc+0xb7/0xc0 [ 17.773219] __kmalloc_noprof+0x1c9/0x500 [ 17.773695] kobject_get_path+0xa7/0x1f0 [ 17.774447] kobject_uevent_env+0x1f9/0xff0 [ 17.774848] kobject_uevent+0xf/0x20 [ 17.775254] param_sysfs_builtin_init+0x28b/0x3a0 [ 17.775707] do_one_initcall+0xd8/0x370 [ 17.776131] kernel_init_freeable+0x420/0x6f0 [ 17.776498] kernel_init+0x23/0x1e0 [ 17.777040] ret_from_fork+0x41/0x80 [ 17.777494] ret_from_fork_asm+0x1a/0x30 [ 17.777936] [ 17.778163] Freed by task 1: [ 17.778672] kasan_save_stack+0x45/0x70 [ 17.779090] kasan_save_track+0x18/0x40 [ 17.780720] kasan_save_free_info+0x3f/0x60 [ 17.781275] __kasan_slab_free+0x56/0x70 [ 17.781633] kfree+0x222/0x3f0 [ 17.781999] kobject_uevent_env+0x233/0xff0 [ 17.782454] kobject_uevent+0xf/0x20 [ 17.782868] param_sysfs_builtin_init+0x28b/0x3a0 [ 17.783547] do_one_initcall+0xd8/0x370 [ 17.783920] kernel_init_freeable+0x420/0x6f0 [ 17.784396] kernel_init+0x23/0x1e0 [ 17.785476] ret_from_fork+0x41/0x80 [ 17.785822] ret_from_fork_asm+0x1a/0x30 [ 17.786554] [ 17.786889] The buggy address belongs to the object at ffff8881026cd000 [ 17.786889] which belongs to the cache kmalloc-16 of size 16 [ 17.788213] The buggy address is located 15 bytes to the right of [ 17.788213] allocated 16-byte region [ffff8881026cd000, ffff8881026cd010) [ 17.789241] [ 17.790070] The buggy address belongs to the physical page: [ 17.791272] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1026cd [ 17.792240] flags: 0x200000000000000(node=0|zone=2) [ 17.793661] page_type: f5(slab) [ 17.794691] raw: 0200000000000000 ffff888100041640 dead000000000122 0000000000000000 [ 17.795487] raw: 0000000000000000 0000000080800080 00000000f5000000 0000000000000000 [ 17.796355] page dumped because: kasan: bad access detected [ 17.796883] [ 17.797508] Memory state around the buggy address: [ 17.798560] ffff8881026ccf00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 17.799227] ffff8881026ccf80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 17.799854] >ffff8881026cd000: fa fb fc fc 00 07 fc fc fc fc fc fc fc fc fc fc [ 17.800658] ^ [ 17.801150] ffff8881026cd080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 17.802363] ffff8881026cd100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 17.802959] ==================================================================