Date
July 17, 2025, 11:10 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 15.363230] ================================================================== [ 15.363293] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_in_memset+0x144/0x2d0 [ 15.363780] Write of size 128 at addr fff00000c786a200 by task kunit_try_catch/171 [ 15.363859] [ 15.363914] CPU: 0 UID: 0 PID: 171 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6 #1 PREEMPT [ 15.364009] Tainted: [B]=BAD_PAGE, [N]=TEST [ 15.364037] Hardware name: linux,dummy-virt (DT) [ 15.364067] Call trace: [ 15.364088] show_stack+0x20/0x38 (C) [ 15.364137] dump_stack_lvl+0x8c/0xd0 [ 15.364466] print_report+0x118/0x5d0 [ 15.364536] kasan_report+0xdc/0x128 [ 15.364581] kasan_check_range+0x100/0x1a8 [ 15.364895] __asan_memset+0x34/0x78 [ 15.365062] kmalloc_oob_in_memset+0x144/0x2d0 [ 15.365135] kunit_try_run_case+0x170/0x3f0 [ 15.365186] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 15.365238] kthread+0x328/0x630 [ 15.365279] ret_from_fork+0x10/0x20 [ 15.365651] [ 15.365721] Allocated by task 171: [ 15.365781] kasan_save_stack+0x3c/0x68 [ 15.365994] kasan_save_track+0x20/0x40 [ 15.366210] kasan_save_alloc_info+0x40/0x58 [ 15.366416] __kasan_kmalloc+0xd4/0xd8 [ 15.366475] __kmalloc_cache_noprof+0x16c/0x3c0 [ 15.366808] kmalloc_oob_in_memset+0xb0/0x2d0 [ 15.366870] kunit_try_run_case+0x170/0x3f0 [ 15.367046] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 15.367275] kthread+0x328/0x630 [ 15.367344] ret_from_fork+0x10/0x20 [ 15.367495] [ 15.367541] The buggy address belongs to the object at fff00000c786a200 [ 15.367541] which belongs to the cache kmalloc-128 of size 128 [ 15.368048] The buggy address is located 0 bytes inside of [ 15.368048] allocated 120-byte region [fff00000c786a200, fff00000c786a278) [ 15.368157] [ 15.368283] The buggy address belongs to the physical page: [ 15.368319] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10786a [ 15.368400] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 15.368566] page_type: f5(slab) [ 15.368760] raw: 0bfffe0000000000 fff00000c0001a00 dead000000000122 0000000000000000 [ 15.369110] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 15.369269] page dumped because: kasan: bad access detected [ 15.369329] [ 15.369346] Memory state around the buggy address: [ 15.369386] fff00000c786a100: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 15.369429] fff00000c786a180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 15.369628] >fff00000c786a200: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 15.369679] ^ [ 15.369722] fff00000c786a280: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 15.370135] fff00000c786a300: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 15.370261] ==================================================================
[ 13.116606] ================================================================== [ 13.117866] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_in_memset+0x15f/0x320 [ 13.118633] Write of size 128 at addr ffff8881025cc000 by task kunit_try_catch/187 [ 13.119201] [ 13.119403] CPU: 1 UID: 0 PID: 187 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6 #1 PREEMPT(voluntary) [ 13.119463] Tainted: [B]=BAD_PAGE, [N]=TEST [ 13.119474] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 13.119495] Call Trace: [ 13.119508] <TASK> [ 13.119524] dump_stack_lvl+0x73/0xb0 [ 13.119582] print_report+0xd1/0x610 [ 13.119615] ? __virt_addr_valid+0x1db/0x2d0 [ 13.119639] ? kmalloc_oob_in_memset+0x15f/0x320 [ 13.119661] ? kasan_complete_mode_report_info+0x2a/0x200 [ 13.119685] ? kmalloc_oob_in_memset+0x15f/0x320 [ 13.119707] kasan_report+0x141/0x180 [ 13.119729] ? kmalloc_oob_in_memset+0x15f/0x320 [ 13.119756] kasan_check_range+0x10c/0x1c0 [ 13.119780] __asan_memset+0x27/0x50 [ 13.119799] kmalloc_oob_in_memset+0x15f/0x320 [ 13.119822] ? __pfx_kmalloc_oob_in_memset+0x10/0x10 [ 13.119848] ? __pfx_kmalloc_oob_in_memset+0x10/0x10 [ 13.119876] kunit_try_run_case+0x1a5/0x480 [ 13.119901] ? __pfx_kunit_try_run_case+0x10/0x10 [ 13.119924] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 13.119948] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 13.119972] ? __kthread_parkme+0x82/0x180 [ 13.119993] ? preempt_count_sub+0x50/0x80 [ 13.120017] ? __pfx_kunit_try_run_case+0x10/0x10 [ 13.120041] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 13.120070] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 13.120096] kthread+0x337/0x6f0 [ 13.120114] ? trace_preempt_on+0x20/0xc0 [ 13.120137] ? __pfx_kthread+0x10/0x10 [ 13.120158] ? _raw_spin_unlock_irq+0x47/0x80 [ 13.120179] ? calculate_sigpending+0x7b/0xa0 [ 13.120203] ? __pfx_kthread+0x10/0x10 [ 13.120225] ret_from_fork+0x116/0x1d0 [ 13.120260] ? __pfx_kthread+0x10/0x10 [ 13.120281] ret_from_fork_asm+0x1a/0x30 [ 13.120311] </TASK> [ 13.120322] [ 13.130339] Allocated by task 187: [ 13.130677] kasan_save_stack+0x45/0x70 [ 13.130874] kasan_save_track+0x18/0x40 [ 13.131069] kasan_save_alloc_info+0x3b/0x50 [ 13.131343] __kasan_kmalloc+0xb7/0xc0 [ 13.131524] __kmalloc_cache_noprof+0x189/0x420 [ 13.131695] kmalloc_oob_in_memset+0xac/0x320 [ 13.131845] kunit_try_run_case+0x1a5/0x480 [ 13.132070] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 13.132331] kthread+0x337/0x6f0 [ 13.132499] ret_from_fork+0x116/0x1d0 [ 13.132852] ret_from_fork_asm+0x1a/0x30 [ 13.133001] [ 13.133094] The buggy address belongs to the object at ffff8881025cc000 [ 13.133094] which belongs to the cache kmalloc-128 of size 128 [ 13.133839] The buggy address is located 0 bytes inside of [ 13.133839] allocated 120-byte region [ffff8881025cc000, ffff8881025cc078) [ 13.134861] [ 13.134955] The buggy address belongs to the physical page: [ 13.135227] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1025cc [ 13.135649] flags: 0x200000000000000(node=0|zone=2) [ 13.135897] page_type: f5(slab) [ 13.136040] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000 [ 13.136298] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 13.136664] page dumped because: kasan: bad access detected [ 13.136854] [ 13.136924] Memory state around the buggy address: [ 13.137355] ffff8881025cbf00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 13.137727] ffff8881025cbf80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 13.138017] >ffff8881025cc000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 13.138332] ^ [ 13.138700] ffff8881025cc080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 13.138933] ffff8881025cc100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 13.139169] ==================================================================