syzbot


general protection fault in selinux_socket_sendmsg

Status: closed as dup on 2019/08/22 13:35
Reported-by: syzbot+a0a59a0561e8c95b9db0@syzkaller.appspotmail.com
First crash: 1048d, last: 1009d
Duplicate of (1):
Title Repro Cause bisect Fix bisect Count Last Reported
KASAN: use-after-free Read in rxrpc_send_keepalive C error 694 986d 1058d
similar bugs (3):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.19 general protection fault in selinux_socket_sendmsg C done 36 858d 1038d 1/1 fixed on 2020/03/27 08:38
upstream general protection fault in selinux_socket_sendmsg (2) C 183 479d 950d 0/22 closed as dup on 2019/11/25 22:04
linux-4.14 general protection fault in selinux_socket_sendmsg C done 3 465d 637d 1/1 fixed on 2021/04/25 07:03

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: 5460 Comm: kworker/1:4 Not tainted 5.3.0+ #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:4828
Code: c3 e8 f2 17 ae fe eb e8 55 48 89 e5 53 48 89 fb e8 03 c2 72 fe 48 8d 7b 18 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 18 be 04 00 00 00 e8 fa fb ff ff 5b 5d
RSP: 0018:ffff88806109f9f0 EFLAGS: 00010206
RAX: dffffc0000000000 RBX: 0000000000000000 RCX: ffffffff833ef3d5
RDX: 0000000000000003 RSI: ffffffff83003f3d RDI: 0000000000000018
RBP: ffff88806109f9f8 R08: ffff8880808b6440 R09: fffffbfff14ed94c
R10: fffffbfff14ed94b R11: ffffffff8a76ca5f R12: dffffc0000000000
R13: ffff88806109fb20 R14: ffff88806109fb20 R15: 000000000000001d
FS:  0000000000000000(0000) GS:ffff8880ae900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fb087cd0028 CR3: 00000000a4803000 CR4: 00000000001426e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000600
Call Trace:
 security_socket_sendmsg+0x77/0xc0 security/security.c:1979
 sock_sendmsg+0x45/0x130 net/socket.c:654
 kernel_sendmsg+0x44/0x50 net/socket.c:677
 rxrpc_send_keepalive+0x1ff/0x940 net/rxrpc/output.c:655
 rxrpc_peer_keepalive_dispatch net/rxrpc/peer_event.c:369 [inline]
 rxrpc_peer_keepalive_worker+0x7be/0xd02 net/rxrpc/peer_event.c:430
 process_one_work+0x9af/0x1740 kernel/workqueue.c:2269
 worker_thread+0x98/0xe40 kernel/workqueue.c:2415
 kthread+0x361/0x430 kernel/kthread.c:255
 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:352
Modules linked in:
---[ end trace 1a9d8653f2575b01 ]---
RIP: 0010:selinux_socket_sendmsg+0x22/0x40 security/selinux/hooks.c:4828
Code: c3 e8 f2 17 ae fe eb e8 55 48 89 e5 53 48 89 fb e8 03 c2 72 fe 48 8d 7b 18 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 18 be 04 00 00 00 e8 fa fb ff ff 5b 5d
RSP: 0018:ffff88806109f9f0 EFLAGS: 00010206
RAX: dffffc0000000000 RBX: 0000000000000000 RCX: ffffffff833ef3d5
RDX: 0000000000000003 RSI: ffffffff83003f3d RDI: 0000000000000018
RBP: ffff88806109f9f8 R08: ffff8880808b6440 R09: fffffbfff14ed94c
R10: fffffbfff14ed94b R11: ffffffff8a76ca5f R12: dffffc0000000000
R13: ffff88806109fb20 R14: ffff88806109fb20 R15: 000000000000001d
FS:  0000000000000000(0000) GS:ffff8880ae900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00000000009e7770 CR3: 000000009ae1e000 CR4: 00000000001426e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000600

Crashes (5):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-upstream-kasan-gce-selinux-root 2019/09/28 03:42 upstream 8f744bdee4fe d8074e0b .config log report
ci-upstream-kasan-gce-selinux-root 2019/09/15 18:34 upstream 1609d7604b84 32d59357 .config log report
ci-upstream-kasan-gce-selinux-root 2019/08/20 11:42 upstream 5f97cbe22b76 cfc9868f .config log report
ci-upstream-kasan-gce-selinux-root 2019/08/19 22:50 upstream 06821504fd47 ee12860b .config log report
ci-upstream-kasan-gce-selinux-root 2019/08/19 22:34 upstream 06821504fd47 ee12860b .config log report