Date
May 30, 2025, 4:14 a.m.
Environment | |
---|---|
e850-96 | |
qemu-arm64 | |
qemu-x86_64 | |
x15 |
[ 27.780406] ================================================================== [ 27.790082] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_4+0x150/0x300 [ 27.797282] Write of size 4 at addr ffff000803eb5675 by task kunit_try_catch/218 [ 27.804660] [ 27.806144] CPU: 4 UID: 0 PID: 218 Comm: kunit_try_catch Tainted: G B N 6.15.0-next-20250530 #1 PREEMPT [ 27.806199] Tainted: [B]=BAD_PAGE, [N]=TEST [ 27.806216] Hardware name: WinLink E850-96 board (DT) [ 27.806234] Call trace: [ 27.806246] show_stack+0x20/0x38 (C) [ 27.806279] dump_stack_lvl+0x8c/0xd0 [ 27.806316] print_report+0x118/0x608 [ 27.806351] kasan_report+0xdc/0x128 [ 27.806383] kasan_check_range+0x100/0x1a8 [ 27.806418] __asan_memset+0x34/0x78 [ 27.806446] kmalloc_oob_memset_4+0x150/0x300 [ 27.806477] kunit_try_run_case+0x170/0x3f0 [ 27.806511] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 27.806547] kthread+0x328/0x630 [ 27.806572] ret_from_fork+0x10/0x20 [ 27.806607] [ 27.872888] Allocated by task 218: [ 27.876275] kasan_save_stack+0x3c/0x68 [ 27.880093] kasan_save_track+0x20/0x40 [ 27.883912] kasan_save_alloc_info+0x40/0x58 [ 27.888166] __kasan_kmalloc+0xd4/0xd8 [ 27.891898] __kmalloc_cache_noprof+0x15c/0x3c0 [ 27.896412] kmalloc_oob_memset_4+0xb0/0x300 [ 27.900666] kunit_try_run_case+0x170/0x3f0 [ 27.904832] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 27.910300] kthread+0x328/0x630 [ 27.913513] ret_from_fork+0x10/0x20 [ 27.917071] [ 27.918549] The buggy address belongs to the object at ffff000803eb5600 [ 27.918549] which belongs to the cache kmalloc-128 of size 128 [ 27.931050] The buggy address is located 117 bytes inside of [ 27.931050] allocated 120-byte region [ffff000803eb5600, ffff000803eb5678) [ 27.943634] [ 27.945112] The buggy address belongs to the physical page: [ 27.950670] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x883eb4 [ 27.958652] head: order:1 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 27.966293] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff) [ 27.973235] page_type: f5(slab) [ 27.976370] raw: 0bfffe0000000040 ffff000800002a00 dead000000000122 0000000000000000 [ 27.984091] raw: 0000000000000000 0000000080200020 00000000f5000000 0000000000000000 [ 27.991817] head: 0bfffe0000000040 ffff000800002a00 dead000000000122 0000000000000000 [ 27.999629] head: 0000000000000000 0000000080200020 00000000f5000000 0000000000000000 [ 28.007441] head: 0bfffe0000000001 fffffdffe00fad01 00000000ffffffff 00000000ffffffff [ 28.015253] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000002 [ 28.023059] page dumped because: kasan: bad access detected [ 28.028616] [ 28.030090] Memory state around the buggy address: [ 28.034873] ffff000803eb5500: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 28.042073] ffff000803eb5580: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 28.049278] >ffff000803eb5600: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 28.056479] ^ [ 28.063601] ffff000803eb5680: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 28.070805] ffff000803eb5700: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 28.078007] ==================================================================
[ 24.819982] ================================================================== [ 24.820095] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_4+0x150/0x300 [ 24.820216] Write of size 4 at addr fff00000c5eeef75 by task kunit_try_catch/175 [ 24.820326] [ 24.820396] CPU: 0 UID: 0 PID: 175 Comm: kunit_try_catch Tainted: G B N 6.15.0-next-20250530 #1 PREEMPT [ 24.820587] Tainted: [B]=BAD_PAGE, [N]=TEST [ 24.820647] Hardware name: linux,dummy-virt (DT) [ 24.821187] Call trace: [ 24.821431] show_stack+0x20/0x38 (C) [ 24.822429] dump_stack_lvl+0x8c/0xd0 [ 24.822990] print_report+0x118/0x608 [ 24.823804] kasan_report+0xdc/0x128 [ 24.824585] kasan_check_range+0x100/0x1a8 [ 24.824757] __asan_memset+0x34/0x78 [ 24.824883] kmalloc_oob_memset_4+0x150/0x300 [ 24.825182] kunit_try_run_case+0x170/0x3f0 [ 24.825458] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 24.826055] kthread+0x328/0x630 [ 24.826406] ret_from_fork+0x10/0x20 [ 24.826784] [ 24.826840] Allocated by task 175: [ 24.827373] kasan_save_stack+0x3c/0x68 [ 24.827558] kasan_save_track+0x20/0x40 [ 24.828029] kasan_save_alloc_info+0x40/0x58 [ 24.828159] __kasan_kmalloc+0xd4/0xd8 [ 24.828282] __kmalloc_cache_noprof+0x15c/0x3c0 [ 24.828667] kmalloc_oob_memset_4+0xb0/0x300 [ 24.829085] kunit_try_run_case+0x170/0x3f0 [ 24.829185] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 24.829668] kthread+0x328/0x630 [ 24.829985] ret_from_fork+0x10/0x20 [ 24.830393] [ 24.830805] The buggy address belongs to the object at fff00000c5eeef00 [ 24.830805] which belongs to the cache kmalloc-128 of size 128 [ 24.830939] The buggy address is located 117 bytes inside of [ 24.830939] allocated 120-byte region [fff00000c5eeef00, fff00000c5eeef78) [ 24.831473] [ 24.831534] The buggy address belongs to the physical page: [ 24.831928] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x105eee [ 24.832440] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 24.832560] page_type: f5(slab) [ 24.832888] raw: 0bfffe0000000000 fff00000c0001a00 dead000000000122 0000000000000000 [ 24.833284] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 24.833780] page dumped because: kasan: bad access detected [ 24.833932] [ 24.834201] Memory state around the buggy address: [ 24.834281] fff00000c5eeee00: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 24.834875] fff00000c5eeee80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 24.835008] >fff00000c5eeef00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 24.835092] ^ [ 24.835144] fff00000c5eeef80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 24.835195] fff00000c5eef000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 24.835260] ==================================================================
[ 18.258430] ================================================================== [ 18.259836] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_4+0x166/0x330 [ 18.261112] Write of size 4 at addr ffff8881022c3875 by task kunit_try_catch/191 [ 18.262068] [ 18.262460] CPU: 1 UID: 0 PID: 191 Comm: kunit_try_catch Tainted: G B N 6.15.0-next-20250530 #1 PREEMPT(voluntary) [ 18.262590] Tainted: [B]=BAD_PAGE, [N]=TEST [ 18.262658] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 18.262726] Call Trace: [ 18.262767] <TASK> [ 18.262818] dump_stack_lvl+0x73/0xb0 [ 18.262903] print_report+0xd1/0x650 [ 18.262940] ? __virt_addr_valid+0x1db/0x2d0 [ 18.262974] ? kmalloc_oob_memset_4+0x166/0x330 [ 18.263005] ? kasan_complete_mode_report_info+0x2a/0x200 [ 18.263064] ? kmalloc_oob_memset_4+0x166/0x330 [ 18.263097] kasan_report+0x141/0x180 [ 18.263128] ? kmalloc_oob_memset_4+0x166/0x330 [ 18.263171] kasan_check_range+0x10c/0x1c0 [ 18.263291] __asan_memset+0x27/0x50 [ 18.263368] kmalloc_oob_memset_4+0x166/0x330 [ 18.263453] ? __pfx_kmalloc_oob_memset_4+0x10/0x10 [ 18.263522] ? __schedule+0x10cc/0x2b60 [ 18.263560] ? __pfx_read_tsc+0x10/0x10 [ 18.263591] ? ktime_get_ts64+0x86/0x230 [ 18.263624] kunit_try_run_case+0x1a5/0x480 [ 18.263656] ? __pfx_kunit_try_run_case+0x10/0x10 [ 18.263682] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 18.263718] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 18.263796] ? __kthread_parkme+0x82/0x180 [ 18.263832] ? preempt_count_sub+0x50/0x80 [ 18.263866] ? __pfx_kunit_try_run_case+0x10/0x10 [ 18.263894] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 18.263928] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 18.263962] kthread+0x337/0x6f0 [ 18.263989] ? trace_preempt_on+0x20/0xc0 [ 18.264046] ? __pfx_kthread+0x10/0x10 [ 18.264079] ? _raw_spin_unlock_irq+0x47/0x80 [ 18.264113] ? calculate_sigpending+0x7b/0xa0 [ 18.264148] ? __pfx_kthread+0x10/0x10 [ 18.264197] ret_from_fork+0x116/0x1d0 [ 18.264268] ? __pfx_kthread+0x10/0x10 [ 18.264314] ret_from_fork_asm+0x1a/0x30 [ 18.264356] </TASK> [ 18.264372] [ 18.287099] Allocated by task 191: [ 18.287739] kasan_save_stack+0x45/0x70 [ 18.288481] kasan_save_track+0x18/0x40 [ 18.289235] kasan_save_alloc_info+0x3b/0x50 [ 18.289597] __kasan_kmalloc+0xb7/0xc0 [ 18.290822] __kmalloc_cache_noprof+0x189/0x420 [ 18.291652] kmalloc_oob_memset_4+0xac/0x330 [ 18.292359] kunit_try_run_case+0x1a5/0x480 [ 18.292965] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 18.293403] kthread+0x337/0x6f0 [ 18.293696] ret_from_fork+0x116/0x1d0 [ 18.294622] ret_from_fork_asm+0x1a/0x30 [ 18.295127] [ 18.295659] The buggy address belongs to the object at ffff8881022c3800 [ 18.295659] which belongs to the cache kmalloc-128 of size 128 [ 18.297388] The buggy address is located 117 bytes inside of [ 18.297388] allocated 120-byte region [ffff8881022c3800, ffff8881022c3878) [ 18.298398] [ 18.299277] The buggy address belongs to the physical page: [ 18.299686] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1022c3 [ 18.300698] flags: 0x200000000000000(node=0|zone=2) [ 18.301595] page_type: f5(slab) [ 18.301917] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000 [ 18.303074] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 18.303968] page dumped because: kasan: bad access detected [ 18.304757] [ 18.305617] Memory state around the buggy address: [ 18.306465] ffff8881022c3700: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 18.307350] ffff8881022c3780: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 18.308170] >ffff8881022c3800: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 18.308950] ^ [ 18.309790] ffff8881022c3880: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 18.310598] ffff8881022c3900: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 18.312154] ==================================================================
[ 54.375183] ================================================================== [ 54.386566] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_4+0x1b0/0x35c [ 54.393829] Write of size 4 at addr cc78eb75 by task kunit_try_catch/226 [ 54.400573] [ 54.402099] CPU: 0 UID: 0 PID: 226 Comm: kunit_try_catch Tainted: G B W N 6.15.0-next-20250530 #1 NONE [ 54.402130] Tainted: [B]=BAD_PAGE, [W]=WARN, [N]=TEST [ 54.402130] Hardware name: Generic DRA74X (Flattened Device Tree) [ 54.402130] Call trace: [ 54.402130] unwind_backtrace from show_stack+0x18/0x1c [ 54.402160] show_stack from dump_stack_lvl+0x70/0x90 [ 54.402191] dump_stack_lvl from print_report+0x158/0x528 [ 54.402221] print_report from kasan_report+0xdc/0x118 [ 54.402221] kasan_report from kasan_check_range+0x14c/0x198 [ 54.402252] kasan_check_range from __asan_memset+0x20/0x3c [ 54.402282] __asan_memset from kmalloc_oob_memset_4+0x1b0/0x35c [ 54.402313] kmalloc_oob_memset_4 from kunit_try_run_case+0x22c/0x5a8 [ 54.402313] kunit_try_run_case from kunit_generic_run_threadfn_adapter+0xc4/0x128 [ 54.402343] kunit_generic_run_threadfn_adapter from kthread+0x464/0x810 [ 54.402374] kthread from ret_from_fork+0x14/0x20 [ 54.402404] Exception stack(0xf2293fb0 to 0xf2293ff8) [ 54.402404] 3fa0: 00000000 00000000 00000000 00000000 [ 54.402435] 3fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 [ 54.402435] 3fe0: 00000000 00000000 00000000 00000000 00000013 00000000 [ 54.402465] [ 54.520080] Allocated by task 226: [ 54.523498] kasan_save_track+0x30/0x5c [ 54.527374] __kasan_kmalloc+0x8c/0x94 [ 54.531158] kmalloc_oob_memset_4+0xcc/0x35c [ 54.535461] kunit_try_run_case+0x22c/0x5a8 [ 54.539672] kunit_generic_run_threadfn_adapter+0xc4/0x128 [ 54.545196] kthread+0x464/0x810 [ 54.548461] ret_from_fork+0x14/0x20 [ 54.552062] [ 54.553558] The buggy address belongs to the object at cc78eb00 [ 54.553558] which belongs to the cache kmalloc-128 of size 128 [ 54.565460] The buggy address is located 117 bytes inside of [ 54.565460] allocated 120-byte region [cc78eb00, cc78eb78) [ 54.576751] [ 54.578247] The buggy address belongs to the physical page: [ 54.583862] page: refcount:0 mapcount:0 mapping:00000000 index:0x0 pfn:0x8c78e [ 54.591125] flags: 0x0(zone=0) [ 54.594207] page_type: f5(slab) [ 54.597381] raw: 00000000 c7001400 00000122 00000000 00000000 80100010 f5000000 00000000 [ 54.605499] raw: 00000000 [ 54.608154] page dumped because: kasan: bad access detected [ 54.613769] [ 54.615264] Memory state around the buggy address: [ 54.620086] cc78ea00: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 54.626647] cc78ea80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 54.633209] >cc78eb00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 54.639801] ^ [ 54.646270] cc78eb80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 54.652832] cc78ec00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 54.659393] ==================================================================