bisecting fixing commit since c500bee1c5b2f1d59b1081ac879d73268ab0ff17
building syzkaller on 6c236867ce33c0c16b102e02a08226d7eb9b2046
testing commit c500bee1c5b2f1d59b1081ac879d73268ab0ff17
compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2
kernel signature: f37f086530a42b0fccbf7199f77a15e621fe6e2c5f4f14548173af572ba8fbf8
run #0: crashed: BUG: sleeping function called from invalid context in lock_sock_nested
run #1: crashed: BUG: sleeping function called from invalid context in lock_sock_nested
run #2: crashed: BUG: sleeping function called from invalid context in lock_sock_nested
run #3: crashed: BUG: sleeping function called from invalid context in lock_sock_nested
run #4: crashed: BUG: sleeping function called from invalid context in lock_sock_nested
run #5: crashed: BUG: sleeping function called from invalid context in lock_sock_nested
run #6: crashed: BUG: sleeping function called from invalid context in lock_sock_nested
run #7: basic kernel testing failed: failed to copy test binary to VM: failed to run ["scp" "-P" "22" "-F" "/dev/null" "-o" "UserKnownHostsFile=/dev/null" "-o" "BatchMode=yes" "-o" "IdentitiesOnly=yes" "-o" "StrictHostKeyChecking=no" "-o" "ConnectTimeout=10" "/tmp/syz-executor599716264" "root@10.128.15.200:./syz-executor599716264"]: exit status 1
Connection timed out during banner exchange
Connection to 10.128.15.200 port 22 timed out
lost connection
run #8: basic kernel testing failed: failed to copy test binary to VM: failed to run ["scp" "-P" "22" "-F" "/dev/null" "-o" "UserKnownHostsFile=/dev/null" "-o" "BatchMode=yes" "-o" "IdentitiesOnly=yes" "-o" "StrictHostKeyChecking=no" "-o" "ConnectTimeout=10" "/tmp/syz-executor646436634" "root@10.128.15.228:./syz-executor646436634"]: exit status 1
Connection timed out during banner exchange
Connection to 10.128.15.228 port 22 timed out
lost connection
run #9: OK
run #10: crashed: INFO: task hung in set_selection_user
run #11: crashed: INFO: task hung in paste_selection
run #12: crashed: INFO: task hung in set_selection_user
run #13: crashed: INFO: task hung in flush_to_ldisc
run #14: OK
run #15: crashed: INFO: task hung in flush_to_ldisc
run #16: OK
run #17: OK
run #18: OK
run #19: OK
testing current HEAD fe91c4725aeed35023ba4f7a1e1adfebb6878c23
testing commit fe91c4725aeed35023ba4f7a1e1adfebb6878c23
compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2
kernel signature: d29b04d36f79afda7b37a27a6e5cc2ac1362379b78e6ae72afd15d43a567bea2
run #0: crashed: INFO: rcu detected stall in tty_ioctl
run #1: crashed: INFO: rcu detected stall in tty_ioctl
run #2: crashed: INFO: rcu detected stall in tty_ioctl
run #3: basic kernel testing failed: failed to copy test binary to VM: failed to run ["scp" "-P" "22" "-F" "/dev/null" "-o" "UserKnownHostsFile=/dev/null" "-o" "BatchMode=yes" "-o" "IdentitiesOnly=yes" "-o" "StrictHostKeyChecking=no" "-o" "ConnectTimeout=10" "/tmp/syz-executor161928914" "root@10.128.0.229:./syz-executor161928914"]: exit status 1
ssh: connect to host 10.128.0.229 port 22: Connection timed out
lost connection
run #4: basic kernel testing failed: failed to copy test binary to VM: failed to run ["scp" "-P" "22" "-F" "/dev/null" "-o" "UserKnownHostsFile=/dev/null" "-o" "BatchMode=yes" "-o" "IdentitiesOnly=yes" "-o" "StrictHostKeyChecking=no" "-o" "ConnectTimeout=10" "/tmp/syz-executor145886217" "root@10.128.1.53:./syz-executor145886217"]: exit status 1
ssh: connect to host 10.128.1.53 port 22: Connection timed out
lost connection
run #5: basic kernel testing failed: failed to copy test binary to VM: failed to run ["scp" "-P" "22" "-F" "/dev/null" "-o" "UserKnownHostsFile=/dev/null" "-o" "BatchMode=yes" "-o" "IdentitiesOnly=yes" "-o" "StrictHostKeyChecking=no" "-o" "ConnectTimeout=10" "/tmp/syz-executor106199373" "root@10.128.1.110:./syz-executor106199373"]: exit status 1
ssh: connect to host 10.128.1.110 port 22: Connection timed out
lost connection
run #6: basic kernel testing failed: failed to copy test binary to VM: failed to run ["scp" "-P" "22" "-F" "/dev/null" "-o" "UserKnownHostsFile=/dev/null" "-o" "BatchMode=yes" "-o" "IdentitiesOnly=yes" "-o" "StrictHostKeyChecking=no" "-o" "ConnectTimeout=10" "/tmp/syz-executor850426119" "root@10.128.15.226:./syz-executor850426119"]: exit status 1
ssh: connect to host 10.128.15.226 port 22: Connection timed out
lost connection
run #7: OK
run #8: OK
run #9: crashed: INFO: rcu detected stall in tty_ioctl
revisions tested: 2, total time: 35m32.686194959s (build: 12m44.32761742s, test: 22m9.677092083s)
the crash still happens on HEAD
commit msg: Merge tag 'scsi-misc' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi
crash: INFO: rcu detected stall in tty_ioctl
rcu: INFO: rcu_preempt self-detected stall on CPU
rcu: 0-....: (1 GPs behind) idle=2c7/1/0x4000000000000000 softirq=15427/15428 fqs=5065
(t=10500 jiffies g=13757 q=2481)
NMI backtrace for cpu 0
CPU: 0 PID: 13911 Comm: syz-executor.3 Not tainted 5.15.0-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
__dump_stack lib/dump_stack.c:88 [inline]
dump_stack_lvl+0x57/0x7d lib/dump_stack.c:106
nmi_cpu_backtrace.cold+0x30/0xc0 lib/nmi_backtrace.c:105
nmi_trigger_cpumask_backtrace+0x11a/0x160 lib/nmi_backtrace.c:62
trigger_single_cpu_backtrace include/linux/nmi.h:164 [inline]
rcu_dump_cpu_stacks+0x25e/0x3f0 kernel/rcu/tree_stall.h:343
print_cpu_stall kernel/rcu/tree_stall.h:627 [inline]
check_cpu_stall kernel/rcu/tree_stall.h:711 [inline]
rcu_pending kernel/rcu/tree.c:3878 [inline]
rcu_sched_clock_irq.cold+0x9d/0x746 kernel/rcu/tree.c:2597
update_process_times+0x13b/0x1c0 kernel/time/timer.c:1785
tick_sched_handle+0x6f/0x130 kernel/time/tick-sched.c:226
tick_sched_timer+0x132/0x210 kernel/time/tick-sched.c:1421
__run_hrtimer kernel/time/hrtimer.c:1685 [inline]
__hrtimer_run_queues+0x18a/0xb00 kernel/time/hrtimer.c:1749
hrtimer_interrupt+0x2f5/0x780 kernel/time/hrtimer.c:1811
local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1086 [inline]
__sysvec_apic_timer_interrupt+0x146/0x530 arch/x86/kernel/apic/apic.c:1103
sysvec_apic_timer_interrupt+0x8e/0xc0 arch/x86/kernel/apic/apic.c:1097
asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:638
RIP: 0010:kasan_check_range+0x16/0x180 mm/kasan/generic.c:188
Code: 01 0f 1f 00 48 89 f2 be f8 00 00 00 e9 c3 9a f9 01 0f 1f 00 48 85 f6 0f 84 70 01 00 00 49 89 f9 41 54 44 0f b6 c2 49 01 f1 55 <53> 0f 82 18 01 00 00 48 b8 ff ff ff ff ff 7f ff ff 48 39 c7 0f 86
RSP: 0018:ffffc9000dcbfab0 EFLAGS: 00000292
RAX: 000000000000400a RBX: ffff88807bbb3980 RCX: ffffffff83d4974a
RDX: 0000000000000000 RSI: 0000000000000008 RDI: ffff88801bd89438
RBP: 0000000000000000 R08: 0000000000000000 R09: ffff88801bd89440
R10: ffffed100f776730 R11: 000000000007a089 R12: dffffc0000000000
R13: ffff88801bd89000 R14: ffffed100f776730 R15: ffff88801bd89438
instrument_atomic_read include/linux/instrumented.h:71 [inline]
test_bit include/asm-generic/bitops/instrumented-non-atomic.h:134 [inline]
tty_throttled include/linux/tty.h:251 [inline]
paste_selection+0x1fa/0x450 drivers/tty/vt/selection.c:400
vt_ioctl+0x19a7/0x2120 drivers/tty/vt/vt_ioctl.c:762
tty_ioctl+0x478/0x12d0 drivers/tty/tty_io.c:2805
vfs_ioctl fs/ioctl.c:51 [inline]
__do_sys_ioctl fs/ioctl.c:874 [inline]
__se_sys_ioctl fs/ioctl.c:860 [inline]
__x64_sys_ioctl+0x11f/0x190 fs/ioctl.c:860
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x44/0xae
RIP: 0033:0x4665e9
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 bc ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f2aebfc5188 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 000000000056bf80 RCX: 00000000004665e9
RDX: 0000000020000000 RSI: 000000000000541c RDI: 0000000000000006
RBP: 00000000004bfcc4 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 000000000056bf80
R13: 00007fff8471b5af R14: 00007f2aebfc5300 R15: 0000000000022000
----------------
Code disassembly (best guess), 1 bytes skipped:
0: 0f 1f 00 nopl (%rax)
3: 48 89 f2 mov %rsi,%rdx
6: be f8 00 00 00 mov $0xf8,%esi
b: e9 c3 9a f9 01 jmpq 0x1f99ad3
10: 0f 1f 00 nopl (%rax)
13: 48 85 f6 test %rsi,%rsi
16: 0f 84 70 01 00 00 je 0x18c
1c: 49 89 f9 mov %rdi,%r9
1f: 41 54 push %r12
21: 44 0f b6 c2 movzbl %dl,%r8d
25: 49 01 f1 add %rsi,%r9
28: 55 push %rbp
* 29: 53 push %rbx <-- trapping instruction
2a: 0f 82 18 01 00 00 jb 0x148
30: 48 b8 ff ff ff ff ff movabs $0xffff7fffffffffff,%rax
37: 7f ff ff
3a: 48 39 c7 cmp %rax,%rdi
3d: 0f .byte 0xf
3e: 86 .byte 0x86