syzbot


general protection fault in sysfs_do_create_link_sd

Status: upstream: reported C repro on 2019/07/01 00:48
Reported-by: syzbot+40fcbdf1b54a91ee4004@syzkaller.appspotmail.com
First crash: 2006d, last: 683d
Fix bisection attempts (16)
Created Duration User Patch Repo Result
2021/12/11 16:38 27m bisect fix linux-4.14.y OK (0) job log log
2021/11/11 15:17 28m bisect fix linux-4.14.y OK (0) job log log
2021/10/12 14:49 27m bisect fix linux-4.14.y OK (0) job log log
2021/09/12 08:26 29m bisect fix linux-4.14.y OK (0) job log log
2021/08/13 07:57 28m bisect fix linux-4.14.y OK (0) job log log
2021/07/14 07:32 22m bisect fix linux-4.14.y OK (0) job log log
2021/06/14 06:03 26m bisect fix linux-4.14.y OK (0) job log log
2021/03/08 21:08 23m bisect fix linux-4.14.y OK (0) job log log
2020/11/16 20:05 23m bisect fix linux-4.14.y OK (0) job log log
2020/08/11 03:31 25m bisect fix linux-4.14.y OK (0) job log log
2020/06/17 16:55 25m bisect fix linux-4.14.y OK (0) job log log
2020/04/13 01:43 23m bisect fix linux-4.14.y OK (0) job log log
2020/03/14 01:14 29m bisect fix linux-4.14.y OK (0) job log log
2020/02/13 00:47 26m bisect fix linux-4.14.y OK (0) job log log
2020/01/14 00:12 25m bisect fix linux-4.14.y OK (0) job log log
2019/12/14 23:46 26m bisect fix linux-4.14.y OK (0) job log log

