BUG: soft lockup in shrink_dcache_parent

11 views
Skip to first unread message

syzbot

unread,
May 18, 2018, 7:25:04 PM5/18/18
to syzkaller-upst...@googlegroups.com
Hello,

syzbot found the following crash on:

HEAD commit: 2c71d338bef2 Merge tag 'powerpc-4.17-6' of git://git.kerne..
git tree: upstream
console output: https://syzkaller.appspot.com/x/log.txt?x=1217a20f800000
kernel config: https://syzkaller.appspot.com/x/.config?x=f3b4e30da84ec1ed
dashboard link: https://syzkaller.appspot.com/bug?extid=9c645dde8f8deb891497
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+9c645d...@syzkaller.appspotmail.com

watchdog: BUG: soft lockup - CPU#0 stuck for 22s! [syz-executor7:4539]
Modules linked in:
irq event stamp: 21473646
hardirqs last enabled at (21473645): [<ffffffff81c6500f>]
seqcount_lockdep_reader_access include/linux/seqlock.h:83 [inline]
hardirqs last enabled at (21473645): [<ffffffff81c6500f>]
read_seqcount_begin include/linux/seqlock.h:164 [inline]
hardirqs last enabled at (21473645): [<ffffffff81c6500f>] read_seqbegin
include/linux/seqlock.h:433 [inline]
hardirqs last enabled at (21473645): [<ffffffff81c6500f>]
read_seqbegin_or_lock include/linux/seqlock.h:529 [inline]
hardirqs last enabled at (21473645): [<ffffffff81c6500f>]
d_walk+0x80f/0xc80 fs/dcache.c:1248
hardirqs last disabled at (21473646): [<ffffffff87800905>]
interrupt_entry+0xb5/0xf0 arch/x86/entry/entry_64.S:625
softirqs last enabled at (10283718): [<ffffffff87a00778>]
__do_softirq+0x778/0xaf5 kernel/softirq.c:311
softirqs last disabled at (10283547): [<ffffffff81475281>] invoke_softirq
kernel/softirq.c:365 [inline]
softirqs last disabled at (10283547): [<ffffffff81475281>]
irq_exit+0x1d1/0x200 kernel/softirq.c:405
CPU: 0 PID: 4539 Comm: syz-executor7 Not tainted 4.17.0-rc5+ #57
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS
Google 01/01/2011
RIP: 0010:arch_local_irq_restore arch/x86/include/asm/paravirt.h:783
[inline]
RIP: 0010:seqcount_lockdep_reader_access include/linux/seqlock.h:83 [inline]
RIP: 0010:read_seqcount_begin include/linux/seqlock.h:164 [inline]
RIP: 0010:read_seqbegin include/linux/seqlock.h:433 [inline]
RIP: 0010:read_seqbegin_or_lock include/linux/seqlock.h:529 [inline]
RIP: 0010:d_walk+0x840/0xc80 fs/dcache.c:1248
RSP: 0018:ffff88019f7d79f8 EFLAGS: 00000293 ORIG_RAX: ffffffffffffff13
RAX: ffff88019f7ce340 RBX: 0000000000000293 RCX: 1ffff10033ef9d7d
RDX: 0000000000000000 RSI: ffffffff81c6503b RDI: 0000000000000293
RBP: ffff88019f7d7b78 R08: ffff88019f7ceb78 R09: 0000000000000006
R10: ffff88019f7ce340 R11: 0000000000000000 R12: 0000000000000200
R13: dffffc0000000000 R14: 1ffff10033efaf82 R15: ffff88019f7d7b50
FS: 00000000011f0940(0000) GS:ffff8801dae00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00000000011f9978 CR3: 000000019ed1e000 CR4: 00000000001426f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
shrink_dcache_parent+0x179/0x230 fs/dcache.c:1486
vfs_rmdir+0x202/0x470 fs/namei.c:3850
do_rmdir+0x523/0x610 fs/namei.c:3911
__do_sys_rmdir fs/namei.c:3929 [inline]
__se_sys_rmdir fs/namei.c:3927 [inline]
__x64_sys_rmdir+0x36/0x40 fs/namei.c:3927
do_syscall_64+0x1b1/0x800 arch/x86/entry/common.c:287
entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x455777
RSP: 002b:00007ffe24fc7f78 EFLAGS: 00000206 ORIG_RAX: 0000000000000054
RAX: ffffffffffffffda RBX: 0000000000000065 RCX: 0000000000455777
RDX: 0000000000000000 RSI: 00007ffe24fc9d20 RDI: 00007ffe24fc9d20
RBP: 00007ffe24fc9d20 R08: 0000000000000000 R09: 0000000000000001
R10: 0000000000000006 R11: 0000000000000206 R12: 00000000011f1940
R13: 0000000000000000 R14: 0000000000000bc6 R15: 00000000000a92ed
Code: 88 48 89 f8 48 c1 e8 03 42 80 3c 28 00 0f 85 1e 04 00 00 48 83 3d f8
36 0b 07 00 0f 84 29 02 00 00 e8 b5 de b2 ff 48 89 df 57 9d <0f> 1f 44 00
00 e8 a6 de b2 ff 49 8d 5f 80 48 c1 eb 03 4c 01 eb
Sending NMI from CPU 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 PID: 588 Comm: syz-executor0 Not tainted 4.17.0-rc5+ #57
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS
Google 01/01/2011
RIP: 0010:__lock_acquire+0xa7e/0x5140 kernel/locking/lockdep.c:3434
RSP: 0018:ffff8801983e7520 EFLAGS: 00000046
RAX: dffffc0000000000 RBX: ffffffff89c2cdc8 RCX: 0000000000000001
RDX: 1ffff100358fad65 RSI: ffff8801ac7d6b38 RDI: ffffffff89c2cdd8
RBP: ffff8801983e78a8 R08: 00000000000075fe R09: 0000000000000003
R10: ffff8801ac7d6bb0 R11: ffff8801ac7d6300 R12: 1ffff1003307cecc
R13: 0000000000000000 R14: e587338c2ceab941 R15: 0000000000000000
FS: 0000000000b43940(0000) GS:ffff8801daf00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ffd7c5a1cbc CR3: 00000001985a1000 CR4: 00000000001426e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
lock_acquire+0x1dc/0x520 kernel/locking/lockdep.c:3920
__raw_spin_lock include/linux/spinlock_api_smp.h:142 [inline]
_raw_spin_lock+0x2a/0x40 kernel/locking/spinlock.c:144
spin_lock include/linux/spinlock.h:310 [inline]
d_walk+0x261/0xc80 fs/dcache.c:1250
shrink_dcache_parent+0x179/0x230 fs/dcache.c:1486
vfs_rmdir+0x202/0x470 fs/namei.c:3850
do_rmdir+0x523/0x610 fs/namei.c:3911
__do_sys_rmdir fs/namei.c:3929 [inline]
__se_sys_rmdir fs/namei.c:3927 [inline]
__x64_sys_rmdir+0x36/0x40 fs/namei.c:3927
do_syscall_64+0x1b1/0x800 arch/x86/entry/common.c:287
entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x455777
RSP: 002b:00007ffd7c5a23c8 EFLAGS: 00000202 ORIG_RAX: 0000000000000054
RAX: ffffffffffffffda RBX: 0000000000000065 RCX: 0000000000455777
RDX: 0000000000000000 RSI: 00007ffd7c5a4170 RDI: 00007ffd7c5a4170
RBP: 00007ffd7c5a4170 R08: 0000000000000000 R09: 0000000000000001
R10: 0000000000000006 R11: 0000000000000202 R12: 0000000000b44940
R13: 0000000000000000 R14: 00000000000003fc R15: 00000000000a928a
Code: 8b 0d 57 22 ad 07 85 c9 0f 84 62 f7 ff ff 48 b8 00 00 00 00 00 fc ff
df 48 8b 54 24 78 48 c1 ea 03 80 3c 02 00 0f 85 fd 32 00 00 <48> 8b 94 24
88 00 00 00 4d 89 b3 28 08 00 00 48 b8 00 00 00 00


