syzbot


general protection fault in prepare_to_wait

Status: upstream: reported C repro on 2019/08/12 18:19
Reported-by: syzbot+b60fa6da4bf62bbf6faf@syzkaller.appspotmail.com
First crash: 1717d, last: 503d
Fix bisection: failed (error log, bisect log)
  
Similar bugs (4)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream general protection fault in prepare_to_wait (2) hams syz inconclusive 4 212d 250d 23/26 fixed on 2023/10/12 12:47
linux-4.14 general protection fault in prepare_to_wait C error 11 524d 1774d 0/1 upstream: reported C repro on 2019/06/16 06:33
upstream general protection fault in prepare_to_wait hams C done error 285 453d 1938d 0/26 auto-obsoleted due to no activity on 2023/05/27 16:21
android-5-10 KASAN: null-ptr-deref Write in prepare_to_wait C error 2 908d 908d 1/2 fixed on 2021/12/01 19:46
Fix bisection attempts (9)
Created Duration User Patch Repo Result
2020/10/13 05:03 4m bisect fix linux-4.19.y error job log (0)
2020/09/13 04:17 36m bisect fix linux-4.19.y job log (0) log
2020/08/14 03:36 40m bisect fix linux-4.19.y job log (0) log
2020/07/15 02:55 40m bisect fix linux-4.19.y job log (0) log
2020/06/15 02:18 31m bisect fix linux-4.19.y job log (0) log
2020/05/15 21:44 41m bisect fix linux-4.19.y job log (0) log
2020/04/15 21:03 40m bisect fix linux-4.19.y job log (0) log
2020/03/16 20:19 41m bisect fix linux-4.19.y job log (0) log
2020/01/09 16:38 39m bisect fix linux-4.19.y job log (0) log

