syzbot


general protection fault in iommu_deinit_device

Status: auto-obsoleted due to no activity on 2023/09/24 09:59
Subsystems: fs
[Documentation on labels]
Reported-by: syzbot+a8bd07230391c0c577c2@syzkaller.appspotmail.com
First crash: 305d, last: 276d
Cause bisection: failed (error log, bisect log)
  
Discussions (2)
Title Replies (including bot) Last reply
[syzbot] Monthly fs report (Aug 2023) 0 (1) 2023/08/08 12:55
[syzbot] [fs?] general protection fault in iommu_deinit_device 0 (1) 2023/07/21 04:53
Last patch testing requests (2)
Created Duration User Patch Repo Result
2023/09/03 14:28 26m retest repro linux-next OK log
2023/07/22 02:04 48m hdanton@sina.com patch https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git 2205be537aeb OK log

Sample crash report:
iommufd_mock iommufd_mock0: Adding to iommu group 0
iommufd_mock iommufd_mock0: Removing from iommu group 0
general protection fault, probably for non-canonical address 0xdffffc0000000006: 0000 [#1] PREEMPT SMP KASAN
KASAN: null-ptr-deref in range [0x0000000000000030-0x0000000000000037]
CPU: 0 PID: 5031 Comm: syz-executor409 Not tainted 6.5.0-rc1-next-20230717-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/03/2023
RIP: 0010:sysfs_remove_link_from_group+0x2b/0x80 fs/sysfs/group.c:413
Code: 0f 1e fa 41 54 49 89 d4 55 48 89 f5 53 48 89 fb e8 ba 13 73 ff 48 8d 7b 30 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 <80> 3c 02 00 75 39 48 8b 7b 30 31 d2 48 89 ee e8 81 f2 fe ff 48 85
RSP: 0018:ffffc90003adfc18 EFLAGS: 00010206
RAX: dffffc0000000000 RBX: 0000000000000000 RCX: 0000000000000000
RDX: 0000000000000006 RSI: ffffffff8213b9d6 RDI: 0000000000000030
RBP: ffffffff8adb0760 R08: 0000000000000001 R09: ffffed10280ca11b
R10: ffff8881406508df R11: ffffffff8a345578 R12: ffff888022507500
R13: ffffffff8d519e20 R14: ffff888015ab8450 R15: ffff888015ab8448
FS:  00005555570f1380(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020000000 CR3: 00000000226b9000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 iommu_deinit_device+0x111/0x580 drivers/iommu/iommu.c:401
 __iommu_group_remove_device+0x296/0x390 drivers/iommu/iommu.c:573
 iommu_group_remove_device+0x7e/0xa0 drivers/iommu/iommu.c:1170
 mock_dev_destroy drivers/iommu/iommufd/selftest.c:396 [inline]
 iommufd_test_mock_domain drivers/iommu/iommufd/selftest.c:452 [inline]
 iommufd_test+0x1b92/0x2c70 drivers/iommu/iommufd/selftest.c:950
 iommufd_fops_ioctl+0x347/0x4d0 drivers/iommu/iommufd/main.c:337
 vfs_ioctl fs/ioctl.c:51 [inline]
 __do_sys_ioctl fs/ioctl.c:870 [inline]
 __se_sys_ioctl fs/ioctl.c:856 [inline]
 __x64_sys_ioctl+0x18f/0x210 fs/ioctl.c:856
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x38/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f732a69e2e9
Code: 48 83 c4 28 c3 e8 37 17 00 00 0f 1f 80 00 00 00 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 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:00007ffe820edd58 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007ffe820edf28 RCX: 00007f732a69e2e9
RDX: 0000000020000100 RSI: 0000000000003ba0 RDI: 0000000000000003
RBP: 00007f732a711610 R08: 0000000000000000 R09: 00007ffe820edf28
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000001
R13: 00007ffe820edf18 R14: 0000000000000001 R15: 0000000000000001
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:sysfs_remove_link_from_group+0x2b/0x80 fs/sysfs/group.c:413
Code: 0f 1e fa 41 54 49 89 d4 55 48 89 f5 53 48 89 fb e8 ba 13 73 ff 48 8d 7b 30 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 <80> 3c 02 00 75 39 48 8b 7b 30 31 d2 48 89 ee e8 81 f2 fe ff 48 85
RSP: 0018:ffffc90003adfc18 EFLAGS: 00010206
RAX: dffffc0000000000 RBX: 0000000000000000 RCX: 0000000000000000
RDX: 0000000000000006 RSI: ffffffff8213b9d6 RDI: 0000000000000030
RBP: ffffffff8adb0760 R08: 0000000000000001 R09: ffffed10280ca11b
R10: ffff8881406508df R11: ffffffff8a345578 R12: ffff888022507500
R13: ffffffff8d519e20 R14: ffff888015ab8450 R15: ffff888015ab8448
FS:  00005555570f1380(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000055d13f5f7530 CR3: 00000000226b9000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
   0:	0f 1e fa             	nop    %edx
   3:	41 54                	push   %r12
   5:	49 89 d4             	mov    %rdx,%r12
   8:	55                   	push   %rbp
   9:	48 89 f5             	mov    %rsi,%rbp
   c:	53                   	push   %rbx
   d:	48 89 fb             	mov    %rdi,%rbx
  10:	e8 ba 13 73 ff       	call   0xff7313cf
  15:	48 8d 7b 30          	lea    0x30(%rbx),%rdi
  19:	48 b8 00 00 00 00 00 	movabs $0xdffffc0000000000,%rax
  20:	fc ff df
  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:	75 39                	jne    0x69
  30:	48 8b 7b 30          	mov    0x30(%rbx),%rdi
  34:	31 d2                	xor    %edx,%edx
  36:	48 89 ee             	mov    %rbp,%rsi
  39:	e8 81 f2 fe ff       	call   0xfffef2bf
  3e:	48                   	rex.W
  3f:	85                   	.byte 0x85

Crashes (3384):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/07/17 15:01 linux-next 2205be537aeb e5f10889 .config strace log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root general protection fault in iommu_deinit_device
2023/08/15 09:58 linux-next 21ef7b1e17d0 39990d51 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root general protection fault in iommu_deinit_device
2023/08/15 07:40 linux-next 21ef7b1e17d0 39990d51 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root general protection fault in iommu_deinit_device
2023/08/15 07:29 linux-next 21ef7b1e17d0 39990d51 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root general protection fault in iommu_deinit_device
2023/08/15 05:52 linux-next 21ef7b1e17d0 39990d51 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root general protection fault in iommu_deinit_device
2023/08/15 04:46 linux-next 21ef7b1e17d0 39990d51 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root general protection fault in iommu_deinit_device
2023/08/15 03:48 linux-next 21ef7b1e17d0 39990d51 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root general protection fault in iommu_deinit_device
2023/08/15 02:47 linux-next 21ef7b1e17d0 39990d51 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root general protection fault in iommu_deinit_device
2023/08/15 01:41 linux-next 21ef7b1e17d0 39990d51 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root general protection fault in iommu_deinit_device
2023/08/15 01:15 linux-next 21ef7b1e17d0 39990d51 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root general protection fault in iommu_deinit_device
2023/08/15 00:11 linux-next 21ef7b1e17d0 39990d51 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root general protection fault in iommu_deinit_device
2023/08/14 23:14 linux-next 21ef7b1e17d0 39990d51 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root general protection fault in iommu_deinit_device
2023/08/14 22:36 linux-next 21ef7b1e17d0 39990d51 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root general protection fault in iommu_deinit_device
2023/08/14 21:49 linux-next 21ef7b1e17d0 39990d51 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root general protection fault in iommu_deinit_device
2023/08/14 20:39 linux-next 21ef7b1e17d0 39990d51 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root general protection fault in iommu_deinit_device
2023/08/14 19:42 linux-next 21ef7b1e17d0 39990d51 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root general protection fault in iommu_deinit_device
2023/08/14 19:29 linux-next 21ef7b1e17d0 39990d51 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root general protection fault in iommu_deinit_device
2023/08/14 18:23 linux-next 21ef7b1e17d0 39990d51 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root general protection fault in iommu_deinit_device
2023/08/14 17:46 linux-next 21ef7b1e17d0 39990d51 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root general protection fault in iommu_deinit_device
2023/08/14 16:37 linux-next 21ef7b1e17d0 39990d51 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root general protection fault in iommu_deinit_device
2023/08/14 15:38 linux-next 21ef7b1e17d0 39990d51 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root general protection fault in iommu_deinit_device
2023/08/14 15:29 linux-next 21ef7b1e17d0 39990d51 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root general protection fault in iommu_deinit_device
2023/08/14 13:51 linux-next 21ef7b1e17d0 39990d51 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root general protection fault in iommu_deinit_device
2023/08/14 12:21 linux-next 21ef7b1e17d0 39990d51 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root general protection fault in iommu_deinit_device
2023/08/14 11:09 linux-next 21ef7b1e17d0 39990d51 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root general protection fault in iommu_deinit_device
2023/08/14 09:18 linux-next 21ef7b1e17d0 39990d51 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root general protection fault in iommu_deinit_device
2023/08/14 06:42 linux-next 21ef7b1e17d0 39990d51 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root general protection fault in iommu_deinit_device
2023/08/14 06:31 linux-next 21ef7b1e17d0 39990d51 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root general protection fault in iommu_deinit_device
2023/08/14 05:02 linux-next 21ef7b1e17d0 39990d51 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root general protection fault in iommu_deinit_device
2023/08/14 03:58 linux-next 21ef7b1e17d0 39990d51 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root general protection fault in iommu_deinit_device
2023/08/14 03:14 linux-next 21ef7b1e17d0 39990d51 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root general protection fault in iommu_deinit_device
2023/08/14 01:55 linux-next 21ef7b1e17d0 39990d51 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root general protection fault in iommu_deinit_device
2023/08/13 23:24 linux-next 21ef7b1e17d0 39990d51 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root general protection fault in iommu_deinit_device
2023/08/13 22:04 linux-next 21ef7b1e17d0 39990d51 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root general protection fault in iommu_deinit_device
2023/08/13 21:43 linux-next 21ef7b1e17d0 39990d51 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root general protection fault in iommu_deinit_device
2023/08/13 20:39 linux-next 21ef7b1e17d0 39990d51 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root general protection fault in iommu_deinit_device
2023/08/13 19:52 linux-next 21ef7b1e17d0 39990d51 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root general protection fault in iommu_deinit_device
2023/08/13 16:30 linux-next 21ef7b1e17d0 39990d51 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root general protection fault in iommu_deinit_device
2023/08/13 15:49 linux-next 21ef7b1e17d0 39990d51 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root general protection fault in iommu_deinit_device
2023/08/13 14:38 linux-next 21ef7b1e17d0 39990d51 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root general protection fault in iommu_deinit_device
2023/08/13 13:33 linux-next 21ef7b1e17d0 39990d51 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root general protection fault in iommu_deinit_device
2023/08/13 11:52 linux-next 21ef7b1e17d0 39990d51 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root general protection fault in iommu_deinit_device
2023/08/13 11:51 linux-next 21ef7b1e17d0 39990d51 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root general protection fault in iommu_deinit_device
2023/08/13 10:49 linux-next 21ef7b1e17d0 39990d51 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root general protection fault in iommu_deinit_device
* Struck through repros no longer work on HEAD.