syzbot


BUG: spinlock bad magic in ntfs_iget5

Status: auto-obsoleted due to no activity on 2023/04/06 07:48
Subsystems: ntfs3
[Documentation on labels]
Reported-by: syzbot+74e3f9a965a4685527d8@syzkaller.appspotmail.com
First crash: 498d, last: 498d

Sample crash report:
loop2: detected capacity change from 0 to 4096
ntfs3: loop2: Different NTFS' sector size (1024) and media sector size (512)
BUG: spinlock bad magic on CPU#1, syz-executor.2/6561
general protection fault, probably for non-canonical address 0xdffffc0000000094: 0000 [#1] PREEMPT SMP KASAN
KASAN: null-ptr-deref in range [0x00000000000004a0-0x00000000000004a7]
CPU: 1 PID: 6561 Comm: syz-executor.2 Not tainted 6.2.0-rc2-syzkaller-00203-g1f5abbd77e2c #0
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.14.0-2 04/01/2014
RIP: 0010:task_pid_nr include/linux/sched.h:1562 [inline]
RIP: 0010:spin_dump kernel/locking/spinlock_debug.c:63 [inline]
RIP: 0010:spin_bug.cold+0x71/0x9e kernel/locking/spinlock_debug.c:77
Code: b1 4c 8a e8 0c 43 00 00 5b 5d 41 5c 41 5d e9 a6 b6 45 00 48 8d bb a0 05 00 00 b8 ff ff 37 00 48 89 fa 48 c1 e0 2a 48 c1 ea 03 <0f> b6 04 02 84 c0 74 04 3c 03 7e 13 44 8b ab a0 05 00 00 48 81 c3
RSP: 0018:ffffc9000cacf8e0 EFLAGS: 00010202
RAX: dffffc0000000000 RBX: ffffffffffffff00 RCX: 0000000000000000
RDX: 0000000000000094 RSI: ffffffff8166721c RDI: 00000000000004a0
RBP: ffffffff8c4146ff R08: 0000000000000035 R09: 0000000000000000
R10: 0000000000000001 R11: 697073203a475542 R12: 00000000ffffffde
R13: ffff888015d3d7c0 R14: ffffc9000cacfcb0 R15: 0000000000000011
FS:  0000000000000000(0000) GS:ffff88802c700000(0063) knlGS:00000000f7f2cb40
CS:  0010 DS: 002b ES: 002b CR0: 0000000080050033
CR2: 00000000edbfec00 CR3: 0000000025099000 CR4: 0000000000150ee0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 debug_spin_lock_before kernel/locking/spinlock_debug.c:85 [inline]
 do_raw_spin_lock+0x219/0x2b0 kernel/locking/spinlock_debug.c:114
 spin_lock include/linux/spinlock.h:350 [inline]
 ilookup5_nowait fs/inode.c:1427 [inline]
 ilookup5 fs/inode.c:1457 [inline]
 iget5_locked+0xa4/0x2c0 fs/inode.c:1238
 ntfs_iget5+0xd2/0x3310 fs/ntfs3/inode.c:511
 ntfs_fill_super+0x30fd/0x3ab0 fs/ntfs3/super.c:1244
 get_tree_bdev+0x444/0x760 fs/super.c:1282
 vfs_get_tree+0x8d/0x2f0 fs/super.c:1489
 do_new_mount fs/namespace.c:3145 [inline]
 path_mount+0x132a/0x1e20 fs/namespace.c:3475
 do_mount fs/namespace.c:3488 [inline]
 __do_sys_mount fs/namespace.c:3697 [inline]
 __se_sys_mount fs/namespace.c:3674 [inline]
 __ia32_sys_mount+0x282/0x300 fs/namespace.c:3674
 do_syscall_32_irqs_on arch/x86/entry/common.c:112 [inline]
 __do_fast_syscall_32+0x65/0xf0 arch/x86/entry/common.c:178
 do_fast_syscall_32+0x33/0x70 arch/x86/entry/common.c:203
 entry_SYSENTER_compat_after_hwframe+0x70/0x82
RIP: 0023:0xf7f31549
Code: 03 74 c0 01 10 05 03 74 b8 01 10 06 03 74 b4 01 10 07 03 74 b0 01 10 08 03 74 d8 01 00 00 00 00 00 51 52 55 89 e5 0f 34 cd 80 <5d> 5a 59 c3 90 90 90 90 8d b4 26 00 00 00 00 8d b4 26 00 00 00 00
RSP: 002b:00000000f7f2c410 EFLAGS: 00000296 ORIG_RAX: 0000000000000015
RAX: ffffffffffffffda RBX: 00000000f7f2c480 RCX: 000000002001f740
RDX: 000000002001f700 RSI: 0000000000008000 RDI: 00000000f7f2c4c0
RBP: 00000000f7f2c4c0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000292 R12: 0000000000000000
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:task_pid_nr include/linux/sched.h:1562 [inline]
RIP: 0010:spin_dump kernel/locking/spinlock_debug.c:63 [inline]
RIP: 0010:spin_bug.cold+0x71/0x9e kernel/locking/spinlock_debug.c:77
Code: b1 4c 8a e8 0c 43 00 00 5b 5d 41 5c 41 5d e9 a6 b6 45 00 48 8d bb a0 05 00 00 b8 ff ff 37 00 48 89 fa 48 c1 e0 2a 48 c1 ea 03 <0f> b6 04 02 84 c0 74 04 3c 03 7e 13 44 8b ab a0 05 00 00 48 81 c3
RSP: 0018:ffffc9000cacf8e0 EFLAGS: 00010202
RAX: dffffc0000000000 RBX: ffffffffffffff00 RCX: 0000000000000000
RDX: 0000000000000094 RSI: ffffffff8166721c RDI: 00000000000004a0
RBP: ffffffff8c4146ff R08: 0000000000000035 R09: 0000000000000000
R10: 0000000000000001 R11: 697073203a475542 R12: 00000000ffffffde
R13: ffff888015d3d7c0 R14: ffffc9000cacfcb0 R15: 0000000000000011
FS:  0000000000000000(0000) GS:ffff88802c700000(0063) knlGS:00000000f7f2cb40
CS:  0010 DS: 002b ES: 002b CR0: 0000000080050033
CR2: 00000000edbfec00 CR3: 0000000025099000 CR4: 0000000000150ee0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
   0:	b1 4c                	mov    $0x4c,%cl
   2:	8a e8                	mov    %al,%ch
   4:	0c 43                	or     $0x43,%al
   6:	00 00                	add    %al,(%rax)
   8:	5b                   	pop    %rbx
   9:	5d                   	pop    %rbp
   a:	41 5c                	pop    %r12
   c:	41 5d                	pop    %r13
   e:	e9 a6 b6 45 00       	jmpq   0x45b6b9
  13:	48 8d bb a0 05 00 00 	lea    0x5a0(%rbx),%rdi
  1a:	b8 ff ff 37 00       	mov    $0x37ffff,%eax
  1f:	48 89 fa             	mov    %rdi,%rdx
  22:	48 c1 e0 2a          	shl    $0x2a,%rax
  26:	48 c1 ea 03          	shr    $0x3,%rdx
* 2a:	0f b6 04 02          	movzbl (%rdx,%rax,1),%eax <-- trapping instruction
  2e:	84 c0                	test   %al,%al
  30:	74 04                	je     0x36
  32:	3c 03                	cmp    $0x3,%al
  34:	7e 13                	jle    0x49
  36:	44 8b ab a0 05 00 00 	mov    0x5a0(%rbx),%r13d
  3d:	48                   	rex.W
  3e:	81                   	.byte 0x81
  3f:	c3                   	retq

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/01/06 07:47 upstream 1f5abbd77e2c 1dac8c7a .config console log report info ci-qemu-upstream-386 BUG: spinlock bad magic in ntfs_iget5
* Struck through repros no longer work on HEAD.