syzbot


INFO: rcu detected stall in bitmap_parselist

Status: fixed on 2018/05/08 18:30
Subsystems: cgroups
[Documentation on labels]
Reported-by: syzbot+6887cbb011c8054e8a3d@syzkaller.appspotmail.com
Fix commit: 8351760ff5b2 lib: fix stall in __bitmap_parselist()
First crash: 2251d, last: 2216d
Duplicate bugs (2)
duplicates (2):
Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
INFO: rcu detected stall in __bitmap_set cgroups 5 2237d 2245d 0/26 closed as dup on 2018/04/01 17:15
INFO: rcu detected stall in __bitmap_parselist cgroups 15 2238d 2245d 0/26 closed as dup on 2018/04/01 17:15
Discussions (5)
Title Replies (including bot) Last reply
[PATCH 4.16 00/68] 4.16.3-stable review 77 (77) 2018/04/19 06:40
[PATCH 4.15 00/53] 4.15.18-stable review 58 (58) 2018/04/18 15:39
[PATCH 4.14 00/49] 4.14.35-stable review 54 (54) 2018/04/18 15:38
INFO: rcu detected stall in bitmap_parselist 4 (5) 2018/04/04 16:53
[PATCH] lib: fix stall in __bitmap_parselist() 1 (1) 2018/04/04 16:26

Sample crash report:
kworker/dying (6) used greatest stack depth: 8440 bytes left
INFO: rcu_sched self-detected stall on CPU
	1-....: (124999 ticks this GP) idle=0da/1/4611686018427387906 softirq=104607/104607 fqs=31226 
	 (t=125000 jiffies g=58208 c=58207 q=1494)
NMI backtrace for cpu 1
CPU: 1 PID: 24755 Comm: syz-executor3 Not tainted 4.16.0+ #4
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
 <IRQ>
 __dump_stack lib/dump_stack.c:77 [inline]
 dump_stack+0x1b9/0x294 lib/dump_stack.c:113
 nmi_cpu_backtrace.cold.4+0x19/0xce lib/nmi_backtrace.c:103
 nmi_trigger_cpumask_backtrace+0x151/0x192 lib/nmi_backtrace.c:62
 arch_trigger_cpumask_backtrace+0x14/0x20 arch/x86/kernel/apic/hw_nmi.c:38
 trigger_single_cpu_backtrace include/linux/nmi.h:156 [inline]
 rcu_dump_cpu_stacks+0x175/0x1c2 kernel/rcu/tree.c:1376
 print_cpu_stall kernel/rcu/tree.c:1525 [inline]
 check_cpu_stall.isra.61.cold.80+0x36c/0x59a kernel/rcu/tree.c:1593
 __rcu_pending kernel/rcu/tree.c:3356 [inline]
 rcu_pending kernel/rcu/tree.c:3401 [inline]
 rcu_check_callbacks+0x21b/0xad0 kernel/rcu/tree.c:2763
 update_process_times+0x2d/0x70 kernel/time/timer.c:1636
 tick_sched_handle+0xa0/0x180 kernel/time/tick-sched.c:171
 tick_sched_timer+0x42/0x130 kernel/time/tick-sched.c:1179
 __run_hrtimer kernel/time/hrtimer.c:1337 [inline]
 __hrtimer_run_queues+0x3e3/0x10a0 kernel/time/hrtimer.c:1399
 hrtimer_interrupt+0x286/0x650 kernel/time/hrtimer.c:1457
 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1025 [inline]
 smp_apic_timer_interrupt+0x15d/0x710 arch/x86/kernel/apic/apic.c:1050
 apic_timer_interrupt+0xf/0x20 arch/x86/entry/entry_64.S:862
 </IRQ>
RIP: 0010:__sanitizer_cov_trace_cmp4+0x3/0x20 kernel/kcov.c:162
RSP: 0018:ffff88018f177698 EFLAGS: 00000292 ORIG_RAX: ffffffffffffff13
RAX: 0000000000040000 RBX: 0000000000000000 RCX: ffffc90006cdf000
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: ffff88018f177718 R08: ffff8801af3402c0 R09: ffff8801d4d34ba8
R10: ffffed003a9a6975 R11: ffff8801d4d34baf R12: 0000000000000000
R13: 0000000000000001 R14: 0000000000000000 R15: 0000000000000000
 bitmap_parselist+0x3a/0x50 lib/bitmap.c:628
 cpulist_parse include/linux/cpumask.h:639 [inline]
 update_cpumask kernel/cgroup/cpuset.c:974 [inline]
 cpuset_write_resmask+0x1b77/0x2e80 kernel/cgroup/cpuset.c:1724
 cgroup_file_write+0x317/0x820 kernel/cgroup/cgroup.c:3429
 kernfs_fop_write+0x2ba/0x480 fs/kernfs/file.c:316
 __vfs_write+0x10b/0x880 fs/read_write.c:485
 vfs_write+0x1f8/0x560 fs/read_write.c:549
 ksys_write+0xf9/0x250 fs/read_write.c:598
 SYSC_write fs/read_write.c:610 [inline]
 SyS_write+0x24/0x30 fs/read_write.c:607
 do_syscall_64+0x29e/0x9d0 arch/x86/entry/common.c:287
 entry_SYSCALL_64_after_hwframe+0x42/0xb7
RIP: 0033:0x455259
RSP: 002b:00007f8b70b6bc68 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007f8b70b6c6d4 RCX: 0000000000455259
RDX: 0000000000000003 RSI: 0000000020000040 RDI: 0000000000000014
RBP: 000000000072bea0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00000000ffffffff
R13: 00000000000006bc R14: 00000000006fd240 R15: 0000000000000000

Crashes (8):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2018/04/08 10:08 upstream 3fd14cdcc05a 66f22a7f .config console log report ci-upstream-kasan-gce
2018/04/02 05:39 upstream 0adb32858b0b dc889257 .config console log report ci-upstream-kasan-gce
2018/04/02 02:57 upstream 0adb32858b0b dc889257 .config console log report ci-upstream-kasan-gce
2018/04/01 15:25 upstream 10b84daddbec 0a78e248 .config console log report ci-upstream-kasan-gce-root
2018/03/27 13:47 upstream 3eb2ce825ea1 bf5e585c .config console log report ci-upstream-kasan-gce
2018/03/26 23:01 upstream 3eb2ce825ea1 0ca7878b .config console log report ci-upstream-kasan-gce
2018/04/30 12:51 https://github.com/google/kmsan.git master d2d741e5d189 06db3cec .config console log report ci-upstream-kmsan-gce
2018/04/28 00:56 https://github.com/google/kmsan.git master d2d741e5d189 7785e404 .config console log report ci-upstream-kmsan-gce
* Struck through repros no longer work on HEAD.