syzbot


INFO: rcu detected stall in __do_sys_clock_adjtime

Status: upstream: reported C repro on 2020/07/15 05:29
Reported-by: syzbot+587a843fe6b38420a209@syzkaller.appspotmail.com
First crash: 812d, last: 481d

Cause bisection: introduced by (bisect log) :
commit 5a781ccbd19e4664babcbe4b4ead7aa2b9283d22
Author: Vinicius Costa Gomes <vinicius.gomes@intel.com>
Date: Sat Sep 29 00:59:43 2018 +0000

  tc: Add support for configuring the taprio scheduler

Crash: no output from test machine (log)
Repro: C syz .config

Fix bisection: the fix commit could be any of (bisect log):
  a581387e415b Merge tag 'io_uring-5.8-2020-07-10' of git://git.kernel.dk/linux-block
  303392fd5c16 Merge tag 'leds-5.14-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/pavel/linux-leds
Patch testing requests:
Created Duration User Patch Repo Result
2022/09/26 10:30 15m upstream report log

Sample crash report:
rcu: INFO: rcu_preempt detected stalls on CPUs/tasks:
rcu: 	0-...0: (1 GPs behind) idle=c22/1/0x4000000000000000 softirq=10714/10715 fqs=5249 
	(detected by 1, t=10502 jiffies, g=10189, q=4119)
Sending NMI from CPU 1 to CPUs 0:
NMI backtrace for cpu 0
CPU: 0 PID: 6820 Comm: syz-executor767 Not tainted 5.8.0-rc4-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:should_restart_cycle net/sched/sch_taprio.c:647 [inline]
RIP: 0010:advance_sched+0x236/0x990 net/sched/sch_taprio.c:723
Code: 00 0f 85 d1 06 00 00 48 8d 7d 28 4d 8b 65 00 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 80 3c 02 00 0f 85 cf 06 00 00 <4c> 39 64 24 20 4c 8b 7d 28 0f 84 3c 03 00 00 e8 26 aa 11 fb 4c 89
RSP: 0018:ffffc90000007d78 EFLAGS: 00000046
RAX: dffffc0000000000 RBX: ffff8880a0d9db40 RCX: ffffffff86620d01
RDX: 1ffff11013ee0ae5 RSI: ffffffff86620d0f RDI: ffff88809f705728
RBP: ffff88809f705700 R08: 0000000000000001 R09: 0000000000000003
R10: 17432cbe2e86597c R11: 0000000000000000 R12: ffff88809f705710
R13: ffff888094684700 R14: 17432cbe2e86597c R15: dffffc0000000000
FS:  0000000001fb4880(0000) GS:ffff8880ae600000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020000610 CR3: 000000009e890000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <IRQ>
 __run_hrtimer kernel/time/hrtimer.c:1520 [inline]
 __hrtimer_run_queues+0x6a9/0xfc0 kernel/time/hrtimer.c:1584
 hrtimer_interrupt+0x32a/0x930 kernel/time/hrtimer.c:1646
 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1080 [inline]
 __sysvec_apic_timer_interrupt+0x142/0x5e0 arch/x86/kernel/apic/apic.c:1097
 asm_call_on_stack+0xf/0x20 arch/x86/entry/entry_64.S:711
 </IRQ>
 __run_on_irqstack arch/x86/include/asm/irq_stack.h:22 [inline]
 run_on_irqstack_cond arch/x86/include/asm/irq_stack.h:48 [inline]
 sysvec_apic_timer_interrupt+0xe0/0x120 arch/x86/kernel/apic/apic.c:1091
 asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:587
