Date
June 24, 2025, 11:37 a.m.
Environment | |
---|---|
dragonboard-845c | |
qemu-x86_64 |
[ 50.315944] ================================================================== [ 50.327074] BUG: KASAN: slab-out-of-bounds in memcmp+0x198/0x1d8 [ 50.333171] Read of size 1 at addr ffff0000829a87d8 by task kunit_try_catch/355 [ 50.340584] [ 50.342121] CPU: 3 UID: 0 PID: 355 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc3-next-20250624 #1 PREEMPT [ 50.342153] Tainted: [B]=BAD_PAGE, [N]=TEST [ 50.342164] Hardware name: Thundercomm Dragonboard 845c (DT) [ 50.342178] Call trace: [ 50.342185] show_stack+0x20/0x38 (C) [ 50.342204] dump_stack_lvl+0x8c/0xd0 [ 50.342226] print_report+0x118/0x608 [ 50.342246] kasan_report+0xdc/0x128 [ 50.342266] __asan_report_load1_noabort+0x20/0x30 [ 50.342287] memcmp+0x198/0x1d8 [ 50.342304] kasan_memcmp+0x16c/0x300 [ 50.342323] kunit_try_run_case+0x170/0x3f0 [ 50.342344] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 50.342368] kthread+0x328/0x630 [ 50.342383] ret_from_fork+0x10/0x20 [ 50.342401] [ 50.410771] Allocated by task 355: [ 50.414239] kasan_save_stack+0x3c/0x68 [ 50.418150] kasan_save_track+0x20/0x40 [ 50.422065] kasan_save_alloc_info+0x40/0x58 [ 50.426402] __kasan_kmalloc+0xd4/0xd8 [ 50.430217] __kmalloc_cache_noprof+0x16c/0x3c0 [ 50.434832] kasan_memcmp+0xbc/0x300 [ 50.438472] kunit_try_run_case+0x170/0x3f0 [ 50.442727] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 50.448297] kthread+0x328/0x630 [ 50.451582] ret_from_fork+0x10/0x20 [ 50.455224] [ 50.456758] The buggy address belongs to the object at ffff0000829a87c0 [ 50.456758] which belongs to the cache kmalloc-32 of size 32 [ 50.469253] The buggy address is located 0 bytes to the right of [ 50.469253] allocated 24-byte region [ffff0000829a87c0, ffff0000829a87d8) [ 50.482265] [ 50.483804] The buggy address belongs to the physical page: [ 50.489452] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1029a8 [ 50.497557] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 50.504182] page_type: f5(slab) [ 50.507383] raw: 0bfffe0000000000 ffff000080002780 dead000000000122 0000000000000000 [ 50.515231] raw: 0000000000000000 0000000080400040 00000000f5000000 0000000000000000 [ 50.523074] page dumped because: kasan: bad access detected [ 50.528720] [ 50.530250] Memory state around the buggy address: [ 50.535117] ffff0000829a8680: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 50.542432] ffff0000829a8700: fa fb fb fb fc fc fc fc 00 00 00 fc fc fc fc fc [ 50.549758] >ffff0000829a8780: 00 00 00 fc fc fc fc fc 00 00 00 fc fc fc fc fc [ 50.557071] ^ [ 50.563253] ffff0000829a8800: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 50.570567] ffff0000829a8880: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 50.577888] ==================================================================
[ 31.574662] ================================================================== [ 31.575297] BUG: KASAN: slab-out-of-bounds in memcmp+0x1b4/0x1d0 [ 31.576409] Read of size 1 at addr ffff888102df3898 by task kunit_try_catch/287 [ 31.576863] [ 31.577584] CPU: 0 UID: 0 PID: 287 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc3-next-20250624 #1 PREEMPT(voluntary) [ 31.577731] Tainted: [B]=BAD_PAGE, [N]=TEST [ 31.577769] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 31.577819] Call Trace: [ 31.577848] <TASK> [ 31.577876] dump_stack_lvl+0x73/0xb0 [ 31.577917] print_report+0xd1/0x650 [ 31.577946] ? __virt_addr_valid+0x1db/0x2d0 [ 31.577987] ? memcmp+0x1b4/0x1d0 [ 31.578027] ? kasan_complete_mode_report_info+0x2a/0x200 [ 31.578073] ? memcmp+0x1b4/0x1d0 [ 31.578126] kasan_report+0x141/0x180 [ 31.578172] ? memcmp+0x1b4/0x1d0 [ 31.578224] __asan_report_load1_noabort+0x18/0x20 [ 31.578257] memcmp+0x1b4/0x1d0 [ 31.578284] kasan_memcmp+0x18f/0x390 [ 31.578310] ? trace_hardirqs_on+0x37/0xe0 [ 31.578339] ? __pfx_kasan_memcmp+0x10/0x10 [ 31.578364] ? finish_task_switch.isra.0+0x153/0x700 [ 31.578392] ? __switch_to+0x47/0xf50 [ 31.578427] ? __pfx_read_tsc+0x10/0x10 [ 31.578454] ? ktime_get_ts64+0x86/0x230 [ 31.578483] kunit_try_run_case+0x1a5/0x480 [ 31.578514] ? __pfx_kunit_try_run_case+0x10/0x10 [ 31.578565] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 31.578598] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 31.578633] ? __kthread_parkme+0x82/0x180 [ 31.578668] ? preempt_count_sub+0x50/0x80 [ 31.578698] ? __pfx_kunit_try_run_case+0x10/0x10 [ 31.578727] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 31.578756] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 31.578786] kthread+0x337/0x6f0 [ 31.578809] ? trace_preempt_on+0x20/0xc0 [ 31.578836] ? __pfx_kthread+0x10/0x10 [ 31.578860] ? _raw_spin_unlock_irq+0x47/0x80 [ 31.578888] ? calculate_sigpending+0x7b/0xa0 [ 31.578918] ? __pfx_kthread+0x10/0x10 [ 31.578944] ret_from_fork+0x116/0x1d0 [ 31.578967] ? __pfx_kthread+0x10/0x10 [ 31.578991] ret_from_fork_asm+0x1a/0x30 [ 31.579029] </TASK> [ 31.579044] [ 31.595465] Allocated by task 287: [ 31.596211] kasan_save_stack+0x45/0x70 [ 31.596945] kasan_save_track+0x18/0x40 [ 31.597330] kasan_save_alloc_info+0x3b/0x50 [ 31.597687] __kasan_kmalloc+0xb7/0xc0 [ 31.598092] __kmalloc_cache_noprof+0x189/0x420 [ 31.598524] kasan_memcmp+0xb7/0x390 [ 31.599576] kunit_try_run_case+0x1a5/0x480 [ 31.600037] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 31.600871] kthread+0x337/0x6f0 [ 31.601086] ret_from_fork+0x116/0x1d0 [ 31.601795] ret_from_fork_asm+0x1a/0x30 [ 31.602016] [ 31.602229] The buggy address belongs to the object at ffff888102df3880 [ 31.602229] which belongs to the cache kmalloc-32 of size 32 [ 31.603389] The buggy address is located 0 bytes to the right of [ 31.603389] allocated 24-byte region [ffff888102df3880, ffff888102df3898) [ 31.604779] [ 31.604976] The buggy address belongs to the physical page: [ 31.605464] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102df3 [ 31.606494] flags: 0x200000000000000(node=0|zone=2) [ 31.607038] page_type: f5(slab) [ 31.607747] raw: 0200000000000000 ffff888100041780 dead000000000122 0000000000000000 [ 31.608441] raw: 0000000000000000 0000000080400040 00000000f5000000 0000000000000000 [ 31.609008] page dumped because: kasan: bad access detected [ 31.609943] [ 31.610142] Memory state around the buggy address: [ 31.610397] ffff888102df3780: 00 00 07 fc fc fc fc fc 00 00 00 fc fc fc fc fc [ 31.611248] ffff888102df3800: 00 00 00 04 fc fc fc fc 00 00 07 fc fc fc fc fc [ 31.611686] >ffff888102df3880: 00 00 00 fc fc fc fc fc fc fc fc fc fc fc fc fc [ 31.612741] ^ [ 31.613465] ffff888102df3900: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 31.614016] ffff888102df3980: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 31.614692] ==================================================================