syzbot


KASAN: slab-out-of-bounds Read in find_first_bit

Status: closed as invalid on 2018/07/17 19:13
Subsystems: mm
[Documentation on labels]
Reported-by: syzbot+5248ff94d8e3548ee995@syzkaller.appspotmail.com
First crash: 2092d, last: 2087d
Discussions (1)
Title Replies (including bot) Last reply
KASAN: slab-out-of-bounds Read in find_first_bit 2 (3) 2018/07/17 19:12

Sample crash report:
IPVS: ftp: loaded support on port[0] = 21
IPVS: ftp: loaded support on port[0] = 21
IPVS: ftp: loaded support on port[0] = 21
IPVS: ftp: loaded support on port[0] = 21
==================================================================
BUG: KASAN: slab-out-of-bounds in find_first_bit+0xf7/0x100 lib/find_bit.c:107
Read of size 8 at addr ffff8801d72da090 by task kswapd0/1533

CPU: 0 PID: 1533 Comm: kswapd0 Not tainted 4.18.0-rc4-next-20180710+ #3
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
 __dump_stack lib/dump_stack.c:77 [inline]
 dump_stack+0x1c9/0x2b4 lib/dump_stack.c:113
 print_address_description+0x6c/0x20b mm/kasan/report.c:256
 kasan_report_error mm/kasan/report.c:354 [inline]
 kasan_report.cold.7+0x242/0x30d mm/kasan/report.c:412
 __asan_report_load8_noabort+0x14/0x20 mm/kasan/report.c:433
 find_first_bit+0xf7/0x100 lib/find_bit.c:107
 shrink_slab_memcg mm/vmscan.c:580 [inline]
 shrink_slab+0x5d0/0xdb0 mm/vmscan.c:672
 shrink_node+0x429/0x16a0 mm/vmscan.c:2736
 kswapd_shrink_node mm/vmscan.c:3458 [inline]
 balance_pgdat+0x7ca/0x1010 mm/vmscan.c:3568
 kswapd+0x82e/0x12f0 mm/vmscan.c:3790
 kthread+0x345/0x410 kernel/kthread.c:246
 ret_from_fork+0x3a/0x50 arch/x86/entry/entry_64.S:415

Allocated by task 4499:
 save_stack+0x43/0xd0 mm/kasan/kasan.c:448
 set_track mm/kasan/kasan.c:460 [inline]
 kasan_kmalloc+0xc4/0xe0 mm/kasan/kasan.c:553
 __do_kmalloc_node mm/slab.c:3682 [inline]
 __kmalloc_node+0x47/0x70 mm/slab.c:3689
 kmalloc_node include/linux/slab.h:555 [inline]
 kvmalloc_node+0x65/0xf0 mm/util.c:423
 kvmalloc include/linux/mm.h:557 [inline]
 kvzalloc include/linux/mm.h:565 [inline]
 memcg_alloc_shrinker_maps mm/memcontrol.c:386 [inline]
 mem_cgroup_css_online+0x169/0x3c0 mm/memcontrol.c:4685
 online_css+0x10c/0x350 kernel/cgroup/cgroup.c:4768
 css_create kernel/cgroup/cgroup.c:4839 [inline]
 cgroup_apply_control_enable+0x777/0xe90 kernel/cgroup/cgroup.c:2987
 cgroup_mkdir+0x88a/0x1170 kernel/cgroup/cgroup.c:5029
 kernfs_iop_mkdir+0x159/0x1e0 fs/kernfs/dir.c:1099
 vfs_mkdir+0x42e/0x6b0 fs/namei.c:3858
 do_mkdirat+0x27b/0x310 fs/namei.c:3881
 __do_sys_mkdir fs/namei.c:3897 [inline]
 __se_sys_mkdir fs/namei.c:3895 [inline]
 __x64_sys_mkdir+0x5c/0x80 fs/namei.c:3895
 do_syscall_64+0x1b9/0x820 arch/x86/entry/common.c:290
 entry_SYSCALL_64_after_hwframe+0x49/0xbe