---
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.

syzbot

unread,
May 19, 2018, 2:24:03 AM5/19/18
to syzkaller-upst...@googlegroups.com
syzbot has found a reproducer for the following crash on:

HEAD commit: 82f9e2d5dba6 Merge branch 'bpf-af-xdp-cleanups'
git tree: bpf-next
console output: https://syzkaller.appspot.com/x/log.txt?x=1427db37800000
kernel config: https://syzkaller.appspot.com/x/.config?x=b632d8e2c2ab2c1
dashboard link: https://syzkaller.appspot.com/bug?extid=9c645dde8f8deb891497
compiler: gcc (GCC) 8.0.1 20180413 (experimental)
syzkaller repro:https://syzkaller.appspot.com/x/repro.syz?x=13f84b37800000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=153c9057800000
CC: [linux-...@vger.kernel.org linux-...@vger.kernel.org
vi...@zeniv.linux.org.uk]

IMPORTANT: if you fix the bug, please add the following tag to the commit:
Reported-by: syzbot+9c645d...@syzkaller.appspotmail.com

watchdog: BUG: soft lockup - CPU#0 stuck for 22s! [syz-executor107:4487]
Modules linked in:
irq event stamp: 19141612
hardirqs last enabled at (19141611): [<ffffffff81c6992f>]
seqcount_lockdep_reader_access include/linux/seqlock.h:83 [inline]
hardirqs last enabled at (19141611): [<ffffffff81c6992f>]
read_seqcount_begin include/linux/seqlock.h:164 [inline]
hardirqs last enabled at (19141611): [<ffffffff81c6992f>] read_seqbegin
include/linux/seqlock.h:433 [inline]
hardirqs last enabled at (19141611): [<ffffffff81c6992f>]
read_seqbegin_or_lock include/linux/seqlock.h:529 [inline]
hardirqs last enabled at (19141611): [<ffffffff81c6992f>]
d_walk+0x80f/0xc80 fs/dcache.c:1248
hardirqs last disabled at (19141612): [<ffffffff87800905>]
interrupt_entry+0xb5/0xf0 arch/x86/entry/entry_64.S:625
softirqs last enabled at (19140862): [<ffffffff87a00778>]
__do_softirq+0x778/0xaf5 kernel/softirq.c:311
softirqs last disabled at (19140855): [<ffffffff81475241>] invoke_softirq
kernel/softirq.c:365 [inline]
softirqs last disabled at (19140855): [<ffffffff81475241>]
irq_exit+0x1d1/0x200 kernel/softirq.c:405
CPU: 0 PID: 4487 Comm: syz-executor107 Not tainted 4.17.0-rc4+ #14
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS
Google 01/01/2011
RIP: 0010:get_current arch/x86/include/asm/current.h:15 [inline]
RIP: 0010:__sanitizer_cov_trace_pc+0xa/0x50 kernel/kcov.c:100
RSP: 0018:ffff8801adfaf9e8 EFLAGS: 00000202 ORIG_RAX: ffffffffffffff13
RAX: ffff8801ad894040 RBX: 0000000000000001 RCX: ffffffff81c69cfc
RDX: 0000000000000001 RSI: 0000000000000000 RDI: 0000000000000001
RBP: ffff8801adfafb78 R08: ffff8801ad894040 R09: ffffed003b5c46c2
R10: ffffed003b5c46c2 R11: ffff8801dae23613 R12: 00000000000002f6
R13: dffffc0000000000 R14: ffff8801a9ad4720 R15: ffff8801adfafb50
FS: 0000000001459880(0000) GS:ffff8801dae00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000000146a918 CR3: 00000001adc75000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
shrink_dcache_parent+0x179/0x230 fs/dcache.c:1486
vfs_rmdir+0x202/0x470 fs/namei.c:3850
do_rmdir+0x523/0x610 fs/namei.c:3911
__do_sys_rmdir fs/namei.c:3929 [inline]
__se_sys_rmdir fs/namei.c:3927 [inline]
__x64_sys_rmdir+0x36/0x40 fs/namei.c:3927
do_syscall_64+0x1b1/0x800 arch/x86/entry/common.c:287
entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x4411f7
RSP: 002b:00007ffc205be7b8 EFLAGS: 00000207 ORIG_RAX: 0000000000000054
RAX: ffffffffffffffda RBX: 0000000000000065 RCX: 00000000004411f7
RDX: 0000000000000000 RSI: 00000000006cd858 RDI: 00007ffc205bf8a0
RBP: 00007ffc205bf8a0 R08: 0000000000000000 R09: 0000000000000001
R10: 0000000000000005 R11: 0000000000000207 R12: 000000000145a8a0
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
Code: 72 1b 49 83 c1 01 4a 89 7c 10 e0 4a 89 74 10 e8 4a 89 54 10 f0 4a 89
4c d8 20 4c 89 08 5d c3 66 90 55 65 48 8b 04 25 c0 ed 01 00 <65> 8b 15 af
bf 88 7e 48 89 e5 81 e2 00 01 1f 00 48 8b 75 08 75
Sending NMI from CPU 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 PID: 4486 Comm: syz-executor107 Not tainted 4.17.0-rc4+ #14
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS
Google 01/01/2011
RIP: 0010:get_current arch/x86/include/asm/current.h:15 [inline]
RIP: 0010:__sanitizer_cov_trace_pc+0xa/0x50 kernel/kcov.c:100
RSP: 0018:ffff8801ade479e8 EFLAGS: 00000293
RAX: ffff8801ad88a000 RBX: ffff8801a9adef30 RCX: ffffffff81c693a8
RDX: 0000000000000000 RSI: ffffffff81c6943a RDI: 0000000000000005
RBP: ffff8801ade47b78 R08: ffff8801ad88a000 R09: ffffed0035356e20
R10: ffffed0035356e20 R11: ffff8801a9ab7103 R12: ffff8801a9ab7180
R13: dffffc0000000000 R14: 0000000000000000 R15: ffff8801ade47b50
FS: 0000000001459880(0000) GS:ffff8801daf00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000000146a918 CR3: 00000001add3d000 CR4: 00000000001406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
shrink_dcache_parent+0x179/0x230 fs/dcache.c:1486
vfs_rmdir+0x202/0x470 fs/namei.c:3850
do_rmdir+0x523/0x610 fs/namei.c:3911
__do_sys_rmdir fs/namei.c:3929 [inline]
__se_sys_rmdir fs/namei.c:3927 [inline]
__x64_sys_rmdir+0x36/0x40 fs/namei.c:3927
do_syscall_64+0x1b1/0x800 arch/x86/entry/common.c:287
entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x4411f7
RSP: 002b:00007ffc205be7b8 EFLAGS: 00000207 ORIG_RAX: 0000000000000054
RAX: ffffffffffffffda RBX: 0000000000000065 RCX: 00000000004411f7
RDX: 0000000000000000 RSI: 00000000006cd858 RDI: 00007ffc205bf8a0
RBP: 00007ffc205bf8a0 R08: 0000000000000000 R09: 0000000000000001
R10: 0000000000000005 R11: 0000000000000207 R12: 000000000145a8a0
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
Code: 72 1b 49 83 c1 01 4a 89 7c 10 e0 4a 89 74 10 e8 4a 89 54 10 f0 4a 89
4c d8 20 4c 89 08 5d c3 66 90 55 65 48 8b 04 25 c0 ed 01 00 <65> 8b 15 af
bf 88 7e 48 89 e5 81 e2 00 01 1f 00 48 8b 75 08 75

Dmitry Vyukov

unread,
May 19, 2018, 5:28:40 AM5/19/18
to syzbot, 'Dmitry Vyukov' via syzkaller-upstream-moderation
False positive due to too low watchdog_thresh setting. Fixed now.

#syz invalid
> --
> You received this message because you are subscribed to the Google Groups
> "syzkaller-upstream-moderation" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to syzkaller-upstream-m...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/syzkaller-upstream-moderation/000000000000f82c65056c83422b%40google.com.
> For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages