syzbot


general protection fault in prepare_to_wait

Status: upstream: reported C repro on 2019/06/16 06:33
Reported-by: syzbot+f5922b48b193a8e62171@syzkaller.appspotmail.com
First crash: 1986d, last: 736d
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 424d 462d 23/28 fixed on 2023/10/12 12:47
linux-4.19 general protection fault in prepare_to_wait C error 29 715d 1929d 0/1 upstream: reported C repro on 2019/08/12 18:19
upstream general protection fault in prepare_to_wait hams C done error 285 665d 2150d 0/28 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 1120d 1120d 1/2 fixed on 2021/12/01 19:46
Last patch testing requests (2)
Created Duration User Patch Repo Result
2022/11/10 05:30 9m retest repro linux-4.14.y report log
2022/11/10 04:30 9m retest repro linux-4.14.y report log
Fix bisection attempts (7)
Created Duration User Patch Repo Result
2020/07/11 13:40 0m bisect fix linux-4.14.y error job log
2020/05/28 23:25 37m bisect fix linux-4.14.y OK (0) job log log
2020/04/28 22:20 38m bisect fix linux-4.14.y OK (0) job log log
2020/03/29 21:49 30m bisect fix linux-4.14.y OK (0) job log log
2020/02/28 16:34 41m bisect fix linux-4.14.y OK (0) job log log
2020/01/15 22:21 37m bisect fix linux-4.14.y OK (0) job log log
2019/12/16 16:27 36m bisect fix linux-4.14.y OK (0) job log log

Sample crash report:
IPv6: ADDRCONF(NETDEV_CHANGE): veth1_to_batadv: link becomes ready
audit: type=1400 audit(1580315493.325:37): avc:  denied  { write } for  pid=7313 comm="syz-executor857" 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
Modules linked in:
CPU: 0 PID: 7341 Comm: syz-executor857 Not tainted 4.14.169-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
task: ffff8880968226c0 task.stack: ffff888088db8000
RIP: 0010:__lock_acquire+0x1ba/0x4620 kernel/locking/lockdep.c:3365
RSP: 0018:ffff888088dbf9a0 EFLAGS: 00010006
RAX: dffffc0000000000 RBX: 0000000000000000 RCX: 0000000000000000
RDX: 0000000000000003 RSI: 0000000000000000 RDI: 0000000000000001
RBP: ffff888088dbfb48 R08: 0000000000000001 R09: 0000000000000001
R10: 0000000000000000 R11: ffff8880968226c0 R12: 0000000000000018
R13: 0000000000000001 R14: 0000000000000000 R15: 0000000000000000
FS:  00007efe5fa96700(0000) GS:ffff8880aec00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020000002 CR3: 000000009e0b2000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 lock_acquire+0x16f/0x430 kernel/locking/lockdep.c:3994
 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline]
 _raw_spin_lock_irqsave+0x95/0xcd kernel/locking/spinlock.c:160
 prepare_to_wait+0x7c/0x320 kernel/sched/wait.c:234
 nr_accept+0x1fa/0x6d0 net/netrom/af_netrom.c:796
 SYSC_accept4+0x30f/0x640 net/socket.c:1587
 SyS_accept4 net/socket.c:1537 [inline]
 SYSC_accept net/socket.c:1621 [inline]
 SyS_accept+0x26/0x30 net/socket.c:1618
 do_syscall_64+0x1e8/0x640 arch/x86/entry/common.c:292
 entry_SYSCALL_64_after_hwframe+0x42/0xb7
RIP: 0033:0x447fb9
RSP: 002b:00007efe5fa95db8 EFLAGS: 00000246 ORIG_RAX: 000000000000002b
RAX: ffffffffffffffda RBX: 00000000006ddc68 RCX: 0000000000447fb9
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000004
RBP: 00000000006ddc60 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00000000006ddc6c
R13: 00007ffc7a310b5f R14: 00007efe5fa969c0 R15: 000000000000002d
Code: 00 c7 40 18 00 00 00 00 48 8d 65 d8 44 89 e0 5b 41 5c 41 5d 41 5e 41 5f 5d c3 48 b8 00 00 00 00 00 fc ff df 4c 89 e2 48 c1 ea 03 <80> 3c 02 00 0f 85 ac 2e 00 00 49 81 3c 24 60 75 ea 88 0f 84 43 
RIP: __lock_acquire+0x1ba/0x4620 kernel/locking/lockdep.c:3365 RSP: ffff888088dbf9a0
---[ end trace ec4dac0fc204cf5d ]---

Crashes (11):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/01/29 16:34 linux-4.14.y 9fa690a2a016 5ed23f9a .config console log report syz C ci2-linux-4-14
2022/11/16 23:00 linux-4.14.y e911713e40ca 3a127a31 .config console log report syz [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-4-14 general protection fault in prepare_to_wait
2019/08/20 08:02 linux-4.14.y 45f092f9e9cb cfc9868f .config console log report syz ci2-linux-4-14
2022/06/17 08:24 linux-4.14.y 84bae26850e3 cb58b3b2 .config console log report info ci2-linux-4-14 general protection fault in prepare_to_wait
2022/06/17 07:19 linux-4.14.y 84bae26850e3 cb58b3b2 .config console log report info ci2-linux-4-14 general protection fault in prepare_to_wait
2022/06/02 07:56 linux-4.14.y 501eec4f9e13 b4bc6a3d .config console log report info ci2-linux-4-14 general protection fault in prepare_to_wait
2021/02/19 15:20 linux-4.14.y 29c52025152b f689d40a .config console log report info ci2-linux-4-14 general protection fault in prepare_to_wait
2021/02/17 03:02 linux-4.14.y 2c8a3fceddf0 98682e5e .config console log report info ci2-linux-4-14 general protection fault in prepare_to_wait
2020/06/11 13:40 linux-4.14.y b850307b279c 3ab7a05a .config console log report ci2-linux-4-14
2019/08/20 05:55 linux-4.14.y 45f092f9e9cb cfc9868f .config console log report ci2-linux-4-14
2019/06/16 05:32 linux-4.14.y a74d0e937a3a 442206d7 .config console log report ci2-linux-4-14
* Struck through repros no longer work on HEAD.