syzbot


INFO: task hung in console_device

Status: public: reported C repro on 2019/04/14 00:00
Reported-by: syzbot+902b5487179e8ddc6593@syzkaller.appspotmail.com
First crash: 2125d, last: 1910d
Similar bugs (3)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
android-414 INFO: task hung in console_device 14 2192d 2049d 0/1 auto-closed as invalid on 2019/05/20 06:11
android-414 INFO: task hung in console_device (2) 1 1839d 1839d 0/1 auto-closed as invalid on 2020/03/08 16:40
android-49 INFO: task hung in console_device C 150 1845d 2051d 0/3 public: reported C repro on 2019/04/11 08:44

Sample crash report:
binder: 25275:25275 ioctl c0306201 0 returned -14
binder: 25278:25278 ioctl c0306201 0 returned -14
binder: 25279:25279 ioctl c0306201 0 returned -14
binder: 25280:25280 ioctl c0306201 0 returned -14
INFO: task init:1 blocked for more than 140 seconds.
      Not tainted 4.4.174+ #4
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
init            D ffff8801da5ff5b0 24592     1      0 0x00000004
 ffff8801da5ff5b0 ffff8801da5f08c8 0000000000000001 0000000000000000
 ffff8801da5ff6d8 0000000000000000 ffff8801db71f180 ffff8801db71f1a8
 ffff8801db71e898 ffff8801d229c740 ffff8801da5f0000 ffffed003b4bf001
Call Trace:
 [<ffffffff82709b79>] schedule+0x99/0x1d0 kernel/sched/core.c:3355
 [<ffffffff82715c4b>] schedule_timeout+0x47b/0x7c0 kernel/time/timer.c:1515
 [<ffffffff82712c79>] __down_common kernel/locking/semaphore.c:221 [inline]
 [<ffffffff82712c79>] __down+0x189/0x2a0 kernel/locking/semaphore.c:238
 [<ffffffff811f4e84>] down+0x64/0x90 kernel/locking/semaphore.c:61
 [<ffffffff8121b79c>] console_lock+0x2c/0x80 kernel/printk/printk.c:2164
 [<ffffffff81220e6c>] console_device+0x1c/0xc0 kernel/printk/printk.c:2435
 [<ffffffff81c8b627>] tty_lookup_driver drivers/tty/tty_io.c:2000 [inline]
 [<ffffffff81c8b627>] tty_open+0x8e7/0xf50 drivers/tty/tty_io.c:2068
 [<ffffffff814a3ec0>] chrdev_open+0x230/0x630 fs/char_dev.c:388
 [<ffffffff8149154f>] do_dentry_open+0x38f/0xbd0 fs/open.c:749
 [<ffffffff81494d3b>] vfs_open+0x10b/0x210 fs/open.c:862
 [<ffffffff814c5ddf>] do_last fs/namei.c:3269 [inline]
 [<ffffffff814c5ddf>] path_openat+0x136f/0x4470 fs/namei.c:3406
 [<ffffffff814ccab1>] do_filp_open+0x1a1/0x270 fs/namei.c:3440
 [<ffffffff81495668>] do_sys_open+0x2f8/0x600 fs/open.c:1038
 [<ffffffff8149599d>] SYSC_open fs/open.c:1056 [inline]
 [<ffffffff8149599d>] SyS_open+0x2d/0x40 fs/open.c:1051
 [<ffffffff82718ba1>] entry_SYSCALL_64_fastpath+0x1e/0x9a
1 lock held by init/1:
 #0:  (tty_mutex){+.+.+.}, at: [<ffffffff81c8b2aa>] tty_open+0x56a/0xf50 drivers/tty/tty_io.c:2067