RIP: 0010:arch_local_irq_restore arch/x86/include/asm/paravirt.h:765 [inline]
RIP: 0010:on_each_cpu+0x149/0x240 kernel/smp.c:702
Code: 00 fc ff df 48 c1 e8 03 80 3c 10 00 0f 85 e6 00 00 00 48 83 3d 97 12 4c 08 00 0f 84 af 00 00 00 e8 9c e9 0a 00 48 89 df 57 9d <0f> 1f 44 00 00 e8 8d e9 0a 00 bf 01 00 00 00 e8 83 a4 e6 ff 31 ff
RSP: 0018:ffffc900017f7b68 EFLAGS: 00000293
RAX: 0000000000000000 RBX: 0000000000000293 RCX: 0000000000000000
RDX: ffff88809e192500 RSI: ffffffff8168cdf4 RDI: 0000000000000293
RBP: 0000000000000200 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000001 R11: 0000000000000000 R12: 0000000000000000
R13: 001e89e9b1852336 R14: 003b9aca00000000 R15: 0000000000000000
 clock_was_set+0x18/0x20 kernel/time/hrtimer.c:872
 timekeeping_inject_offset+0x3e9/0x4d0 kernel/time/timekeeping.c:1305
 do_adjtimex+0x28f/0x990 kernel/time/timekeeping.c:2332
 do_clock_adjtime kernel/time/posix-timers.c:1109 [inline]
 __do_sys_clock_adjtime+0x155/0x250 kernel/time/posix-timers.c:1121
 do_syscall_64+0x60/0xe0 arch/x86/entry/common.c:384
 entry_SYSCALL_64_after_hwframe+0x44/0xa9
RIP: 0033:0x443949
Code: Bad RIP value.
RSP: 002b:00007ffef6e7f668 EFLAGS: 00000246 ORIG_RAX: 0000000000000131
RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000000443949
RDX: 0000000000443949 RSI: 0000000020000300 RDI: 0000000000000000
RBP: 00007ffef6e7f670 R08: 0000000001bbbbbb R09: 0000000001bbbbbb
R10: 0000000001bbbbbb R11: 0000000000000246 R12: 00007ffef6e7f680
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
INFO: NMI handler (nmi_cpu_backtrace_handler) took too long to run: 0.000 msecs

Crashes (17):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-upstream-kasan-gce-selinux-root 2020/07/11 14:43 upstream a581387e415b 18d18b59 .config log report syz C
ci-upstream-kasan-gce-root 2020/07/11 05:19 upstream a581387e415b 18d18b59 .config log report syz C
ci-upstream-linux-next-kasan-gce-root 2020/08/14 04:50 linux-next bc09acc9f224 54ce1ed6 .config log report syz C
ci-upstream-kasan-gce-selinux-root 2020/10/01 07:36 upstream 60e720931556 a9767fb2 .config log report info
ci-upstream-kasan-gce-selinux-root 2020/09/28 22:47 upstream a1b8638ba132 6bfdbe89 .config log report info
ci-upstream-kasan-gce-root 2020/09/02 00:46 upstream b765a32a2e91 abf9ba4f .config log report
ci-upstream-kasan-gce-root 2020/08/20 04:31 upstream 18445bf405cb ed282a3a .config log report
ci-upstream-kasan-gce-selinux-root 2020/08/08 03:47 upstream 5631c5e0eb90 ff51e522 .config log report
ci-upstream-kasan-gce-selinux-root 2020/08/08 03:34 upstream 5631c5e0eb90 ff51e522 .config log report
ci-upstream-kasan-gce-selinux-root 2020/07/24 10:19 upstream f37e99aca03f 70c104a1 .config log report
ci-upstream-kasan-gce-selinux-root 2020/07/14 16:29 upstream 0dc589da873b ce4c95b3 .config log report
ci-upstream-kasan-gce-root 2020/07/12 08:49 upstream 0aea6d5c5be3 115e1930 .config log report
ci-upstream-kasan-gce-root 2020/07/08 07:44 upstream 7cc2a8ea1048 51095195 .config log report
ci-upstream-linux-next-kasan-gce-root 2020/09/14 01:18 linux-next d5b2251d63b5 2d3cdd63 .config log report
ci-upstream-linux-next-kasan-gce-root 2020/09/05 22:23 linux-next 7a6956579ce6 abf9ba4f .config log report
ci-upstream-linux-next-kasan-gce-root 2020/08/25 02:25 linux-next d8be0e12a522 344da168 .config log report
ci-upstream-linux-next-kasan-gce-root 2020/08/06 12:02 linux-next 01830e6c042e 1f122f88 .config log report
* Struck through repros no longer work on HEAD.