]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
rxrpc: Fix user call ID check in rxrpc_service_prealloc_one
authorYueHaibing <yuehaibing@huawei.com>
Wed, 1 Aug 2018 12:27:23 +0000 (13:27 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 6 Aug 2018 14:18:19 +0000 (16:18 +0200)
commit528e9fa8184b6f4b0552859eb98f276758c4456f
treeba94ec978c6e185a093194e6316e5097eccc0e2f
parent6ee47da71bf77d101f3f99a82555098a54d1faf7
rxrpc: Fix user call ID check in rxrpc_service_prealloc_one

[ Upstream commit c01f6c9b3207e52fc9973a066a856ddf7a0538d8 ]

There just check the user call ID isn't already in use, hence should
compare user_call_ID with xcall->user_call_ID, which is current
node's user_call_ID.

Fixes: 540b1c48c37a ("rxrpc: Fix deadlock between call creation and sendmsg/recvmsg")
Suggested-by: David Howells <dhowells@redhat.com>
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/rxrpc/call_accept.c