Freed by task 1:
 save_stack+0x43/0xd0 mm/kasan/kasan.c:448
 set_track mm/kasan/kasan.c:460 [inline]
 __kasan_slab_free+0x11a/0x170 mm/kasan/kasan.c:521
 kasan_slab_free+0xe/0x10 mm/kasan/kasan.c:528
 __cache_free mm/slab.c:3498 [inline]
 kfree+0xd9/0x260 mm/slab.c:3813
 acpi_os_free include/acpi/platform/aclinuxex.h:62 [inline]
 acpi_ex_stop_trace_method+0x1bf/0x1cb drivers/acpi/acpica/extrace.c:260
 acpi_ds_terminate_control_method+0x5ab/0x5bc drivers/acpi/acpica/dsmethod.c:824
 acpi_ps_parse_aml+0x4af/0x86a drivers/acpi/acpica/psparse.c:553
 acpi_ps_execute_method+0x521/0x597 drivers/acpi/acpica/psxface.c:187
 acpi_ns_evaluate+0x717/0x9bc drivers/acpi/acpica/nseval.c:204
 acpi_evaluate_object+0x48c/0x8cf drivers/acpi/acpica/nsxfeval.c:354
 acpi_evaluate_integer+0x129/0x280 drivers/acpi/utils.c:296
 acpi_bus_get_status_handle+0x26/0xa0 drivers/acpi/bus.c:127
 acpi_bus_type_and_status drivers/acpi/scan.c:1697 [inline]
 acpi_bus_check_add+0x3b5/0xb60 drivers/acpi/scan.c:1851
 acpi_ns_walk_namespace+0x224/0x400 drivers/acpi/acpica/nswalk.c:237
 acpi_walk_namespace+0xf2/0x12c drivers/acpi/acpica/nsxfeval.c:606
 acpi_bus_scan+0x146/0x170 drivers/acpi/scan.c:2041
 acpi_scan_init+0x403/0x8fe drivers/acpi/scan.c:2198
 acpi_init+0x941/0xa19 drivers/acpi/bus.c:1284
 do_one_initcall+0x127/0x913 init/main.c:884
 do_initcall_level init/main.c:952 [inline]
 do_initcalls init/main.c:960 [inline]
 do_basic_setup init/main.c:978 [inline]
 kernel_init_freeable+0x49b/0x58e init/main.c:1135
 kernel_init+0x11/0x1b3 init/main.c:1061
 ret_from_fork+0x3a/0x50 arch/x86/entry/entry_64.S:415

The buggy address belongs to the object at ffff8801d72da080
 which belongs to the cache kmalloc-32 of size 32
The buggy address is located 16 bytes inside of
 32-byte region [ffff8801d72da080, ffff8801d72da0a0)
The buggy address belongs to the page:
page:ffffea00075cb680 count:1 mapcount:0 mapping:ffff8801da8001c0 index:0xffff8801d72dafc1
flags: 0x2fffc0000000100(slab)
raw: 02fffc0000000100 ffffea00075ca9c8 ffffea00075cb808 ffff8801da8001c0
raw: ffff8801d72dafc1 ffff8801d72da000 000000010000003f 0000000000000000
page dumped because: kasan: bad access detected

Memory state around the buggy address:
 ffff8801d72d9f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
 ffff8801d72da000: 00 03 fc fc fc fc fc fc 00 00 00 fc fc fc fc fc
>ffff8801d72da080: 00 00 05 fc fc fc fc fc 05 fc fc fc fc fc fc fc
                         ^
 ffff8801d72da100: 05 fc fc fc fc fc fc fc 05 fc fc fc fc fc fc fc
 ffff8801d72da180: 05 fc fc fc fc fc fc fc fb fb fb fb fc fc fc fc
==================================================================

