syzbot


linux-next test error: BUG: using __this_cpu_read() in preemptible code in __mod_memcg_state

Status: closed as invalid on 2020/04/18 07:51
Reported-by: syzbot+826543256ed3b8c37f62@syzkaller.appspotmail.com
First crash: 1007d, last: 1003d

Sample crash report:
check_preemption_disabled: 3 callbacks suppressed
BUG: using __this_cpu_read() in preemptible [00000000] code: syz-fuzzer/8694
caller is __mod_memcg_state+0x27/0x1a0 mm/memcontrol.c:689
CPU: 0 PID: 8694 Comm: syz-fuzzer Not tainted 5.6.0-rc5-next-20200311-syzkaller #0
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+0x188/0x20d lib/dump_stack.c:118
 check_preemption_disabled lib/smp_processor_id.c:47 [inline]
 __this_cpu_preempt_check.cold+0x84/0x90 lib/smp_processor_id.c:64
 __mod_memcg_state+0x27/0x1a0 mm/memcontrol.c:689
 __split_huge_page mm/huge_memory.c:2575 [inline]
 split_huge_page_to_list+0x124b/0x3380 mm/huge_memory.c:2862
 split_huge_page include/linux/huge_mm.h:167 [inline]
 madvise_free_huge_pmd+0x873/0xb90 mm/huge_memory.c:1766
 madvise_free_pte_range+0x6ff/0x2650 mm/madvise.c:584
 walk_pmd_range mm/pagewalk.c:89 [inline]
 walk_pud_range mm/pagewalk.c:160 [inline]
 walk_p4d_range mm/pagewalk.c:193 [inline]
 walk_pgd_range mm/pagewalk.c:229 [inline]
 __walk_page_range+0xcfb/0x2070 mm/pagewalk.c:331
 walk_page_range+0x1bd/0x3a0 mm/pagewalk.c:427
 madvise_free_single_vma+0x384/0x550 mm/madvise.c:731
 madvise_dontneed_free mm/madvise.c:819 [inline]
 madvise_vma mm/madvise.c:958 [inline]
 do_madvise mm/madvise.c:1161 [inline]
 do_madvise+0x5ba/0x1b80 mm/madvise.c:1084
 __do_sys_madvise mm/madvise.c:1189 [inline]
 __se_sys_madvise mm/madvise.c:1187 [inline]
 __x64_sys_madvise+0xae/0x120 mm/madvise.c:1187
 do_syscall_64+0xf6/0x7d0 arch/x86/entry/common.c:295
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x460bf7
Code: 8b 24 24 48 8b 6c 24 10 48 83 c4 18 c3 cc cc cc cc cc cc 48 8b 7c 24 08 48 8b 74 24 10 8b 54 24 18 48 c7 c0 1c 00 00 00 0f 05 <89> 44 24 20 c3 cc cc cc cc 48 8b 7c 24 08 8b 74 24 10 8b 54 24 14
RSP: 002b:000000c0000e1e70 EFLAGS: 00000246 ORIG_RAX: 000000000000001c
RAX: ffffffffffffffda RBX: 0000000000000008 RCX: 0000000000460bf7
RDX: 0000000000000008 RSI: 0000000000012000 RDI: 000000c00025e000
RBP: 000000c0000e1eb0 R08: 000000c000200000 R09: 000000c000270000
R10: 00007fffffffffff R11: 0000000000000246 R12: 0000000000000002
R13: 00007f67f876c6d0 R14: 0000000000000004 R15: 00000000000000df
BUG: using __this_cpu_add() in preemptible [00000000] code: syz-fuzzer/8694
caller is __mod_memcg_state+0xca/0x1a0 mm/memcontrol.c:697
CPU: 0 PID: 8694 Comm: syz-fuzzer Not tainted 5.6.0-rc5-next-20200311-syzkaller #0
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+0x188/0x20d lib/dump_stack.c:118
 check_preemption_disabled lib/smp_processor_id.c:47 [inline]
 __this_cpu_preempt_check.cold+0x84/0x90 lib/smp_processor_id.c:64
 __mod_memcg_state+0xca/0x1a0 mm/memcontrol.c:697
 __split_huge_page mm/huge_memory.c:2575 [inline]
 split_huge_page_to_list+0x124b/0x3380 mm/huge_memory.c:2862
 split_huge_page include/linux/huge_mm.h:167 [inline]
 madvise_free_huge_pmd+0x873/0xb90 mm/huge_memory.c:1766
 madvise_free_pte_range+0x6ff/0x2650 mm/madvise.c:584
 walk_pmd_range mm/pagewalk.c:89 [inline]
 walk_pud_range mm/pagewalk.c:160 [inline]
 walk_p4d_range mm/pagewalk.c:193 [inline]
 walk_pgd_range mm/pagewalk.c:229 [inline]
 __walk_page_range+0xcfb/0x2070 mm/pagewalk.c:331
 walk_page_range+0x1bd/0x3a0 mm/pagewalk.c:427
 madvise_free_single_vma+0x384/0x550 mm/madvise.c:731
 madvise_dontneed_free mm/madvise.c:819 [inline]
 madvise_vma mm/madvise.c:958 [inline]
 do_madvise mm/madvise.c:1161 [inline]
 do_madvise+0x5ba/0x1b80 mm/madvise.c:1084
 __do_sys_madvise mm/madvise.c:1189 [inline]
 __se_sys_madvise mm/madvise.c:1187 [inline]
 __x64_sys_madvise+0xae/0x120 mm/madvise.c:1187
 do_syscall_64+0xf6/0x7d0 arch/x86/entry/common.c:295
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x460bf7
Code: 8b 24 24 48 8b 6c 24 10 48 83 c4 18 c3 cc cc cc cc cc cc 48 8b 7c 24 08 48 8b 74 24 10 8b 54 24 18 48 c7 c0 1c 00 00 00 0f 05 <89> 44 24 20 c3 cc cc cc cc 48 8b 7c 24 08 8b 74 24 10 8b 54 24 14
RSP: 002b:000000c0000e1e70 EFLAGS: 00000246 ORIG_RAX: 000000000000001c
RAX: ffffffffffffffda RBX: 0000000000000008 RCX: 0000000000460bf7
RDX: 0000000000000008 RSI: 0000000000012000 RDI: 000000c00025e000
RBP: 000000c0000e1eb0 R08: 000000c000200000 R09: 000000c000270000
R10: 00007fffffffffff R11: 0000000000000246 R12: 0000000000000002
R13: 00007f67f876c6d0 R14: 0000000000000004 R15: 00000000000000df
BUG: using __this_cpu_write() in preemptible [00000000] code: syz-fuzzer/8694
caller is __mod_memcg_state+0x87/0x1a0 mm/memcontrol.c:702
CPU: 0 PID: 8694 Comm: syz-fuzzer Not tainted 5.6.0-rc5-next-20200311-syzkaller #0
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+0x188/0x20d lib/dump_stack.c:118
 check_preemption_disabled lib/smp_processor_id.c:47 [inline]
 __this_cpu_preempt_check.cold+0x84/0x90 lib/smp_processor_id.c:64
 __mod_memcg_state+0x87/0x1a0 mm/memcontrol.c:702
 __split_huge_page mm/huge_memory.c:2575 [inline]
 split_huge_page_to_list+0x124b/0x3380 mm/huge_memory.c:2862
 split_huge_page include/linux/huge_mm.h:167 [inline]
 madvise_free_huge_pmd+0x873/0xb90 mm/huge_memory.c:1766
 madvise_free_pte_range+0x6ff/0x2650 mm/madvise.c:584
 walk_pmd_range mm/pagewalk.c:89 [inline]
 walk_pud_range mm/pagewalk.c:160 [inline]
 walk_p4d_range mm/pagewalk.c:193 [inline]
 walk_pgd_range mm/pagewalk.c:229 [inline]
 __walk_page_range+0xcfb/0x2070 mm/pagewalk.c:331
 walk_page_range+0x1bd/0x3a0 mm/pagewalk.c:427
 madvise_free_single_vma+0x384/0x550 mm/madvise.c:731
 madvise_dontneed_free mm/madvise.c:819 [inline]
 madvise_vma mm/madvise.c:958 [inline]
 do_madvise mm/madvise.c:1161 [inline]
 do_madvise+0x5ba/0x1b80 mm/madvise.c:1084
 __do_sys_madvise mm/madvise.c:1189 [inline]
 __se_sys_madvise mm/madvise.c:1187 [inline]
 __x64_sys_madvise+0xae/0x120 mm/madvise.c:1187
 do_syscall_64+0xf6/0x7d0 arch/x86/entry/common.c:295
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x460bf7
Code: 8b 24 24 48 8b 6c 24 10 48 83 c4 18 c3 cc cc cc cc cc cc 48 8b 7c 24 08 48 8b 74 24 10 8b 54 24 18 48 c7 c0 1c 00 00 00 0f 05 <89> 44 24 20 c3 cc cc cc cc 48 8b 7c 24 08 8b 74 24 10 8b 54 24 14
RSP: 002b:000000c0000e1e70 EFLAGS: 00000246 ORIG_RAX: 000000000000001c
RAX: ffffffffffffffda RBX: 0000000000000008 RCX: 0000000000460bf7
RDX: 0000000000000008 RSI: 0000000000012000 RDI: 000000c00025e000
RBP: 000000c0000e1eb0 R08: 000000c000200000 R09: 000000c000270000
R10: 00007fffffffffff R11: 0000000000000246 R12: 0000000000000002
R13: 00007f67f876c6d0 R14: 0000000000000004 R15: 00000000000000df

