Date
July 8, 2025, 7:07 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 19.319150] ================================================================== [ 19.319288] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_4+0x150/0x300 [ 19.319339] Write of size 4 at addr fff00000c1d5ff75 by task kunit_try_catch/174 [ 19.319455] [ 19.319513] CPU: 1 UID: 0 PID: 174 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5 #1 PREEMPT [ 19.319593] Tainted: [B]=BAD_PAGE, [N]=TEST [ 19.319625] Hardware name: linux,dummy-virt (DT) [ 19.319814] Call trace: [ 19.320114] show_stack+0x20/0x38 (C) [ 19.320256] dump_stack_lvl+0x8c/0xd0 [ 19.320373] print_report+0x118/0x608 [ 19.320513] kasan_report+0xdc/0x128 [ 19.320645] kasan_check_range+0x100/0x1a8 [ 19.321013] __asan_memset+0x34/0x78 [ 19.321176] kmalloc_oob_memset_4+0x150/0x300 [ 19.321309] kunit_try_run_case+0x170/0x3f0 [ 19.321461] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 19.321528] kthread+0x328/0x630 [ 19.321840] ret_from_fork+0x10/0x20 [ 19.322056] [ 19.322107] Allocated by task 174: [ 19.322274] kasan_save_stack+0x3c/0x68 [ 19.322423] kasan_save_track+0x20/0x40 [ 19.322591] kasan_save_alloc_info+0x40/0x58 [ 19.322698] __kasan_kmalloc+0xd4/0xd8 [ 19.322915] __kmalloc_cache_noprof+0x16c/0x3c0 [ 19.323039] kmalloc_oob_memset_4+0xb0/0x300 [ 19.323231] kunit_try_run_case+0x170/0x3f0 [ 19.323683] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 19.323810] kthread+0x328/0x630 [ 19.323954] ret_from_fork+0x10/0x20 [ 19.324113] [ 19.324204] The buggy address belongs to the object at fff00000c1d5ff00 [ 19.324204] which belongs to the cache kmalloc-128 of size 128 [ 19.324427] The buggy address is located 117 bytes inside of [ 19.324427] allocated 120-byte region [fff00000c1d5ff00, fff00000c1d5ff78) [ 19.324646] [ 19.324766] The buggy address belongs to the physical page: [ 19.324875] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x101d5f [ 19.324954] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 19.325152] page_type: f5(slab) [ 19.325277] raw: 0bfffe0000000000 fff00000c0001a00 dead000000000122 0000000000000000 [ 19.325397] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 19.325464] page dumped because: kasan: bad access detected [ 19.325838] [ 19.325993] Memory state around the buggy address: [ 19.326206] fff00000c1d5fe00: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 19.326276] fff00000c1d5fe80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 19.326326] >fff00000c1d5ff00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 19.326462] ^ [ 19.326546] fff00000c1d5ff80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 19.326690] fff00000c1d60000: 00 00 00 00 00 00 00 00 00 00 00 fc fc fc fc 00 [ 19.326793] ==================================================================
[ 13.022362] ================================================================== [ 13.023477] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_4+0x166/0x330 [ 13.024234] Write of size 4 at addr ffff888102602875 by task kunit_try_catch/191 [ 13.025180] [ 13.025404] CPU: 1 UID: 0 PID: 191 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5 #1 PREEMPT(voluntary) [ 13.025454] Tainted: [B]=BAD_PAGE, [N]=TEST [ 13.025466] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 13.025488] Call Trace: [ 13.025507] <TASK> [ 13.025525] dump_stack_lvl+0x73/0xb0 [ 13.025561] print_report+0xd1/0x650 [ 13.025582] ? __virt_addr_valid+0x1db/0x2d0 [ 13.025605] ? kmalloc_oob_memset_4+0x166/0x330 [ 13.025626] ? kasan_complete_mode_report_info+0x2a/0x200 [ 13.025650] ? kmalloc_oob_memset_4+0x166/0x330 [ 13.025670] kasan_report+0x141/0x180 [ 13.025691] ? kmalloc_oob_memset_4+0x166/0x330 [ 13.025716] kasan_check_range+0x10c/0x1c0 [ 13.025738] __asan_memset+0x27/0x50 [ 13.025756] kmalloc_oob_memset_4+0x166/0x330 [ 13.025777] ? __pfx_kmalloc_oob_memset_4+0x10/0x10 [ 13.025798] ? __schedule+0x10cc/0x2b60 [ 13.025822] ? __pfx_read_tsc+0x10/0x10 [ 13.025842] ? ktime_get_ts64+0x86/0x230 [ 13.025867] kunit_try_run_case+0x1a5/0x480 [ 13.025892] ? __pfx_kunit_try_run_case+0x10/0x10 [ 13.025912] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 13.025934] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 13.025956] ? __kthread_parkme+0x82/0x180 [ 13.025975] ? preempt_count_sub+0x50/0x80 [ 13.025998] ? __pfx_kunit_try_run_case+0x10/0x10 [ 13.026021] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 13.026053] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 13.026075] kthread+0x337/0x6f0 [ 13.026094] ? trace_preempt_on+0x20/0xc0 [ 13.026116] ? __pfx_kthread+0x10/0x10 [ 13.026135] ? _raw_spin_unlock_irq+0x47/0x80 [ 13.026155] ? calculate_sigpending+0x7b/0xa0 [ 13.026178] ? __pfx_kthread+0x10/0x10 [ 13.026198] ret_from_fork+0x116/0x1d0 [ 13.026215] ? __pfx_kthread+0x10/0x10 [ 13.026235] ret_from_fork_asm+0x1a/0x30 [ 13.026265] </TASK> [ 13.026277] [ 13.038896] Allocated by task 191: [ 13.039026] kasan_save_stack+0x45/0x70 [ 13.039471] kasan_save_track+0x18/0x40 [ 13.039861] kasan_save_alloc_info+0x3b/0x50 [ 13.040109] __kasan_kmalloc+0xb7/0xc0 [ 13.040300] __kmalloc_cache_noprof+0x189/0x420 [ 13.040480] kmalloc_oob_memset_4+0xac/0x330 [ 13.040673] kunit_try_run_case+0x1a5/0x480 [ 13.040817] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 13.040997] kthread+0x337/0x6f0 [ 13.041262] ret_from_fork+0x116/0x1d0 [ 13.041470] ret_from_fork_asm+0x1a/0x30 [ 13.041750] [ 13.041852] The buggy address belongs to the object at ffff888102602800 [ 13.041852] which belongs to the cache kmalloc-128 of size 128 [ 13.042253] The buggy address is located 117 bytes inside of [ 13.042253] allocated 120-byte region [ffff888102602800, ffff888102602878) [ 13.042802] [ 13.042986] The buggy address belongs to the physical page: [ 13.043258] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102602 [ 13.043622] flags: 0x200000000000000(node=0|zone=2) [ 13.043796] page_type: f5(slab) [ 13.043966] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000 [ 13.044429] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 13.044721] page dumped because: kasan: bad access detected [ 13.044892] [ 13.044961] Memory state around the buggy address: [ 13.045201] ffff888102602700: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 13.045476] ffff888102602780: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 13.045929] >ffff888102602800: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 13.046206] ^ [ 13.046418] ffff888102602880: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 13.046652] ffff888102602900: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 13.046970] ==================================================================