syzbot


WARNING in match_held_lock

Status: auto-obsoleted due to no activity on 2024/01/27 08:20
Subsystems: ntfs3
[Documentation on labels]
Reported-by: syzbot+6c67d4224af196c99976@syzkaller.appspotmail.com
First crash: 700d, last: 369d
Cause bisection: introduced by (bisect log) :
commit 06554f4ffc2595ae52ee80aec4a13bd77d22bed7
Author: Jakub Kicinski <kuba@kernel.org>
Date: Fri Apr 8 18:31:28 2022 +0000

  tls: rx: factor out writing ContentType to cmsg

Crash: BUG: unable to handle kernel NULL pointer dereference in ntfs_fill_super (log)
Repro: C syz .config
  
Fix bisection: the issue occurs on the latest tested release (bisect log)
  
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] WARNING in match_held_lock 0 (2) 2022/10/03 03:53
Last patch testing requests (4)
Created Duration User Patch Repo Result
2024/01/27 07:50 28m retest repro upstream OK log
2023/11/16 12:23 31m retest repro upstream report log
2023/09/06 22:51 35m retest repro upstream report log
2022/10/03 09:06 13m kari.argillander@gmail.com https://github.com/Paragon-Software-Group/linux-ntfs3.git master report log
Fix bisection attempts (7)
Created Duration User Patch Repo Result
2023/06/28 09:09 29m bisect fix upstream job log (0)
2023/05/26 14:53 39m bisect fix upstream job log (0) log
2023/04/26 14:10 40m bisect fix upstream job log (0) log
2023/03/27 10:07 33m bisect fix upstream job log (0) log
2023/02/24 22:48 35m bisect fix upstream job log (0) log
2023/01/25 22:08 38m bisect fix upstream job log (0) log
2022/11/07 14:51 30m bisect fix upstream job log (0) log

Sample crash report:
ntfs3: loop3: Different NTFS' sector size (1024) and media sector size (512)
------------[ cut here ]------------
DEBUG_LOCKS_WARN_ON(!hlock->nest_lock)
WARNING: CPU: 0 PID: 5565 at kernel/locking/lockdep.c:5135 match_held_lock+0xad/0xc0 kernel/locking/lockdep.c:5135
Modules linked in:
CPU: 0 PID: 5565 Comm: syz-executor151 Not tainted 6.0.0-rc7-syzkaller-00250-ga962b54e162c #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/22/2022
RIP: 0010:match_held_lock+0xad/0xc0 kernel/locking/lockdep.c:5135
Code: e8 b8 c4 7a fa 85 c0 74 e4 8b 05 26 e5 5e 04 85 c0 75 da 48 c7 c6 60 ac ec 89 48 c7 c7 e0 a8 ec 89 89 44 24 04 e8 45 e7 ba ff <0f> 0b 8b 44 24 04 eb bd 66 66 2e 0f 1f 84 00 00 00 00 00 41 57 41
RSP: 0018:ffffc900058c79d8 EFLAGS: 00010086
RAX: 0000000000000000 RBX: ffff88807e390aa0 RCX: 0000000000000000
RDX: ffff88807e390000 RSI: ffffffff8161f2a8 RDI: fffff52000b18f2d
RBP: ffffffff8bf89640 R08: 0000000000000005 R09: 0000000000000000
R10: 0000000080000002 R11: 0000000000000001 R12: ffff88807e390000
R13: ffff88807e390a78 R14: 00000000ffffffff R15: ffff88807e390aa0
FS:  0000555556d9c300(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fbbd6497056 CR3: 0000000016c2f000 CR4: 0000000000350ef0
Call Trace:
 <TASK>
 __lock_is_held kernel/locking/lockdep.c:5407 [inline]
 lock_is_held_type+0xa7/0x140 kernel/locking/lockdep.c:5709
 lock_is_held include/linux/lockdep.h:283 [inline]
 rcu_read_lock_sched_held+0x3a/0x70 kernel/rcu/update.c:125
 trace_lock_release include/trace/events/lock.h:69 [inline]
 lock_release+0x560/0x780 kernel/locking/lockdep.c:5677
 __raw_spin_unlock include/linux/spinlock_api_smp.h:141 [inline]
 _raw_spin_unlock+0x12/0x40 kernel/locking/spinlock.c:186
 spin_unlock include/linux/spinlock.h:389 [inline]
 inode_sb_list_del fs/inode.c:505 [inline]
 evict+0x2aa/0x6b0 fs/inode.c:654
 iput_final fs/inode.c:1748 [inline]
 iput.part.0+0x55d/0x810 fs/inode.c:1774
 iput+0x58/0x70 fs/inode.c:1764
 ntfs_fill_super+0x2e89/0x37f0 fs/ntfs3/super.c:1190
 get_tree_bdev+0x440/0x760 fs/super.c:1323
 vfs_get_tree+0x89/0x2f0 fs/super.c:1530
 do_new_mount fs/namespace.c:3040 [inline]
 path_mount+0x1326/0x1e20 fs/namespace.c:3370
 do_mount fs/namespace.c:3383 [inline]
 __do_sys_mount fs/namespace.c:3591 [inline]
 __se_sys_mount fs/namespace.c:3568 [inline]
 __x64_sys_mount+0x27f/0x300 fs/namespace.c:3568
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7fbbd6459e7a
Code: 48 c7 c2 c0 ff ff ff f7 d8 64 89 02 b8 ff ff ff ff eb d2 e8 c8 03 00 00 0f 1f 84 00 00 00 00 00 49 89 ca b8 a5 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 c0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffd6a35b568 EFLAGS: 00000286 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 00007fbbd6459e7a
RDX: 0000000020000000 RSI: 0000000020000100 RDI: 00007ffd6a35b580
RBP: 00007ffd6a35b580 R08: 00007ffd6a35b5c0 R09: 00007ffd6a35b5c0
R10: 0000000000000000 R11: 0000000000000286 R12: 0000000000000004
R13: 00007ffd6a35b5c0 R14: 000000000000010e R15: 0000000020001b50
 </TASK>

Crashes (8):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/10/03 03:52 upstream a962b54e162c feb56351 .config console log report syz C [disk image] [vmlinux] ci-upstream-kasan-gce-root WARNING in match_held_lock
2022/10/04 04:17 upstream f3dfe925f954 feb56351 .config console log report info ci-qemu-upstream WARNING in match_held_lock
2022/09/19 14:58 upstream 521a547ced64 dd9a85ff .config console log report info ci-upstream-kasan-gce-root WARNING in match_held_lock
2022/08/02 18:53 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing 8288c99fc263 fef302b1 .config console log report info ci2-upstream-usb WARNING in match_held_lock
2022/07/24 06:09 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing b7423bb23cdd 22343af4 .config console log report info ci2-upstream-usb WARNING in match_held_lock
2022/07/18 02:34 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing c76d09da77d6 95cb00d1 .config console log report info ci2-upstream-usb WARNING in match_held_lock
2022/07/17 00:50 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing c76d09da77d6 95cb00d1 .config console log report info ci2-upstream-usb WARNING in match_held_lock
2022/06/29 19:57 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing 849f35422319 1434eec0 .config console log report info ci2-upstream-usb WARNING in match_held_lock
* Struck through repros no longer work on HEAD.