syzbot


general protection fault in ext4_release_dquot

Status: auto-obsoleted due to no activity on 2023/08/22 08:55
Reported-by: syzbot+8e6163e8f0194dcec319@syzkaller.appspotmail.com
First crash: 284d, last: 284d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream general protection fault in ext4_release_dquot ext4 1 299d 295d 0/26 auto-obsoleted due to no activity on 2023/08/07 07:51

Sample crash report:
general protection fault, probably for non-canonical address 0xdffffc0000000005: 0000 [#1] PREEMPT SMP KASAN
KASAN: null-ptr-deref in range [0x0000000000000028-0x000000000000002f]
CPU: 1 PID: 540 Comm: syz-executor.0 Tainted: G        W         5.15.106-syzkaller-00249-g19c0ed55a470 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/28/2023
RIP: 0010:ext4_release_dquot+0x214/0x3c0 fs/ext4/super.c:6177
Code: 9c d8 80 01 00 00 48 89 d8 48 c1 e8 03 42 80 3c 30 00 74 08 48 89 df e8 da f6 ba ff 4c 8b 3b 49 83 c7 28 4c 89 f8 48 c1 e8 03 <42> 80 3c 30 00 74 08 4c 89 ff e8 bd f6 ba ff bb c8 03 00 00 49 03
RSP: 0018:ffffc900037ff950 EFLAGS: 00010206
RAX: 0000000000000005 RBX: ffff888119d61180 RCX: ffff88811d6d13c0
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000003
RBP: ffffc900037ff990 R08: ffffffff81f63bb5 R09: ffffed102ebad9a3
R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000009
R13: 0000000000000000 R14: dffffc0000000000 R15: 0000000000000028
FS:  00005555574f4400(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00005555574fd728 CR3: 000000016719b000 CR4: 00000000003506a0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 00000000000087d9 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 dqput+0x1d3/0x830 fs/quota/dquot.c:812
 dqput_all fs/quota/dquot.c:396 [inline]
 __dquot_drop fs/quota/dquot.c:1590 [inline]
 dquot_drop+0x25d/0x2e0 fs/quota/dquot.c:1615
 ext4_clear_inode+0x5c/0x180 fs/ext4/super.c:1403
 ext4_evict_inode+0x486/0x14e0 fs/ext4/inode.c:350
 evict+0x2a3/0x630 fs/inode.c:587
 dispose_list fs/inode.c:620 [inline]
 evict_inodes+0x5db/0x660 fs/inode.c:670
 generic_shutdown_super+0x9c/0x2e0 fs/super.c:454
 kill_block_super+0x7e/0xe0 fs/super.c:1405
 deactivate_locked_super+0xad/0x110 fs/super.c:335
 deactivate_super+0xbe/0xf0 fs/super.c:366
 cleanup_mnt+0x45c/0x510 fs/namespace.c:1143
 __cleanup_mnt+0x19/0x20 fs/namespace.c:1150
 task_work_run+0x129/0x190 kernel/task_work.c:164
 tracehook_notify_resume include/linux/tracehook.h:189 [inline]
 exit_to_user_mode_loop+0xc4/0xe0 kernel/entry/common.c:175
 exit_to_user_mode_prepare+0x5a/0xa0 kernel/entry/common.c:208
 __syscall_exit_to_user_mode_work kernel/entry/common.c:290 [inline]
 syscall_exit_to_user_mode+0x26/0x160 kernel/entry/common.c:301
 do_syscall_64+0x49/0xb0 arch/x86/entry/common.c:86
 entry_SYSCALL_64_after_hwframe+0x61/0xcb
RIP: 0033:0x7f361d73b5d7
Code: ff ff ff f7 d8 64 89 01 48 83 c8 ff c3 66 0f 1f 44 00 00 31 f6 e9 09 00 00 00 66 0f 1f 84 00 00 00 00 00 b8 a6 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffd20deb188 EFLAGS: 00000246 ORIG_RAX: 00000000000000a6
RAX: 0000000000000000 RBX: 0000000000000000 RCX: 00007f361d73b5d7
RDX: 00007ffd20deb25c RSI: 000000000000000a RDI: 00007ffd20deb250
RBP: 00007ffd20deb250 R08: 00000000ffffffff R09: 00007ffd20deb020
R10: 00005555574f5773 R11: 0000000000000246 R12: 00007f361d794cdc
R13: 00007ffd20dec310 R14: 00005555574f56f0 R15: 00007ffd20dec350
 </TASK>
Modules linked in:
---[ end trace 2215a1eb63b84964 ]---
RIP: 0010:ext4_release_dquot+0x214/0x3c0 fs/ext4/super.c:6177
Code: 9c d8 80 01 00 00 48 89 d8 48 c1 e8 03 42 80 3c 30 00 74 08 48 89 df e8 da f6 ba ff 4c 8b 3b 49 83 c7 28 4c 89 f8 48 c1 e8 03 <42> 80 3c 30 00 74 08 4c 89 ff e8 bd f6 ba ff bb c8 03 00 00 49 03
RSP: 0018:ffffc900037ff950 EFLAGS: 00010206
RAX: 0000000000000005 RBX: ffff888119d61180 RCX: ffff88811d6d13c0
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000003
RBP: ffffc900037ff990 R08: ffffffff81f63bb5 R09: ffffed102ebad9a3
R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000009
R13: 0000000000000000 R14: dffffc0000000000 R15: 0000000000000028
FS:  00005555574f4400(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b2d12c000 CR3: 000000016719b000 CR4: 00000000003506a0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 00000000000087d9 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
   0:	9c                   	pushfq
   1:	d8 80 01 00 00 48    	fadds  0x48000001(%rax)
   7:	89 d8                	mov    %ebx,%eax
   9:	48 c1 e8 03          	shr    $0x3,%rax
   d:	42 80 3c 30 00       	cmpb   $0x0,(%rax,%r14,1)
  12:	74 08                	je     0x1c
  14:	48 89 df             	mov    %rbx,%rdi
  17:	e8 da f6 ba ff       	callq  0xffbaf6f6
  1c:	4c 8b 3b             	mov    (%rbx),%r15
  1f:	49 83 c7 28          	add    $0x28,%r15
  23:	4c 89 f8             	mov    %r15,%rax
  26:	48 c1 e8 03          	shr    $0x3,%rax
* 2a:	42 80 3c 30 00       	cmpb   $0x0,(%rax,%r14,1) <-- trapping instruction
  2f:	74 08                	je     0x39
  31:	4c 89 ff             	mov    %r15,%rdi
  34:	e8 bd f6 ba ff       	callq  0xffbaf6f6
  39:	bb c8 03 00 00       	mov    $0x3c8,%ebx
  3e:	49                   	rex.WB
  3f:	03                   	.byte 0x3

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/05/24 08:46 android13-5.15-lts 19c0ed55a470 4bce1a3e .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 general protection fault in ext4_release_dquot
* Struck through repros no longer work on HEAD.