syzbot


general protection fault in kernfs_name_hash (6)

Status: auto-obsoleted due to no activity on 2023/07/19 13:32
Reported-by: syzbot+e00d1302e217068ee641@syzkaller.appspotmail.com
First crash: 787d, last: 613d
Cause bisection: failed (error log, bisect log)
  
Fix bisection: failed (error log, bisect log)
  
Similar bugs (6)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
android-5-10 general protection fault in kernfs_name_hash (3) C done 3 893d 893d 0/2 closed as dup on 2022/06/14 17:09
android-5-10 general protection fault in kernfs_name_hash (4) C done 2 889d 889d 0/2 closed as dup on 2022/07/11 15:27
android-54 general protection fault in kernfs_name_hash C 14 655d 867d 0/2 upstream: reported C repro on 2022/07/10 02:13
android-5-10 general protection fault in kernfs_name_hash C done 2 950d 950d 0/2 closed as invalid on 2022/05/10 19:54
android-5-10 general protection fault in kernfs_name_hash (2) C done 3 912d 912d 0/2 closed as dup on 2022/05/26 23:28
android-5-10 general protection fault in kernfs_name_hash (5) C done 3 805d 832d 0/2 closed as dup on 2022/09/14 21:01
Last patch testing requests (16)
Created Duration User Patch Repo Result
2023/05/30 17:46 21m retest repro android13-5.10-lts OK log
2023/05/30 17:18 21m retest repro android13-5.10-lts OK log
2023/05/30 17:18 27m retest repro android13-5.10-lts OK log
2023/05/30 17:18 17m retest repro android13-5.10-lts OK log
2022/12/05 06:59 17m jun.nie@linaro.org git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master OK log
2022/11/30 04:23 7m jun.nie@linaro.org android12-5.10-lts report log
2022/11/30 01:58 0m jun.nie@linaro.org patch android12-5.10-lts error
2022/11/28 16:02 8m jun.nie@linaro.org https://android.googlesource.com/kernel/common d3c86f460db1e error
2022/11/26 15:34 8m jun.nie@linaro.org git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git 8dc0fcbcfa97 error
2022/11/26 13:11 10m jun.nie@linaro.org git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git 11167454e9cb error
2022/11/26 03:01 6m jun.nie@linaro.org git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git f884bb85b8d8 error
2022/11/25 02:56 15m jun.nie@linaro.org git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git linux-5.10.y OK log
2022/11/15 02:56 7m jun.nie@linaro.org https://android.googlesource.com/kernel/common 2c85ebc57b3e error
2022/11/14 09:17 7m jun.nie@linaro.org https://android.googlesource.com/kernel/common 2c85ebc57b3e error
2022/11/14 06:07 21m jun.nie@linaro.org https://android.googlesource.com/kernel/common 4fe89d07dcc2804c OK log
2022/11/04 03:03 11m jun.nie@linaro.org https://android.googlesource.com/kernel/common 2c85ebc57b3e1817b error