Sample crash report:
RBP: 00007ffdb7d08260 R08: 0000000000000002 R09: 0000000000000001
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000004
R13: 431bde82d7b634db R14: 0000000000000000 R15: 0000000000000000
kasan: CONFIG_KASAN_INLINE enabled
kasan: GPF could be caused by NULL-ptr deref or user memory access
general protection fault: 0000 [#1] PREEMPT SMP KASAN
Modules linked in:
CPU: 1 PID: 7980 Comm: syz-executor421 Not tainted 4.14.304-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023
task: ffff8880b32940c0 task.stack: ffff888098320000
RIP: 0010:sysfs_do_create_link_sd+0x56/0x120 fs/sysfs/symlink.c:35
RSP: 0018:ffff888098327b48 EFLAGS: 00010202
RAX: dffffc0000000000 RBX: 0000000000000010 RCX: 0000000000007f68
RDX: 0000000000000008 RSI: 0000000000000001 RDI: 0000000000000040
RBP: ffffffff87cbd760 R08: ffffffff8b9e4640 R09: 00000000000400ca
R10: ffff8880b3294970 R11: ffff8880b32940c0 R12: ffff8880af3c81c0
R13: ffffffff87cbd760 R14: 0000000000000001 R15: ffff888095a64b5c
FS:  0000555555cc7300(0000) GS:ffff8880ba500000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fcec3fc8144 CR3: 00000000a04bc000 CR4: 00000000003406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 sysfs_do_create_link fs/sysfs/symlink.c:80 [inline]
 sysfs_create_link+0x5f/0xc0 fs/sysfs/symlink.c:92
 device_add_disk+0x9f8/0xdc0 block/genhd.c:691
 add_disk include/linux/genhd.h:396 [inline]
 loop_add+0x615/0x830 drivers/block/loop.c:1909
 loop_control_ioctl+0x11a/0x3f0 drivers/block/loop.c:2006
 vfs_ioctl fs/ioctl.c:46 [inline]
 file_ioctl fs/ioctl.c:500 [inline]
 do_vfs_ioctl+0x75a/0xff0 fs/ioctl.c:684
 SYSC_ioctl fs/ioctl.c:701 [inline]
 SyS_ioctl+0x7f/0xb0 fs/ioctl.c:692
 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292
 entry_SYSCALL_64_after_hwframe+0x5e/0xd3
RIP: 0033:0x7fcec3f70089
RSP: 002b:00007ffdb7d08248 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 0000000000000002 RCX: 00007fcec3f70089
RDX: 0000000000000000 RSI: 0000000000004c80 RDI: 0000000000000003
RBP: 00007ffdb7d08260 R08: 0000000000000002 R09: 0000000000000001
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000004
R13: 431bde82d7b634db R14: 0000000000000000 R15: 0000000000000000
Code: 84 a1 00 00 00 e8 db 49 b1 ff 48 c7 c7 00 d9 04 89 e8 1f e3 80 05 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 0f 85 a7 00 00 00 4c 8b 6b 30 4d 85 ed 74 4f e8 a2 
RIP: sysfs_do_create_link_sd+0x56/0x120 fs/sysfs/symlink.c:35 RSP: ffff888098327b48
---[ end trace a50a3f480294fbe7 ]---
----------------
Code disassembly (best guess), 1 bytes skipped:
   0:	a1 00 00 00 e8 db 49 	movabs 0xffb149dbe8000000,%eax
   7:	b1 ff
   9:	48 c7 c7 00 d9 04 89 	mov    $0xffffffff8904d900,%rdi
  10:	e8 1f e3 80 05       	callq  0x580e334
  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:	0f 85 a7 00 00 00    	jne    0xdb
  34:	4c 8b 6b 30          	mov    0x30(%rbx),%r13
  38:	4d 85 ed             	test   %r13,%r13
  3b:	74 4f                	je     0x8c
  3d:	e8                   	.byte 0xe8
  3e:	a2                   	.byte 0xa2

Crashes (91):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/02/05 16:35 linux-4.14.y 3949d1610004 be607b78 .config console log report syz C [disk image] [vmlinux] [kernel image] ci2-linux-4-14 general protection fault in sysfs_do_create_link_sd
2023/02/04 03:47 linux-4.14.y 3949d1610004 1b2f701a .config console log report syz C [disk image] [vmlinux] [kernel image] ci2-linux-4-14 general protection fault in sysfs_do_create_link_sd
2022/10/23 23:49 linux-4.14.y 9d5c0b3a8e1a 23bf86af .config console log report syz C [disk image] [vmlinux] ci2-linux-4-14 general protection fault in sysfs_do_create_link_sd
2022/10/09 04:15 linux-4.14.y 9d5c0b3a8e1a aea5da89 .config console log report syz C [disk image] [vmlinux] ci2-linux-4-14 general protection fault in sysfs_do_create_link_sd
2022/10/02 15:37 linux-4.14.y 9d5c0b3a8e1a feb56351 .config console log report syz C [disk image] [vmlinux] ci2-linux-4-14 general protection fault in sysfs_do_create_link_sd
2022/08/16 17:40 linux-4.14.y b641242202ed 7a7cb304 .config console log report syz C ci2-linux-4-14 general protection fault in sysfs_do_create_link_sd
2022/07/11 19:38 linux-4.14.y 1048779a1d7d f3f217ff .config console log report syz C ci2-linux-4-14 general protection fault in sysfs_do_create_link_sd
2022/06/18 14:52 linux-4.14.y 84bae26850e3 8f633d84 .config console log report syz C ci2-linux-4-14 general protection fault in sysfs_do_create_link_sd
2022/06/14 10:18 linux-4.14.y b8f3be299d51 0f087040 .config console log report syz C ci2-linux-4-14 general protection fault in sysfs_do_create_link_sd
2022/06/07 08:02 linux-4.14.y b8f3be299d51 c8857892 .config console log report syz C ci2-linux-4-14 general protection fault in sysfs_do_create_link_sd
2022/05/28 04:58 linux-4.14.y 501eec4f9e13 a46af346 .config console log report syz C ci2-linux-4-14 general protection fault in sysfs_do_create_link_sd
2022/05/22 01:31 linux-4.14.y dffb5c6ff09c 7268fa62 .config console log report syz C ci2-linux-4-14 general protection fault in sysfs_do_create_link_sd
2022/04/18 02:27 linux-4.14.y 74766a973637 8bcc32a6 .config console log report syz C ci2-linux-4-14 general protection fault in sysfs_do_create_link_sd
2019/08/23 23:13 linux-4.14.y 45f092f9e9cb 78ded196 .config console log report syz C ci2-linux-4-14
2019/08/22 18:17 linux-4.14.y 45f092f9e9cb c6c81a0b .config console log report syz ci2-linux-4-14
2019/07/01 00:54 linux-4.14.y f4cc0ed9b2c7 699d6448 .config console log report syz ci2-linux-4-14
2023/02/12 23:30 linux-4.14.y a8ad60f2af58 93e26d60 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 general protection fault in sysfs_do_create_link_sd
2023/01/13 05:29 linux-4.14.y c4215ee4771b 96166539 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 general protection fault in sysfs_do_create_link_sd
2023/01/06 09:01 linux-4.14.y c4215ee4771b 1dac8c7a .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 general protection fault in sysfs_do_create_link_sd
2023/01/02 04:13 linux-4.14.y c4215ee4771b ab32d508 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 general protection fault in sysfs_do_create_link_sd
2022/11/21 05:21 linux-4.14.y e911713e40ca 5bb70014 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 general protection fault in sysfs_do_create_link_sd
2022/11/12 07:02 linux-4.14.y e911713e40ca f42ee5d8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 general protection fault in sysfs_do_create_link_sd
2022/11/07 03:46 linux-4.14.y a901bb6c7db7 6d752409 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 general protection fault in sysfs_do_create_link_sd
2022/11/05 18:27 linux-4.14.y a901bb6c7db7 6d752409 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 general protection fault in sysfs_do_create_link_sd
2022/09/14 07:16 linux-4.14.y 65640c873dcf b884348d .config console log report info [disk image] [vmlinux] ci2-linux-4-14 general protection fault in sysfs_do_create_link_sd
2022/08/13 20:25 linux-4.14.y b641242202ed 8dfcaa3d .config console log report info ci2-linux-4-14 general protection fault in sysfs_do_create_link_sd
2022/08/13 11:12 linux-4.14.y b641242202ed 8dfcaa3d .config console log report info ci2-linux-4-14 general protection fault in sysfs_do_create_link_sd
2022/07/28 15:26 linux-4.14.y 9c3bf9cf362f fb95c74d .config console log report info ci2-linux-4-14 general protection fault in sysfs_do_create_link_sd
2022/07/24 21:20 linux-4.14.y 9c3bf9cf362f 22343af4 .config console log report info ci2-linux-4-14 general protection fault in sysfs_do_create_link_sd
2022/07/23 23:51 linux-4.14.y 9c3bf9cf362f 22343af4 .config console log report info ci2-linux-4-14 general protection fault in sysfs_do_create_link_sd
2022/07/21 00:51 linux-4.14.y 424a46ea058e 88cb1383 .config console log report info ci2-linux-4-14 general protection fault in sysfs_do_create_link_sd
2022/07/18 01:07 linux-4.14.y 424a46ea058e 95cb00d1 .config console log report info ci2-linux-4-14 general protection fault in sysfs_do_create_link_sd
2022/07/14 17:10 linux-4.14.y 424a46ea058e 5d921b08 .config console log report info ci2-linux-4-14 general protection fault in sysfs_do_create_link_sd
2022/05/30 11:20 linux-4.14.y 501eec4f9e13 a46af346 .config console log report info ci2-linux-4-14 general protection fault in sysfs_do_create_link_sd
2022/05/14 23:51 linux-4.14.y 569d1abf9402 744a39e2 .config console log report info ci2-linux-4-14 general protection fault in sysfs_do_create_link_sd
2022/05/11 12:32 linux-4.14.y e3a56aaade89 8d7b3b67 .config console log report info ci2-linux-4-14 general protection fault in sysfs_do_create_link_sd
2022/04/30 17:26 linux-4.14.y e3a56aaade89 2df221f6 .config console log report info ci2-linux-4-14 general protection fault in sysfs_do_create_link_sd
2022/04/04 20:03 linux-4.14.y 74766a973637 5915c2cb .config console log report info ci2-linux-4-14 general protection fault in sysfs_do_create_link_sd
2022/03/31 22:48 linux-4.14.y af1af6ebca0e c4c32d8c .config console log report info ci2-linux-4-14 general protection fault in sysfs_do_create_link_sd
2022/03/20 22:22 linux-4.14.y eb045674aab3 e2d91b1d .config console log report info ci2-linux-4-14 general protection fault in sysfs_do_create_link_sd
2022/03/20 15:04 linux-4.14.y eb045674aab3 e2d91b1d .config console log report info ci2-linux-4-14 general protection fault in sysfs_do_create_link_sd
2022/03/20 03:25 linux-4.14.y eb045674aab3 e2d91b1d .config console log report info ci2-linux-4-14 general protection fault in sysfs_do_create_link_sd
2022/02/25 09:15 linux-4.14.y fa33f9094f36 7c337266 .config console log report info ci2-linux-4-14 general protection fault in sysfs_do_create_link_sd
2022/02/21 04:47 linux-4.14.y a35d65bedfbc 3cd800e4 .config console log report info ci2-linux-4-14 general protection fault in sysfs_do_create_link_sd
2022/02/02 05:30 linux-4.14.y b86ee2b7ae42 4ebb2798 .config console log report info ci2-linux-4-14 general protection fault in sysfs_do_create_link_sd
2022/01/17 00:22 linux-4.14.y 4ba8e26127c3 723cfaf0 .config console log report info ci2-linux-4-14 general protection fault in sysfs_do_create_link_sd
2021/12/19 03:45 linux-4.14.y 9dfbac0e6b86 44068e19 .config console log report info ci2-linux-4-14 general protection fault in sysfs_do_create_link_sd
2021/05/15 06:02 linux-4.14.y 7d7d1c0ab3eb 8bdd5343 .config console log report info ci2-linux-4-14 general protection fault in sysfs_do_create_link_sd
2021/05/09 14:48 linux-4.14.y 7d7d1c0ab3eb bc5434be .config console log report info ci2-linux-4-14 general protection fault in sysfs_do_create_link_sd
2021/04/26 14:30 linux-4.14.y cf256fbcbe34 e60b7df1 .config console log report info ci2-linux-4-14 general protection fault in sysfs_do_create_link_sd
2021/04/22 06:42 linux-4.14.y cf256fbcbe34 2bc8999a .config console log report info ci2-linux-4-14 general protection fault in sysfs_do_create_link_sd
2021/04/17 13:36 linux-4.14.y cf256fbcbe34 7e2b734b .config console log report info ci2-linux-4-14 general protection fault in sysfs_do_create_link_sd
2021/04/11 07:28 linux-4.14.y 958e517f4e16 6a81331a .config console log report info ci2-linux-4-14 general protection fault in sysfs_do_create_link_sd
2021/03/31 15:29 linux-4.14.y bd634aa64163 6a81331a .config console log report info ci2-linux-4-14 general protection fault in sysfs_do_create_link_sd
2021/03/21 13:32 linux-4.14.y cb83ddcd5332 17810eae .config console log report info ci2-linux-4-14 general protection fault in sysfs_do_create_link_sd
2021/02/06 21:07 linux-4.14.y 2c8a3fceddf0 0655e081 .config console log report info ci2-linux-4-14 general protection fault in sysfs_do_create_link_sd
2021/01/27 04:37 linux-4.14.y 2d2791fce891 55a7d4df .config console log report info ci2-linux-4-14 general protection fault in sysfs_do_create_link_sd
2021/01/14 08:17 linux-4.14.y f79dc86058bc 269d24e8 .config console log report info ci2-linux-4-14
2019/06/30 23:48 linux-4.14.y f4cc0ed9b2c7 699d6448 .config console log report ci2-linux-4-14
* Struck through repros no longer work on HEAD.