Date
July 19, 2025, 11:11 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 15.368892] ================================================================== [ 15.368947] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_16+0x150/0x2f8 [ 15.368996] Write of size 16 at addr fff00000c5f9df69 by task kunit_try_catch/179 [ 15.369045] [ 15.369073] CPU: 1 UID: 0 PID: 179 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6 #1 PREEMPT [ 15.369152] Tainted: [B]=BAD_PAGE, [N]=TEST [ 15.369177] Hardware name: linux,dummy-virt (DT) [ 15.369206] Call trace: [ 15.369227] show_stack+0x20/0x38 (C) [ 15.369290] dump_stack_lvl+0x8c/0xd0 [ 15.369335] print_report+0x118/0x5d0 [ 15.369385] kasan_report+0xdc/0x128 [ 15.369429] kasan_check_range+0x100/0x1a8 [ 15.369475] __asan_memset+0x34/0x78 [ 15.369516] kmalloc_oob_memset_16+0x150/0x2f8 [ 15.370490] kunit_try_run_case+0x170/0x3f0 [ 15.370615] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 15.370670] kthread+0x328/0x630 [ 15.370734] ret_from_fork+0x10/0x20 [ 15.371197] [ 15.371323] Allocated by task 179: [ 15.371418] kasan_save_stack+0x3c/0x68 [ 15.371486] kasan_save_track+0x20/0x40 [ 15.371524] kasan_save_alloc_info+0x40/0x58 [ 15.371576] __kasan_kmalloc+0xd4/0xd8 [ 15.372073] __kmalloc_cache_noprof+0x16c/0x3c0 [ 15.372156] kmalloc_oob_memset_16+0xb0/0x2f8 [ 15.372212] kunit_try_run_case+0x170/0x3f0 [ 15.372250] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 15.372292] kthread+0x328/0x630 [ 15.372323] ret_from_fork+0x10/0x20 [ 15.372373] [ 15.372394] The buggy address belongs to the object at fff00000c5f9df00 [ 15.372394] which belongs to the cache kmalloc-128 of size 128 [ 15.372451] The buggy address is located 105 bytes inside of [ 15.372451] allocated 120-byte region [fff00000c5f9df00, fff00000c5f9df78) [ 15.372519] [ 15.372565] The buggy address belongs to the physical page: [ 15.372596] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x105f9d [ 15.372656] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 15.372703] page_type: f5(slab) [ 15.372762] raw: 0bfffe0000000000 fff00000c0001a00 dead000000000122 0000000000000000 [ 15.372820] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 15.372859] page dumped because: kasan: bad access detected [ 15.372895] [ 15.372912] Memory state around the buggy address: [ 15.372942] fff00000c5f9de00: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 15.372984] fff00000c5f9de80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 15.373024] >fff00000c5f9df00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 15.373068] ^ [ 15.373116] fff00000c5f9df80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 15.373157] fff00000c5f9e000: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 15.373204] ==================================================================
[ 12.245759] ================================================================== [ 12.246261] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_16+0x166/0x330 [ 12.246516] Write of size 16 at addr ffff8881027e4469 by task kunit_try_catch/196 [ 12.246739] [ 12.246830] CPU: 0 UID: 0 PID: 196 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6 #1 PREEMPT(voluntary) [ 12.246877] Tainted: [B]=BAD_PAGE, [N]=TEST [ 12.246891] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 12.246914] Call Trace: [ 12.246926] <TASK> [ 12.246943] dump_stack_lvl+0x73/0xb0 [ 12.246973] print_report+0xd1/0x610 [ 12.246994] ? __virt_addr_valid+0x1db/0x2d0 [ 12.247017] ? kmalloc_oob_memset_16+0x166/0x330 [ 12.247036] ? kasan_complete_mode_report_info+0x2a/0x200 [ 12.247057] ? kmalloc_oob_memset_16+0x166/0x330 [ 12.247077] kasan_report+0x141/0x180 [ 12.247097] ? kmalloc_oob_memset_16+0x166/0x330 [ 12.247122] kasan_check_range+0x10c/0x1c0 [ 12.247144] __asan_memset+0x27/0x50 [ 12.247162] kmalloc_oob_memset_16+0x166/0x330 [ 12.247184] ? __pfx_kmalloc_oob_memset_16+0x10/0x10 [ 12.247205] ? __schedule+0x10cc/0x2b60 [ 12.247227] ? __pfx_read_tsc+0x10/0x10 [ 12.247248] ? ktime_get_ts64+0x86/0x230 [ 12.247272] kunit_try_run_case+0x1a5/0x480 [ 12.247297] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.247318] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 12.247344] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 12.247366] ? __kthread_parkme+0x82/0x180 [ 12.247385] ? preempt_count_sub+0x50/0x80 [ 12.247408] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.247431] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 12.247453] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 12.247475] kthread+0x337/0x6f0 [ 12.247898] ? trace_preempt_on+0x20/0xc0 [ 12.247937] ? __pfx_kthread+0x10/0x10 [ 12.247961] ? _raw_spin_unlock_irq+0x47/0x80 [ 12.247996] ? calculate_sigpending+0x7b/0xa0 [ 12.248257] ? __pfx_kthread+0x10/0x10 [ 12.248300] ret_from_fork+0x116/0x1d0 [ 12.248348] ? __pfx_kthread+0x10/0x10 [ 12.248368] ret_from_fork_asm+0x1a/0x30 [ 12.248398] </TASK> [ 12.248409] [ 12.260009] Allocated by task 196: [ 12.260645] kasan_save_stack+0x45/0x70 [ 12.260859] kasan_save_track+0x18/0x40 [ 12.261030] kasan_save_alloc_info+0x3b/0x50 [ 12.261506] __kasan_kmalloc+0xb7/0xc0 [ 12.261708] __kmalloc_cache_noprof+0x189/0x420 [ 12.262028] kmalloc_oob_memset_16+0xac/0x330 [ 12.262524] kunit_try_run_case+0x1a5/0x480 [ 12.262795] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 12.263023] kthread+0x337/0x6f0 [ 12.263352] ret_from_fork+0x116/0x1d0 [ 12.263550] ret_from_fork_asm+0x1a/0x30 [ 12.263733] [ 12.263812] The buggy address belongs to the object at ffff8881027e4400 [ 12.263812] which belongs to the cache kmalloc-128 of size 128 [ 12.264735] The buggy address is located 105 bytes inside of [ 12.264735] allocated 120-byte region [ffff8881027e4400, ffff8881027e4478) [ 12.265515] [ 12.265719] The buggy address belongs to the physical page: [ 12.266164] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1027e4 [ 12.266561] flags: 0x200000000000000(node=0|zone=2) [ 12.266954] page_type: f5(slab) [ 12.267283] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000 [ 12.267767] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 12.268292] page dumped because: kasan: bad access detected [ 12.268527] [ 12.268626] Memory state around the buggy address: [ 12.268927] ffff8881027e4300: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 12.269479] ffff8881027e4380: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.270224] >ffff8881027e4400: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 12.270530] ^ [ 12.270831] ffff8881027e4480: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.271125] ffff8881027e4500: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.271377] ==================================================================