Sample crash report:
RBP: 00007ffedd9d6cf0 R08: 0000000000000001 R09: 0000000000000001
R10: 0000000000000002 R11: 0000000000000246 R12: 0000000000000005
R13: 431bde82d7b634db R14: 0000000000000000 R15: 0000000000000000
---[ end trace 69d8be53a6c447de ]---
general protection fault, probably for non-canonical address 0xdffffc0000000000: 0000 [#1] PREEMPT SMP KASAN
KASAN: null-ptr-deref in range [0x0000000000000000-0x0000000000000007]
CPU: 0 PID: 382 Comm: syz-executor503 Tainted: G        W         5.10.161-syzkaller-00019-g416c4356f372 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023
RIP: 0010:strlen+0x3a/0x80 lib/string.c:568
Code: c0 ff ff ff ff 49 bf 00 00 00 00 00 fc ff df 48 89 fb 66 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 00 49 89 c4 48 89 d8 48 c1 e8 03 <42> 0f b6 04 38 84 c0 75 12 48 ff c3 49 8d 44 24 01 43 80 7c 26 01
RSP: 0018:ffffc9000099fb68 EFLAGS: 00010246
RAX: 0000000000000000 RBX: 0000000000000000 RCX: ffff888103fea780
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: ffffc9000099fb88 R08: ffffffff81d1f63c R09: fffff52000133f75
R10: fffff52000133f75 R11: 1ffff92000133f74 R12: ffffffffffffffff
R13: 0000000000000000 R14: 0000000000000000 R15: dffffc0000000000
FS:  0000555555e17300(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ffedd9d6cb8 CR3: 0000000101bbd000 CR4: 00000000003506b0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 kernfs_name_hash+0x21/0x240 fs/kernfs/dir.c:310
 kernfs_find_ns+0x72/0x280 fs/kernfs/dir.c:849
 kernfs_remove_by_name_ns+0x3a/0x110 fs/kernfs/dir.c:1521
 kernfs_remove_by_name include/linux/kernfs.h:608 [inline]
 sysfs_remove_link+0x50/0x60 fs/sysfs/symlink.c:152
 del_gendisk+0xbe0/0xe20 block/genhd.c:951
 loop_remove+0x46/0xb0 drivers/block/loop.c:2190
 loop_control_ioctl+0x67f/0x740 drivers/block/loop.c:2289
 vfs_ioctl fs/ioctl.c:48 [inline]
 __do_sys_ioctl fs/ioctl.c:753 [inline]
 __se_sys_ioctl+0x115/0x190 fs/ioctl.c:739
 __x64_sys_ioctl+0x7b/0x90 fs/ioctl.c:739
 do_syscall_64+0x34/0x70 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x61/0xc6
RIP: 0033:0x7fe4fd8540f9
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 b1 14 00 00 90 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 c0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffedd9d6cd8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 0000000000000002 RCX: 00007fe4fd8540f9
RDX: 0000000000000000 RSI: 0000000000004c81 RDI: 0000000000000004
RBP: 00007ffedd9d6cf0 R08: 0000000000000001 R09: 0000000000000001
R10: 0000000000000002 R11: 0000000000000246 R12: 0000000000000005
R13: 431bde82d7b634db R14: 0000000000000000 R15: 0000000000000000
Modules linked in:
---[ end trace 69d8be53a6c447df ]---
RIP: 0010:strlen+0x3a/0x80 lib/string.c:568
Code: c0 ff ff ff ff 49 bf 00 00 00 00 00 fc ff df 48 89 fb 66 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 00 49 89 c4 48 89 d8 48 c1 e8 03 <42> 0f b6 04 38 84 c0 75 12 48 ff c3 49 8d 44 24 01 43 80 7c 26 01
RSP: 0018:ffffc9000099fb68 EFLAGS: 00010246
RAX: 0000000000000000 RBX: 0000000000000000 RCX: ffff888103fea780
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: ffffc9000099fb88 R08: ffffffff81d1f63c R09: fffff52000133f75
R10: fffff52000133f75 R11: 1ffff92000133f74 R12: ffffffffffffffff
R13: 0000000000000000 R14: 0000000000000000 R15: dffffc0000000000
FS:  0000555555e17300(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ffedd9d6cb8 CR3: 0000000101bbd000 CR4: 00000000003506b0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess), 5 bytes skipped:
   0:	49 bf 00 00 00 00 00 	movabs $0xdffffc0000000000,%r15
   7:	fc ff df
   a:	48 89 fb             	mov    %rdi,%rbx
   d:	66 66 2e 0f 1f 84 00 	data16 nopw %cs:0x0(%rax,%rax,1)
  14:	00 00 00 00
  18:	0f 1f 00             	nopl   (%rax)
  1b:	49 89 c4             	mov    %rax,%r12
  1e:	48 89 d8             	mov    %rbx,%rax
  21:	48 c1 e8 03          	shr    $0x3,%rax
* 25:	42 0f b6 04 38       	movzbl (%rax,%r15,1),%eax <-- trapping instruction
  2a:	84 c0                	test   %al,%al
  2c:	75 12                	jne    0x40
  2e:	48 ff c3             	inc    %rbx
  31:	49 8d 44 24 01       	lea    0x1(%r12),%rax
  36:	43                   	rex.XB
  37:	80                   	.byte 0x80
  38:	7c 26                	jl     0x60
  3a:	01                   	.byte 0x1

Crashes (22):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/02/05 14:31 android12-5.10-lts 416c4356f372 be607b78 .config strace log report syz C [disk image] [vmlinux] [kernel image] ci2-android-5-10 general protection fault in kernfs_name_hash
2022/10/23 05:21 android12-5.10-lts 69a9a62c66bb c0b80a55 .config strace log report syz C [disk image] [vmlinux] ci2-android-5-10 general protection fault in kernfs_name_hash
2022/10/06 20:36 android12-5.10-lts bc7618b4936f 80b58a42 .config strace log report syz C ci2-android-5-10 general protection fault in kernfs_name_hash
2023/03/21 13:32 android12-5.10-lts 416c4356f372 7939252e .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 general protection fault in kernfs_name_hash
2023/03/14 15:44 android12-5.10-lts 416c4356f372 0d5c4377 .config console log report info ci2-android-5-10 general protection fault in kernfs_name_hash
2023/02/11 11:03 android12-5.10-lts 416c4356f372 93e26d60 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 general protection fault in kernfs_name_hash
2023/02/05 13:28 android12-5.10-lts 416c4356f372 be607b78 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 general protection fault in kernfs_name_hash
2023/02/02 18:57 android12-5.10-lts 416c4356f372 16d19e30 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 general protection fault in kernfs_name_hash
2023/01/06 01:14 android12-5.10-lts 003c389455eb 1dac8c7a .config console log report info ci2-android-5-10 general protection fault in kernfs_name_hash
2023/01/01 03:26 android12-5.10-lts 003c389455eb ab32d508 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 general protection fault in kernfs_name_hash
2022/12/10 14:23 android12-5.10-lts f3226d86f8ce 67be1ae7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 general protection fault in kernfs_name_hash
2022/12/07 13:33 android12-5.10-lts 37d3df60cb6a d88f3abb .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 general protection fault in kernfs_name_hash
2022/12/02 14:33 android12-5.10-lts 673a7341bdab e080de16 .config console log report info ci2-android-5-10 general protection fault in kernfs_name_hash
2022/11/17 05:21 android12-5.10-lts 6b31c548a114 3a127a31 .config console log report info ci2-android-5-10 general protection fault in kernfs_name_hash
2022/11/16 12:11 android12-5.10-lts 0118fb827bc7 3a127a31 .config console log report info ci2-android-5-10 general protection fault in kernfs_name_hash
2022/11/14 06:48 android12-5.10-lts 0118fb827bc7 7ba4d859 .config console log report info ci2-android-5-10 general protection fault in kernfs_name_hash
2022/11/14 06:31 android12-5.10-lts 0118fb827bc7 7ba4d859 .config console log report info ci2-android-5-10 general protection fault in kernfs_name_hash
2022/10/22 11:00 android12-5.10-lts 69a9a62c66bb c0b80a55 .config console log report info [disk image] [vmlinux] ci2-android-5-10 general protection fault in kernfs_name_hash
2022/10/09 07:18 android12-5.10-lts bc7618b4936f aea5da89 .config console log report info [disk image] [vmlinux] ci2-android-5-10 general protection fault in kernfs_name_hash
2022/10/06 20:16 android12-5.10-lts bc7618b4936f 80b58a42 .config console log report info ci2-android-5-10 general protection fault in kernfs_name_hash
2022/10/02 00:45 android12-5.10-lts 391716695e71 feb56351 .config console log report info [disk image] [vmlinux] ci2-android-5-10 general protection fault in kernfs_name_hash
2022/09/28 18:25 android12-5.10-lts ef2aee5cece7 75c78242 .config console log report info ci2-android-5-10 general protection fault in kernfs_name_hash
* Struck through repros no longer work on HEAD.