syzbot


linux-next boot error: KASAN: slab-out-of-bounds Read in _find_next_bit

Status: auto-obsoleted due to no activity on 2022/10/19 14:38
Subsystems: mm
[Documentation on labels]
Reported-by: syzbot+08ca1fa706a22cc17efe@syzkaller.appspotmail.com
First crash: 591d, last: 588d
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] linux-next boot error: KASAN: slab-out-of-bounds Read in _find_next_bit 4 (5) 2022/09/07 07:17

Sample crash report:
==================================================================
BUG: KASAN: slab-out-of-bounds in _find_next_bit+0x122/0x140 lib/find_bit.c:109
Read of size 8 at addr ffff888145c5a1b8 by task kworker/1:1/26

CPU: 1 PID: 26 Comm: kworker/1:1 Not tainted 6.0.0-rc4-next-20220909-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/26/2022
Workqueue: events pcpu_balance_workfn
Call Trace:
 <TASK>
 __dump_stack lib/dump_stack.c:88 [inline]
 dump_stack_lvl+0xcd/0x134 lib/dump_stack.c:106
 print_address_description mm/kasan/report.c:287 [inline]
 print_report+0x164/0x463 mm/kasan/report.c:398
 kasan_report+0xbb/0x1f0 mm/kasan/report.c:486
 _find_next_bit+0x122/0x140 lib/find_bit.c:109
 find_next_bit include/linux/find.h:55 [inline]
 pcpu_balance_populated mm/percpu.c:2086 [inline]
 pcpu_balance_workfn+0x6c0/0xea0 mm/percpu.c:2246
 process_one_work+0x991/0x1610 kernel/workqueue.c:2289
 worker_thread+0x665/0x1080 kernel/workqueue.c:2436
 kthread+0x2e4/0x3a0 kernel/kthread.c:376
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:306
 </TASK>

Allocated by task 26:
 kasan_save_stack+0x1e/0x40 mm/kasan/common.c:45
 kasan_set_track+0x21/0x30 mm/kasan/common.c:52
 ____kasan_kmalloc mm/kasan/common.c:371 [inline]
 ____kasan_kmalloc mm/kasan/common.c:330 [inline]
 __kasan_kmalloc+0xa1/0xb0 mm/kasan/common.c:380
 kasan_kmalloc include/linux/kasan.h:211 [inline]
 __do_kmalloc_node mm/slab_common.c:931 [inline]
 __kmalloc+0x54/0xc0 mm/slab_common.c:944
 kmalloc include/linux/slab.h:564 [inline]
 kzalloc include/linux/slab.h:695 [inline]
 pcpu_mem_zalloc+0x70/0xa0 mm/percpu.c:514
 pcpu_alloc_chunk mm/percpu.c:1446 [inline]
 pcpu_create_chunk+0x23/0x930 mm/percpu-vm.c:338
 pcpu_balance_populated mm/percpu.c:2108 [inline]
 pcpu_balance_workfn+0xc4e/0xea0 mm/percpu.c:2246
 process_one_work+0x991/0x1610 kernel/workqueue.c:2289
 worker_thread+0x665/0x1080 kernel/workqueue.c:2436
 kthread+0x2e4/0x3a0 kernel/kthread.c:376
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:306

The buggy address belongs to the object at ffff888145c5a100
 which belongs to the cache kmalloc-192 of size 192
The buggy address is located 184 bytes inside of
 192-byte region [ffff888145c5a100, ffff888145c5a1c0)

