Date
May 13, 2025, 12:07 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 18.895961] ================================================================== [ 18.896428] BUG: KASAN: slab-out-of-bounds in kmalloc_node_oob_right+0x2f4/0x330 [ 18.896733] Read of size 1 at addr fff00000c6533000 by task kunit_try_catch/140 [ 18.896838] [ 18.896919] CPU: 1 UID: 0 PID: 140 Comm: kunit_try_catch Tainted: G B N 6.15.0-rc6-next-20250513 #1 PREEMPT [ 18.897736] Tainted: [B]=BAD_PAGE, [N]=TEST [ 18.897890] Hardware name: linux,dummy-virt (DT) [ 18.898048] Call trace: [ 18.898107] show_stack+0x20/0x38 (C) [ 18.898248] dump_stack_lvl+0x8c/0xd0 [ 18.898417] print_report+0x118/0x608 [ 18.898668] kasan_report+0xdc/0x128 [ 18.899057] __asan_report_load1_noabort+0x20/0x30 [ 18.899310] kmalloc_node_oob_right+0x2f4/0x330 [ 18.899471] kunit_try_run_case+0x170/0x3f0 [ 18.899690] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 18.899932] kthread+0x328/0x630 [ 18.900088] ret_from_fork+0x10/0x20 [ 18.900218] [ 18.900329] Allocated by task 140: [ 18.900401] kasan_save_stack+0x3c/0x68 [ 18.900506] kasan_save_track+0x20/0x40 [ 18.900597] kasan_save_alloc_info+0x40/0x58 [ 18.900692] __kasan_kmalloc+0xd4/0xd8 [ 18.900787] __kmalloc_cache_node_noprof+0x168/0x3d0 [ 18.900888] kmalloc_node_oob_right+0xbc/0x330 [ 18.901291] kunit_try_run_case+0x170/0x3f0 [ 18.901401] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 18.901516] kthread+0x328/0x630 [ 18.901696] ret_from_fork+0x10/0x20 [ 18.901910] [ 18.901966] The buggy address belongs to the object at fff00000c6532000 [ 18.901966] which belongs to the cache kmalloc-4k of size 4096 [ 18.902397] The buggy address is located 0 bytes to the right of [ 18.902397] allocated 4096-byte region [fff00000c6532000, fff00000c6533000) [ 18.902738] [ 18.902979] The buggy address belongs to the physical page: [ 18.903297] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x106530 [ 18.904191] head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 18.904338] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff) [ 18.904497] page_type: f5(slab) [ 18.904599] raw: 0bfffe0000000040 fff00000c0002140 dead000000000122 0000000000000000 [ 18.904716] raw: 0000000000000000 0000000080040004 00000000f5000000 0000000000000000 [ 18.904858] head: 0bfffe0000000040 fff00000c0002140 dead000000000122 0000000000000000 [ 18.905309] head: 0000000000000000 0000000080040004 00000000f5000000 0000000000000000 [ 18.906275] head: 0bfffe0000000003 ffffc1ffc3194c01 00000000ffffffff 00000000ffffffff [ 18.906864] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000008 [ 18.906997] page dumped because: kasan: bad access detected [ 18.907390] [ 18.907750] Memory state around the buggy address: [ 18.908143] fff00000c6532f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 18.908565] fff00000c6532f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 18.908850] >fff00000c6533000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 18.909150] ^ [ 18.909265] fff00000c6533080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 18.909504] fff00000c6533100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 18.909844] ==================================================================
[ 10.467930] ================================================================== [ 10.468700] BUG: KASAN: slab-out-of-bounds in kmalloc_node_oob_right+0x369/0x3c0 [ 10.469557] Read of size 1 at addr ffff8881038d1000 by task kunit_try_catch/157 [ 10.470764] [ 10.470891] CPU: 0 UID: 0 PID: 157 Comm: kunit_try_catch Tainted: G B N 6.15.0-rc6-next-20250513 #1 PREEMPT(voluntary) [ 10.470943] Tainted: [B]=BAD_PAGE, [N]=TEST [ 10.470955] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 10.470976] Call Trace: [ 10.470989] <TASK> [ 10.471007] dump_stack_lvl+0x73/0xb0 [ 10.471037] print_report+0xd1/0x650 [ 10.471059] ? __virt_addr_valid+0x1db/0x2d0 [ 10.471084] ? kmalloc_node_oob_right+0x369/0x3c0 [ 10.471107] ? kasan_complete_mode_report_info+0x2a/0x200 [ 10.471129] ? kmalloc_node_oob_right+0x369/0x3c0 [ 10.471153] kasan_report+0x141/0x180 [ 10.471175] ? kmalloc_node_oob_right+0x369/0x3c0 [ 10.471239] __asan_report_load1_noabort+0x18/0x20 [ 10.471259] kmalloc_node_oob_right+0x369/0x3c0 [ 10.471389] ? __pfx_kmalloc_node_oob_right+0x10/0x10 [ 10.471419] ? __schedule+0x10cc/0x2b60 [ 10.471442] ? __pfx_read_tsc+0x10/0x10 [ 10.471464] ? ktime_get_ts64+0x86/0x230 [ 10.471489] kunit_try_run_case+0x1a5/0x480 [ 10.471514] ? __pfx_kunit_try_run_case+0x10/0x10 [ 10.471595] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 10.471633] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 10.471655] ? __kthread_parkme+0x82/0x180 [ 10.471676] ? preempt_count_sub+0x50/0x80 [ 10.471701] ? __pfx_kunit_try_run_case+0x10/0x10 [ 10.471724] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 10.471747] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 10.471769] kthread+0x337/0x6f0 [ 10.471789] ? trace_preempt_on+0x20/0xc0 [ 10.471813] ? __pfx_kthread+0x10/0x10 [ 10.471833] ? _raw_spin_unlock_irq+0x47/0x80 [ 10.471853] ? calculate_sigpending+0x7b/0xa0 [ 10.471877] ? __pfx_kthread+0x10/0x10 [ 10.471898] ret_from_fork+0x116/0x1d0 [ 10.471916] ? __pfx_kthread+0x10/0x10 [ 10.471937] ret_from_fork_asm+0x1a/0x30 [ 10.471968] </TASK> [ 10.471979] [ 10.482752] Allocated by task 157: [ 10.482992] kasan_save_stack+0x45/0x70 [ 10.483198] kasan_save_track+0x18/0x40 [ 10.483374] kasan_save_alloc_info+0x3b/0x50 [ 10.483675] __kasan_kmalloc+0xb7/0xc0 [ 10.483853] __kmalloc_cache_node_noprof+0x188/0x420 [ 10.484065] kmalloc_node_oob_right+0xab/0x3c0 [ 10.484638] kunit_try_run_case+0x1a5/0x480 [ 10.485001] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 10.485314] kthread+0x337/0x6f0 [ 10.485783] ret_from_fork+0x116/0x1d0 [ 10.485957] ret_from_fork_asm+0x1a/0x30 [ 10.486147] [ 10.486231] The buggy address belongs to the object at ffff8881038d0000 [ 10.486231] which belongs to the cache kmalloc-4k of size 4096 [ 10.487068] The buggy address is located 0 bytes to the right of [ 10.487068] allocated 4096-byte region [ffff8881038d0000, ffff8881038d1000) [ 10.487933] [ 10.488029] The buggy address belongs to the physical page: [ 10.488440] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1038d0 [ 10.489249] head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 10.489573] flags: 0x200000000000040(head|node=0|zone=2) [ 10.489887] page_type: f5(slab) [ 10.490063] raw: 0200000000000040 ffff888100042140 dead000000000122 0000000000000000 [ 10.490857] raw: 0000000000000000 0000000080040004 00000000f5000000 0000000000000000 [ 10.491346] head: 0200000000000040 ffff888100042140 dead000000000122 0000000000000000 [ 10.491851] head: 0000000000000000 0000000080040004 00000000f5000000 0000000000000000 [ 10.492301] head: 0200000000000003 ffffea00040e3401 00000000ffffffff 00000000ffffffff [ 10.492865] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000008 [ 10.493292] page dumped because: kasan: bad access detected [ 10.493540] [ 10.493802] Memory state around the buggy address: [ 10.494020] ffff8881038d0f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 10.494674] ffff8881038d0f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 10.495076] >ffff8881038d1000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 10.495794] ^ [ 10.495974] ffff8881038d1080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 10.496437] ffff8881038d1100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 10.496923] ==================================================================