Date
June 2, 2025, 2:10 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 20.715893] ================================================================== [ 20.716474] BUG: KASAN: slab-out-of-bounds in kmem_cache_oob+0x350/0x440 [ 20.716933] Read of size 1 at addr fff00000c6ccf0c8 by task kunit_try_catch/194 [ 20.717448] [ 20.717700] CPU: 0 UID: 0 PID: 194 Comm: kunit_try_catch Tainted: G B N 6.12.32-rc1 #1 [ 20.717814] Tainted: [B]=BAD_PAGE, [N]=TEST [ 20.717862] Hardware name: linux,dummy-virt (DT) [ 20.717916] Call trace: [ 20.717958] dump_backtrace+0x9c/0x128 [ 20.718027] show_stack+0x20/0x38 [ 20.718074] dump_stack_lvl+0x8c/0xd0 [ 20.718121] print_report+0x118/0x5f0 [ 20.718165] kasan_report+0xdc/0x128 [ 20.718205] __asan_report_load1_noabort+0x20/0x30 [ 20.718265] kmem_cache_oob+0x350/0x440 [ 20.718312] kunit_try_run_case+0x170/0x3f0 [ 20.718371] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 20.718445] kthread+0x24c/0x2d0 [ 20.718493] ret_from_fork+0x10/0x20 [ 20.718541] [ 20.722095] Allocated by task 194: [ 20.722398] kasan_save_stack+0x3c/0x68 [ 20.722789] kasan_save_track+0x20/0x40 [ 20.723020] kasan_save_alloc_info+0x40/0x58 [ 20.723581] __kasan_slab_alloc+0xa8/0xb0 [ 20.724111] kmem_cache_alloc_noprof+0xf8/0x300 [ 20.724549] kmem_cache_oob+0x130/0x440 [ 20.725227] kunit_try_run_case+0x170/0x3f0 [ 20.725523] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 20.725900] kthread+0x24c/0x2d0 [ 20.726200] ret_from_fork+0x10/0x20 [ 20.726452] [ 20.726682] The buggy address belongs to the object at fff00000c6ccf000 [ 20.726682] which belongs to the cache test_cache of size 200 [ 20.727948] The buggy address is located 0 bytes to the right of [ 20.727948] allocated 200-byte region [fff00000c6ccf000, fff00000c6ccf0c8) [ 20.728596] [ 20.728826] The buggy address belongs to the physical page: [ 20.729148] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x106ccf [ 20.729638] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 20.730081] page_type: f5(slab) [ 20.730380] raw: 0bfffe0000000000 fff00000c5a6f780 dead000000000122 0000000000000000 [ 20.730852] raw: 0000000000000000 00000000800f000f 00000001f5000000 0000000000000000 [ 20.731426] page dumped because: kasan: bad access detected [ 20.731823] [ 20.732029] Memory state around the buggy address: [ 20.732442] fff00000c6ccef80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 20.733086] fff00000c6ccf000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 20.733537] >fff00000c6ccf080: 00 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc [ 20.734146] ^ [ 20.734387] fff00000c6ccf100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 20.734627] fff00000c6ccf180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 20.734858] ==================================================================
[ 12.734461] ================================================================== [ 12.735027] BUG: KASAN: slab-out-of-bounds in kmem_cache_oob+0x404/0x530 [ 12.735488] Read of size 1 at addr ffff8881026230c8 by task kunit_try_catch/212 [ 12.735773] [ 12.735941] CPU: 0 UID: 0 PID: 212 Comm: kunit_try_catch Tainted: G B N 6.12.32-rc1 #1 [ 12.736018] Tainted: [B]=BAD_PAGE, [N]=TEST [ 12.736038] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 12.736071] Call Trace: [ 12.736093] <TASK> [ 12.736122] dump_stack_lvl+0x73/0xb0 [ 12.736171] print_report+0xd1/0x640 [ 12.736212] ? __virt_addr_valid+0x1db/0x2d0 [ 12.736251] ? kmem_cache_oob+0x404/0x530 [ 12.736283] ? kasan_complete_mode_report_info+0x2a/0x200 [ 12.736319] ? kmem_cache_oob+0x404/0x530 [ 12.736350] kasan_report+0x140/0x180 [ 12.736391] ? kmem_cache_oob+0x404/0x530 [ 12.736434] __asan_report_load1_noabort+0x18/0x20 [ 12.736467] kmem_cache_oob+0x404/0x530 [ 12.736499] ? trace_hardirqs_on+0x37/0xe0 [ 12.736543] ? __pfx_kmem_cache_oob+0x10/0x10 [ 12.736577] ? finish_task_switch.isra.0+0x153/0x700 [ 12.736617] ? __switch_to+0x5d9/0xf60 [ 12.736837] ? __pfx_read_tsc+0x10/0x10 [ 12.736899] ? ktime_get_ts64+0x84/0x230 [ 12.736948] kunit_try_run_case+0x1a6/0x480 [ 12.736989] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.737025] ? _raw_spin_lock_irqsave+0xa2/0x110 [ 12.737403] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 12.737444] ? __kthread_parkme+0x82/0x160 [ 12.737465] ? preempt_count_sub+0x50/0x80 [ 12.737487] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.737507] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 12.737531] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 12.737557] kthread+0x257/0x310 [ 12.737574] ? __pfx_kthread+0x10/0x10 [ 12.737592] ret_from_fork+0x41/0x80 [ 12.737611] ? __pfx_kthread+0x10/0x10 [ 12.737628] ret_from_fork_asm+0x1a/0x30 [ 12.737677] </TASK> [ 12.737695] [ 12.746337] Allocated by task 212: [ 12.746709] kasan_save_stack+0x45/0x70 [ 12.746989] kasan_save_track+0x18/0x40 [ 12.747377] kasan_save_alloc_info+0x3b/0x50 [ 12.747700] __kasan_slab_alloc+0x91/0xa0 [ 12.747889] kmem_cache_alloc_noprof+0x107/0x350 [ 12.748179] kmem_cache_oob+0x158/0x530 [ 12.748478] kunit_try_run_case+0x1a6/0x480 [ 12.748767] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 12.749133] kthread+0x257/0x310 [ 12.749394] ret_from_fork+0x41/0x80 [ 12.749672] ret_from_fork_asm+0x1a/0x30 [ 12.749920] [ 12.750025] The buggy address belongs to the object at ffff888102623000 [ 12.750025] which belongs to the cache test_cache of size 200 [ 12.750521] The buggy address is located 0 bytes to the right of [ 12.750521] allocated 200-byte region [ffff888102623000, ffff8881026230c8) [ 12.751301] [ 12.751457] The buggy address belongs to the physical page: [ 12.752313] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102623 [ 12.752591] flags: 0x200000000000000(node=0|zone=2) [ 12.752955] page_type: f5(slab) [ 12.753366] raw: 0200000000000000 ffff888102621000 dead000000000122 0000000000000000 [ 12.753871] raw: 0000000000000000 00000000800f000f 00000001f5000000 0000000000000000 [ 12.754503] page dumped because: kasan: bad access detected [ 12.754750] [ 12.754854] Memory state around the buggy address: [ 12.755034] ffff888102622f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.755864] ffff888102623000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 12.756340] >ffff888102623080: 00 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc [ 12.756960] ^ [ 12.757213] ffff888102623100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.757569] ffff888102623180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.758219] ==================================================================