Hello,
syzbot found the following crash on:
HEAD commit: 04a132065175 Merge tag 'for-4.18-rc5-tag' of git://git.ker..
git tree: upstream
console output:
https://syzkaller.appspot.com/x/log.txt?x=1060570c400000
kernel config:
https://syzkaller.appspot.com/x/.config?x=6d0ccc9273f0e539
dashboard link:
https://syzkaller.appspot.com/bug?extid=d46c8cc1d0f9b74a27f5
compiler: gcc (GCC) 8.0.1 20180413 (experimental)
CC: [
linux-...@vger.kernel.org linux-...@vger.kernel.org
vi...@zeniv.linux.org.uk]
Unfortunately, I don't have any reproducer for this crash yet.
IMPORTANT: if you fix the bug, please add the following tag to the commit:
Reported-by:
syzbot+d46c8c...@syzkaller.appspotmail.com
kworker/dying (194) used greatest stack depth: 12776 bytes left
INFO: task syz-executor0:22064 blocked for more than 140 seconds.
Not tainted 4.18.0-rc5+ #153
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
syz-executor0 D23728 22064 4603 0x00000004
Call Trace:
context_switch kernel/sched/core.c:2853 [inline]
__schedule+0x87c/0x1ed0 kernel/sched/core.c:3501
schedule+0xfb/0x450 kernel/sched/core.c:3545
__rwsem_down_write_failed_common+0x95d/0x1630
kernel/locking/rwsem-xadd.c:566
rwsem_down_write_failed+0xe/0x10 kernel/locking/rwsem-xadd.c:595
call_rwsem_down_write_failed+0x17/0x30 arch/x86/lib/rwsem.S:117
__down_write arch/x86/include/asm/rwsem.h:142 [inline]
down_write_nested+0xae/0x130 kernel/locking/rwsem.c:194
inode_lock_nested include/linux/fs.h:750 [inline]
lock_rename+0x236/0x290 fs/namei.c:2843
do_renameat2+0x69e/0x1120 fs/namei.c:4587
__do_sys_rename fs/namei.c:4683 [inline]
__se_sys_rename fs/namei.c:4681 [inline]
__x64_sys_rename+0x5e/0x80 fs/namei.c:4681
do_syscall_64+0x1b9/0x820 arch/x86/entry/common.c:290
entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x455ab9
Code: e0 1f 48 89 04 24 e8 b6 6f fd ff e8 81 6a fd ff e8 5c 68 fd ff 48 8d
05 23 cd 48 00 48 89 04 24 48 c7 44 24 08 1d 00 00 00 e8 <13> 5e fd ff 0f
0b e8 8c 44 00 00 e9 07 f0 ff ff cc cc cc cc cc cc
RSP: 002b:00007fce50f5ac68 EFLAGS: 00000246 ORIG_RAX: 0000000000000052
RAX: ffffffffffffffda RBX: 00007fce50f5b6d4 RCX: 0000000000455ab9
RDX: 0000000000000000 RSI: 00000000200000c0 RDI: 0000000020000040
RBP: 000000000072bea0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00000000ffffffff
R13: 00000000004c0b2a R14: 00000000004d0f60 R15: 0000000000000000
INFO: task syz-executor0:22135 blocked for more than 140 seconds.
Not tainted 4.18.0-rc5+ #153
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
syz-executor0 D22584 22135 4603 0x00000004
Call Trace:
context_switch kernel/sched/core.c:2853 [inline]
__schedule+0x87c/0x1ed0 kernel/sched/core.c:3501
schedule+0xfb/0x450 kernel/sched/core.c:3545
__rwsem_down_read_failed_common kernel/locking/rwsem-xadd.c:269 [inline]
rwsem_down_read_failed+0x362/0x600 kernel/locking/rwsem-xadd.c:286
call_rwsem_down_read_failed+0x18/0x30 arch/x86/lib/rwsem.S:94
__down_read arch/x86/include/asm/rwsem.h:83 [inline]
down_read+0xc3/0x1d0 kernel/locking/rwsem.c:26
inode_lock_shared include/linux/fs.h:725 [inline]
lookup_slow+0x49/0x80 fs/namei.c:1646
walk_component+0x94a/0x2630 fs/namei.c:1769
lookup_last fs/namei.c:2237 [inline]
path_lookupat.isra.45+0x202/0xbf0 fs/namei.c:2287
filename_lookup+0x264/0x510 fs/namei.c:2321
user_path_at_empty+0x40/0x50 fs/namei.c:2584
user_path include/linux/namei.h:62 [inline]
do_mount+0x17a/0x30e0 fs/namespace.c:2788
ksys_mount+0x12d/0x140 fs/namespace.c:3064
__do_sys_mount fs/namespace.c:3078 [inline]
__se_sys_mount fs/namespace.c:3075 [inline]
__x64_sys_mount+0xbe/0x150 fs/namespace.c:3075
do_syscall_64+0x1b9/0x820 arch/x86/entry/common.c:290
entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x455ab9
Code: e0 1f 48 89 04 24 e8 b6 6f fd ff e8 81 6a fd ff e8 5c 68 fd ff 48 8d
05 23 cd 48 00 48 89 04 24 48 c7 44 24 08 1d 00 00 00 e8 <13> 5e fd ff 0f
0b e8 8c 44 00 00 e9 07 f0 ff ff cc cc cc cc cc cc
RSP: 002b:00007fce50f18c68 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 00007fce50f196d4 RCX: 0000000000455ab9
RDX: 0000000020000580 RSI: 0000000020000540 RDI: 0000000020000500
RBP: 000000000072bff0 R08: 00000000200005c0 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00000000ffffffff
R13: 00000000004c01fb R14: 00000000004cfe38 R15: 0000000000000002
INFO: task syz-executor0:22136 blocked for more than 140 seconds.
Not tainted 4.18.0-rc5+ #153
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
syz-executor0 D25208 22136 4603 0x00000004
Call Trace:
context_switch kernel/sched/core.c:2853 [inline]
__schedule+0x87c/0x1ed0 kernel/sched/core.c:3501
schedule+0xfb/0x450 kernel/sched/core.c:3545
__rwsem_down_read_failed_common kernel/locking/rwsem-xadd.c:269 [inline]
rwsem_down_read_failed+0x362/0x600 kernel/locking/rwsem-xadd.c:286
call_rwsem_down_read_failed+0x18/0x30 arch/x86/lib/rwsem.S:94
__down_read arch/x86/include/asm/rwsem.h:83 [inline]
down_read+0xc3/0x1d0 kernel/locking/rwsem.c:26
inode_lock_shared include/linux/fs.h:725 [inline]
lookup_slow+0x49/0x80 fs/namei.c:1646
walk_component+0x94a/0x2630 fs/namei.c:1769
lookup_last fs/namei.c:2237 [inline]
path_lookupat.isra.45+0x202/0xbf0 fs/namei.c:2287
filename_lookup+0x264/0x510 fs/namei.c:2321
user_path_at_empty+0x40/0x50 fs/namei.c:2584
user_path_at include/linux/namei.h:57 [inline]
vfs_statx+0x129/0x210 fs/stat.c:185
vfs_stat include/linux/fs.h:3101 [inline]
__do_sys_newstat+0x8f/0x110 fs/stat.c:337
__se_sys_newstat fs/stat.c:333 [inline]
__x64_sys_newstat+0x54/0x80 fs/stat.c:333
do_syscall_64+0x1b9/0x820 arch/x86/entry/common.c:290
entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x455ab9
Code: e0 1f 48 89 04 24 e8 b6 6f fd ff e8 81 6a fd ff e8 5c 68 fd ff 48 8d
05 23 cd 48 00 48 89 04 24 48 c7 44 24 08 1d 00 00 00 e8 <13> 5e fd ff 0f
0b e8 8c 44 00 00 e9 07 f0 ff ff cc cc cc cc cc cc
RSP: 002b:00007fce50ef7c68 EFLAGS: 00000246 ORIG_RAX: 0000000000000004
RAX: ffffffffffffffda RBX: 00007fce50ef86d4 RCX: 0000000000455ab9
RDX: 0000000000000000 RSI: 0000000020000480 RDI: 0000000020000080
RBP: 000000000072c098 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00000000ffffffff
R13: 00000000004d9b1b R14: 00000000004d39a8 R15: 0000000000000003
Showing all locks held in the system:
1 lock held by khungtaskd/902:
#0: 0000000025120fd4 (rcu_read_lock){....}, at:
debug_show_all_locks+0xd0/0x428 kernel/locking/lockdep.c:4461
1 lock held by rsyslogd/4467:
2 locks held by getty/4557:
#0: 000000002f6265ee (&tty->ldisc_sem){++++}, at:
ldsem_down_read+0x37/0x40 drivers/tty/tty_ldsem.c:365
#1: 000000000dde21c3 (&ldata->atomic_read_lock){+.+.}, at:
n_tty_read+0x335/0x1ce0 drivers/tty/n_tty.c:2140
2 locks held by getty/4558:
#0: 000000001af0ef16 (&tty->ldisc_sem){++++}, at:
ldsem_down_read+0x37/0x40 drivers/tty/tty_ldsem.c:365
#1: 00000000741e85b0 (&ldata->atomic_read_lock){+.+.}, at:
n_tty_read+0x335/0x1ce0 drivers/tty/n_tty.c:2140
2 locks held by getty/4559:
#0: 0000000033477b94 (&tty->ldisc_sem){++++}, at:
ldsem_down_read+0x37/0x40 drivers/tty/tty_ldsem.c:365
#1: 00000000957b2261 (&ldata->atomic_read_lock){+.+.}, at:
n_tty_read+0x335/0x1ce0 drivers/tty/n_tty.c:2140
2 locks held by getty/4560:
#0: 00000000d59cdc85 (&tty->ldisc_sem){++++}, at:
ldsem_down_read+0x37/0x40 drivers/tty/tty_ldsem.c:365
#1: 00000000b824fb4e (&ldata->atomic_read_lock){+.+.}, at:
n_tty_read+0x335/0x1ce0 drivers/tty/n_tty.c:2140
2 locks held by getty/4561:
#0: 000000000c61595f (&tty->ldisc_sem){++++}, at:
ldsem_down_read+0x37/0x40 drivers/tty/tty_ldsem.c:365
#1: 00000000266e4eb4 (&ldata->atomic_read_lock){+.+.}, at:
n_tty_read+0x335/0x1ce0 drivers/tty/n_tty.c:2140
2 locks held by getty/4562:
#0: 0000000018cdc9f9 (&tty->ldisc_sem){++++}, at:
ldsem_down_read+0x37/0x40 drivers/tty/tty_ldsem.c:365
#1: 00000000ed995d0f (&ldata->atomic_read_lock){+.+.}, at:
n_tty_read+0x335/0x1ce0 drivers/tty/n_tty.c:2140
2 locks held by getty/4563:
#0: 000000004ffa9c64 (&tty->ldisc_sem){++++}, at:
ldsem_down_read+0x37/0x40 drivers/tty/tty_ldsem.c:365
#1: 00000000ec4bd062 (&ldata->atomic_read_lock){+.+.}, at:
n_tty_read+0x335/0x1ce0 drivers/tty/n_tty.c:2140
2 locks held by syz-executor0/22064:
#0: 00000000c52868a4 (sb_writers#13){.+.+}, at: sb_start_write
include/linux/fs.h:1554 [inline]
#0: 00000000c52868a4 (sb_writers#13){.+.+}, at: mnt_want_write+0x3f/0xc0
fs/namespace.c:386
#1: 000000002c3523ff (&type->i_mutex_dir_key#5/1){+.+.}, at:
inode_lock_nested include/linux/fs.h:750 [inline]
#1: 000000002c3523ff (&type->i_mutex_dir_key#5/1){+.+.}, at:
lock_rename+0x236/0x290 fs/namei.c:2843
1 lock held by syz-executor0/22133:
1 lock held by syz-executor0/22135:
#0: 000000002c3523ff (&type->i_mutex_dir_key#5){++++}, at:
inode_lock_shared include/linux/fs.h:725 [inline]
#0: 000000002c3523ff (&type->i_mutex_dir_key#5){++++}, at:
lookup_slow+0x49/0x80 fs/namei.c:1646
1 lock held by syz-executor0/22136:
#0: 000000002c3523ff (&type->i_mutex_dir_key#5){++++}, at:
inode_lock_shared include/linux/fs.h:725 [inline]
#0: 000000002c3523ff (&type->i_mutex_dir_key#5){++++}, at:
lookup_slow+0x49/0x80 fs/namei.c:1646
=============================================
NMI backtrace for cpu 0
CPU: 0 PID: 902 Comm: khungtaskd Not tainted 4.18.0-rc5+ #153
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS
Google 01/01/2011
Call Trace:
__dump_stack lib/dump_stack.c:77 [inline]
dump_stack+0x1c9/0x2b4 lib/dump_stack.c:113
nmi_cpu_backtrace.cold.4+0x19/0xce lib/nmi_backtrace.c:103
nmi_trigger_cpumask_backtrace+0x151/0x192 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:138 [inline]
check_hung_uninterruptible_tasks kernel/hung_task.c:196 [inline]
watchdog+0x9c4/0xf80 kernel/hung_task.c:252
kthread+0x345/0x410 kernel/kthread.c:246
ret_from_fork+0x3a/0x50 arch/x86/entry/entry_64.S:412
Sending NMI from CPU 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 PID: 22133 Comm: syz-executor0 Not tainted 4.18.0-rc5+ #153
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS
Google 01/01/2011
RIP: 0010:lock_release+0xa2/0xa30 kernel/locking/lockdep.c:3933
Code: f2 c7 40 08 f2 f2 f2 f2 c7 40 0c 00 f2 f2 f2 c7 40 10 f2 f2 f2 f2 c7
40 14 00 f2 f2 f2 65 48 8b 04 25 28 00 00 00 48 89 45 d0 <31> c0 48 89 f8
48 c1 e8 03 0f b6 14 10 48 89 f8 83 e0 07 83 c0 03
RSP: 0018:ffff8801a83971f0 EFLAGS: 00000286
RAX: 1024dc0c699bdc00 RBX: 1ffff10035072e43 RCX: ffffc9000201d000
RDX: dffffc0000000000 RSI: 0000000000000001 RDI: ffff8801c0eeadb4
RBP: ffff8801a8397320 R08: ffff8801c0eea580 R09: ffffed003b4a1d4c
R10: ffffed003b4a1d4c R11: ffff8801da50ea63 R12: ffff8801a83972f8
R13: ffff8801da50ea78 R14: 0000000000000000 R15: ffff8801c0eea580
FS: 00007fce50f3a700(0000) GS:ffff8801daf00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffffffffff600400 CR3: 00000001d6d0a000 CR4: 00000000001406e0
DR0: 000000000000b8c4 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
__raw_spin_unlock include/linux/spinlock_api_smp.h:150 [inline]
_raw_spin_unlock+0x1a/0x30 kernel/locking/spinlock.c:176
spin_unlock include/linux/spinlock.h:350 [inline]
d_walk+0x743/0xc70 fs/dcache.c:1335
d_invalidate+0x1b3/0x2a0 fs/dcache.c:1586
__lookup_slow+0x459/0x540 fs/namei.c:1621
lookup_slow+0x57/0x80 fs/namei.c:1647
walk_component+0x94a/0x2630 fs/namei.c:1769
lookup_last fs/namei.c:2237 [inline]
path_lookupat.isra.45+0x202/0xbf0 fs/namei.c:2287
filename_lookup+0x264/0x510 fs/namei.c:2321
user_path_at_empty+0x40/0x50 fs/namei.c:2584
user_path_at include/linux/namei.h:57 [inline]
vfs_statx+0x129/0x210 fs/stat.c:185
vfs_stat include/linux/fs.h:3101 [inline]
__do_sys_newstat+0x8f/0x110 fs/stat.c:337
__se_sys_newstat fs/stat.c:333 [inline]
__x64_sys_newstat+0x54/0x80 fs/stat.c:333
do_syscall_64+0x1b9/0x820 arch/x86/entry/common.c:290
entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x455ab9
Code: 1d ba fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 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 0f 83 eb b9 fb ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007fce50f39c68 EFLAGS: 00000246 ORIG_RAX: 0000000000000004
RAX: ffffffffffffffda RBX: 00007fce50f3a6d4 RCX: 0000000000455ab9
RDX: 0000000000000000 RSI: 0000000020000480 RDI: 0000000020000080
RBP: 000000000072bf48 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00000000ffffffff
R13: 00000000004d9b1b R14: 00000000004d39a8 R15: 0000000000000001
INFO: NMI handler (nmi_cpu_backtrace_handler) took too long to run: 1.030
msecs
---
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#bug-status-tracking for how to communicate with
syzbot.