syzbot


INFO: rcu detected stall in lo_compat_ioctl

Status: closed as dup on 2018/05/04 17:05
Reported-by: syzbot+4349872271ece473a7c91190b68b4bac7c5dbc87@syzkaller.appspotmail.com
Fix commit: d2ac838e4cd7 loop: add recursion validation to LOOP_CHANGE_FD
First crash: 1816d, last: 1648d
Duplicate of (1):
Title Repro Cause bisect Fix bisect Count Last Reported
INFO: rcu detected stall in blkdev_ioctl C 249 1645d 1820d

Sample crash report:
binder: 10577:10589 BC_FREE_BUFFER u0000000000000000 no match
binder: undelivered TRANSACTION_ERROR: 29189
binder: release 10577:10589 transaction 31 out, still active
binder: undelivered TRANSACTION_COMPLETE
binder: send failed reply for transaction 31, target dead
INFO: rcu_sched self-detected stall on CPU
	0-....: (124999 ticks this GP) idle=8d6/1/4611686018427387906 softirq=39254/39254 fqs=31195 
	 (t=125000 jiffies g=19694 c=19693 q=850)
NMI backtrace for cpu 0
CPU: 0 PID: 10613 Comm: syz-executor7 Not tainted 4.17.0+ #109
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:1336
 print_cpu_stall kernel/rcu/tree.c:1485 [inline]
 check_cpu_stall.isra.60.cold.78+0x36c/0x5a6 kernel/rcu/tree.c:1553
 __rcu_pending kernel/rcu/tree.c:3244 [inline]
 rcu_pending kernel/rcu/tree.c:3291 [inline]
 rcu_check_callbacks+0x237/0xcb0 kernel/rcu/tree.c:2646
 update_process_times+0x2d/0x70 kernel/time/timer.c:1636
 tick_sched_handle+0x9f/0x180 kernel/time/tick-sched.c:164
 tick_sched_timer+0x45/0x130 kernel/time/tick-sched.c:1274
 __run_hrtimer kernel/time/hrtimer.c:1398 [inline]
 __hrtimer_run_queues+0x3e3/0x10a0 kernel/time/hrtimer.c:1460
 hrtimer_interrupt+0x2f3/0x750 kernel/time/hrtimer.c:1518
 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:863
 </IRQ>
RIP: 0010:is_loop_device drivers/block/loop.c:711 [inline]
RIP: 0010:loop_set_fd drivers/block/loop.c:902 [inline]
RIP: 0010:lo_ioctl+0x1b60/0x2190 drivers/block/loop.c:1399
Code: ab 04 00 00 4d 8b ad b8 01 00 00 48 b9 00 00 00 00 00 fc ff df 4c 89 e8 48 c1 e8 03 80 3c 08 00 0f 85 7c 04 00 00 4d 8b 6d 00 <4d> 85 ed 0f 84 e6 f4 ff ff e8 92 86 c5 fc 4c 89 e8 48 b9 00 00 00 
RSP: 0018:ffff880190397c08 EFLAGS: 00000246 ORIG_RAX: ffffffffffffff13
RAX: 1ffff10036513074 RBX: ffff8801d2958900 RCX: dffffc0000000000
RDX: 0000000000040000 RSI: ffffffff84b3c9ef RDI: ffff8801b8f2d278
RBP: ffff880190397c80 R08: ffff8801901cc740 R09: ffff8801903977d8
R10: 0000000000000003 R11: 0000000000000001 R12: 0000000000000000
R13: ffff8801b2898198 R14: ffff8801b289a120 R15: ffff8801b289a040
 lo_compat_ioctl+0xc1/0x170 drivers/block/loop.c:1604
 compat_blkdev_ioctl+0x3c2/0x1b20 block/compat_ioctl.c:406
 __do_compat_sys_ioctl fs/compat_ioctl.c:1461 [inline]
 __se_compat_sys_ioctl fs/compat_ioctl.c:1407 [inline]
 __ia32_compat_sys_ioctl+0x221/0x640 fs/compat_ioctl.c:1407
 do_syscall_32_irqs_on arch/x86/entry/common.c:323 [inline]
 do_fast_syscall_32+0x345/0xf9b arch/x86/entry/common.c:394
 entry_SYSENTER_compat+0x70/0x7f arch/x86/entry/entry_64_compat.S:139
