From 8d52581ad54806e43ab4c8a21b22244fdf33d0a3 Mon Sep 17 00:00:00 2001 From: Ksawlii Date: Sun, 24 Nov 2024 00:22:57 +0100 Subject: [PATCH] Revert "SUNRPC: Fix integer overflow in decode_rc_list()" This reverts commit 8f25df6566866b1da72e4d72cf4a160de04772fe. --- fs/nfs/callback_xdr.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/fs/nfs/callback_xdr.c b/fs/nfs/callback_xdr.c index c8f5a0555..db69fc267 100755 --- a/fs/nfs/callback_xdr.c +++ b/fs/nfs/callback_xdr.c @@ -372,8 +372,6 @@ static __be32 decode_rc_list(struct xdr_stream *xdr, rc_list->rcl_nrefcalls = ntohl(*p++); if (rc_list->rcl_nrefcalls) { - if (unlikely(rc_list->rcl_nrefcalls > xdr->buf->len)) - goto out; p = xdr_inline_decode(xdr, rc_list->rcl_nrefcalls * 2 * sizeof(uint32_t)); if (unlikely(p == NULL))