The buggy address belongs to the physical page:
page:ffffea0005171680 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x145c5a
flags: 0x57ff00000000200(slab|node=1|zone=2|lastcpupid=0x7ff)
raw: 057ff00000000200 0000000000000000 dead000000000122 ffff888011841a00
raw: 0000000000000000 0000000080100010 00000001ffffffff 0000000000000000
page dumped because: kasan: bad access detected
page_owner tracks the page as allocated
page last allocated via order 0, migratetype Unmovable, gfp_mask 0x12cc0(GFP_KERNEL|__GFP_NOWARN|__GFP_NORETRY), pid 1, tgid 1 (swapper/0), ts 2339499704, free_ts 0
 prep_new_page mm/page_alloc.c:2541 [inline]
 get_page_from_freelist+0x109b/0x2ce0 mm/page_alloc.c:4291
 __alloc_pages+0x1c7/0x510 mm/page_alloc.c:5549
 alloc_page_interleave+0x1e/0x200 mm/mempolicy.c:2113
 alloc_pages+0x22f/0x270 mm/mempolicy.c:2275
 alloc_slab_page mm/slub.c:1734 [inline]
 allocate_slab+0x213/0x300 mm/slub.c:1879
 new_slab mm/slub.c:1932 [inline]
 ___slab_alloc+0xad0/0x1440 mm/slub.c:3113
 __slab_alloc.constprop.0+0x4d/0xa0 mm/slub.c:3211
 slab_alloc_node mm/slub.c:3296 [inline]
 __kmem_cache_alloc_node+0x18a/0x3d0 mm/slub.c:3369
 kmalloc_trace+0x22/0x60 mm/slab_common.c:1011
 kmalloc include/linux/slab.h:559 [inline]
 kzalloc include/linux/slab.h:695 [inline]
 call_usermodehelper_setup+0x97/0x340 kernel/umh.c:365
 kobject_uevent_env+0xee6/0x1640 lib/kobject_uevent.c:614
 workqueue_sysfs_register+0x2d4/0x3e0 kernel/workqueue.c:5772
 alloc_workqueue+0x9d9/0x1100 kernel/workqueue.c:4350
 default_bdi_init+0x1a/0x37 mm/backing-dev.c:236
 do_one_initcall+0xfe/0x650 init/main.c:1307
 do_initcall_level init/main.c:1382 [inline]
 do_initcalls init/main.c:1398 [inline]
 do_basic_setup init/main.c:1417 [inline]
 kernel_init_freeable+0x6ff/0x788 init/main.c:1637
page_owner free stack trace missing

Memory state around the buggy address:
 ffff888145c5a080: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc
 ffff888145c5a100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
>ffff888145c5a180: 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc fc
                                        ^
 ffff888145c5a200: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
 ffff888145c5a280: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
==================================================================