RIP: 0023:0xf7f1ccb9
Code: 55 08 8b 88 64 cd ff ff 8b 98 68 cd ff ff 89 c8 85 d2 74 02 89 0a 5b 5d c3 8b 04 24 c3 8b 1c 24 c3 51 52 55 89 e5 0f 34 cd 80 <5d> 5a 59 c3 90 90 90 90 eb 0d 90 90 90 90 90 90 90 90 90 90 90 90 
RSP: 002b:00000000f5f180ac EFLAGS: 00000282 ORIG_RAX: 0000000000000036
RAX: ffffffffffffffda RBX: 0000000000000014 RCX: 0000000000004c00
RDX: 0000000000000013 RSI: 0000000000000000 RDI: 0000000000000000
RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000296 R12: 0000000000000000
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000

Crashes (27):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-upstream-kasan-gce-386 2018/06/05 19:39 upstream 716a685fdb89 a316ff92 .config log report
ci-upstream-kasan-gce-386 2018/06/02 16:24 upstream 0512e0134582 2f93b54f .config log report
ci-upstream-kasan-gce-386 2018/05/30 20:36 upstream d60d61f36b8f 2f93b54f .config log report
ci-upstream-kasan-gce-386 2018/05/29 04:19 upstream 786b71f5b754 f48c20b8 .config log report
ci-upstream-kasan-gce-386 2018/05/25 06:16 upstream d883c6cf3b39 f48c20b8 .config log report
ci-upstream-kasan-gce-386 2018/05/22 03:33 upstream 6741c4bb389d f48c20b8 .config log report
ci-upstream-kasan-gce-386 2018/05/21 05:40 upstream 771c577c23ba f48c20b8 .config log report
ci-upstream-kasan-gce-386 2018/05/18 15:00 upstream 3acf4e395260 c992b767 .config log report
ci-upstream-kasan-gce-386 2018/05/17 09:14 upstream e6506eb24187 a367c1d7 .config log report
ci-upstream-kasan-gce-386 2018/05/13 13:41 upstream ccda3c4b7777 c05b619d .config log report
ci-upstream-kasan-gce-386 2018/05/08 01:09 upstream 75bc37fefc44 9e0846e8 .config log report
ci-upstream-kasan-gce-386 2018/04/10 07:52 upstream f2d285669aae b9f65507 .config log report
ci-upstream-kasan-gce-386 2018/04/09 07:59 upstream f2d285669aae 77bd5117 .config log report
ci-upstream-kasan-gce-386 2018/04/07 03:09 upstream f2d285669aae d613535f .config log report
ci-upstream-kasan-gce-386 2018/04/07 02:00 upstream f2d285669aae d613535f .config log report
ci-upstream-kasan-gce-386 2018/04/06 13:52 upstream f2d285669aae 4f1152d4 .config log report
ci-upstream-kasan-gce-386 2018/03/20 00:12 upstream 1b5f3ba415fe 7e7d7ed2 .config log report
ci-upstream-kasan-gce-386 2018/03/14 02:58 upstream fc6eabbbf8ef 08dacaa0 .config log report
ci-upstream-kasan-gce-386 2018/01/18 00:24 upstream 88dc7fca1800 b8970f31 .config log report
ci-upstream-kasan-gce-386 2018/01/10 12:59 upstream cf1fb158230e 02a19b64 .config log report
ci-upstream-kasan-gce-386 2018/01/09 15:44 upstream ef7f8cec80a0 11dc42f6 .config log report
ci-upstream-kasan-gce-386 2018/01/09 04:46 upstream d32da5841b0f 11dc42f6 .config log report
ci-upstream-kasan-gce-386 2017/12/21 17:55 upstream d1ce8ceb8ba8 eaadba98 .config log report
ci-upstream-kasan-gce-386 2017/12/21 14:11 upstream d1ce8ceb8ba8 eaadba98 .config log report
ci-upstream-kasan-gce-386 2017/12/21 13:44 upstream d1ce8ceb8ba8 eaadba98 .config log report
ci-upstream-kasan-gce-386 2017/12/21 12:31 upstream d1ce8ceb8ba8 eaadba98 .config log report
ci-upstream-kasan-gce-386 2017/12/20 07:30 upstream 10a7e9d84915 2d836b1d .config log report
* Struck through repros no longer work on HEAD.