Crashes (196):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2018/07/10 17:33 linux-next 3951bd9fe3e2 9fa03fa5 .config console log report syz C ci-upstream-linux-next-kasan-gce-root
2018/07/10 13:44 linux-next 3951bd9fe3e2 9fa03fa5 .config console log report syz C ci-upstream-linux-next-kasan-gce-root
2018/07/09 00:42 linux-next 526674536360 f25e5770 .config console log report syz C ci-upstream-linux-next-kasan-gce-root
2018/07/08 22:46 linux-next 526674536360 f25e5770 .config console log report syz C ci-upstream-linux-next-kasan-gce-root
2018/07/08 22:26 linux-next 526674536360 f25e5770 .config console log report syz C ci-upstream-linux-next-kasan-gce-root
2018/07/08 22:07 linux-next 526674536360 f25e5770 .config console log report syz C ci-upstream-linux-next-kasan-gce-root
2018/07/08 22:02 linux-next 526674536360 f25e5770 .config console log report syz C ci-upstream-linux-next-kasan-gce-root
2018/07/07 18:06 linux-next 526674536360 ab89aea9 .config console log report syz C ci-upstream-linux-next-kasan-gce-root
2018/07/07 05:17 linux-next 526674536360 6c0c0099 .config console log report syz C ci-upstream-linux-next-kasan-gce-root
2018/07/07 04:56 linux-next 526674536360 6c0c0099 .config console log report syz C ci-upstream-linux-next-kasan-gce-root
2018/07/06 23:55 linux-next 526674536360 9636bc93 .config console log report syz C ci-upstream-linux-next-kasan-gce-root
2018/07/06 21:58 linux-next 526674536360 9636bc93 .config console log report syz C ci-upstream-linux-next-kasan-gce-root
2018/07/06 21:35 linux-next 526674536360 9636bc93 .config console log report syz C ci-upstream-linux-next-kasan-gce-root
2018/07/06 21:10 linux-next 526674536360 9636bc93 .config console log report syz C ci-upstream-linux-next-kasan-gce-root
2018/07/06 20:47 linux-next 526674536360 9636bc93 .config console log report syz C ci-upstream-linux-next-kasan-gce-root
2018/07/06 20:24 linux-next 526674536360 9636bc93 .config console log report syz C ci-upstream-linux-next-kasan-gce-root
2018/07/06 19:45 linux-next 526674536360 9636bc93 .config console log report syz C ci-upstream-linux-next-kasan-gce-root
2018/07/06 19:22 linux-next 526674536360 9636bc93 .config console log report syz C ci-upstream-linux-next-kasan-gce-root
2018/07/06 19:00 linux-next 526674536360 9636bc93 .config console log report syz C ci-upstream-linux-next-kasan-gce-root
2018/07/06 18:22 linux-next 526674536360 9636bc93 .config console log report syz C ci-upstream-linux-next-kasan-gce-root
2018/07/11 06:38 linux-next 3951bd9fe3e2 2e0e3130 .config console log report ci-upstream-linux-next-kasan-gce-root
2018/07/11 04:12 linux-next 3951bd9fe3e2 2e0e3130 .config console log report ci-upstream-linux-next-kasan-gce-root
2018/07/11 02:32 linux-next 3951bd9fe3e2 2e0e3130 .config console log report ci-upstream-linux-next-kasan-gce-root
2018/07/11 00:10 linux-next 3951bd9fe3e2 2e0e3130 .config console log report ci-upstream-linux-next-kasan-gce-root
2018/07/10 22:30 linux-next 3951bd9fe3e2 2e0e3130 .config console log report ci-upstream-linux-next-kasan-gce-root
2018/07/10 17:00 linux-next 3951bd9fe3e2 9fa03fa5 .config console log report ci-upstream-linux-next-kasan-gce-root
2018/07/10 15:27 linux-next 3951bd9fe3e2 9fa03fa5 .config console log report ci-upstream-linux-next-kasan-gce-root
2018/07/10 14:21 linux-next 3951bd9fe3e2 9fa03fa5 .config console log report ci-upstream-linux-next-kasan-gce-root
2018/07/10 12:45 linux-next 3951bd9fe3e2 9fa03fa5 .config console log report ci-upstream-linux-next-kasan-gce-root
2018/07/10 10:55 linux-next 3951bd9fe3e2 9fa03fa5 .config console log report ci-upstream-linux-next-kasan-gce-root
2018/07/10 09:49 linux-next 3951bd9fe3e2 9fa03fa5 .config console log report ci-upstream-linux-next-kasan-gce-root
2018/07/10 07:00 linux-next d00d6d9a339d f25e5770 .config console log report ci-upstream-linux-next-kasan-gce-root
2018/07/10 05:18 linux-next d00d6d9a339d f25e5770 .config console log report ci-upstream-linux-next-kasan-gce-root
2018/07/10 03:45 linux-next d00d6d9a339d f25e5770 .config console log report ci-upstream-linux-next-kasan-gce-root
2018/07/10 01:48 linux-next d00d6d9a339d f25e5770 .config console log report ci-upstream-linux-next-kasan-gce-root
2018/07/10 00:32 linux-next d00d6d9a339d f25e5770 .config console log report ci-upstream-linux-next-kasan-gce-root
2018/07/09 23:30 linux-next d00d6d9a339d f25e5770 .config console log report ci-upstream-linux-next-kasan-gce-root
2018/07/09 20:04 linux-next d00d6d9a339d f25e5770 .config console log report ci-upstream-linux-next-kasan-gce-root
2018/07/09 18:14 linux-next d00d6d9a339d f25e5770 .config console log report ci-upstream-linux-next-kasan-gce-root
2018/07/09 18:14 linux-next d00d6d9a339d f25e5770 .config console log report ci-upstream-linux-next-kasan-gce-root
2018/07/09 17:04 linux-next d00d6d9a339d f25e5770 .config console log report ci-upstream-linux-next-kasan-gce-root
2018/07/09 16:03 linux-next d00d6d9a339d f25e5770 .config console log report ci-upstream-linux-next-kasan-gce-root
2018/07/09 13:00 linux-next d00d6d9a339d f25e5770 .config console log report ci-upstream-linux-next-kasan-gce-root
2018/07/09 11:15 linux-next d00d6d9a339d f25e5770 .config console log report ci-upstream-linux-next-kasan-gce-root
2018/07/09 08:26 linux-next d00d6d9a339d f25e5770 .config console log report ci-upstream-linux-next-kasan-gce-root
2018/07/09 08:00 linux-next d00d6d9a339d f25e5770 .config console log report ci-upstream-linux-next-kasan-gce-root
2018/07/09 06:14 linux-next 526674536360 f25e5770 .config console log report ci-upstream-linux-next-kasan-gce-root
2018/07/09 04:05 linux-next 526674536360 f25e5770 .config console log report ci-upstream-linux-next-kasan-gce-root
2018/07/09 03:02 linux-next 526674536360 f25e5770 .config console log report ci-upstream-linux-next-kasan-gce-root
2018/07/09 02:01 linux-next 526674536360 f25e5770 .config console log report ci-upstream-linux-next-kasan-gce-root
2018/07/09 00:34 linux-next 526674536360 f25e5770 .config console log report ci-upstream-linux-next-kasan-gce-root
2018/07/08 21:31 linux-next 526674536360 f25e5770 .config console log report ci-upstream-linux-next-kasan-gce-root
2018/07/08 21:25 linux-next 526674536360 f25e5770 .config console log report ci-upstream-linux-next-kasan-gce-root
2018/07/08 16:56 linux-next 526674536360 c9a7a4dc .config console log report ci-upstream-linux-next-kasan-gce-root
2018/07/08 08:35 linux-next 526674536360 c9a7a4dc .config console log report ci-upstream-linux-next-kasan-gce-root
2018/07/08 06:13 linux-next 526674536360 c9a7a4dc .config console log report ci-upstream-linux-next-kasan-gce-root
2018/07/08 04:46 linux-next 526674536360 c9a7a4dc .config console log report ci-upstream-linux-next-kasan-gce-root
2018/07/08 03:24 linux-next 526674536360 c9a7a4dc .config console log report ci-upstream-linux-next-kasan-gce-root
2018/07/08 02:18 linux-next 526674536360 ab89aea9 .config console log report ci-upstream-linux-next-kasan-gce-root
2018/07/08 00:47 linux-next 526674536360 ab89aea9 .config console log report ci-upstream-linux-next-kasan-gce-root
2018/07/07 20:06 linux-next 526674536360 ab89aea9 .config console log report ci-upstream-linux-next-kasan-gce-root
2018/07/07 17:05 linux-next 526674536360 ab89aea9 .config console log report ci-upstream-linux-next-kasan-gce-root
2018/07/07 15:36 linux-next 526674536360 ab89aea9 .config console log report ci-upstream-linux-next-kasan-gce-root
2018/07/07 14:30 linux-next 526674536360 6c0c0099 .config console log report ci-upstream-linux-next-kasan-gce-root
2018/07/07 11:47 linux-next 526674536360 6c0c0099 .config console log report ci-upstream-linux-next-kasan-gce-root
2018/07/07 08:15 linux-next 526674536360 6c0c0099 .config console log report ci-upstream-linux-next-kasan-gce-root
2018/07/07 07:00 linux-next 526674536360 6c0c0099 .config console log report ci-upstream-linux-next-kasan-gce-root
2018/07/06 15:56 linux-next 526674536360 9636bc93 .config console log report ci-upstream-linux-next-kasan-gce-root
* Struck through repros no longer work on HEAD.