Sending NMI to all CPUs:
NMI backtrace for cpu 0
CPU: 0 PID: 2301 Comm: syz-executor946 Not tainted 4.4.174+ #4
task: ffff8801d11397c0 task.stack: ffff8801cf128000
RIP: 0010:[<ffffffff81cc252b>]  [<ffffffff81cc252b>] io_serial_in+0x6b/0x90 drivers/tty/serial/8250/8250_port.c:399
RSP: 0018:ffff8801cf12f830  EFLAGS: 00000002
RAX: dffffc0000000020 RBX: 00000000000003fd RCX: 0000000000000000
RDX: 00000000000003fd RSI: ffffffff81cc24d1 RDI: ffffffff8496e518
RBP: ffff8801cf12f840 R08: 0000000000000001 R09: 0000000000000000
R10: 0000000000000001 R11: ffffffff83fdf19f R12: ffffffff8496e4e0
R13: 0000000000000060 R14: fffffbfff092dce3 R15: fffffbfff092dca5
FS:  00000000011d8880(0063) GS:ffff8801db600000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000000000 CR3: 00000001d1d4e000 CR4: 00000000001606b0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Stack:
 ffffffff8496e4e0 0000000000002700 ffff8801cf12f890 ffffffff81cc461f
 ffff8801cf12f890 ffffffff8496e528 ffffffff8496e71a 0000000000000000
 ffffffff8496e4e0 ffffffff8496e700 ffffffff8496e528 ffff8801cf12f978
Call Trace:
 [<ffffffff81cc461f>] serial_in drivers/tty/serial/8250/8250.h:97 [inline]
 [<ffffffff81cc461f>] wait_for_xmitr+0x8f/0x1e0 drivers/tty/serial/8250/8250_port.c:1717
 [<ffffffff81cce138>] serial8250_console_write+0x308/0x870 drivers/tty/serial/8250/8250_port.c:2878
 [<ffffffff81cbd84f>] univ8250_console_write+0x5f/0x70 drivers/tty/serial/8250/8250_core.c:594
 [<ffffffff8121c8ff>] call_console_drivers.constprop.0+0x1ef/0x3f0 kernel/printk/printk.c:1468
 [<ffffffff8121fe02>] console_unlock kernel/printk/printk.c:2335 [inline]
 [<ffffffff8121fe02>] console_unlock+0x602/0xa10 kernel/printk/printk.c:2242
 [<ffffffff812205c2>] vprintk_emit+0x3b2/0x820 kernel/printk/printk.c:1837
 [<ffffffff81220a58>] vprintk+0x28/0x30 kernel/printk/printk.c:1848
 [<ffffffff813afd6f>] printk+0xc2/0xf5 kernel/printk/printk.c:1927
 [<ffffffff8216a9b4>] binder_ioctl.cold+0x179/0x305 drivers/android/binder.c:4896
 [<ffffffff814d23f7>] vfs_ioctl fs/ioctl.c:43 [inline]
 [<ffffffff814d23f7>] file_ioctl fs/ioctl.c:470 [inline]
 [<ffffffff814d23f7>] do_vfs_ioctl+0x6e7/0xfa0 fs/ioctl.c:605
 [<ffffffff814d2d3f>] SYSC_ioctl fs/ioctl.c:622 [inline]
 [<ffffffff814d2d3f>] SyS_ioctl+0x8f/0xc0 fs/ioctl.c:613
 [<ffffffff82718ba1>] entry_SYSCALL_64_fastpath+0x1e/0x9a
Code: 24 c1 00 00 00 49 8d 7c 24 38 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 d3 e3 80 3c 02 00 75 17 41 03 5c 24 38 89 da ec <5b> 0f b6 c0 41 5c 5d c3 e8 28 29 7c ff eb c2 e8 81 29 7c ff eb 
NMI backtrace for cpu 1
CPU: 1 PID: 20 Comm: khungtaskd Not tainted 4.4.174+ #4
task: ffff8801da6f4740 task.stack: ffff8800001d0000
RIP: 0010:[<ffffffff8109b617>]  [<ffffffff8109b617>] _flat_send_IPI_mask arch/x86/kernel/apic/apic_flat_64.c:62 [inline]
RIP: 0010:[<ffffffff8109b617>]  [<ffffffff8109b617>] flat_send_IPI_mask+0xf7/0x1b0 arch/x86/kernel/apic/apic_flat_64.c:69
RSP: 0018:ffff8800001d7c88  EFLAGS: 00000046
RAX: 0000000000000000 RBX: 0000000000000c00 RCX: 0000000000000000
RDX: 0000000000000c00 RSI: 0000000000000000 RDI: ffffffffff5fc300
RBP: ffff8800001d7cb8 R08: 0000000000000018 R09: 0000000000000000
R10: 0000000000000001 R11: 0000000000000001 R12: 0000000000000246
R13: 0000000003000000 R14: ffffffff82e5f2e0 R15: 0000000000000002
FS:  0000000000000000(0000) GS:ffff8801db700000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020000000 CR3: 00000001d1235000 CR4: 00000000001606b0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Stack:
 0000000000000001 ffffffff82e5f2e0 ffffffff831a6ac0 fffffbfff0634c34
 000000000001b6c0 0000000000000008 ffff8800001d7cd8 ffffffff81092bee
 0000000000000008 ffffffff82924260 ffff8800001d7d30 ffffffff81ab8252
