Date
July 5, 2025, 5:09 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 18.689117] ================================================================== [ 18.689178] BUG: KASAN: slab-out-of-bounds in kmem_cache_oob+0x344/0x430 [ 18.689255] Read of size 1 at addr fff00000c78ad0c8 by task kunit_try_catch/207 [ 18.689319] [ 18.689357] CPU: 1 UID: 0 PID: 207 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc4 #1 PREEMPT [ 18.689439] Tainted: [B]=BAD_PAGE, [N]=TEST [ 18.689466] Hardware name: linux,dummy-virt (DT) [ 18.689498] Call trace: [ 18.689521] show_stack+0x20/0x38 (C) [ 18.689569] dump_stack_lvl+0x8c/0xd0 [ 18.689623] print_report+0x118/0x608 [ 18.689670] kasan_report+0xdc/0x128 [ 18.689716] __asan_report_load1_noabort+0x20/0x30 [ 18.689777] kmem_cache_oob+0x344/0x430 [ 18.689823] kunit_try_run_case+0x170/0x3f0 [ 18.690480] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 18.690561] kthread+0x328/0x630 [ 18.690603] ret_from_fork+0x10/0x20 [ 18.690649] [ 18.690667] Allocated by task 207: [ 18.690704] kasan_save_stack+0x3c/0x68 [ 18.690751] kasan_save_track+0x20/0x40 [ 18.690789] kasan_save_alloc_info+0x40/0x58 [ 18.690831] __kasan_slab_alloc+0xa8/0xb0 [ 18.690880] kmem_cache_alloc_noprof+0x10c/0x398 [ 18.690920] kmem_cache_oob+0x12c/0x430 [ 18.690992] kunit_try_run_case+0x170/0x3f0 [ 18.691168] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 18.691251] kthread+0x328/0x630 [ 18.691318] ret_from_fork+0x10/0x20 [ 18.691365] [ 18.691384] The buggy address belongs to the object at fff00000c78ad000 [ 18.691384] which belongs to the cache test_cache of size 200 [ 18.691454] The buggy address is located 0 bytes to the right of [ 18.691454] allocated 200-byte region [fff00000c78ad000, fff00000c78ad0c8) [ 18.691516] [ 18.691536] The buggy address belongs to the physical page: [ 18.691565] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1078ad [ 18.691618] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 18.691665] page_type: f5(slab) [ 18.691704] raw: 0bfffe0000000000 fff00000c5ca5500 dead000000000122 0000000000000000 [ 18.691753] raw: 0000000000000000 00000000800f000f 00000000f5000000 0000000000000000 [ 18.691854] page dumped because: kasan: bad access detected [ 18.691974] [ 18.692045] Memory state around the buggy address: [ 18.692172] fff00000c78acf80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 18.692289] fff00000c78ad000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 18.692331] >fff00000c78ad080: 00 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc [ 18.692642] ^ [ 18.692711] fff00000c78ad100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 18.692829] fff00000c78ad180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 18.692907] ==================================================================
[ 12.236926] ================================================================== [ 12.238161] BUG: KASAN: slab-out-of-bounds in kmem_cache_oob+0x402/0x530 [ 12.238816] Read of size 1 at addr ffff8881031b50c8 by task kunit_try_catch/225 [ 12.239049] [ 12.239144] CPU: 0 UID: 0 PID: 225 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc4 #1 PREEMPT(voluntary) [ 12.239189] Tainted: [B]=BAD_PAGE, [N]=TEST [ 12.239201] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 12.239223] Call Trace: [ 12.239238] <TASK> [ 12.239257] dump_stack_lvl+0x73/0xb0 [ 12.239287] print_report+0xd1/0x650 [ 12.239309] ? __virt_addr_valid+0x1db/0x2d0 [ 12.239332] ? kmem_cache_oob+0x402/0x530 [ 12.239354] ? kasan_complete_mode_report_info+0x2a/0x200 [ 12.239375] ? kmem_cache_oob+0x402/0x530 [ 12.239397] kasan_report+0x141/0x180 [ 12.239418] ? kmem_cache_oob+0x402/0x530 [ 12.239445] __asan_report_load1_noabort+0x18/0x20 [ 12.239481] kmem_cache_oob+0x402/0x530 [ 12.239501] ? trace_hardirqs_on+0x37/0xe0 [ 12.239524] ? __pfx_kmem_cache_oob+0x10/0x10 [ 12.239546] ? finish_task_switch.isra.0+0x153/0x700 [ 12.239567] ? __switch_to+0x47/0xf50 [ 12.239596] ? __pfx_read_tsc+0x10/0x10 [ 12.239617] ? ktime_get_ts64+0x86/0x230 [ 12.239641] kunit_try_run_case+0x1a5/0x480 [ 12.239665] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.239687] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 12.239764] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 12.239790] ? __kthread_parkme+0x82/0x180 [ 12.239811] ? preempt_count_sub+0x50/0x80 [ 12.239833] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.239856] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 12.239878] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 12.239900] kthread+0x337/0x6f0 [ 12.239920] ? trace_preempt_on+0x20/0xc0 [ 12.239941] ? __pfx_kthread+0x10/0x10 [ 12.239961] ? _raw_spin_unlock_irq+0x47/0x80 [ 12.239981] ? calculate_sigpending+0x7b/0xa0 [ 12.240004] ? __pfx_kthread+0x10/0x10 [ 12.240025] ret_from_fork+0x116/0x1d0 [ 12.240043] ? __pfx_kthread+0x10/0x10 [ 12.240065] ret_from_fork_asm+0x1a/0x30 [ 12.240095] </TASK> [ 12.240108] [ 12.249921] Allocated by task 225: [ 12.250230] kasan_save_stack+0x45/0x70 [ 12.250628] kasan_save_track+0x18/0x40 [ 12.250838] kasan_save_alloc_info+0x3b/0x50 [ 12.251147] __kasan_slab_alloc+0x91/0xa0 [ 12.251645] kmem_cache_alloc_noprof+0x123/0x3f0 [ 12.251882] kmem_cache_oob+0x157/0x530 [ 12.252067] kunit_try_run_case+0x1a5/0x480 [ 12.252260] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 12.252868] kthread+0x337/0x6f0 [ 12.253016] ret_from_fork+0x116/0x1d0 [ 12.253192] ret_from_fork_asm+0x1a/0x30 [ 12.253468] [ 12.253558] The buggy address belongs to the object at ffff8881031b5000 [ 12.253558] which belongs to the cache test_cache of size 200 [ 12.254440] The buggy address is located 0 bytes to the right of [ 12.254440] allocated 200-byte region [ffff8881031b5000, ffff8881031b50c8) [ 12.255127] [ 12.255212] The buggy address belongs to the physical page: [ 12.255603] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1031b5 [ 12.256158] flags: 0x200000000000000(node=0|zone=2) [ 12.256432] page_type: f5(slab) [ 12.256922] raw: 0200000000000000 ffff888100a55140 dead000000000122 0000000000000000 [ 12.257419] raw: 0000000000000000 00000000800f000f 00000000f5000000 0000000000000000 [ 12.257905] page dumped because: kasan: bad access detected [ 12.258134] [ 12.258229] Memory state around the buggy address: [ 12.258421] ffff8881031b4f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.258744] ffff8881031b5000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 12.259391] >ffff8881031b5080: 00 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc [ 12.259655] ^ [ 12.260049] ffff8881031b5100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.260586] ffff8881031b5180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.261112] ==================================================================