syzbot


INFO: task hung in sdr_cap_stop_streaming

Status: upstream: reported C repro on 2019/04/11 13:03
Reported-by: syzbot+99fb8eda3eea417563e0@syzkaller.appspotmail.com
First crash: 2051d, last: 1638d
Fix bisection the fix commit could be any of (bisect log):
  414510bc00a5 Linux 4.14.142
  4139fb08c05f Linux 4.14.187
  
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.19 INFO: task hung in sdr_cap_stop_streaming C done 152 1817d 2051d 1/1 fixed on 2019/12/31 04:23
Last patch testing requests (10)
Created Duration User Patch Repo Result
2022/12/30 00:31 9m retest repro linux-4.14.y report log
2022/12/29 14:31 14m retest repro linux-4.14.y report log
2022/12/29 05:31 9m retest repro linux-4.14.y report log
2022/12/28 20:31 11m retest repro linux-4.14.y report log
2022/12/28 10:31 13m retest repro linux-4.14.y report log
2022/08/31 21:27 10m retest repro linux-4.14.y report log
2022/08/31 20:27 10m retest repro linux-4.14.y report log
2022/08/31 19:27 10m retest repro linux-4.14.y report log
2022/08/31 18:27 15m retest repro linux-4.14.y report log
2022/08/31 16:27 16m retest repro linux-4.14.y report log
Fix bisection attempts (7)
Created Duration User Patch Repo Result
2020/06/27 13:45 33m (3) bisect fix linux-4.14.y OK (2) job log
2020/05/28 11:23 35m bisect fix linux-4.14.y OK (0) job log log
2020/04/28 10:11 35m bisect fix linux-4.14.y OK (0) job log log
2020/03/29 09:37 33m bisect fix linux-4.14.y OK (0) job log log
2020/02/28 09:01 35m bisect fix linux-4.14.y OK (0) job log log
2020/01/29 02:48 36m bisect fix linux-4.14.y OK (0) job log log
2019/12/30 02:14 33m bisect fix linux-4.14.y OK (0) job log log

Sample crash report:
INFO: task syz-executor342:6915 blocked for more than 140 seconds.
      Not tainted 4.14.142 #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
syz-executor342 D28528  6915   6879 0x80000002
Call Trace:
 context_switch kernel/sched/core.c:2807 [inline]
 __schedule+0x7b8/0x1cd0 kernel/sched/core.c:3383
 schedule+0x92/0x1c0 kernel/sched/core.c:3427
 schedule_timeout+0x93b/0xe10 kernel/time/timer.c:1721
 do_wait_for_common kernel/sched/completion.c:91 [inline]
 __wait_for_common kernel/sched/completion.c:112 [inline]
 wait_for_common kernel/sched/completion.c:123 [inline]
 wait_for_completion+0x27c/0x420 kernel/sched/completion.c:144
 kthread_stop+0xda/0x650 kernel/kthread.c:530
 sdr_cap_stop_streaming+0x1fc/0x320 drivers/media/platform/vivid/vivid-sdr-cap.c:313
 __vb2_queue_cancel+0xa3/0x890 drivers/media/v4l2-core/videobuf2-core.c:1655
 vb2_core_streamoff+0x52/0x110 drivers/media/v4l2-core/videobuf2-core.c:1788
 __vb2_cleanup_fileio+0x78/0x150 drivers/media/v4l2-core/videobuf2-core.c:2313
 vb2_core_queue_release+0x1d/0x80 drivers/media/v4l2-core/videobuf2-core.c:2040
 vb2_queue_release drivers/media/v4l2-core/videobuf2-v4l2.c:669 [inline]
 _vb2_fop_release+0x1cf/0x2a0 drivers/media/v4l2-core/videobuf2-v4l2.c:840
 vb2_fop_release+0x75/0xc0 drivers/media/v4l2-core/videobuf2-v4l2.c:854
 vivid_fop_release+0x180/0x3f0 drivers/media/platform/vivid/vivid-core.c:486
 v4l2_release+0xf9/0x190 drivers/media/v4l2-core/v4l2-dev.c:446
 __fput+0x275/0x7a0 fs/file_table.c:210
 ____fput+0x16/0x20 fs/file_table.c:244
 task_work_run+0x114/0x190 kernel/task_work.c:113
 exit_task_work include/linux/task_work.h:22 [inline]
 do_exit+0x7df/0x2c10 kernel/exit.c:874
 do_group_exit+0x111/0x330 kernel/exit.c:977
 SYSC_exit_group kernel/exit.c:988 [inline]
 SyS_exit_group+0x1d/0x20 kernel/exit.c:986
 do_syscall_64+0x1e8/0x640 arch/x86/entry/common.c:292
 entry_SYSCALL_64_after_hwframe+0x42/0xb7