Crashes (26):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/09/09 14:38 linux-next 9a82ccda91ed 356d8217 .config console log report ci-upstream-linux-next-kasan-gce-root linux-next boot error: KASAN: slab-out-of-bounds Read in _find_next_bit
2022/09/09 14:37 linux-next 9a82ccda91ed 356d8217 .config console log report ci-upstream-linux-next-kasan-gce-root linux-next boot error: KASAN: slab-out-of-bounds Read in _find_next_bit
2022/09/09 14:37 linux-next 9a82ccda91ed 356d8217 .config console log report ci-upstream-linux-next-kasan-gce-root linux-next boot error: KASAN: slab-out-of-bounds Read in _find_next_bit
2022/09/09 09:01 linux-next 9a82ccda91ed f3027468 .config console log report ci-upstream-linux-next-kasan-gce-root linux-next boot error: KASAN: slab-out-of-bounds Read in _find_next_bit
2022/09/09 09:01 linux-next 9a82ccda91ed f3027468 .config console log report ci-upstream-linux-next-kasan-gce-root linux-next boot error: KASAN: slab-out-of-bounds Read in _find_next_bit
2022/09/09 09:00 linux-next 9a82ccda91ed f3027468 .config console log report ci-upstream-linux-next-kasan-gce-root linux-next boot error: KASAN: slab-out-of-bounds Read in _find_next_bit
2022/09/08 11:31 linux-next 47c191411b68 f3027468 .config console log report ci-upstream-linux-next-kasan-gce-root linux-next boot error: KASAN: slab-out-of-bounds Read in _find_next_bit
2022/09/08 11:31 linux-next 47c191411b68 f3027468 .config console log report ci-upstream-linux-next-kasan-gce-root linux-next boot error: KASAN: slab-out-of-bounds Read in _find_next_bit
2022/09/08 11:31 linux-next 47c191411b68 f3027468 .config console log report ci-upstream-linux-next-kasan-gce-root linux-next boot error: KASAN: slab-out-of-bounds Read in _find_next_bit
2022/09/08 10:37 linux-next 47c191411b68 435aeef7 .config console log report ci-upstream-linux-next-kasan-gce-root linux-next boot error: KASAN: slab-out-of-bounds Read in _find_next_bit
2022/09/08 10:36 linux-next 47c191411b68 435aeef7 .config console log report ci-upstream-linux-next-kasan-gce-root linux-next boot error: KASAN: slab-out-of-bounds Read in _find_next_bit
2022/09/08 10:36 linux-next 47c191411b68 435aeef7 .config console log report ci-upstream-linux-next-kasan-gce-root linux-next boot error: KASAN: slab-out-of-bounds Read in _find_next_bit
2022/09/08 00:32 linux-next 5957ac6635a1 435aeef7 .config console log report ci-upstream-linux-next-kasan-gce-root linux-next boot error: KASAN: slab-out-of-bounds Read in _find_next_bit
2022/09/08 00:31 linux-next 5957ac6635a1 435aeef7 .config console log report ci-upstream-linux-next-kasan-gce-root linux-next boot error: KASAN: slab-out-of-bounds Read in _find_next_bit
2022/09/08 00:31 linux-next 5957ac6635a1 435aeef7 .config console log report ci-upstream-linux-next-kasan-gce-root linux-next boot error: KASAN: slab-out-of-bounds Read in _find_next_bit
2022/09/07 13:42 linux-next 5957ac6635a1 c5b7bc57 .config console log report ci-upstream-linux-next-kasan-gce-root linux-next boot error: KASAN: slab-out-of-bounds Read in _find_next_bit
2022/09/07 13:42 linux-next 5957ac6635a1 c5b7bc57 .config console log report ci-upstream-linux-next-kasan-gce-root linux-next boot error: KASAN: slab-out-of-bounds Read in _find_next_bit
2022/09/07 12:33 linux-next 840126e36e8f c5b7bc57 .config console log report ci-upstream-linux-next-kasan-gce-root linux-next boot error: KASAN: slab-out-of-bounds Read in _find_next_bit
2022/09/07 12:33 linux-next 840126e36e8f c5b7bc57 .config console log report ci-upstream-linux-next-kasan-gce-root linux-next boot error: KASAN: slab-out-of-bounds Read in _find_next_bit
2022/09/07 12:33 linux-next 840126e36e8f c5b7bc57 .config console log report ci-upstream-linux-next-kasan-gce-root linux-next boot error: KASAN: slab-out-of-bounds Read in _find_next_bit
2022/09/06 22:22 linux-next 840126e36e8f 5fc30c37 .config console log report ci-upstream-linux-next-kasan-gce-root linux-next boot error: KASAN: slab-out-of-bounds Read in _find_next_bit
2022/09/06 22:21 linux-next 840126e36e8f 5fc30c37 .config console log report ci-upstream-linux-next-kasan-gce-root linux-next boot error: KASAN: slab-out-of-bounds Read in _find_next_bit
2022/09/06 22:21 linux-next 840126e36e8f 5fc30c37 .config console log report ci-upstream-linux-next-kasan-gce-root linux-next boot error: KASAN: slab-out-of-bounds Read in _find_next_bit
2022/09/06 12:36 linux-next 840126e36e8f 65aea2b9 .config console log report ci-upstream-linux-next-kasan-gce-root linux-next boot error: KASAN: slab-out-of-bounds Read in _find_next_bit
2022/09/06 12:36 linux-next 840126e36e8f 65aea2b9 .config console log report ci-upstream-linux-next-kasan-gce-root linux-next boot error: KASAN: slab-out-of-bounds Read in _find_next_bit
2022/09/06 12:36 linux-next 840126e36e8f 65aea2b9 .config console log report ci-upstream-linux-next-kasan-gce-root linux-next boot error: KASAN: slab-out-of-bounds Read in _find_next_bit
* Struck through repros no longer work on HEAD.