syzbot


general protection fault in create_empty_buffers (4)

Status: auto-obsoleted due to no activity on 2023/07/26 06:29
Subsystems: nilfs
[Documentation on labels]
Reported-by: syzbot+3e02ebe38db6514ab209@syzkaller.appspotmail.com
First crash: 435d, last: 398d
Similar bugs (8)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream general protection fault in create_empty_buffers (3) fs 1 1430d 1429d 0/26 auto-closed as invalid on 2020/10/27 18:42
linux-6.1 general protection fault in create_empty_buffers origin:upstream missing-backport C unreliable 1 295d 341d 0/3 upstream: reported C repro on 2023/06/23 12:51
linux-5.15 general protection fault in create_empty_buffers origin:lts-only syz done 1 346d 346d 0/3 upstream: reported syz repro on 2023/06/17 23:50
android-54 general protection fault in create_empty_buffers (3) 1 539d 539d 0/2 auto-obsoleted due to no activity on 2023/04/06 14:08
upstream general protection fault in create_empty_buffers 3820 2466d 2402d 0/26 closed as invalid on 2017/10/31 10:04
upstream general protection fault in create_empty_buffers (2) fs 1 2088d 2088d 0/26 auto-closed as invalid on 2019/03/08 22:46
android-54 general protection fault in create_empty_buffers 1 1322d 1322d 0/2 auto-closed as invalid on 2021/02/12 03:39
android-54 general protection fault in create_empty_buffers (2) 1 1116d 1116d 0/2 auto-closed as invalid on 2021/09/06 17:43

Sample crash report:
general protection fault, probably for non-canonical address 0xdffffc000000003d: 0000 [#1] PREEMPT SMP KASAN
KASAN: null-ptr-deref in range [0x00000000000001e8-0x00000000000001ef]
CPU: 0 PID: 14743 Comm: segctord Not tainted 6.3.0-syzkaller-07919-g6e98b09da931 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/14/2023
RIP: 0010:__lock_acquire+0xdce/0x5df0 kernel/locking/lockdep.c:4942
Code: 00 00 3b 05 14 e6 56 0f 0f 87 42 0a 00 00 41 be 01 00 00 00 e9 83 00 00 00 48 b8 00 00 00 00 00 fc ff df 48 89 da 48 c1 ea 03 <80> 3c 02 00 0f 85 19 32 00 00 48 81 3b e0 b6 12 90 0f 84 06 f3 ff
RSP: 0018:ffffc90005a075f8 EFLAGS: 00010012
RAX: dffffc0000000000 RBX: 00000000000001e8 RCX: 0000000000000000
RDX: 000000000000003d RSI: 0000000000000000 RDI: 00000000000001e8
RBP: 0000000000000000 R08: 0000000000000001 R09: 0000000000000001
R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000
R13: ffff88801f400000 R14: 0000000000000000 R15: 0000000000000000
FS:  0000000000000000(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b2c747000 CR3: 0000000078719000 CR4: 0000000000350ef0
Call Trace:
 <TASK>
 lock_acquire kernel/locking/lockdep.c:5691 [inline]
 lock_acquire+0x1b1/0x520 kernel/locking/lockdep.c:5656
 __raw_spin_lock include/linux/spinlock_api_smp.h:133 [inline]
 _raw_spin_lock+0x2e/0x40 kernel/locking/spinlock.c:154
 spin_lock include/linux/spinlock.h:350 [inline]
 create_empty_buffers+0xc0/0xf30 fs/buffer.c:1594
 nilfs_lookup_dirty_data_buffers+0x580/0x6f0 fs/nilfs2/segment.c:730
 nilfs_segctor_scan_file+0x1b1/0x6f0 fs/nilfs2/segment.c:1075
 nilfs_segctor_collect_blocks fs/nilfs2/segment.c:1197 [inline]
 nilfs_segctor_collect fs/nilfs2/segment.c:1524 [inline]
 nilfs_segctor_do_construct+0x2747/0x71a0 fs/nilfs2/segment.c:2067
 nilfs_segctor_construct+0x8e3/0xb30 fs/nilfs2/segment.c:2401
 nilfs_segctor_thread_construct fs/nilfs2/segment.c:2509 [inline]
 nilfs_segctor_thread+0x3c7/0xf30 fs/nilfs2/segment.c:2592
 kthread+0x33e/0x440 kernel/kthread.c:379
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:__lock_acquire+0xdce/0x5df0 kernel/locking/lockdep.c:4942
Code: 00 00 3b 05 14 e6 56 0f 0f 87 42 0a 00 00 41 be 01 00 00 00 e9 83 00 00 00 48 b8 00 00 00 00 00 fc ff df 48 89 da 48 c1 ea 03 <80> 3c 02 00 0f 85 19 32 00 00 48 81 3b e0 b6 12 90 0f 84 06 f3 ff
RSP: 0018:ffffc90005a075f8 EFLAGS: 00010012
RAX: dffffc0000000000 RBX: 00000000000001e8 RCX: 0000000000000000
RDX: 000000000000003d RSI: 0000000000000000 RDI: 00000000000001e8
RBP: 0000000000000000 R08: 0000000000000001 R09: 0000000000000001
R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000
R13: ffff88801f400000 R14: 0000000000000000 R15: 0000000000000000
FS:  0000000000000000(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b2c747000 CR3: 0000000078719000 CR4: 0000000000350ef0
----------------
Code disassembly (best guess):
   0:	00 00                	add    %al,(%rax)
   2:	3b 05 14 e6 56 0f    	cmp    0xf56e614(%rip),%eax        # 0xf56e61c
   8:	0f 87 42 0a 00 00    	ja     0xa50
   e:	41 be 01 00 00 00    	mov    $0x1,%r14d
  14:	e9 83 00 00 00       	jmpq   0x9c
  19:	48 b8 00 00 00 00 00 	movabs $0xdffffc0000000000,%rax
  20:	fc ff df
  23:	48 89 da             	mov    %rbx,%rdx
  26:	48 c1 ea 03          	shr    $0x3,%rdx
* 2a:	80 3c 02 00          	cmpb   $0x0,(%rdx,%rax,1) <-- trapping instruction
  2e:	0f 85 19 32 00 00    	jne    0x324d
  34:	48 81 3b e0 b6 12 90 	cmpq   $0xffffffff9012b6e0,(%rbx)
  3b:	0f                   	.byte 0xf
  3c:	84 06                	test   %al,(%rsi)
  3e:	f3                   	repz
  3f:	ff                   	.byte 0xff

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/04/27 06:28 upstream 6e98b09da931 19a3dabe .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root general protection fault in create_empty_buffers
2023/03/21 01:38 upstream 7d31677bb7b1 7939252e .config console log report info ci-qemu-upstream-386 general protection fault in create_empty_buffers
* Struck through repros no longer work on HEAD.