RIP: 0033:0x443b98
RSP: 002b:00007ffd408e1b78 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000443b98
RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000
RBP: 00000000004c3510 R08: 00000000000000e7 R09: ffffffffffffffd0
R10: 000000000000000f R11: 0000000000000246 R12: 0000000000000001
R13: 00000000006d5180 R14: 0000000000000000 R15: 0000000000000000

Showing all locks held in the system:
1 lock held by khungtaskd/1013:
 #0:  (tasklist_lock){.+.+}, at: [<ffffffff81487408>] debug_show_all_locks+0x7f/0x21f kernel/locking/lockdep.c:4541
2 locks held by getty/6851:
 #0:  (&tty->ldisc_sem){++++}, at: [<ffffffff861c1183>] ldsem_down_read+0x33/0x40 drivers/tty/tty_ldsem.c:376
 #1:  (&ldata->atomic_read_lock){+.+.}, at: [<ffffffff8310ff66>] n_tty_read+0x1e6/0x17b0 drivers/tty/n_tty.c:2156
2 locks held by getty/6852:
 #0:  (&tty->ldisc_sem){++++}, at: [<ffffffff861c1183>] ldsem_down_read+0x33/0x40 drivers/tty/tty_ldsem.c:376
 #1:  (&ldata->atomic_read_lock){+.+.}, at: [<ffffffff8310ff66>] n_tty_read+0x1e6/0x17b0 drivers/tty/n_tty.c:2156
2 locks held by getty/6853:
 #0:  (&tty->ldisc_sem){++++}, at: [<ffffffff861c1183>] ldsem_down_read+0x33/0x40 drivers/tty/tty_ldsem.c:376
 #1:  (&ldata->atomic_read_lock){+.+.}, at: [<ffffffff8310ff66>] n_tty_read+0x1e6/0x17b0 drivers/tty/n_tty.c:2156
2 locks held by getty/6854:
 #0:  (&tty->ldisc_sem){++++}, at: [<ffffffff861c1183>] ldsem_down_read+0x33/0x40 drivers/tty/tty_ldsem.c:376
 #1:  (&ldata->atomic_read_lock){+.+.}, at: [<ffffffff8310ff66>] n_tty_read+0x1e6/0x17b0 drivers/tty/n_tty.c:2156
2 locks held by getty/6855:
 #0:  (&tty->ldisc_sem){++++}, at: [<ffffffff861c1183>] ldsem_down_read+0x33/0x40 drivers/tty/tty_ldsem.c:376
 #1:  (&ldata->atomic_read_lock){+.+.}, at: [<ffffffff8310ff66>] n_tty_read+0x1e6/0x17b0 drivers/tty/n_tty.c:2156
2 locks held by getty/6856:
 #0:  (&tty->ldisc_sem){++++}, at: [<ffffffff861c1183>] ldsem_down_read+0x33/0x40 drivers/tty/tty_ldsem.c:376
 #1:  (&ldata->atomic_read_lock){+.+.}, at: [<ffffffff8310ff66>] n_tty_read+0x1e6/0x17b0 drivers/tty/n_tty.c:2156
2 locks held by getty/6857:
 #0:  (&tty->ldisc_sem){++++}, at: [<ffffffff861c1183>] ldsem_down_read+0x33/0x40 drivers/tty/tty_ldsem.c:376
 #1:  (&ldata->atomic_read_lock){+.+.}, at: [<ffffffff8310ff66>] n_tty_read+0x1e6/0x17b0 drivers/tty/n_tty.c:2156

=============================================

NMI backtrace for cpu 0
CPU: 0 PID: 1013 Comm: khungtaskd Not tainted 4.14.142 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
 __dump_stack lib/dump_stack.c:17 [inline]
 dump_stack+0x138/0x197 lib/dump_stack.c:53
 nmi_cpu_backtrace.cold+0x57/0x94 lib/nmi_backtrace.c:101
 nmi_trigger_cpumask_backtrace+0x141/0x189 lib/nmi_backtrace.c:62
 arch_trigger_cpumask_backtrace+0x14/0x20 arch/x86/kernel/apic/hw_nmi.c:38
 trigger_all_cpu_backtrace include/linux/nmi.h:140 [inline]
 check_hung_uninterruptible_tasks kernel/hung_task.c:195 [inline]
 watchdog+0x5e7/0xb90 kernel/hung_task.c:274
 kthread+0x319/0x430 kernel/kthread.c:232
 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:404
