syzbot


general protection fault in selinux_socket_sendmsg

Status: fixed on 2020/03/27 08:38
Reported-by: syzbot+1603e1069da9a4295749@syzkaller.appspotmail.com
Fix commit: 43cac315bec1 rxrpc: Fix call RCU cleanup using non-bh-safe locks
First crash: 1911d, last: 1730d
Fix bisection: fixed by (bisect log) :
commit 43cac315bec132e962e04c31fe888caac257ec0a
Author: David Howells <dhowells@redhat.com>
Date: Thu Feb 6 13:57:40 2020 +0000

  rxrpc: Fix call RCU cleanup using non-bh-safe locks

  
Similar bugs (3)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream general protection fault in selinux_socket_sendmsg selinux 5 1881d 1918d 0/28 closed as dup on 2019/08/22 13:35
upstream general protection fault in selinux_socket_sendmsg (2) selinux C 183 1351d 1822d 0/28 closed as dup on 2019/11/25 22:04
linux-4.14 general protection fault in selinux_socket_sendmsg C done 3 1337d 1509d 1/1 fixed on 2021/04/25 07:03
Fix bisection attempts (2)
Created Duration User Patch Repo Result
2020/03/27 04:55 3h37m bisect fix linux-4.19.y OK (1) job log
2020/02/26 04:30 25m bisect fix linux-4.19.y OK (0) job log log

Sample crash report:
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: 1 PID: 24 Comm: kworker/1:1 Not tainted 4.19.86-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Workqueue: krxrpcd rxrpc_peer_keepalive_worker
RIP: 0010:selinux_socket_sendmsg+0x22/0x40 security/selinux/hooks.c:4911
Code: c3 e8 f2 11 c1 fe eb e8 55 48 89 e5 53 48 89 fb e8 93 79 8a fe 48 8d 7b 20 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 <80> 3c 02 00 75 11 48 8b 7b 20 be 04 00 00 00 e8 0a fc ff ff 5b 5d
RSP: 0018:ffff8880aa3e79f0 EFLAGS: 00010202
RAX: dffffc0000000000 RBX: 0000000000000000 RCX: ffffffff83215c35
RDX: 0000000000000004 RSI: ffffffff82e0a5dd RDI: 0000000000000020
RBP: ffff8880aa3e79f8 R08: ffff8880aa3ce640 R09: ffff8880aa3cef08
R10: 0000000000000000 R11: 0000000000000000 R12: dffffc0000000000
R13: ffff8880aa3e7b20 R14: ffff8880aa3e7b20 R15: 000000000000001d
FS:  0000000000000000(0000) GS:ffff8880ae900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fd5ae2b2e78 CR3: 00000000a8a36000 CR4: 00000000001406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 security_socket_sendmsg+0x77/0xc0 security/security.c:1417
 sock_sendmsg+0x45/0x130 net/socket.c:629
 kernel_sendmsg+0x44/0x50 net/socket.c:640
 rxrpc_send_keepalive+0x1ff/0x8e0 net/rxrpc/output.c:658
 rxrpc_peer_keepalive_dispatch net/rxrpc/peer_event.c:366 [inline]
 rxrpc_peer_keepalive_worker+0x7be/0xd02 net/rxrpc/peer_event.c:427
 process_one_work+0x989/0x1750 kernel/workqueue.c:2153
 worker_thread+0x98/0xe40 kernel/workqueue.c:2296
 kthread+0x354/0x420 kernel/kthread.c:246
 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:415
