Date
April 20, 2025, 11:09 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 | |
rk3399-rock-pi-4b |
[ 24.050591] ================================================================== [ 24.050761] BUG: KASAN: slab-out-of-bounds in kmem_cache_oob+0x344/0x430 [ 24.050950] Read of size 1 at addr fff00000c68120c8 by task kunit_try_catch/209 [ 24.051082] [ 24.051206] CPU: 0 UID: 0 PID: 209 Comm: kunit_try_catch Tainted: G B N 6.15.0-rc3 #1 PREEMPT [ 24.051537] Tainted: [B]=BAD_PAGE, [N]=TEST [ 24.051631] Hardware name: linux,dummy-virt (DT) [ 24.051769] Call trace: [ 24.051836] show_stack+0x20/0x38 (C) [ 24.051996] dump_stack_lvl+0x8c/0xd0 [ 24.052133] print_report+0x118/0x608 [ 24.052257] kasan_report+0xdc/0x128 [ 24.052492] __asan_report_load1_noabort+0x20/0x30 [ 24.052714] kmem_cache_oob+0x344/0x430 [ 24.052857] kunit_try_run_case+0x170/0x3f0 [ 24.053065] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 24.053217] kthread+0x328/0x630 [ 24.053340] ret_from_fork+0x10/0x20 [ 24.053456] [ 24.053504] Allocated by task 209: [ 24.053600] kasan_save_stack+0x3c/0x68 [ 24.053731] kasan_save_track+0x20/0x40 [ 24.053826] kasan_save_alloc_info+0x40/0x58 [ 24.054049] __kasan_slab_alloc+0xa8/0xb0 [ 24.054150] kmem_cache_alloc_noprof+0x10c/0x3a0 [ 24.054260] kmem_cache_oob+0x12c/0x430 [ 24.054406] kunit_try_run_case+0x170/0x3f0 [ 24.054508] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 24.054634] kthread+0x328/0x630 [ 24.054740] ret_from_fork+0x10/0x20 [ 24.054848] [ 24.054924] The buggy address belongs to the object at fff00000c6812000 [ 24.054924] which belongs to the cache test_cache of size 200 [ 24.055189] The buggy address is located 0 bytes to the right of [ 24.055189] allocated 200-byte region [fff00000c6812000, fff00000c68120c8) [ 24.055498] [ 24.055674] The buggy address belongs to the physical page: [ 24.055812] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x106812 [ 24.055960] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 24.056079] page_type: f5(slab) [ 24.056173] raw: 0bfffe0000000000 fff00000c1743640 dead000000000122 0000000000000000 [ 24.056502] raw: 0000000000000000 00000000800f000f 00000000f5000000 0000000000000000 [ 24.056631] page dumped because: kasan: bad access detected [ 24.056716] [ 24.056761] Memory state around the buggy address: [ 24.057087] fff00000c6811f80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 24.057196] fff00000c6812000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 24.057300] >fff00000c6812080: 00 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc [ 24.057601] ^ [ 24.058238] fff00000c6812100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 24.058494] fff00000c6812180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 24.058963] ==================================================================
[ 12.124853] ================================================================== [ 12.125506] BUG: KASAN: slab-out-of-bounds in kmem_cache_oob+0x402/0x530 [ 12.126094] Read of size 1 at addr ffff88810274b0c8 by task kunit_try_catch/227 [ 12.126658] [ 12.126951] CPU: 0 UID: 0 PID: 227 Comm: kunit_try_catch Tainted: G B N 6.15.0-rc3 #1 PREEMPT(voluntary) [ 12.127019] Tainted: [B]=BAD_PAGE, [N]=TEST [ 12.127031] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 12.127052] Call Trace: [ 12.127064] <TASK> [ 12.127080] dump_stack_lvl+0x73/0xb0 [ 12.127184] print_report+0xd1/0x650 [ 12.127209] ? __virt_addr_valid+0x1db/0x2d0 [ 12.127231] ? kmem_cache_oob+0x402/0x530 [ 12.127250] ? kasan_complete_mode_report_info+0x2a/0x200 [ 12.127271] ? kmem_cache_oob+0x402/0x530 [ 12.127290] kasan_report+0x141/0x180 [ 12.127312] ? kmem_cache_oob+0x402/0x530 [ 12.127360] __asan_report_load1_noabort+0x18/0x20 [ 12.127380] kmem_cache_oob+0x402/0x530 [ 12.127410] ? trace_hardirqs_on+0x37/0xe0 [ 12.127433] ? __pfx_kmem_cache_oob+0x10/0x10 [ 12.127451] ? finish_task_switch.isra.0+0x153/0x700 [ 12.127473] ? __switch_to+0x5d9/0xf60 [ 12.127494] ? dequeue_task_fair+0x166/0x4e0 [ 12.127522] ? __pfx_read_tsc+0x10/0x10 [ 12.127542] ? ktime_get_ts64+0x86/0x230 [ 12.127567] kunit_try_run_case+0x1a5/0x480 [ 12.127591] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.127611] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 12.127635] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 12.127658] ? __kthread_parkme+0x82/0x180 [ 12.127678] ? preempt_count_sub+0x50/0x80 [ 12.127702] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.127724] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 12.127745] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 12.127767] kthread+0x337/0x6f0 [ 12.127787] ? trace_preempt_on+0x20/0xc0 [ 12.127808] ? __pfx_kthread+0x10/0x10 [ 12.127829] ? _raw_spin_unlock_irq+0x47/0x80 [ 12.127850] ? calculate_sigpending+0x7b/0xa0 [ 12.127872] ? __pfx_kthread+0x10/0x10 [ 12.127893] ret_from_fork+0x41/0x80 [ 12.127913] ? __pfx_kthread+0x10/0x10 [ 12.127934] ret_from_fork_asm+0x1a/0x30 [ 12.127965] </TASK> [ 12.127976] [ 12.139661] Allocated by task 227: [ 12.139844] kasan_save_stack+0x45/0x70 [ 12.140033] kasan_save_track+0x18/0x40 [ 12.140624] kasan_save_alloc_info+0x3b/0x50 [ 12.140961] __kasan_slab_alloc+0x91/0xa0 [ 12.141275] kmem_cache_alloc_noprof+0x123/0x3f0 [ 12.141612] kmem_cache_oob+0x157/0x530 [ 12.142005] kunit_try_run_case+0x1a5/0x480 [ 12.142471] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 12.142923] kthread+0x337/0x6f0 [ 12.143193] ret_from_fork+0x41/0x80 [ 12.143576] ret_from_fork_asm+0x1a/0x30 [ 12.143767] [ 12.143858] The buggy address belongs to the object at ffff88810274b000 [ 12.143858] which belongs to the cache test_cache of size 200 [ 12.144864] The buggy address is located 0 bytes to the right of [ 12.144864] allocated 200-byte region [ffff88810274b000, ffff88810274b0c8) [ 12.145800] [ 12.146035] The buggy address belongs to the physical page: [ 12.146550] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10274b [ 12.146872] flags: 0x200000000000000(node=0|zone=2) [ 12.147089] page_type: f5(slab) [ 12.147510] raw: 0200000000000000 ffff888101a70140 dead000000000122 0000000000000000 [ 12.148189] raw: 0000000000000000 00000000800f000f 00000000f5000000 0000000000000000 [ 12.148700] page dumped because: kasan: bad access detected [ 12.149107] [ 12.149362] Memory state around the buggy address: [ 12.149795] ffff88810274af80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.150101] ffff88810274b000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 12.150712] >ffff88810274b080: 00 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc [ 12.151021] ^ [ 12.151510] ffff88810274b100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.151988] ffff88810274b180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.152529] ==================================================================
[ 22.087341] ================================================================== [ 22.088376] BUG: KASAN: slab-out-of-bounds in kmem_cache_oob+0x344/0x430 [ 22.089024] Read of size 1 at addr ffff0000100be0c8 by task kunit_try_catch/261 [ 22.089703] [ 22.089871] CPU: 3 UID: 0 PID: 261 Comm: kunit_try_catch Tainted: G B N 6.15.0-rc3 #1 PREEMPT [ 22.089922] Tainted: [B]=BAD_PAGE, [N]=TEST [ 22.089936] Hardware name: Radxa ROCK Pi 4B (DT) [ 22.089954] Call trace: [ 22.089966] show_stack+0x20/0x38 (C) [ 22.090000] dump_stack_lvl+0x8c/0xd0 [ 22.090032] print_report+0x118/0x608 [ 22.090063] kasan_report+0xdc/0x128 [ 22.090091] __asan_report_load1_noabort+0x20/0x30 [ 22.090124] kmem_cache_oob+0x344/0x430 [ 22.090158] kunit_try_run_case+0x170/0x3f0 [ 22.090193] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 22.090233] kthread+0x328/0x630 [ 22.090267] ret_from_fork+0x10/0x20 [ 22.090300] [ 22.095854] Allocated by task 261: [ 22.096179] kasan_save_stack+0x3c/0x68 [ 22.096552] kasan_save_track+0x20/0x40 [ 22.096924] kasan_save_alloc_info+0x40/0x58 [ 22.097337] __kasan_slab_alloc+0xa8/0xb0 [ 22.097724] kmem_cache_alloc_noprof+0x10c/0x3a0 [ 22.098169] kmem_cache_oob+0x12c/0x430 [ 22.098544] kunit_try_run_case+0x170/0x3f0 [ 22.098951] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 22.099476] kthread+0x328/0x630 [ 22.099798] ret_from_fork+0x10/0x20 [ 22.100149] [ 22.100302] The buggy address belongs to the object at ffff0000100be000 [ 22.100302] which belongs to the cache test_cache of size 200 [ 22.101428] The buggy address is located 0 bytes to the right of [ 22.101428] allocated 200-byte region [ffff0000100be000, ffff0000100be0c8) [ 22.102604] [ 22.102758] The buggy address belongs to the physical page: [ 22.103274] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x100be [ 22.104007] head: order:1 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 22.104713] flags: 0x3fffe0000000040(head|node=0|zone=0|lastcpupid=0x1ffff) [ 22.105365] page_type: f5(slab) [ 22.105678] raw: 03fffe0000000040 ffff0000100bc000 dead000000000122 0000000000000000 [ 22.106396] raw: 0000000000000000 00000000801f001f 00000000f5000000 0000000000000000 [ 22.107111] head: 03fffe0000000040 ffff0000100bc000 dead000000000122 0000000000000000 [ 22.107835] head: 0000000000000000 00000000801f001f 00000000f5000000 0000000000000000 [ 22.108559] head: 03fffe0000000001 fffffdffc0402f81 00000000ffffffff 00000000ffffffff [ 22.109282] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000002 [ 22.109997] page dumped because: kasan: bad access detected [ 22.110512] [ 22.110664] Memory state around the buggy address: [ 22.111114] ffff0000100bdf80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 22.111780] ffff0000100be000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 22.112447] >ffff0000100be080: 00 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc [ 22.113109] ^ [ 22.113628] ffff0000100be100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 22.114295] ffff0000100be180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 22.114957] ==================================================================