Sending NMI from CPU 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 PID: 7718 Comm: vivid-005-sdr-c Not tainted 4.14.142 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
task: ffff888098dce5c0 task.stack: ffff888098c70000
RIP: 0010:get_current arch/x86/include/asm/current.h:15 [inline]
RIP: 0010:__sanitizer_cov_trace_pc+0x0/0x60 kernel/kcov.c:60
RSP: 0018:ffff888098c77dd8 EFLAGS: 00000212
RAX: ffff888098dce5c0 RBX: 00000000000000a9 RCX: dffffc0000000000
RDX: 0000000000000000 RSI: 00000000a2f99905 RDI: ffffffff86d58620
RBP: ffff888098c77e60 R08: ffff888098dce5c0 R09: 0000000000000001
R10: 0000000000000000 R11: ffff888098dce5c0 R12: 00000000000000cb
R13: 00000000032ec770 R14: ffffffffffffffff R15: 0000000082352bb6
FS:  0000000000000000(0000) GS:ffff8880aef00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00000000006cf090 CR3: 0000000092c71000 CR4: 00000000001406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 vivid_thread_sdr_cap_tick drivers/media/platform/vivid/vivid-sdr-cap.c:117 [inline]
 vivid_thread_sdr_cap+0x49d/0xafb drivers/media/platform/vivid/vivid-sdr-cap.c:182
 kthread+0x319/0x430 kernel/kthread.c:232
 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:404
Code: 00 00 48 c7 c7 80 99 6e 86 4c 89 35 eb 3f be 07 41 be f4 ff ff ff e8 13 3c ee ff 48 c7 05 d5 3f be 07 00 00 00 00 e9 2f ec ff ff <65> 48 8b 04 25 40 ee 01 00 48 85 c0 74 1a 65 8b 15 4b fb a4 7e 

