Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp2491562lqp; Sun, 24 Mar 2024 23:23:25 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU2IdP0xXTuuyTUpKNrdLfz/rwSmlf6RSpWiac99cgUcW3OtFIWB/+BS/ZYr4fXfXf0upwkEAw7RL9dxJ0VlvIPeVds84rC0ByREtCM6w== X-Google-Smtp-Source: AGHT+IFUPkFYrmVWRdjeDeP4QyywEzaEAnNzRPhBuD1GD/PrU65dtTJZFErAWbny0T6ZzgJdMbqA X-Received: by 2002:a17:906:1ec9:b0:a46:b764:fc81 with SMTP id m9-20020a1709061ec900b00a46b764fc81mr4039043ejj.44.1711347804806; Sun, 24 Mar 2024 23:23:24 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711347804; cv=pass; d=google.com; s=arc-20160816; b=wi0mTnSgoi6nAE4us4L5HO/CSMST51lCt/AaD0iwmIiPAhahcjoUROLdXCTDLJolLT R/YBkqC4TWUJK84N7He72DUpQ+DwZq3F20ET8tPNc0Zzbnk7bQuHNgoOXwmNrKTOkws0 Whj3H6sQdo1iMTWXGEEhfCz/XuBEEjUKJoVTH1Qo6Uz+4XKxPSEc42AhAAhuyjkuLIx4 za53g7YmkAYJ3+0XYljobuVhQlb08YS5qQ3GIIrY3sdJHVjK37NAal9h5HLYSJ/K5QLO JFo6wBpVIAhjkYjvroe1PRWYfH+k8qlqoUFypublrLKqw13yJf8S5ozBm0T/rQusnsRu hvzQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=4KLJT1sqY81e1lEKyhKtLpS6x/fUNyKuTe6YrUygffs=; fh=KhxstO8Y1Mg7t3NGeEq3c4VOLRoLHH2Y/Hnsj5DWXDA=; b=zXe7lOzBcm6dXAuV15i4TJXJZ9q4AIYr4V6WVXWH+IOwI0cj4pcEgJFPEoHQOraZxO TUmwDCNC20WSHwRzzoUAMK0n4ETnn8/Pp05M2sCW1xwkRYNDk3NgUDlCiBYkBEryGQ1e CpRL/g4OleBiRML/IHySDMfkgK3IUCIdlS25mgp/8r+8rgwopf1sxP+zjGMMFePNVkRI 9qtrHEFM6XTJpvjRaAASf/FP5Cbh7szasRkH36D5ZnNO4UVO3FRaP0AhddIq/9b0YOTw bD3i+ipsQdFGEwIHZbDDJK1I6RIAFyQup1dJFzYTju5Jyf+Tw0mv2JLWy25DZzPrvxV2 G2aQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=rDALPIkP; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-114656-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-114656-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id h26-20020a1709066d9a00b00a46bdefb639si2219003ejt.382.2024.03.24.23.23.24 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 24 Mar 2024 23:23:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-114656-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=rDALPIkP; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-114656-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-114656-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 02EEE1F24A4A for ; Mon, 25 Mar 2024 06:23:15 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1334260ED0; Sun, 24 Mar 2024 23:57:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="rDALPIkP" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id AD46123658D; Sun, 24 Mar 2024 23:18:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711322301; cv=none; b=VRN1aI4uuyW4mbKOgWKPPlFZ0L5244zkqvV9ZUs5JXtmnSwPISmxpJsJk4OtRxb6uZFYhrxtokoqtkBmKw2dUGS/1O/DbOTAZ3nyr3gvI/ail5tgr00C4iad+aJ4VXfDSFznykQ+XUmsrzG2MmyeE8cS81jVuHi7wIEsL/IOxos= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711322301; c=relaxed/simple; bh=9yBopZLIM8OSzLqA9Go3tW6gVjKypeyx/Oz0X+ZwDLE=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=V3pIzh2JVZQcqJKVhhAKnb0NK3scUNaYfQ/jK8yyvwexJIZSSlnYng9rrEDY62nxc1sHv82rU3f4IbVrP/6HGxCFTm2kjzl4VO/qP79bSMQYHKAsoGnuuSLekINj/0ivo7LfBOF+Y1COQ5Qj+fU7GMuFT2p+AYal4SUB4DXncxw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=rDALPIkP; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id EB3B0C43399; Sun, 24 Mar 2024 23:18:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711322301; bh=9yBopZLIM8OSzLqA9Go3tW6gVjKypeyx/Oz0X+ZwDLE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=rDALPIkP9f294eutb+y1fb0FR8PnGOpn1q0TL71jzxbxmVQDkHFODcC2TFI59zpDE 0uT7ZapB22EvoI1owXmVB18dLT/Qgiz/2D4CpF1epBlE8LUWM//swUqEYhi8Q6xV6N qTPJpUePl+ElkNxTKRdb0bOssk1ec9dlkwfs+hZ+o97vk/hiQW+nNz5MTBA7ldNGcH Aqdyeq4Ga+z5Y9lJTDEEkKfzng37q1Wzhdv46/Z4fksr3P+qBOT84B85QzZ/XNW/rk 4qYitvokSN9CTHYSel4kdZ9FYlstqxCDmtzHpWd34jGUvzR36f9ZdQqFqHYmHUrkMf fEy7riNocLRbA== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Muhammad Usama Anjum , Jens Axboe , Sasha Levin Subject: [PATCH 6.1 384/451] io_uring/net: correct the type of variable Date: Sun, 24 Mar 2024 19:11:00 -0400 Message-ID: <20240324231207.1351418-385-sashal@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240324231207.1351418-1-sashal@kernel.org> References: <20240324231207.1351418-1-sashal@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit From: Muhammad Usama Anjum [ Upstream commit 86bcacc957fc2d0403aa0e652757eec59a5fd7ca ] The namelen is of type int. It shouldn't be made size_t which is unsigned. The signed number is needed for error checking before use. Fixes: c55978024d12 ("io_uring/net: move receive multishot out of the generic msghdr path") Signed-off-by: Muhammad Usama Anjum Link: https://lore.kernel.org/r/20240301144349.2807544-1-usama.anjum@collabora.com Signed-off-by: Jens Axboe Signed-off-by: Sasha Levin --- io_uring/net.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/io_uring/net.c b/io_uring/net.c index 9fc0ffb0b6c12..0d4ee3d738fbf 100644 --- a/io_uring/net.c +++ b/io_uring/net.c @@ -516,7 +516,7 @@ int io_send(struct io_kiocb *req, unsigned int issue_flags) static int io_recvmsg_mshot_prep(struct io_kiocb *req, struct io_async_msghdr *iomsg, - size_t namelen, size_t controllen) + int namelen, size_t controllen) { if ((req->flags & (REQ_F_APOLL_MULTISHOT|REQ_F_BUFFER_SELECT)) == (REQ_F_APOLL_MULTISHOT|REQ_F_BUFFER_SELECT)) { -- 2.43.0