Date
April 20, 2025, 11:09 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 | |
rk3399-rock-pi-4b |
[ 22.645980] ================================================================== [ 22.646117] BUG: KASAN: slab-out-of-bounds in kmalloc_node_oob_right+0x2f4/0x330 [ 22.646245] Read of size 1 at addr fff00000c679f000 by task kunit_try_catch/142 [ 22.646374] [ 22.646453] CPU: 0 UID: 0 PID: 142 Comm: kunit_try_catch Tainted: G B N 6.15.0-rc3 #1 PREEMPT [ 22.646787] Tainted: [B]=BAD_PAGE, [N]=TEST [ 22.646964] Hardware name: linux,dummy-virt (DT) [ 22.647052] Call trace: [ 22.647198] show_stack+0x20/0x38 (C) [ 22.647335] dump_stack_lvl+0x8c/0xd0 [ 22.647844] print_report+0x118/0x608 [ 22.648010] kasan_report+0xdc/0x128 [ 22.649164] __asan_report_load1_noabort+0x20/0x30 [ 22.649323] kmalloc_node_oob_right+0x2f4/0x330 [ 22.649464] kunit_try_run_case+0x170/0x3f0 [ 22.649645] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 22.649964] kthread+0x328/0x630 [ 22.650276] ret_from_fork+0x10/0x20 [ 22.650859] [ 22.650917] Allocated by task 142: [ 22.651016] kasan_save_stack+0x3c/0x68 [ 22.651355] kasan_save_track+0x20/0x40 [ 22.651675] kasan_save_alloc_info+0x40/0x58 [ 22.651846] __kasan_kmalloc+0xd4/0xd8 [ 22.652920] __kmalloc_cache_node_noprof+0x168/0x3d0 [ 22.653335] kmalloc_node_oob_right+0xbc/0x330 [ 22.653796] kunit_try_run_case+0x170/0x3f0 [ 22.654010] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 22.654116] kthread+0x328/0x630 [ 22.654648] ret_from_fork+0x10/0x20 [ 22.654771] [ 22.654826] The buggy address belongs to the object at fff00000c679e000 [ 22.654826] which belongs to the cache kmalloc-4k of size 4096 [ 22.654985] The buggy address is located 0 bytes to the right of [ 22.654985] allocated 4096-byte region [fff00000c679e000, fff00000c679f000) [ 22.655889] [ 22.655954] The buggy address belongs to the physical page: [ 22.656790] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x106798 [ 22.657203] head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 22.657436] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff) [ 22.658084] page_type: f5(slab) [ 22.658412] raw: 0bfffe0000000040 fff00000c0002140 dead000000000122 0000000000000000 [ 22.658545] raw: 0000000000000000 0000000080040004 00000000f5000000 0000000000000000 [ 22.659181] head: 0bfffe0000000040 fff00000c0002140 dead000000000122 0000000000000000 [ 22.659651] head: 0000000000000000 0000000080040004 00000000f5000000 0000000000000000 [ 22.660093] head: 0bfffe0000000003 ffffc1ffc319e601 00000000ffffffff 00000000ffffffff [ 22.660247] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000008 [ 22.660378] page dumped because: kasan: bad access detected [ 22.660685] [ 22.660784] Memory state around the buggy address: [ 22.660857] fff00000c679ef00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 22.660975] fff00000c679ef80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 22.661077] >fff00000c679f000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 22.661614] ^ [ 22.661797] fff00000c679f080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 22.662207] fff00000c679f100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 22.662310] ==================================================================
[ 10.940878] ================================================================== [ 10.942416] BUG: KASAN: slab-out-of-bounds in kmalloc_node_oob_right+0x369/0x3c0 [ 10.943733] Read of size 1 at addr ffff888102ba3000 by task kunit_try_catch/160 [ 10.944754] [ 10.945184] CPU: 1 UID: 0 PID: 160 Comm: kunit_try_catch Tainted: G B N 6.15.0-rc3 #1 PREEMPT(voluntary) [ 10.945459] Tainted: [B]=BAD_PAGE, [N]=TEST [ 10.945479] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 10.945509] Call Trace: [ 10.945522] <TASK> [ 10.945561] dump_stack_lvl+0x73/0xb0 [ 10.945593] print_report+0xd1/0x650 [ 10.945616] ? __virt_addr_valid+0x1db/0x2d0 [ 10.945639] ? kmalloc_node_oob_right+0x369/0x3c0 [ 10.945663] ? kasan_complete_mode_report_info+0x2a/0x200 [ 10.945686] ? kmalloc_node_oob_right+0x369/0x3c0 [ 10.945710] kasan_report+0x141/0x180 [ 10.945732] ? kmalloc_node_oob_right+0x369/0x3c0 [ 10.945761] __asan_report_load1_noabort+0x18/0x20 [ 10.945787] kmalloc_node_oob_right+0x369/0x3c0 [ 10.945811] ? __pfx_kmalloc_node_oob_right+0x10/0x10 [ 10.945836] ? __schedule+0x10cc/0x2b30 [ 10.945860] ? __pfx_read_tsc+0x10/0x10 [ 10.945880] ? ktime_get_ts64+0x86/0x230 [ 10.945906] kunit_try_run_case+0x1a5/0x480 [ 10.945931] ? __pfx_kunit_try_run_case+0x10/0x10 [ 10.945953] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 10.945976] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 10.945999] ? __kthread_parkme+0x82/0x180 [ 10.946021] ? preempt_count_sub+0x50/0x80 [ 10.946046] ? __pfx_kunit_try_run_case+0x10/0x10 [ 10.946069] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 10.946091] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 10.946120] kthread+0x337/0x6f0 [ 10.946141] ? trace_preempt_on+0x20/0xc0 [ 10.946164] ? __pfx_kthread+0x10/0x10 [ 10.946186] ? _raw_spin_unlock_irq+0x47/0x80 [ 10.946208] ? calculate_sigpending+0x7b/0xa0 [ 10.946229] ? __pfx_kthread+0x10/0x10 [ 10.946251] ret_from_fork+0x41/0x80 [ 10.946271] ? __pfx_kthread+0x10/0x10 [ 10.946293] ret_from_fork_asm+0x1a/0x30 [ 10.946365] </TASK> [ 10.946377] [ 10.961724] Allocated by task 160: [ 10.962032] kasan_save_stack+0x45/0x70 [ 10.962524] kasan_save_track+0x18/0x40 [ 10.962667] kasan_save_alloc_info+0x3b/0x50 [ 10.962812] __kasan_kmalloc+0xb7/0xc0 [ 10.962943] __kmalloc_cache_node_noprof+0x188/0x420 [ 10.963108] kmalloc_node_oob_right+0xab/0x3c0 [ 10.963549] kunit_try_run_case+0x1a5/0x480 [ 10.964092] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 10.964758] kthread+0x337/0x6f0 [ 10.965089] ret_from_fork+0x41/0x80 [ 10.965538] ret_from_fork_asm+0x1a/0x30 [ 10.965927] [ 10.966087] The buggy address belongs to the object at ffff888102ba2000 [ 10.966087] which belongs to the cache kmalloc-4k of size 4096 [ 10.967148] The buggy address is located 0 bytes to the right of [ 10.967148] allocated 4096-byte region [ffff888102ba2000, ffff888102ba3000) [ 10.967804] [ 10.967881] The buggy address belongs to the physical page: [ 10.968120] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102ba0 [ 10.969170] head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 10.969935] flags: 0x200000000000040(head|node=0|zone=2) [ 10.970630] page_type: f5(slab) [ 10.970970] raw: 0200000000000040 ffff888100042140 dead000000000122 0000000000000000 [ 10.971698] raw: 0000000000000000 0000000080040004 00000000f5000000 0000000000000000 [ 10.972258] head: 0200000000000040 ffff888100042140 dead000000000122 0000000000000000 [ 10.973019] head: 0000000000000000 0000000080040004 00000000f5000000 0000000000000000 [ 10.973361] head: 0200000000000003 ffffea00040ae801 00000000ffffffff 00000000ffffffff [ 10.974089] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000008 [ 10.974824] page dumped because: kasan: bad access detected [ 10.974999] [ 10.975068] Memory state around the buggy address: [ 10.975260] ffff888102ba2f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 10.975994] ffff888102ba2f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 10.976785] >ffff888102ba3000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 10.977551] ^ [ 10.978010] ffff888102ba3080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 10.978677] ffff888102ba3100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 10.978978] ==================================================================
[ 20.748153] ================================================================== [ 20.749196] BUG: KASAN: slab-out-of-bounds in kmalloc_node_oob_right+0x2f4/0x330 [ 20.749903] Read of size 1 at addr ffff00000f447000 by task kunit_try_catch/194 [ 20.750584] [ 20.750752] CPU: 3 UID: 0 PID: 194 Comm: kunit_try_catch Tainted: G B N 6.15.0-rc3 #1 PREEMPT [ 20.750803] Tainted: [B]=BAD_PAGE, [N]=TEST [ 20.750817] Hardware name: Radxa ROCK Pi 4B (DT) [ 20.750835] Call trace: [ 20.750847] show_stack+0x20/0x38 (C) [ 20.750883] dump_stack_lvl+0x8c/0xd0 [ 20.750915] print_report+0x118/0x608 [ 20.750944] kasan_report+0xdc/0x128 [ 20.750972] __asan_report_load1_noabort+0x20/0x30 [ 20.751005] kmalloc_node_oob_right+0x2f4/0x330 [ 20.751042] kunit_try_run_case+0x170/0x3f0 [ 20.751077] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 20.751116] kthread+0x328/0x630 [ 20.751150] ret_from_fork+0x10/0x20 [ 20.751183] [ 20.756796] Allocated by task 194: [ 20.757121] kasan_save_stack+0x3c/0x68 [ 20.757494] kasan_save_track+0x20/0x40 [ 20.757866] kasan_save_alloc_info+0x40/0x58 [ 20.758280] __kasan_kmalloc+0xd4/0xd8 [ 20.758643] __kmalloc_cache_node_noprof+0x168/0x3d0 [ 20.759116] kmalloc_node_oob_right+0xbc/0x330 [ 20.759547] kunit_try_run_case+0x170/0x3f0 [ 20.759954] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 20.760479] kthread+0x328/0x630 [ 20.760803] ret_from_fork+0x10/0x20 [ 20.761153] [ 20.761306] The buggy address belongs to the object at ffff00000f446000 [ 20.761306] which belongs to the cache kmalloc-4k of size 4096 [ 20.762439] The buggy address is located 0 bytes to the right of [ 20.762439] allocated 4096-byte region [ffff00000f446000, ffff00000f447000) [ 20.763620] [ 20.763774] The buggy address belongs to the physical page: [ 20.764291] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0xf440 [ 20.765015] head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 20.765720] flags: 0x3fffe0000000040(head|node=0|zone=0|lastcpupid=0x1ffff) [ 20.766371] page_type: f5(slab) [ 20.766683] raw: 03fffe0000000040 ffff000000403040 dead000000000122 0000000000000000 [ 20.767398] raw: 0000000000000000 0000000080040004 00000000f5000000 0000000000000000 [ 20.768114] head: 03fffe0000000040 ffff000000403040 dead000000000122 0000000000000000 [ 20.768836] head: 0000000000000000 0000000080040004 00000000f5000000 0000000000000000 [ 20.769559] head: 03fffe0000000003 fffffdffc03d1001 00000000ffffffff 00000000ffffffff [ 20.770282] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000008 [ 20.770996] page dumped because: kasan: bad access detected [ 20.771511] [ 20.771663] Memory state around the buggy address: [ 20.772111] ffff00000f446f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 20.772777] ffff00000f446f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 20.773443] >ffff00000f447000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 20.774104] ^ [ 20.774414] ffff00000f447080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 20.775079] ffff00000f447100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 20.775740] ==================================================================