syzbot


kernel BUG in rxrpc_put_call

Status: fixed on 2023/06/08 14:41
Subsystems: afs net
[Documentation on labels]
Reported-by: syzbot+4bb6356bb29d6299360e@syzkaller.appspotmail.com
Fix commit: 01644a1f98ff rxrpc: Fix wrong error return in rxrpc_connect_call()
First crash: 694d, last: 682d
Cause bisection: introduced by (bisect log) :
commit a275da62e8c111b897b9cb73eb91df2f4e475ca5
Author: David Howells <dhowells@redhat.com>
Date: Mon Oct 10 07:45:20 2022 +0000

  rxrpc: Create a per-local endpoint receive queue and I/O thread

Crash: WARNING in cleanup_net (log)
Repro: C syz .config
  
Discussions (2)
Title Replies (including bot) Last reply
[PATCH net] rxrpc: Fix wrong error return in rxrpc_connect_call() 3 (3) 2023/01/13 19:40
[syzbot] kernel BUG in rxrpc_put_call 2 (6) 2023/01/11 16:50
Last patch testing requests (1)
Created Duration User Patch Repo Result
2023/01/11 09:42 22m dhowells@redhat.com patch https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net.git master OK log

Sample crash report:
rxrpc: Assertion failed - 1(0x1) == 11(0xb) is false
------------[ cut here ]------------
kernel BUG at net/rxrpc/call_object.c:645!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 5073 Comm: syz-executor233 Not tainted 6.2.0-rc2-syzkaller-00227-g60ea6f00c57d #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022
RIP: 0010:rxrpc_put_call.cold+0x3c/0x3e net/rxrpc/call_object.c:645
Code: 0b e8 82 51 7e f7 89 de 41 b9 0b 00 00 00 41 b8 0b 00 00 00 48 c7 c1 20 45 76 8b 48 89 f2 48 c7 c7 60 45 76 8b e8 35 06 bd ff <0f> 0b e8 57 51 7e f7 48 c7 c7 80 4f 76 8b e8 22 06 bd ff 0f 0b e8
RSP: 0018:ffffc90003c4f9e8 EFLAGS: 00010282
RAX: 0000000000000034 RBX: 0000000000000001 RCX: 0000000000000000
RDX: ffff8880209657c0 RSI: ffffffff8166721c RDI: fffff52000789f2f
RBP: ffff8880760576c0 R08: 0000000000000034 R09: 0000000000000000
R10: 0000000080000000 R11: 0000000000000000 R12: 0000000000000012
R13: 0000000000000026 R14: ffff888076057a10 R15: ffff888027b18000
FS:  0000000000000000(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f2cf9db1840 CR3: 000000002b803000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 rxrpc_release_calls_on_socket+0x217/0x2f0 net/rxrpc/call_object.c:624
 rxrpc_release_sock net/rxrpc/af_rxrpc.c:886 [inline]
 rxrpc_release+0x1ca/0x560 net/rxrpc/af_rxrpc.c:917
 __sock_release+0xcd/0x280 net/socket.c:650
 sock_close+0x1c/0x20 net/socket.c:1365
 __fput+0x27c/0xa90 fs/file_table.c:320
 task_work_run+0x16f/0x270 kernel/task_work.c:179
 exit_task_work include/linux/task_work.h:38 [inline]
 do_exit+0xaa8/0x2950 kernel/exit.c:867
 do_group_exit+0xd4/0x2a0 kernel/exit.c:1012
 get_signal+0x21c3/0x2450 kernel/signal.c:2859
 arch_do_signal_or_restart+0x79/0x5c0 arch/x86/kernel/signal.c:306
 exit_to_user_mode_loop kernel/entry/common.c:168 [inline]
 exit_to_user_mode_prepare+0x15f/0x250 kernel/entry/common.c:203
 __syscall_exit_to_user_mode_work kernel/entry/common.c:285 [inline]
 syscall_exit_to_user_mode+0x1d/0x50 kernel/entry/common.c:296
 do_syscall_64+0x46/0xb0 arch/x86/entry/common.c:86
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f2cf9d57149
Code: Unable to access opcode bytes at 0x7f2cf9d5711f.
RSP: 002b:00007ffc2b195818 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: fffffffffffffe00 RBX: 0000000000000002 RCX: 00007f2cf9d57149
RDX: 0000000000000000 RSI: 0000000020000180 RDI: 0000000000000003
RBP: 00007ffc2b195830 R08: 0000000000000002 R09: 0000000000000001
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000004
R13: 431bde82d7b634db R14: 0000000000000000 R15: 0000000000000000
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:rxrpc_put_call.cold+0x3c/0x3e net/rxrpc/call_object.c:645
Code: 0b e8 82 51 7e f7 89 de 41 b9 0b 00 00 00 41 b8 0b 00 00 00 48 c7 c1 20 45 76 8b 48 89 f2 48 c7 c7 60 45 76 8b e8 35 06 bd ff <0f> 0b e8 57 51 7e f7 48 c7 c7 80 4f 76 8b e8 22 06 bd ff 0f 0b e8
RSP: 0018:ffffc90003c4f9e8 EFLAGS: 00010282
RAX: 0000000000000034 RBX: 0000000000000001 RCX: 0000000000000000
RDX: ffff8880209657c0 RSI: ffffffff8166721c RDI: fffff52000789f2f
RBP: ffff8880760576c0 R08: 0000000000000034 R09: 0000000000000000
R10: 0000000080000000 R11: 0000000000000000 R12: 0000000000000012
R13: 0000000000000026 R14: ffff888076057a10 R15: ffff888027b18000
FS:  0000000000000000(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f2cf9db1840 CR3: 000000002b803000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (9):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/01/09 17:53 net-old 60ea6f00c57d 1dac8c7a .config strace log report syz C ci-upstream-net-this-kasan-gce kernel BUG in rxrpc_put_call
2023/01/20 08:10 upstream 081edded9b38 559a440a .config console log report info ci-upstream-kasan-gce kernel BUG in rxrpc_put_call
2023/01/18 19:41 upstream c1649ec55708 42660d9e .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce kernel BUG in rxrpc_put_call
2023/01/18 14:15 upstream c1649ec55708 42660d9e .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce kernel BUG in rxrpc_put_call
2023/01/14 19:16 upstream 97ec4d559d93 a63719e7 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce kernel BUG in rxrpc_put_call
2023/01/09 17:36 net-old 60ea6f00c57d 1dac8c7a .config console log report info ci-upstream-net-this-kasan-gce kernel BUG in rxrpc_put_call
2023/01/18 04:37 net-next-old 0c68c8e5ec68 aedf5331 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce kernel BUG in rxrpc_put_call
2023/01/21 23:27 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci edb2f0dc90f2 559a440a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 kernel BUG in rxrpc_put_call
2023/01/21 16:51 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci edb2f0dc90f2 559a440a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 kernel BUG in rxrpc_put_call
* Struck through repros no longer work on HEAD.