syzbot


general protection fault in guard_bio_eod

Status: auto-obsoleted due to no activity on 2023/04/02 10:20
Subsystems: block
[Documentation on labels]
Reported-by: syzbot+9ca54f60dbb6dda1a51e@syzkaller.appspotmail.com
First crash: 411d, last: 411d

Sample crash report:
general protection fault, probably for non-canonical address 0xdffffc0000000001: 0000 [#1] PREEMPT SMP KASAN
KASAN: null-ptr-deref in range [0x0000000000000008-0x000000000000000f]
CPU: 0 PID: 4405 Comm: jbd2/sda1-8 Not tainted 6.2.0-rc6-next-20230201-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023
RIP: 0010:bdev_nr_sectors include/linux/blkdev.h:785 [inline]
RIP: 0010:guard_bio_eod+0x52/0x800 block/bio.c:684
Code: 48 89 fa 48 c1 ea 03 80 3c 02 00 0f 85 da 06 00 00 48 b8 00 00 00 00 00 fc ff df 49 8b 5f 08 48 8d 7b 08 48 89 fa 48 c1 ea 03 <80> 3c 02 00 0f 85 ad 06 00 00 48 8b 5b 08 31 ff 48 89 de e8 16 40
RSP: 0018:ffffc90005ecf9f0 EFLAGS: 00010202
RAX: dffffc0000000000 RBX: 0000000000000000 RCX: 0000000000000000
RDX: 0000000000000001 RSI: ffffffff83f986da RDI: 0000000000000008
RBP: ffff888077fae3c0 R08: 0000000000000006 R09: 0000000000001000
R10: 0000000000001000 R11: 0000000000094001 R12: 0000000000000000
R13: ffff88803b90a668 R14: ffff88803b90a678 R15: ffff888077fae3c0
FS:  0000000000000000(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020404030 CR3: 0000000032b59000 CR4: 00000000003526f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 submit_bh_wbc+0x406/0x650 fs/buffer.c:2743
 jbd2_journal_commit_transaction+0x2109/0x6a70 fs/jbd2/commit.c:734
 kjournald2+0x1d4/0x890 fs/jbd2/journal.c:209
 kthread+0x2e8/0x3a0 kernel/kthread.c:376
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:bdev_nr_sectors include/linux/blkdev.h:785 [inline]
RIP: 0010:guard_bio_eod+0x52/0x800 block/bio.c:684
Code: 48 89 fa 48 c1 ea 03 80 3c 02 00 0f 85 da 06 00 00 48 b8 00 00 00 00 00 fc ff df 49 8b 5f 08 48 8d 7b 08 48 89 fa 48 c1 ea 03 <80> 3c 02 00 0f 85 ad 06 00 00 48 8b 5b 08 31 ff 48 89 de e8 16 40
RSP: 0018:ffffc90005ecf9f0 EFLAGS: 00010202
RAX: dffffc0000000000 RBX: 0000000000000000 RCX: 0000000000000000
RDX: 0000000000000001 RSI: ffffffff83f986da RDI: 0000000000000008
RBP: ffff888077fae3c0 R08: 0000000000000006 R09: 0000000000001000
R10: 0000000000001000 R11: 0000000000094001 R12: 0000000000000000
R13: ffff88803b90a668 R14: ffff88803b90a678 R15: ffff888077fae3c0
FS:  0000000000000000(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000555556ee9848 CR3: 0000000077f2c000 CR4: 00000000003526f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
   0:	48 89 fa             	mov    %rdi,%rdx
   3:	48 c1 ea 03          	shr    $0x3,%rdx
   7:	80 3c 02 00          	cmpb   $0x0,(%rdx,%rax,1)
   b:	0f 85 da 06 00 00    	jne    0x6eb
  11:	48 b8 00 00 00 00 00 	movabs $0xdffffc0000000000,%rax
  18:	fc ff df
  1b:	49 8b 5f 08          	mov    0x8(%r15),%rbx
  1f:	48 8d 7b 08          	lea    0x8(%rbx),%rdi
  23:	48 89 fa             	mov    %rdi,%rdx
  26:	48 c1 ea 03          	shr    $0x3,%rdx
* 2a:	80 3c 02 00          	cmpb   $0x0,(%rdx,%rax,1) <-- trapping instruction
  2e:	0f 85 ad 06 00 00    	jne    0x6e1
  34:	48 8b 5b 08          	mov    0x8(%rbx),%rbx
  38:	31 ff                	xor    %edi,%edi
  3a:	48 89 de             	mov    %rbx,%rsi
  3d:	e8                   	.byte 0xe8
  3e:	16                   	(bad)
  3f:	40                   	rex

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/02/01 10:20 linux-next 66eee64b2354 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root general protection fault in guard_bio_eod
* Struck through repros no longer work on HEAD.