syzbot


general protection fault in smack_socket_sendmsg

Status: closed as dup on 2019/08/31 08:31
Subsystems: lsm
[Documentation on labels]
Reported-by: syzbot+5fd781d646d4fcbdfeb0@syzkaller.appspotmail.com
First crash: 1912d, last: 1883d
Duplicate of
Title Repro Cause bisect Fix bisect Count Last Reported
KASAN: use-after-free Read in rxrpc_send_keepalive afs net C error 694 1859d 1932d
Discussions (2)
Title Replies (including bot) Last reply
Re: general protection fault in smack_socket_sendmsg 3 (3) 2019/09/04 21:07
general protection fault in smack_socket_sendmsg 0 (1) 2019/08/30 19:40
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream general protection fault in smack_socket_sendmsg (2) lsm C done 1 1823d 1820d 0/28 closed as dup on 2019/11/29 09:40

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: 0 PID: 2853 Comm: kworker/0:2 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:smack_socket_sendmsg+0x5b/0x480 security/smack/smack_lsm.c:3675
Code: e8 5a b5 6c fe 4c 89 e8 48 c1 e8 03 42 80 3c 38 00 74 08 4c 89 ef e8 74 e7 a5 fe 4d 8b 65 00 48 83 c3 18 48 89 d8 48 c1 e8 03 <42> 80 3c 38 00 74 08 48 89 df e8 56 e7 a5 fe 4c 8b 33 49 8d 9e 08
RSP: 0018:ffff8880a04af9c8 EFLAGS: 00010206
RAX: 0000000000000003 RBX: 0000000000000018 RCX: ffff8880a04cc300
RDX: 0000000000000000 RSI: ffff8880a04afb18 RDI: 0000000000000000
RBP: ffff8880a04afa80 R08: ffffffff8340d780 R09: ffff8880a04afb86
R10: ffffed1014095f72 R11: 0000000000000000 R12: ffff888099000594
R13: ffff8880a04afb18 R14: dffffc0000000000 R15: dffffc0000000000
FS:  0000000000000000(0000) GS:ffff8880aea00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007faf6e6a8000 CR3: 000000008ee84000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 security_socket_sendmsg+0x6c/0xd0 security/security.c:1979
 sock_sendmsg net/socket.c:654 [inline]
 kernel_sendmsg+0x77/0x140 net/socket.c:677
 rxrpc_send_keepalive+0x254/0x3c0 net/rxrpc/output.c:655
 rxrpc_peer_keepalive_dispatch net/rxrpc/peer_event.c:369 [inline]
 rxrpc_peer_keepalive_worker+0x76e/0xb40 net/rxrpc/peer_event.c:430
 process_one_work+0x7ef/0x10e0 kernel/workqueue.c:2269
 worker_thread+0xc01/0x1630 kernel/workqueue.c:2415
 kthread+0x332/0x350 kernel/kthread.c:255
 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:352
Modules linked in:
---[ end trace 4a9bb9667776dc07 ]---
RIP: 0010:smack_socket_sendmsg+0x5b/0x480 security/smack/smack_lsm.c:3675
Code: e8 5a b5 6c fe 4c 89 e8 48 c1 e8 03 42 80 3c 38 00 74 08 4c 89 ef e8 74 e7 a5 fe 4d 8b 65 00 48 83 c3 18 48 89 d8 48 c1 e8 03 <42> 80 3c 38 00 74 08 48 89 df e8 56 e7 a5 fe 4c 8b 33 49 8d 9e 08
RSP: 0018:ffff8880a04af9c8 EFLAGS: 00010206
RAX: 0000000000000003 RBX: 0000000000000018 RCX: ffff8880a04cc300
RDX: 0000000000000000 RSI: ffff8880a04afb18 RDI: 0000000000000000
RBP: ffff8880a04afa80 R08: ffffffff8340d780 R09: ffff8880a04afb86
R10: ffffed1014095f72 R11: 0000000000000000 R12: ffff888099000594
R13: ffff8880a04afb18 R14: dffffc0000000000 R15: dffffc0000000000
FS:  0000000000000000(0000) GS:ffff8880aea00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000000260efd0 CR3: 000000008d70e000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (4):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2019/09/26 22:31 upstream cbafe18c7102 2f1548bc .config console log report ci-upstream-kasan-gce-smack-root
2019/09/06 14:26 upstream 3b47fd5ca9ea 040fda58 .config console log report ci-upstream-kasan-gce-smack-root
2019/09/06 13:38 upstream 3b47fd5ca9ea 040fda58 .config console log report ci-upstream-kasan-gce-smack-root
2019/08/29 14:13 upstream 6525771f58cb fd37b39e .config console log report ci-upstream-kasan-gce-smack-root
* Struck through repros no longer work on HEAD.