Hello,
syzbot found the following crash on:
HEAD commit: 47350a9f ANDROID: x86_64_cuttlefish_defconfig: Enable lz4 ..
git tree: android-4.14
console output:
https://syzkaller.appspot.com/x/log.txt?x=143fd7bc400000
kernel config:
https://syzkaller.appspot.com/x/.config?x=10d236078f3378a3
dashboard link:
https://syzkaller.appspot.com/bug?extid=c92f07625ea966921a63
compiler: gcc (GCC) 8.0.1 20180413 (experimental)
syz repro:
https://syzkaller.appspot.com/x/repro.syz?x=14587892400000
C reproducer:
https://syzkaller.appspot.com/x/repro.c?x=162ae12e400000
IMPORTANT: if you fix the bug, please add the following tag to the commit:
Reported-by:
syzbot+c92f07...@syzkaller.appspotmail.com
IPv6: RTM_NEWROUTE with no NLM_F_CREATE or NLM_F_REPLACE
IPv6: RTM_NEWROUTE with no NLM_F_CREATE or NLM_F_REPLACE
IPv6: RTM_NEWROUTE with no NLM_F_CREATE or NLM_F_REPLACE
IPv6: RTM_NEWROUTE with no NLM_F_CREATE or NLM_F_REPLACE
IPv6: RTM_NEWROUTE with no NLM_F_CREATE or NLM_F_REPLACE
INFO: task init:6134 blocked for more than 140 seconds.
Not tainted 4.14.67+ #1
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
init D27408 6134 1 0x00000000
Call Trace:
schedule+0x7f/0x1b0 kernel/sched/core.c:3490
schedule_preempt_disabled+0x13/0x20 kernel/sched/core.c:3548
__mutex_lock_common kernel/locking/mutex.c:833 [inline]
__mutex_lock+0x521/0x1480 kernel/locking/mutex.c:893
tty_open_by_driver drivers/tty/tty_io.c:1922 [inline]
tty_open+0x3a8/0x980 drivers/tty/tty_io.c:2006
chrdev_open+0x20d/0x570 fs/char_dev.c:417
do_dentry_open+0x426/0xda0 fs/open.c:764
vfs_open+0x11c/0x210 fs/open.c:878
do_last fs/namei.c:3408 [inline]
path_openat+0x4eb/0x23a0 fs/namei.c:3550
do_filp_open+0x197/0x270 fs/namei.c:3584
do_sys_open+0x2ef/0x580 fs/open.c:1071
do_syscall_64+0x19b/0x4b0 arch/x86/entry/common.c:289
entry_SYSCALL_64_after_hwframe+0x42/0xb7
RIP: 0033:0x7ff75bd98120
RSP: 002b:00007fff296e9968 EFLAGS: 00000246 ORIG_RAX: 0000000000000002
RAX: ffffffffffffffda RBX: 0000000000cf28e0 RCX: 00007ff75bd98120
RDX: 0000000000000010 RSI: 0000000000000902 RDI: 00000000004072c8
RBP: 0000000000000000 R08: 0000000000407370 R09: 0000000000000001
R10: 0000000000000008 R11: 0000000000000246 R12: 0000000000000902
R13: 0000000000000102 R14: 00007fff296e9ae0 R15: 0000000000cf28e8
INFO: task init:6150 blocked for more than 140 seconds.
Not tainted 4.14.67+ #1
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
init D29352 6150 1 0x00000000
Call Trace:
schedule+0x7f/0x1b0 kernel/sched/core.c:3490
schedule_preempt_disabled+0x13/0x20 kernel/sched/core.c:3548
__mutex_lock_common kernel/locking/mutex.c:833 [inline]
__mutex_lock+0x521/0x1480 kernel/locking/mutex.c:893
tty_open_by_driver drivers/tty/tty_io.c:1922 [inline]
tty_open+0x3a8/0x980 drivers/tty/tty_io.c:2006
chrdev_open+0x20d/0x570 fs/char_dev.c:417
do_dentry_open+0x426/0xda0 fs/open.c:764
vfs_open+0x11c/0x210 fs/open.c:878
do_last fs/namei.c:3408 [inline]
path_openat+0x4eb/0x23a0 fs/namei.c:3550
do_filp_open+0x197/0x270 fs/namei.c:3584
do_sys_open+0x2ef/0x580 fs/open.c:1071
do_syscall_64+0x19b/0x4b0 arch/x86/entry/common.c:289
entry_SYSCALL_64_after_hwframe+0x42/0xb7
RIP: 0033:0x7ff75bd98120
RSP: 002b:00007fff296e9968 EFLAGS: 00000246 ORIG_RAX: 0000000000000002
RAX: ffffffffffffffda RBX: 0000000000cf2a80 RCX: 00007ff75bd98120
RDX: 0000000000000010 RSI: 0000000000000902 RDI: 00000000004072c8
RBP: 0000000000000000 R08: 0000000000407370 R09: 0000000000000001
R10: 0000000000000008 R11: 0000000000000246 R12: 0000000000000902
R13: 0000000000000102 R14: 00007fff296e9ae0 R15: 0000000000cf2a88
INFO: task init:6157 blocked for more than 140 seconds.
Not tainted 4.14.67+ #1
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
init D29352 6157 1 0x00000000
Call Trace:
IPv6: RTM_NEWROUTE with no NLM_F_CREATE or NLM_F_REPLACE
schedule+0x7f/0x1b0 kernel/sched/core.c:3490
schedule_preempt_disabled+0x13/0x20 kernel/sched/core.c:3548
__mutex_lock_common kernel/locking/mutex.c:833 [inline]
__mutex_lock+0x521/0x1480 kernel/locking/mutex.c:893
tty_open_by_driver drivers/tty/tty_io.c:1922 [inline]
tty_open+0x3a8/0x980 drivers/tty/tty_io.c:2006
chrdev_open+0x20d/0x570 fs/char_dev.c:417
do_dentry_open+0x426/0xda0 fs/open.c:764
vfs_open+0x11c/0x210 fs/open.c:878
do_last fs/namei.c:3408 [inline]
path_openat+0x4eb/0x23a0 fs/namei.c:3550
do_filp_open+0x197/0x270 fs/namei.c:3584
do_sys_open+0x2ef/0x580 fs/open.c:1071
do_syscall_64+0x19b/0x4b0 arch/x86/entry/common.c:289
entry_SYSCALL_64_after_hwframe+0x42/0xb7
RIP: 0033:0x7ff75bd98120
RSP: 002b:00007fff296e9968 EFLAGS: 00000246 ORIG_RAX: 0000000000000002
RAX: ffffffffffffffda RBX: 0000000000cf2740 RCX: 00007ff75bd98120
RDX: 0000000000000010 RSI: 0000000000000902 RDI: 00000000004072c8
RBP: 0000000000000000 R08: 0000000000407370 R09: 0000000000000001
R10: 0000000000000008 R11: 0000000000000246 R12: 0000000000000902
R13: 0000000000000102 R14: 00007fff296e9ae0 R15: 0000000000cf2748
INFO: task init:6159 blocked for more than 140 seconds.
Not tainted 4.14.67+ #1
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
init D29352 6159 1 0x00000000
Call Trace:
schedule+0x7f/0x1b0 kernel/sched/core.c:3490
schedule_preempt_disabled+0x13/0x20 kernel/sched/core.c:3548
__mutex_lock_common kernel/locking/mutex.c:833 [inline]
__mutex_lock+0x521/0x1480 kernel/locking/mutex.c:893
tty_open_by_driver drivers/tty/tty_io.c:1922 [inline]
tty_open+0x3a8/0x980 drivers/tty/tty_io.c:2006
chrdev_open+0x20d/0x570 fs/char_dev.c:417
do_dentry_open+0x426/0xda0 fs/open.c:764
vfs_open+0x11c/0x210 fs/open.c:878
do_last fs/namei.c:3408 [inline]
path_openat+0x4eb/0x23a0 fs/namei.c:3550
do_filp_open+0x197/0x270 fs/namei.c:3584
do_sys_open+0x2ef/0x580 fs/open.c:1071
do_syscall_64+0x19b/0x4b0 arch/x86/entry/common.c:289
entry_SYSCALL_64_after_hwframe+0x42/0xb7
RIP: 0033:0x7ff75bd98120
RSP: 002b:00007fff296e9968 EFLAGS: 00000246 ORIG_RAX: 0000000000000002
RAX: ffffffffffffffda RBX: 0000000000cf2810 RCX: 00007ff75bd98120
RDX: 0000000000000010 RSI: 0000000000000902 RDI: 00000000004072c8
RBP: 0000000000000000 R08: 0000000000407370 R09: 0000000000000001
R10: 0000000000000008 R11: 0000000000000246 R12: 0000000000000902
R13: 0000000000000102 R14: 00007fff296e9ae0 R15: 0000000000cf2818
INFO: task init:19114 blocked for more than 140 seconds.
Not tainted 4.14.67+ #1
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
init D28840 19114 1 0x00000000
Call Trace:
schedule+0x7f/0x1b0 kernel/sched/core.c:3490
schedule_preempt_disabled+0x13/0x20 kernel/sched/core.c:3548
__mutex_lock_common kernel/locking/mutex.c:833 [inline]
__mutex_lock+0x521/0x1480 kernel/locking/mutex.c:893
tty_open_by_driver drivers/tty/tty_io.c:1922 [inline]
tty_open+0x3a8/0x980 drivers/tty/tty_io.c:2006
chrdev_open+0x20d/0x570 fs/char_dev.c:417
do_dentry_open+0x426/0xda0 fs/open.c:764
vfs_open+0x11c/0x210 fs/open.c:878
do_last fs/namei.c:3408 [inline]
path_openat+0x4eb/0x23a0 fs/namei.c:3550
do_filp_open+0x197/0x270 fs/namei.c:3584
do_sys_open+0x2ef/0x580 fs/open.c:1071
do_syscall_64+0x19b/0x4b0 arch/x86/entry/common.c:289
entry_SYSCALL_64_after_hwframe+0x42/0xb7
RIP: 0033:0x7ff75bd98120
RSP: 002b:00007fff296e9968 EFLAGS: 00000246 ORIG_RAX: 0000000000000002
RAX: ffffffffffffffda RBX: 0000000000cf2670 RCX: 00007ff75bd98120
RDX: 0000000000000010 RSI: 0000000000000902 RDI: 00000000004072c8
RBP: 0000000000000000 R08: 0000000000407370 R09: 0000000000000001
R10: 0000000000000008 R11: 0000000000000246 R12: 0000000000000902
R13: 0000000000000102 R14: 00007fff296e9ae0 R15: 0000000000cf2678
Showing all locks held in the system:
1 lock held by khungtaskd/23:
#0: (tasklist_lock){.+.+}, at: [<ffffffff93001847>]
debug_show_all_locks+0x74/0x20f kernel/locking/lockdep.c:4541
1 lock held by rsyslogd/1854:
#0: (&f->f_pos_lock){+.+.}, at: [<ffffffff933bcab2>]
__fdget_pos+0xa2/0xc0 fs/file.c:768
2 locks held by getty/1950:
#0: (&tty->ldisc_sem){++++}, at: [<ffffffff93b1c500>]
tty_ldisc_ref_wait+0x20/0x80 drivers/tty/tty_ldisc.c:275
#1: (&ldata->atomic_read_lock){+.+.}, at: [<ffffffff93b17a7f>]
n_tty_read+0x1ff/0x15e0 drivers/tty/n_tty.c:2142
1 lock held by init/6134:
#0: (tty_mutex){+.+.}, at: [<ffffffff93b0bef8>] tty_open_by_driver
drivers/tty/tty_io.c:1922 [inline]
#0: (tty_mutex){+.+.}, at: [<ffffffff93b0bef8>] tty_open+0x3a8/0x980
drivers/tty/tty_io.c:2006
1 lock held by init/6150:
#0: (tty_mutex){+.+.}, at: [<ffffffff93b0bef8>] tty_open_by_driver
drivers/tty/tty_io.c:1922 [inline]
#0: (tty_mutex){+.+.}, at: [<ffffffff93b0bef8>] tty_open+0x3a8/0x980
drivers/tty/tty_io.c:2006
1 lock held by init/6157:
#0: (tty_mutex){+.+.}, at: [<ffffffff93b0bef8>] tty_open_by_driver
drivers/tty/tty_io.c:1922 [inline]
#0: (tty_mutex){+.+.}, at: [<ffffffff93b0bef8>] tty_open+0x3a8/0x980
drivers/tty/tty_io.c:2006
1 lock held by init/6159:
#0: (tty_mutex){+.+.}, at: [<ffffffff93b0bef8>] tty_open_by_driver
drivers/tty/tty_io.c:1922 [inline]
#0: (tty_mutex){+.+.}, at: [<ffffffff93b0bef8>] tty_open+0x3a8/0x980
drivers/tty/tty_io.c:2006
1 lock held by init/19114:
#0: (tty_mutex){+.+.}, at: [<ffffffff93b0bef8>] tty_open_by_driver
drivers/tty/tty_io.c:1922 [inline]
#0: (tty_mutex){+.+.}, at: [<ffffffff93b0bef8>] tty_open+0x3a8/0x980
drivers/tty/tty_io.c:2006
=============================================
NMI backtrace for cpu 0
CPU: 0 PID: 23 Comm: khungtaskd Not tainted 4.14.67+ #1
Call Trace:
__dump_stack lib/dump_stack.c:17 [inline]
dump_stack+0xb9/0x11b lib/dump_stack.c:53
nmi_cpu_backtrace.cold.0+0x18/0x8e lib/nmi_backtrace.c:103
nmi_trigger_cpumask_backtrace+0x121/0x146 lib/nmi_backtrace.c:62
trigger_all_cpu_backtrace include/linux/nmi.h:138 [inline]
check_hung_uninterruptible_tasks kernel/hung_task.c:196 [inline]
watchdog+0x574/0xa70 kernel/hung_task.c:252
kthread+0x348/0x420 kernel/kthread.c:232
ret_from_fork+0x3a/0x50 arch/x86/entry/entry_64.S:402
Sending NMI from CPU 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 PID: 27488 Comm: syz-executor714 Not tainted 4.14.67+ #1
task: ffff8801d45f0000 task.stack: ffff8801c3530000
RIP: 0010:__read_once_size include/linux/compiler.h:183 [inline]
RIP: 0010:compound_head include/linux/page-flags.h:147 [inline]
RIP: 0010:PageSwapBacked include/linux/page-flags.h:288 [inline]
RIP: 0010:PageSwapCache include/linux/page-flags.h:333 [inline]
RIP: 0010:free_swap_cache mm/swap_state.c:293 [inline]
RIP: 0010:free_pages_and_swap_cache+0x78/0x1d0 mm/swap_state.c:321
RSP: 0018:ffff8801c3537850 EFLAGS: 00000246
RAX: 1ffffd4000e8a81c RBX: ffffea00074540c0 RCX: ffff8801be6c7010
RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffffff967ce3a0
RBP: ffff8801be6c7050 R08: 1ffff10039d2fe00 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: dffffc0000000000
R13: ffffea00074540e0 R14: ffff8801be6c74d8 R15: ffffea000743a0c0
FS: 00007f240ed3b700(0000) GS:ffff8801dbb00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00000000004cc890 CR3: 0000000126c22003 CR4: 00000000001606a0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
tlb_flush_mmu_free+0x9c/0x130 mm/memory.c:260
tlb_flush_mmu mm/memory.c:269 [inline]
arch_tlb_finish_mmu+0xa6/0x160 mm/memory.c:284
tlb_finish_mmu+0x77/0xc0 mm/memory.c:427
exit_mmap+0x219/0x420 mm/mmap.c:3070
__mmput kernel/fork.c:929 [inline]
mmput+0xc8/0x350 kernel/fork.c:950
exit_mm kernel/exit.c:544 [inline]
do_exit+0x83b/0x2800 kernel/exit.c:852
do_group_exit+0x100/0x2e0 kernel/exit.c:968
get_signal+0x4e5/0x1470 kernel/signal.c:2348
do_signal+0x8f/0x1660 arch/x86/kernel/signal.c:809
exit_to_usermode_loop+0x116/0x150 arch/x86/entry/common.c:159
prepare_exit_to_usermode arch/x86/entry/common.c:198 [inline]
syscall_return_slowpath arch/x86/entry/common.c:267 [inline]
do_syscall_64+0x35d/0x4b0 arch/x86/entry/common.c:294
entry_SYSCALL_64_after_hwframe+0x42/0xb7
RIP: 0033:0x446459
RSP: 002b:00007f240ed3ada8 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca
RAX: 0000000000000001 RBX: 00000000006dbc38 RCX: 0000000000446459
RDX: 0000000000446459 RSI: 0000000000000001 RDI: 00000000006dbc3c
RBP: 00000000006dbc30 R08: 0000000000000000 R09: 0000000000000000
R10: 00007f240ed3b700 R11: 0000000000000246 R12: 00000000006dbc3c
R13: 00007fffc1c29eaf R14: 00007f240ed3b9c0 R15: 0000000000000001
Code: 89 e8 48 c1 e8 03 42 80 3c 20 00 0f 85 26 01 00 00 48 8b 5d 00 4c 8d
6b 20 4c 89 e8 48 c1 e8 03 42 80 3c 20 00 0f 85 26 01 00 00 <48> 8b 53 20
49 89 df f6 c2 01 0f 85 b5 00 00 00 e8 73 79 e0 ff
IPv6: RTM_NEWROUTE with no NLM_F_CREATE or NLM_F_REPLACE
---
This bug is generated by a bot. It may contain errors.
See
https://goo.gl/tpsmEJ for more information about syzbot.
syzbot engineers can be reached at
syzk...@googlegroups.com.
syzbot will keep track of this bug report. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.
syzbot can test patches for this bug, for details see:
https://goo.gl/tpsmEJ#testing-patches