Date
July 2, 2025, 11:10 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 30.817204] ================================================================== [ 30.817263] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_in_memset+0x144/0x2d0 [ 30.817312] Write of size 128 at addr fff00000c404fc00 by task kunit_try_catch/203 [ 30.817549] [ 30.817836] CPU: 0 UID: 0 PID: 203 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc4-next-20250702 #1 PREEMPT [ 30.818041] Tainted: [B]=BAD_PAGE, [N]=TEST [ 30.818078] Hardware name: linux,dummy-virt (DT) [ 30.818513] Call trace: [ 30.818552] show_stack+0x20/0x38 (C) [ 30.818786] dump_stack_lvl+0x8c/0xd0 [ 30.818845] print_report+0x118/0x608 [ 30.818915] kasan_report+0xdc/0x128 [ 30.819079] kasan_check_range+0x100/0x1a8 [ 30.819137] __asan_memset+0x34/0x78 [ 30.819180] kmalloc_oob_in_memset+0x144/0x2d0 [ 30.819227] kunit_try_run_case+0x170/0x3f0 [ 30.819274] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 30.819326] kthread+0x328/0x630 [ 30.819372] ret_from_fork+0x10/0x20 [ 30.819420] [ 30.819439] Allocated by task 203: [ 30.819468] kasan_save_stack+0x3c/0x68 [ 30.819508] kasan_save_track+0x20/0x40 [ 30.819545] kasan_save_alloc_info+0x40/0x58 [ 30.820299] __kasan_kmalloc+0xd4/0xd8 [ 30.820549] __kmalloc_cache_noprof+0x16c/0x3c0 [ 30.820599] kmalloc_oob_in_memset+0xb0/0x2d0 [ 30.820948] kunit_try_run_case+0x170/0x3f0 [ 30.821057] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 30.821149] kthread+0x328/0x630 [ 30.821252] ret_from_fork+0x10/0x20 [ 30.821323] [ 30.821372] The buggy address belongs to the object at fff00000c404fc00 [ 30.821372] which belongs to the cache kmalloc-128 of size 128 [ 30.821524] The buggy address is located 0 bytes inside of [ 30.821524] allocated 120-byte region [fff00000c404fc00, fff00000c404fc78) [ 30.821603] [ 30.821720] The buggy address belongs to the physical page: [ 30.821768] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10404f [ 30.821878] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 30.821963] page_type: f5(slab) [ 30.822014] raw: 0bfffe0000000000 fff00000c0001a00 dead000000000122 0000000000000000 [ 30.822264] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 30.822430] page dumped because: kasan: bad access detected [ 30.822517] [ 30.822565] Memory state around the buggy address: [ 30.822620] fff00000c404fb00: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 30.822948] fff00000c404fb80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 30.823039] >fff00000c404fc00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 30.823123] ^ [ 30.823226] fff00000c404fc80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 30.823288] fff00000c404fd00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 30.823333] ==================================================================
[ 32.591918] ================================================================== [ 32.591976] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_in_memset+0x144/0x2d0 [ 32.592043] Write of size 128 at addr fff00000c63fb700 by task kunit_try_catch/201 [ 32.592200] [ 32.592229] CPU: 1 UID: 0 PID: 201 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc4-next-20250702 #1 PREEMPT [ 32.592314] Tainted: [B]=BAD_PAGE, [N]=TEST [ 32.592340] Hardware name: linux,dummy-virt (DT) [ 32.592378] Call trace: [ 32.592480] show_stack+0x20/0x38 (C) [ 32.592564] dump_stack_lvl+0x8c/0xd0 [ 32.592718] print_report+0x118/0x608 [ 32.592935] kasan_report+0xdc/0x128 [ 32.592988] kasan_check_range+0x100/0x1a8 [ 32.593137] __asan_memset+0x34/0x78 [ 32.593327] kmalloc_oob_in_memset+0x144/0x2d0 [ 32.593379] kunit_try_run_case+0x170/0x3f0 [ 32.593427] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 32.593479] kthread+0x328/0x630 [ 32.593525] ret_from_fork+0x10/0x20 [ 32.593571] [ 32.593590] Allocated by task 201: [ 32.593617] kasan_save_stack+0x3c/0x68 [ 32.593890] kasan_save_track+0x20/0x40 [ 32.594052] kasan_save_alloc_info+0x40/0x58 [ 32.594197] __kasan_kmalloc+0xd4/0xd8 [ 32.594298] __kmalloc_cache_noprof+0x16c/0x3c0 [ 32.594343] kmalloc_oob_in_memset+0xb0/0x2d0 [ 32.594534] kunit_try_run_case+0x170/0x3f0 [ 32.594606] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 32.594795] kthread+0x328/0x630 [ 32.594836] ret_from_fork+0x10/0x20 [ 32.594949] [ 32.595049] The buggy address belongs to the object at fff00000c63fb700 [ 32.595049] which belongs to the cache kmalloc-128 of size 128 [ 32.595134] The buggy address is located 0 bytes inside of [ 32.595134] allocated 120-byte region [fff00000c63fb700, fff00000c63fb778) [ 32.595205] [ 32.595224] The buggy address belongs to the physical page: [ 32.595255] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1063fb [ 32.595303] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 32.595359] page_type: f5(slab) [ 32.595510] raw: 0bfffe0000000000 fff00000c0001a00 dead000000000122 0000000000000000 [ 32.595560] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 32.595598] page dumped because: kasan: bad access detected [ 32.595628] [ 32.595648] Memory state around the buggy address: [ 32.595688] fff00000c63fb600: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 32.595760] fff00000c63fb680: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 32.595801] >fff00000c63fb700: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 32.595855] ^ [ 32.595895] fff00000c63fb780: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 32.595935] fff00000c63fb800: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 32.595971] ==================================================================
[ 23.102108] ================================================================== [ 23.103568] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_in_memset+0x15f/0x320 [ 23.104493] Write of size 128 at addr ffff888105887e00 by task kunit_try_catch/218 [ 23.105213] [ 23.105320] CPU: 0 UID: 0 PID: 218 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc4-next-20250702 #1 PREEMPT(voluntary) [ 23.105371] Tainted: [B]=BAD_PAGE, [N]=TEST [ 23.105385] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 23.105406] Call Trace: [ 23.105419] <TASK> [ 23.105435] dump_stack_lvl+0x73/0xb0 [ 23.105464] print_report+0xd1/0x650 [ 23.105511] ? __virt_addr_valid+0x1db/0x2d0 [ 23.105534] ? kmalloc_oob_in_memset+0x15f/0x320 [ 23.105554] ? kasan_complete_mode_report_info+0x2a/0x200 [ 23.105631] ? kmalloc_oob_in_memset+0x15f/0x320 [ 23.105652] kasan_report+0x141/0x180 [ 23.105734] ? kmalloc_oob_in_memset+0x15f/0x320 [ 23.105764] kasan_check_range+0x10c/0x1c0 [ 23.105799] __asan_memset+0x27/0x50 [ 23.105821] kmalloc_oob_in_memset+0x15f/0x320 [ 23.105854] ? __pfx_kmalloc_oob_in_memset+0x10/0x10 [ 23.105876] ? __schedule+0x10cc/0x2b60 [ 23.105896] ? __pfx_read_tsc+0x10/0x10 [ 23.105918] ? ktime_get_ts64+0x86/0x230 [ 23.105942] kunit_try_run_case+0x1a5/0x480 [ 23.105967] ? __pfx_kunit_try_run_case+0x10/0x10 [ 23.105989] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 23.106010] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 23.106031] ? __kthread_parkme+0x82/0x180 [ 23.106051] ? preempt_count_sub+0x50/0x80 [ 23.106074] ? __pfx_kunit_try_run_case+0x10/0x10 [ 23.106098] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 23.106121] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 23.106144] kthread+0x337/0x6f0 [ 23.106163] ? trace_preempt_on+0x20/0xc0 [ 23.106186] ? __pfx_kthread+0x10/0x10 [ 23.106206] ? _raw_spin_unlock_irq+0x47/0x80 [ 23.106229] ? calculate_sigpending+0x7b/0xa0 [ 23.106252] ? __pfx_kthread+0x10/0x10 [ 23.106273] ret_from_fork+0x116/0x1d0 [ 23.106291] ? __pfx_kthread+0x10/0x10 [ 23.106322] ret_from_fork_asm+0x1a/0x30 [ 23.106351] </TASK> [ 23.106363] [ 23.115488] Allocated by task 218: [ 23.115633] kasan_save_stack+0x45/0x70 [ 23.115946] kasan_save_track+0x18/0x40 [ 23.116139] kasan_save_alloc_info+0x3b/0x50 [ 23.116358] __kasan_kmalloc+0xb7/0xc0 [ 23.116623] __kmalloc_cache_noprof+0x189/0x420 [ 23.116959] kmalloc_oob_in_memset+0xac/0x320 [ 23.117158] kunit_try_run_case+0x1a5/0x480 [ 23.117373] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 23.117568] kthread+0x337/0x6f0 [ 23.117684] ret_from_fork+0x116/0x1d0 [ 23.117825] ret_from_fork_asm+0x1a/0x30 [ 23.117992] [ 23.118060] The buggy address belongs to the object at ffff888105887e00 [ 23.118060] which belongs to the cache kmalloc-128 of size 128 [ 23.118561] The buggy address is located 0 bytes inside of [ 23.118561] allocated 120-byte region [ffff888105887e00, ffff888105887e78) [ 23.119038] [ 23.119126] The buggy address belongs to the physical page: [ 23.119653] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x105887 [ 23.120052] flags: 0x200000000000000(node=0|zone=2) [ 23.120288] page_type: f5(slab) [ 23.120445] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000 [ 23.120918] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 23.121142] page dumped because: kasan: bad access detected [ 23.121317] [ 23.121389] Memory state around the buggy address: [ 23.121743] ffff888105887d00: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 23.122074] ffff888105887d80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 23.122453] >ffff888105887e00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 23.122845] ^ [ 23.123154] ffff888105887e80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 23.123402] ffff888105887f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 23.124000] ==================================================================
[ 23.370780] ================================================================== [ 23.371599] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_in_memset+0x15f/0x320 [ 23.372083] Write of size 128 at addr ffff88810255e600 by task kunit_try_catch/219 [ 23.372405] [ 23.372580] CPU: 0 UID: 0 PID: 219 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc4-next-20250702 #1 PREEMPT(voluntary) [ 23.372634] Tainted: [B]=BAD_PAGE, [N]=TEST [ 23.372647] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 23.372707] Call Trace: [ 23.372721] <TASK> [ 23.372741] dump_stack_lvl+0x73/0xb0 [ 23.372773] print_report+0xd1/0x650 [ 23.372796] ? __virt_addr_valid+0x1db/0x2d0 [ 23.372820] ? kmalloc_oob_in_memset+0x15f/0x320 [ 23.372841] ? kasan_complete_mode_report_info+0x2a/0x200 [ 23.372867] ? kmalloc_oob_in_memset+0x15f/0x320 [ 23.372888] kasan_report+0x141/0x180 [ 23.372909] ? kmalloc_oob_in_memset+0x15f/0x320 [ 23.372934] kasan_check_range+0x10c/0x1c0 [ 23.372957] __asan_memset+0x27/0x50 [ 23.372979] kmalloc_oob_in_memset+0x15f/0x320 [ 23.373050] ? __pfx_kmalloc_oob_in_memset+0x10/0x10 [ 23.373083] ? __schedule+0x10cc/0x2b60 [ 23.373104] ? __pfx_read_tsc+0x10/0x10 [ 23.373126] ? ktime_get_ts64+0x86/0x230 [ 23.373182] kunit_try_run_case+0x1a5/0x480 [ 23.373211] ? __pfx_kunit_try_run_case+0x10/0x10 [ 23.373233] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 23.373255] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 23.373276] ? __kthread_parkme+0x82/0x180 [ 23.373308] ? preempt_count_sub+0x50/0x80 [ 23.373332] ? __pfx_kunit_try_run_case+0x10/0x10 [ 23.373357] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 23.373381] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 23.373405] kthread+0x337/0x6f0 [ 23.373424] ? trace_preempt_on+0x20/0xc0 [ 23.373448] ? __pfx_kthread+0x10/0x10 [ 23.373469] ? _raw_spin_unlock_irq+0x47/0x80 [ 23.373492] ? calculate_sigpending+0x7b/0xa0 [ 23.373516] ? __pfx_kthread+0x10/0x10 [ 23.373537] ret_from_fork+0x116/0x1d0 [ 23.373556] ? __pfx_kthread+0x10/0x10 [ 23.373576] ret_from_fork_asm+0x1a/0x30 [ 23.373607] </TASK> [ 23.373620] [ 23.381370] Allocated by task 219: [ 23.381538] kasan_save_stack+0x45/0x70 [ 23.381680] kasan_save_track+0x18/0x40 [ 23.381832] kasan_save_alloc_info+0x3b/0x50 [ 23.382956] __kasan_kmalloc+0xb7/0xc0 [ 23.383370] __kmalloc_cache_noprof+0x189/0x420 [ 23.383542] kmalloc_oob_in_memset+0xac/0x320 [ 23.383686] kunit_try_run_case+0x1a5/0x480 [ 23.383827] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 23.384002] kthread+0x337/0x6f0 [ 23.384153] ret_from_fork+0x116/0x1d0 [ 23.384334] ret_from_fork_asm+0x1a/0x30 [ 23.384527] [ 23.384768] The buggy address belongs to the object at ffff88810255e600 [ 23.384768] which belongs to the cache kmalloc-128 of size 128 [ 23.385986] The buggy address is located 0 bytes inside of [ 23.385986] allocated 120-byte region [ffff88810255e600, ffff88810255e678) [ 23.386874] [ 23.387030] The buggy address belongs to the physical page: [ 23.387625] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10255e [ 23.388043] flags: 0x200000000000000(node=0|zone=2) [ 23.388558] page_type: f5(slab) [ 23.388811] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000 [ 23.389276] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 23.389890] page dumped because: kasan: bad access detected [ 23.390391] [ 23.390482] Memory state around the buggy address: [ 23.390795] ffff88810255e500: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 23.391384] ffff88810255e580: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 23.391806] >ffff88810255e600: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 23.392286] ^ [ 23.392888] ffff88810255e680: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 23.393456] ffff88810255e700: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 23.393831] ==================================================================