Crashes (18):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-upstream-linux-next-kasan-gce-root 2020/03/12 07:19 linux-next d44a64766795 d850e9d0 .config log report
ci-upstream-linux-next-kasan-gce-root 2020/03/12 07:19 linux-next d44a64766795 d850e9d0 .config log report
ci-upstream-linux-next-kasan-gce-root 2020/03/12 07:19 linux-next d44a64766795 d850e9d0 .config log report
ci-upstream-linux-next-kasan-gce-root 2020/03/11 14:24 linux-next d44a64766795 e7caca8e .config log report
ci-upstream-linux-next-kasan-gce-root 2020/03/11 14:24 linux-next d44a64766795 e7caca8e .config log report
ci-upstream-linux-next-kasan-gce-root 2020/03/11 14:24 linux-next d44a64766795 e7caca8e .config log report
ci-upstream-linux-next-kasan-gce-root 2020/03/11 10:06 linux-next d44a64766795 35f53e45 .config log report
ci-upstream-linux-next-kasan-gce-root 2020/03/11 10:06 linux-next d44a64766795 35f53e45 .config log report
ci-upstream-linux-next-kasan-gce-root 2020/03/11 10:06 linux-next d44a64766795 35f53e45 .config log report
ci-upstream-linux-next-kasan-gce-root 2020/03/10 10:04 linux-next 134546626849 35f53e45 .config log report
ci-upstream-linux-next-kasan-gce-root 2020/03/10 10:04 linux-next 134546626849 35f53e45 .config log report
ci-upstream-linux-next-kasan-gce-root 2020/03/10 10:04 linux-next 134546626849 35f53e45 .config log report
ci-upstream-linux-next-kasan-gce-root 2020/03/09 19:23 linux-next b86a6a241b7c 35f53e45 .config log report
ci-upstream-linux-next-kasan-gce-root 2020/03/09 19:23 linux-next b86a6a241b7c 35f53e45 .config log report
ci-upstream-linux-next-kasan-gce-root 2020/03/09 19:23 linux-next b86a6a241b7c 35f53e45 .config log report
ci-upstream-linux-next-kasan-gce-root 2020/03/07 13:14 linux-next b86a6a241b7c 2e9971bb .config log report
ci-upstream-linux-next-kasan-gce-root 2020/03/07 13:14 linux-next b86a6a241b7c 2e9971bb .config log report
ci-upstream-linux-next-kasan-gce-root 2020/03/07 13:14 linux-next b86a6a241b7c 2e9971bb .config log report
* Struck through repros no longer work on HEAD.