Sample crash report:
IPv6: ADDRCONF(NETDEV_CHANGE): veth1_to_batadv: link becomes ready
audit: type=1400 audit(1580111968.912:37): avc:  denied  { write } for  pid=8160 comm="syz-executor059" scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=system_u:object_r:unlabeled_t:s0 tclass=socket permissive=1
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
CPU: 0 PID: 8175 Comm: syz-executor059 Not tainted 4.19.98-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:__lock_acquire+0x1ca/0x49c0 kernel/locking/lockdep.c:3290
Code: 28 00 00 00 0f 85 37 2e 00 00 48 8d 65 d8 5b 41 5c 41 5d 41 5e 41 5f 5d c3 48 b8 00 00 00 00 00 fc ff df 4c 89 fa 48 c1 ea 03 <80> 3c 02 00 0f 85 c1 32 00 00 49 81 3f 60 f5 0c 8a 0f 84 55 ff ff
RSP: 0018:ffff88807f8cf970 EFLAGS: 00010006
RAX: dffffc0000000000 RBX: 0000000000000000 RCX: 0000000000000000
RDX: 0000000000000003 RSI: 0000000000000000 RDI: 0000000000000001
RBP: ffff88807f8cfb40 R08: 0000000000000001 R09: 0000000000000000
R10: 0000000000000001 R11: 0000000000000001 R12: 0000000000000000
R13: 0000000000000001 R14: ffff888092560440 R15: 0000000000000018
FS:  00007f5085014700(0000) GS:ffff8880ae800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f5084f8fe78 CR3: 000000008ce63000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 lock_acquire+0x16f/0x3f0 kernel/locking/lockdep.c:3903
 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline]
 _raw_spin_lock_irqsave+0x95/0xcd kernel/locking/spinlock.c:152
 prepare_to_wait+0x7c/0x300 kernel/sched/wait.c:230
 nr_accept+0x239/0x760 net/netrom/af_netrom.c:796
 __sys_accept4+0x34e/0x6a0 net/socket.c:1589
 __do_sys_accept net/socket.c:1630 [inline]
 __se_sys_accept net/socket.c:1627 [inline]
 __x64_sys_accept+0x75/0xb0 net/socket.c:1627
 do_syscall_64+0xfd/0x620 arch/x86/entry/common.c:293
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x447fd9
Code: e8 ec 14 03 00 48 83 c4 18 c3 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 0f 83 8b 0e fc ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007f5085013db8 EFLAGS: 00000246 ORIG_RAX: 000000000000002b
RAX: ffffffffffffffda RBX: 00000000006ddc68 RCX: 0000000000447fd9
RDX: 0000000020000100 RSI: 0000000000000000 RDI: 0000000000000004
RBP: 00000000006ddc60 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00000000006ddc6c
R13: 00007ffecfebe35f R14: 00007f50850149c0 R15: 000000000000002d
Modules linked in:
---[ end trace 08c8e785a9b30788 ]---
RIP: 0010:__lock_acquire+0x1ca/0x49c0 kernel/locking/lockdep.c:3290
Code: 28 00 00 00 0f 85 37 2e 00 00 48 8d 65 d8 5b 41 5c 41 5d 41 5e 41 5f 5d c3 48 b8 00 00 00 00 00 fc ff df 4c 89 fa 48 c1 ea 03 <80> 3c 02 00 0f 85 c1 32 00 00 49 81 3f 60 f5 0c 8a 0f 84 55 ff ff
RSP: 0018:ffff88807f8cf970 EFLAGS: 00010006
RAX: dffffc0000000000 RBX: 0000000000000000 RCX: 0000000000000000
RDX: 0000000000000003 RSI: 0000000000000000 RDI: 0000000000000001
RBP: ffff88807f8cfb40 R08: 0000000000000001 R09: 0000000000000000
R10: 0000000000000001 R11: 0000000000000001 R12: 0000000000000000
R13: 0000000000000001 R14: ffff888092560440 R15: 0000000000000018
FS:  00007f5085014700(0000) GS:ffff8880ae800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f5084f8fe78 CR3: 000000008ce63000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (29):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/01/27 08:02 linux-4.19.y d183c8e2647a dd56146d .config console log report syz C ci2-linux-4-19
2022/11/16 22:38 linux-4.19.y 3f8a27f9e27b 3a127a31 .config console log report syz [disk image] [vmlinux] [mounted in repro] ci2-linux-4-19 general protection fault in prepare_to_wait
2019/12/05 08:55 linux-4.19.y 174651bdf802 b2088328 .config console log report syz ci2-linux-4-19
2022/12/08 13:18 linux-4.19.y 3f8a27f9e27b d88f3abb .config console log report info [disk image] [vmlinux] ci2-linux-4-19 general protection fault in prepare_to_wait
2022/07/05 20:57 linux-4.19.y 3f8a27f9e27b bff65f44 .config console log report info ci2-linux-4-19 general protection fault in prepare_to_wait
2022/03/29 06:35 linux-4.19.y 3f8a27f9e27b 6bdac766 .config console log report info ci2-linux-4-19 general protection fault in prepare_to_wait
2022/02/25 10:06 linux-4.19.y 3f8a27f9e27b 7c337266 .config console log report info ci2-linux-4-19 general protection fault in prepare_to_wait
2022/01/29 17:07 linux-4.19.y 3f8a27f9e27b 495e00c5 .config console log report info ci2-linux-4-19 general protection fault in prepare_to_wait
2022/01/07 05:47 linux-4.19.y 3f8a27f9e27b 6acc789a .config console log report info ci2-linux-4-19 general protection fault in prepare_to_wait
2021/11/27 12:42 linux-4.19.y 3f8a27f9e27b 63eeac02 .config console log report info ci2-linux-4-19 general protection fault in prepare_to_wait
2021/11/23 06:04 linux-4.19.y 3f8a27f9e27b 545ab074 .config console log report info ci2-linux-4-19 general protection fault in prepare_to_wait
2021/09/21 22:41 linux-4.19.y b172b44fcb17 169724fe .config console log report info ci2-linux-4-19 general protection fault in prepare_to_wait
2021/06/11 18:32 linux-4.19.y 9a2dc0e6c531 1ba81399 .config console log report info ci2-linux-4-19 general protection fault in prepare_to_wait
2021/06/09 19:17 linux-4.19.y 1722257b8ece 84fe5d96 .config console log report info ci2-linux-4-19 general protection fault in prepare_to_wait
2021/02/23 20:47 linux-4.19.y 2d19be4653f5 fcc6d71b .config console log report info ci2-linux-4-19 general protection fault in prepare_to_wait
2021/02/21 18:34 linux-4.19.y 255b58a2b3af a659b3f1 .config console log report info ci2-linux-4-19 general protection fault in prepare_to_wait
2021/02/19 17:25 linux-4.19.y 255b58a2b3af f689d40a .config console log report info ci2-linux-4-19 general protection fault in prepare_to_wait
2021/02/17 20:08 linux-4.19.y 811218eceeaa 14052202 .config console log report info ci2-linux-4-19 general protection fault in prepare_to_wait
2021/02/17 20:04 linux-4.19.y 811218eceeaa 14052202 .config console log report info ci2-linux-4-19 general protection fault in prepare_to_wait
2021/02/17 14:35 linux-4.19.y 811218eceeaa 052f8d9f .config console log report info ci2-linux-4-19 general protection fault in prepare_to_wait
2021/02/15 23:39 linux-4.19.y 811218eceeaa 98682e5e .config console log report info ci2-linux-4-19 general protection fault in prepare_to_wait
2021/02/12 01:39 linux-4.19.y 811218eceeaa a5f86b15 .config console log report info ci2-linux-4-19 general protection fault in prepare_to_wait
2020/11/08 10:18 linux-4.19.y b94de4d19498 cba33199 .config console log report info ci2-linux-4-19
2020/02/15 19:22 linux-4.19.y 9b15f7fae677 5d7b90f1 .config console log report ci2-linux-4-19
2020/01/27 07:14 linux-4.19.y d183c8e2647a dd56146d .config console log report ci2-linux-4-19
2019/12/10 16:38 linux-4.19.y fb683b5e3f53 4b83c8fb .config console log report ci2-linux-4-19
2019/12/05 08:15 linux-4.19.y 174651bdf802 b2088328 .config console log report ci2-linux-4-19
2019/11/11 04:25 linux-4.19.y 5ee93551c703 dc438b91 .config console log report ci2-linux-4-19
2019/08/12 17:18 linux-4.19.y 893af1c79e42 8620c2c2 .config console log report ci2-linux-4-19
* Struck through repros no longer work on HEAD.