Modules linked in:
---[ end trace 29f08899e85a4e8f ]---
RIP: 0010:selinux_socket_sendmsg+0x22/0x40 security/selinux/hooks.c:4911
Code: c3 e8 f2 11 c1 fe eb e8 55 48 89 e5 53 48 89 fb e8 93 79 8a fe 48 8d 7b 20 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 <80> 3c 02 00 75 11 48 8b 7b 20 be 04 00 00 00 e8 0a fc ff ff 5b 5d
RSP: 0018:ffff8880aa3e79f0 EFLAGS: 00010202
RAX: dffffc0000000000 RBX: 0000000000000000 RCX: ffffffff83215c35
RDX: 0000000000000004 RSI: ffffffff82e0a5dd RDI: 0000000000000020
RBP: ffff8880aa3e79f8 R08: ffff8880aa3ce640 R09: ffff8880aa3cef08
R10: 0000000000000000 R11: 0000000000000000 R12: dffffc0000000000
R13: ffff8880aa3e7b20 R14: ffff8880aa3e7b20 R15: 000000000000001d
FS:  0000000000000000(0000) GS:ffff8880ae900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fd5ae291e78 CR3: 00000000913c8000 CR4: 00000000001406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (36):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2019/11/26 14:25 linux-4.19.y 14260788bbb9 598ca6c8 .config console log report syz C ci2-linux-4-19
2020/01/27 04:27 linux-4.19.y d183c8e2647a dd56146d .config console log report ci2-linux-4-19
2020/01/27 04:17 linux-4.19.y d183c8e2647a dd56146d .config console log report ci2-linux-4-19
2020/01/20 03:01 linux-4.19.y dc4ba5be1bab 0342f8c7 .config console log report ci2-linux-4-19
2020/01/19 07:04 linux-4.19.y dc4ba5be1bab bc8bc756 .config console log report ci2-linux-4-19
2020/01/18 22:48 linux-4.19.y dc4ba5be1bab bc8bc756 .config console log report ci2-linux-4-19
2020/01/16 15:58 linux-4.19.y db5b9190ff82 3de7aabb .config console log report ci2-linux-4-19
2020/01/15 21:46 linux-4.19.y db5b9190ff82 f9b69507 .config console log report ci2-linux-4-19
2020/01/15 20:47 linux-4.19.y db5b9190ff82 f9b69507 .config console log report ci2-linux-4-19
2020/01/10 22:30 linux-4.19.y cb1f9a169a0e 532ec44e .config console log report ci2-linux-4-19
2020/01/09 13:56 linux-4.19.y cb1f9a169a0e ddc3e859 .config console log report ci2-linux-4-19
2020/01/01 23:49 linux-4.19.y c7ecf3e3a71c 25a0186e .config console log report ci2-linux-4-19
2019/12/23 21:15 linux-4.19.y 672481c2deff be5c2c81 .config console log report ci2-linux-4-19
2019/12/15 21:32 linux-4.19.y 312017a460d5 eef6e580 .config console log report ci2-linux-4-19
2019/12/06 07:55 linux-4.19.y fb683b5e3f53 98b4ef2d .config console log report ci2-linux-4-19
2019/12/06 07:50 linux-4.19.y fb683b5e3f53 98b4ef2d .config console log report ci2-linux-4-19
2019/12/04 20:29 linux-4.19.y 174651bdf802 b2088328 .config console log report ci2-linux-4-19
2019/11/29 07:48 linux-4.19.y 14260788bbb9 76357d6f .config console log report ci2-linux-4-19
2019/11/25 17:16 linux-4.19.y 14260788bbb9 598ca6c8 .config console log report ci2-linux-4-19
2019/11/23 01:58 linux-4.19.y c63ee2939dc1 598ca6c8 .config console log report ci2-linux-4-19
2019/11/23 01:56 linux-4.19.y c63ee2939dc1 598ca6c8 .config console log report ci2-linux-4-19
2019/11/23 01:20 linux-4.19.y c63ee2939dc1 598ca6c8 .config console log report ci2-linux-4-19
2019/11/09 08:39 linux-4.19.y 5ee93551c703 1e35461e .config console log report ci2-linux-4-19
2019/11/09 08:31 linux-4.19.y 5ee93551c703 1e35461e .config console log report ci2-linux-4-19
2019/11/03 20:10 linux-4.19.y ef244c308885 c9610487 .config console log report ci2-linux-4-19
2019/10/30 13:57 linux-4.19.y ef244c308885 5ea87a66 .config console log report ci2-linux-4-19
2019/10/23 19:05 linux-4.19.y c3038e718a19 b602d64b .config console log report ci2-linux-4-19
2019/10/23 18:55 linux-4.19.y c3038e718a19 b602d64b .config console log report ci2-linux-4-19
2019/09/30 06:57 linux-4.19.y d573e8a79f70 c1ad5441 .config console log report ci2-linux-4-19
2019/09/22 08:48 linux-4.19.y d573e8a79f70 d96e88f3 .config console log report ci2-linux-4-19
2019/09/20 23:48 linux-4.19.y dbc29aff8d04 d96e88f3 .config console log report ci2-linux-4-19
2019/09/20 17:32 linux-4.19.y dbc29aff8d04 d96e88f3 .config console log report ci2-linux-4-19
2019/09/20 17:10 linux-4.19.y dbc29aff8d04 d96e88f3 .config console log report ci2-linux-4-19
2019/09/08 19:21 linux-4.19.y e7d2672c66e4 a60cb4cd .config console log report ci2-linux-4-19
2019/09/06 15:36 linux-4.19.y 0fed55c248d9 acb5b744 .config console log report ci2-linux-4-19
2019/08/29 14:18 linux-4.19.y 97ab07e11fbf cd626f3b .config console log report ci2-linux-4-19
* Struck through repros no longer work on HEAD.