Call Trace:
 [<ffffffff81092bee>] nmi_raise_cpu_backtrace+0x5e/0x80 arch/x86/kernel/apic/hw_nmi.c:33
 [<ffffffff81ab8252>] nmi_trigger_all_cpu_backtrace.cold+0xa1/0xae lib/nmi_backtrace.c:85
 [<ffffffff81092ca4>] arch_trigger_all_cpu_backtrace+0x14/0x20 arch/x86/kernel/apic/hw_nmi.c:38
 [<ffffffff813b4762>] trigger_all_cpu_backtrace include/linux/nmi.h:44 [inline]
 [<ffffffff813b4762>] check_hung_task kernel/hung_task.c:125 [inline]
 [<ffffffff813b4762>] check_hung_uninterruptible_tasks kernel/hung_task.c:182 [inline]
 [<ffffffff813b4762>] watchdog.cold+0xd3/0xee kernel/hung_task.c:238
 [<ffffffff811342c3>] kthread+0x273/0x310 kernel/kthread.c:211
 [<ffffffff82718fc5>] ret_from_fork+0x55/0x80 arch/x86/entry/entry_64.S:537
Code: 00 c3 5f ff 80 e6 10 75 e1 41 c1 e5 18 44 89 2c 25 10 c3 5f ff 44 89 fa 09 da 80 cf 04 41 83 ff 02 0f 44 d3 89 14 25 00 c3 5f ff <41> f7 c4 00 02 00 00 75 1e 4c 89 e7 57 9d 0f 1f 44 00 00 e8 f1 

Crashes (11):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2019/08/30 13:10 https://android.googlesource.com/kernel/common android-4.4 62872f952d6b fd37b39e .config console log report syz C ci-android-44-kasan-gce
2019/07/07 00:26 https://android.googlesource.com/kernel/common android-4.4 62872f952d6b f62e1e85 .config console log report syz C ci-android-44-kasan-gce
2019/06/21 04:09 https://android.googlesource.com/kernel/common android-4.4 62872f952d6b 34bf9440 .config console log report syz C ci-android-44-kasan-gce
2019/06/18 01:44 https://android.googlesource.com/kernel/common android-4.4 62872f952d6b 442206d7 .config console log report syz C ci-android-44-kasan-gce
2019/07/12 18:35 https://android.googlesource.com/kernel/common android-4.4 62872f952d6b baa5258a .config console log report syz C ci-android-44-kasan-gce-386
2019/07/08 02:25 https://android.googlesource.com/kernel/common android-4.4 62872f952d6b f62e1e85 .config console log report syz C ci-android-44-kasan-gce-386
2019/07/07 12:53 https://android.googlesource.com/kernel/common android-4.4 62872f952d6b f62e1e85 .config console log report syz C ci-android-44-kasan-gce-386
2019/07/07 00:22 https://android.googlesource.com/kernel/common android-4.4 62872f952d6b f62e1e85 .config console log report syz C ci-android-44-kasan-gce-386
2019/06/27 00:11 https://android.googlesource.com/kernel/common android-4.4 62872f952d6b 7509bf36 .config console log report syz C ci-android-44-kasan-gce-386
2019/05/30 21:15 https://android.googlesource.com/kernel/common android-4.4 62872f952d6b d9aaf3c2 .config console log report syz C ci-android-44-kasan-gce-386
2019/01/27 05:08 https://android.googlesource.com/kernel/common android-4.4 d0c3914ffbe4 c73f090a .config console log report syz C ci-android-44-kasan-gce-386
* Struck through repros no longer work on HEAD.