Crashes (180):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2019/09/09 16:53 linux-4.14.y 414510bc00a5 a60cb4cd .config console log report syz C ci2-linux-4-14
2019/07/22 22:14 linux-4.14.y ff33472c282e 55e0c077 .config console log report syz C ci2-linux-4-14
2019/04/25 04:43 linux-4.14.y 68d7a45eec10 8e3c52b1 .config console log report syz C ci2-linux-4-14
2019/04/21 01:51 linux-4.14.y 68d7a45eec10 b0e8efcb .config console log report syz C ci2-linux-4-14
2019/04/16 03:23 linux-4.14.y 1ec8f1f0bffe 505ab413 .config console log report syz C ci2-linux-4-14
2019/11/30 01:55 linux-4.14.y 43598c571e7e 3a75be00 .config console log report ci2-linux-4-14
2019/11/28 22:51 linux-4.14.y 43598c571e7e 76357d6f .config console log report ci2-linux-4-14
2019/11/13 05:40 linux-4.14.y 4762bcd451a9 048f2d49 .config console log report ci2-linux-4-14
2019/11/12 15:06 linux-4.14.y 4762bcd451a9 048f2d49 .config console log report ci2-linux-4-14
2019/11/06 22:39 linux-4.14.y c9fda4f22428 da505f84 .config console log report ci2-linux-4-14
2019/11/06 01:49 linux-4.14.y ddef1e8e3f6e af5c522d .config console log report ci2-linux-4-14
2019/11/03 23:48 linux-4.14.y ddef1e8e3f6e b35fad31 .config console log report ci2-linux-4-14
2019/11/01 01:17 linux-4.14.y ddef1e8e3f6e a41ca8fa .config console log report ci2-linux-4-14
2019/10/25 20:26 linux-4.14.y b98aebd29824 04ca72cd .config console log report ci2-linux-4-14
2019/10/21 20:26 linux-4.14.y b98aebd29824 b24d2b8a .config console log report ci2-linux-4-14
2019/10/19 08:28 linux-4.14.y b98aebd29824 8c88c9c1 .config console log report ci2-linux-4-14
2019/10/16 15:51 linux-4.14.y e132c8d7b58d d4ea592f .config console log report ci2-linux-4-14
2019/10/16 13:29 linux-4.14.y e132c8d7b58d d4ea592f .config console log report ci2-linux-4-14
2019/10/15 06:54 linux-4.14.y e132c8d7b58d 05ad7292 .config console log report ci2-linux-4-14
2019/10/13 11:48 linux-4.14.y e132c8d7b58d 2f661ec4 .config console log report ci2-linux-4-14
2019/10/10 03:23 linux-4.14.y 42327896f194 c4b9981b .config console log report ci2-linux-4-14
2019/10/09 23:26 linux-4.14.y 42327896f194 c4b9981b .config console log report ci2-linux-4-14
2019/10/05 09:47 linux-4.14.y f6e27dbb1afa f3f7d9c8 .config console log report ci2-linux-4-14
2019/10/04 10:30 linux-4.14.y f6e27dbb1afa fc17ba49 .config console log report ci2-linux-4-14
2019/09/28 13:44 linux-4.14.y f6e27dbb1afa eb6b9855 .config console log report ci2-linux-4-14
2019/09/28 01:01 linux-4.14.y f6e27dbb1afa d8074e0b .config console log report ci2-linux-4-14
2019/09/22 11:40 linux-4.14.y f6e27dbb1afa d96e88f3 .config console log report ci2-linux-4-14
2019/09/18 11:44 linux-4.14.y 968722f5371a c2dcd700 .config console log report ci2-linux-4-14
2019/09/14 05:05 linux-4.14.y e2cd24b62938 32d59357 .config console log report ci2-linux-4-14
2019/09/13 12:37 linux-4.14.y e2cd24b62938 40fa42bc .config console log report ci2-linux-4-14
2019/09/13 00:35 linux-4.14.y e2cd24b62938 40fa42bc .config console log report ci2-linux-4-14
2019/09/09 12:37 linux-4.14.y 414510bc00a5 a60cb4cd .config console log report ci2-linux-4-14
2019/09/08 11:49 linux-4.14.y 414510bc00a5 a60cb4cd .config console log report ci2-linux-4-14
2019/09/05 09:17 linux-4.14.y 01fd1694b93c 040fda58 .config console log report ci2-linux-4-14
2019/09/05 06:48 linux-4.14.y 01fd1694b93c 040fda58 .config console log report ci2-linux-4-14
2019/09/04 12:09 linux-4.14.y 01fd1694b93c d994512d .config console log report ci2-linux-4-14
2019/09/01 13:44 linux-4.14.y 01fd1694b93c bad3cce2 .config console log report ci2-linux-4-14
2019/09/01 10:33 linux-4.14.y 01fd1694b93c bad3cce2 .config console log report ci2-linux-4-14
2019/09/01 08:09 linux-4.14.y 01fd1694b93c bad3cce2 .config console log report ci2-linux-4-14
2019/09/01 00:46 linux-4.14.y 01fd1694b93c bad3cce2 .config console log report ci2-linux-4-14
2019/08/31 15:25 linux-4.14.y 01fd1694b93c bad3cce2 .config console log report ci2-linux-4-14
2019/08/30 17:35 linux-4.14.y 01fd1694b93c 9adfa876 .config console log report ci2-linux-4-14
2019/08/30 13:25 linux-4.14.y 01fd1694b93c 9adfa876 .config console log report ci2-linux-4-14
2019/08/28 23:59 linux-4.14.y b5260801526c 40203c15 .config console log report ci2-linux-4-14
2019/08/23 15:45 linux-4.14.y 45f092f9e9cb 78ded196 .config console log report ci2-linux-4-14
2019/08/22 05:45 linux-4.14.y 45f092f9e9cb 4ea67ff8 .config console log report ci2-linux-4-14
2019/08/21 02:11 linux-4.14.y 45f092f9e9cb 6b8391d0 .config console log report ci2-linux-4-14
2019/08/20 03:13 linux-4.14.y 45f092f9e9cb ae348fb7 .config console log report ci2-linux-4-14
2019/08/18 07:25 linux-4.14.y 45f092f9e9cb 55bf8926 .config console log report ci2-linux-4-14
2019/08/14 13:56 linux-4.14.y 3ffe1e79c174 5576551b .config console log report ci2-linux-4-14
2019/08/10 12:25 linux-4.14.y 3ffe1e79c174 acb51638 .config console log report ci2-linux-4-14
2019/08/07 23:48 linux-4.14.y b19ffe6e7205 e6ebef88 .config console log report ci2-linux-4-14
2019/08/07 14:51 linux-4.14.y b19ffe6e7205 cdde7486 .config console log report ci2-linux-4-14
2019/04/11 12:02 linux-4.14.y 1ec8f1f0bffe e955ac50 .config console log report ci2-linux-4-14
* Struck through repros no longer work on HEAD.