WARNING: locking bug in vfs_write

19 views
Skip to first unread message

syzbot

unread,
Apr 3, 2021, 4:33:25 PM4/3/21
to syzkaller...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: bd634aa6 Linux 4.14.228
git tree: linux-4.14.y
console output: https://syzkaller.appspot.com/x/log.txt?x=11b1609ad00000
kernel config: https://syzkaller.appspot.com/x/.config?x=5fab202d11a349c3
dashboard link: https://syzkaller.appspot.com/bug?extid=c4920696774858c4a83d
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=11f75036d00000

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

Bluetooth: hci4 command 0x0419 tx timeout
Bluetooth: hci0 command 0x0419 tx timeout
Bluetooth: hci2 command 0x0419 tx timeout
DEBUG_LOCKS_WARN_ON(depth <= 0)
------------[ cut here ]------------
WARNING: CPU: 0 PID: 12499 at kernel/locking/lockdep.c:3760 __lock_release kernel/locking/lockdep.c:3760 [inline]
WARNING: CPU: 0 PID: 12499 at kernel/locking/lockdep.c:3760 lock_release.cold+0x13/0xbf kernel/locking/lockdep.c:4017
Kernel panic - not syncing: panic_on_warn set ...

CPU: 0 PID: 12499 Comm: syz-executor.3 Not tainted 4.14.228-syzkaller #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+0x1b2/0x281 lib/dump_stack.c:58
panic+0x1f9/0x42d kernel/panic.c:183
__warn.cold+0x20/0x44 kernel/panic.c:547
report_bug+0x208/0x250 lib/bug.c:186
fixup_bug arch/x86/kernel/traps.c:177 [inline]
fixup_bug arch/x86/kernel/traps.c:172 [inline]
do_error_trap+0x195/0x2d0 arch/x86/kernel/traps.c:295
invalid_op+0x1b/0x40 arch/x86/entry/entry_64.S:964
RIP: 0010:__lock_release kernel/locking/lockdep.c:3760 [inline]
RIP: 0010:lock_release.cold+0x13/0xbf kernel/locking/lockdep.c:4017
RSP: 0018:ffff88809683fdb0 EFLAGS: 00010086
RAX: 000000000000001f RBX: 1ffff11012d07fb9 RCX: 0000000000000000
RDX: 0000000000000000 RSI: 0000000000000001 RDI: ffffed1012d07fac
RBP: ffff8880998e9050 R08: 000000000000001f R09: 0000000000000000
R10: 0000000000000001 R11: 000000656e040339 R12: ffffffff8186b0ed
R13: ffffffff8beb9d40 R14: ffff888099fd8300 R15: 0000000000000000
file_end_write include/linux/fs.h:2726 [inline]
vfs_write+0x35d/0x4d0 fs/read_write.c:550
SYSC_write fs/read_write.c:590 [inline]
SyS_write+0xf2/0x210 fs/read_write.c:582
do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292
entry_SYSCALL_64_after_hwframe+0x46/0xbb
RIP: 0033:0x466459
RSP: 002b:00007f8611543188 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 000000000056c0b0 RCX: 0000000000466459
RDX: 0000000020104000 RSI: 0000000020004200 RDI: 0000000000000004
RBP: 00000000004bf9fb R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 000000000056c0b0
R13: 00007ffdbbb84cdf R14: 00007f8611543300 R15: 0000000000022000
Kernel Offset: disabled
Rebooting in 86400 seconds..


---
This report 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 issue. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.
syzbot can test patches for this issue, for details see:
https://goo.gl/tpsmEJ#testing-patches

syzbot

unread,
Apr 5, 2021, 4:53:16 AM4/5/21
to syzkaller...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: 2034d6f0 Linux 4.19.184
git tree: linux-4.19.y
console output: https://syzkaller.appspot.com/x/log.txt?x=14b4b16ed00000
kernel config: https://syzkaller.appspot.com/x/.config?x=42af7daace4bc0cc
dashboard link: https://syzkaller.appspot.com/bug?extid=1c1218754d29177420d2
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=111a88fcd00000

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+1c1218...@syzkaller.appspotmail.com

wlan1: Creating new IBSS network, BSSID 50:50:50:50:50:50
IPv6: ADDRCONF(NETDEV_CHANGE): wlan1: link becomes ready
IPv6: ADDRCONF(NETDEV_CHANGE): wlan1: link becomes ready
------------[ cut here ]------------
DEBUG_LOCKS_WARN_ON(depth <= 0)
WARNING: CPU: 1 PID: 9979 at kernel/locking/lockdep.c:3669 __lock_release kernel/locking/lockdep.c:3669 [inline]
WARNING: CPU: 1 PID: 9979 at kernel/locking/lockdep.c:3669 lock_release+0x759/0x8b0 kernel/locking/lockdep.c:3926
Kernel panic - not syncing: panic_on_warn set ...

CPU: 1 PID: 9979 Comm: syz-executor.0 Not tainted 4.19.184-syzkaller #0
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+0x1fc/0x2ef lib/dump_stack.c:118
panic+0x26a/0x50e kernel/panic.c:186
__warn.cold+0x20/0x5a kernel/panic.c:541
report_bug+0x262/0x2b0 lib/bug.c:186
fixup_bug arch/x86/kernel/traps.c:178 [inline]
fixup_bug arch/x86/kernel/traps.c:173 [inline]
do_error_trap+0x1d7/0x310 arch/x86/kernel/traps.c:296
invalid_op+0x14/0x20 arch/x86/entry/entry_64.S:1038
RIP: 0010:__lock_release kernel/locking/lockdep.c:3669 [inline]
RIP: 0010:lock_release+0x759/0x8b0 kernel/locking/lockdep.c:3926
Code: e9 3f fd ff ff e8 67 5f 05 00 85 c0 0f 85 93 fe ff ff e9 cb b9 a6 06 48 c7 c6 00 4b 6a 88 48 c7 c7 40 19 6a 88 e8 87 1b a6 06 <0f> 0b eb 82 48 89 df e8 4b ee 4c 00 e9 90 fd ff ff e8 41 ee 4c 00
RSP: 0018:ffff88809bbf7d88 EFLAGS: 00010082
RAX: 0000000000000000 RBX: ffffffff8d241760 RCX: 0000000000000000
RDX: 0000000000000000 RSI: ffffffff814ddd51 RDI: ffffed101377efa3
RBP: ffff888096b48710 R08: 0000000000000000 R09: 00000000000009dd
R10: 0000000000000006 R11: ffffffff8c66305b R12: 1ffff1101377efb4
R13: ffffffff81a27a97 R14: ffff888099798000 R15: 0000000000000000
file_end_write include/linux/fs.h:2793 [inline]
vfs_write+0x3d7/0x540 fs/read_write.c:555
ksys_write+0x12b/0x2a0 fs/read_write.c:599
do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x466459
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 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 73 01 c3 48 c7 c1 bc ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fd04bd58188 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 000000000056c0b0 RCX: 0000000000466459
RDX: 0000000020104000 RSI: 0000000020004200 RDI: 0000000000000004
RBP: 00000000004bf9fb R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 000000000056c0b0
R13: 00007fff78b0654f R14: 00007fd04bd58300 R15: 0000000000022000
Reply all
Reply to author
Forward
0 new messages