Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp2400112lqp; Sun, 24 Mar 2024 17:53:44 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU9WLRr+rF4AEyjMooDBaVQcDB4uON8M+jgpkccEByV6e39cbAmgIEvKlVHQcyBNtIymqYm8VsaYeW9w6z6hMFDEAV3P9FcWRupgPSemw== X-Google-Smtp-Source: AGHT+IHloen+zlQk9rPY9nyvOpcSkEtceMGsY5fPv+ss19JE5nvkVTS6aG/4TH4mgBZ4b137KGj/ X-Received: by 2002:a05:6359:458b:b0:17f:5ba6:3e93 with SMTP id no11-20020a056359458b00b0017f5ba63e93mr6915222rwb.15.1711328024464; Sun, 24 Mar 2024 17:53:44 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711328024; cv=pass; d=google.com; s=arc-20160816; b=zpXZNMqOBegjPQfHmLbWN+LQxE+MObjLW4O8UKsU3kw5PN4UXkserufuC+8U6Ly8Ba CI1O+Zge75vGPrUHcNDgdckXis1QE1xFVePDUiGz/XeSZwPb0UOqmPWzJTxeoaAZgu6M augwLjLcF2/lTGARHEM0GIB4g4Q2buHXiz8gxGeFAGrDW+cA3aCiR1tka3M8t1EjLGf/ NKfOU63vS9q4i/lcX9Mopn3c3ZpkiDCuqykl9IoIslUtA/U95i+n/ga2uC8D8P/y1s8e M0RMeKikByQy1uVK5UV6sCjZCL7YQP4KcjNUTj/4cmU6/elT1beHGFH2eb4RKl6v9uvD 8aAw== 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=yLXwxg4TBSE/tGPs1GKXnd0ro/EtHKUa7Yy9voirlPk=; fh=KhxstO8Y1Mg7t3NGeEq3c4VOLRoLHH2Y/Hnsj5DWXDA=; b=aLAyra+90p3BkK3iQDzECh9ht1rfIMSf1z4XyBXSsp2JWKaptPOjZ85VLlMxiQ1xoH q5RGWS8Fp5/G3aX/LDAnfkK+/9rbXR0dZNwZIbD/FMtalTLN+2kw+cOfayMDKK2ltTLk /HzrYZjrhnB6W+wWh0DYemxTrAhVgfRF6ZvKz1+RJrpi1rluKHpHFsFGKZWBA8ApZ+8/ T0ign/rqp2bYbKR1LJ4p6/H4uuuQcH7e4XlJLA5BKUFRCQdAR63IYOstu1ufPi4HO1GF 0JnreT6vHmwgMRr69QOq2ckWopIfwYl6yWqaX7vc/9kXfprRwrio6782xLDg0EiFSSi0 4/Aw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=SQIv4Yvu; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-113498-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-113498-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id a28-20020a631a5c000000b005dc85a7eb1dsi6356596pgm.299.2024.03.24.17.53.44 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 24 Mar 2024 17:53:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-113498-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=SQIv4Yvu; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-113498-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-113498-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id CD5C72847BC for ; Mon, 25 Mar 2024 00:51:38 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 21AEC1B885F; Sun, 24 Mar 2024 22:45:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="SQIv4Yvu" 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 3BDEF13D529; Sun, 24 Mar 2024 22:44:59 +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=1711320300; cv=none; b=CwNG0H6TmiDERxPN8HzF8dzJFmpK0LcubJbqkTHcQuYtN94BCZzIMxJmFg6ZZ5PW4ea3X0ZeTElbv+v60vCgT9RCspmgk0tfAT+Mv/fTUnPPCJtiiVt46Ntr+i39099K7C25NldQpLmtFPQ1PPjeFuONzqLy6l5fzQNKZjDn2+8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711320300; c=relaxed/simple; bh=fRJ1NF/0Po2lrONLXrVy0VfghTonH8e7OtvZdiYNLv4=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=EWj7rhqNaX9Q7abljw8/mlQAvhi+AoJqp57ryg4mSibVPpUFsq5wjbxVSuHM4Sp68hT5ZrGf4dOx6osr2KsDOAKWFawCLLVyLij533wqJolpWKVoHGh3u7nF0RyhptIzrEIvwPJwJgs/iA95Ixut2KqCFSUo5NipiDC2K4XgBM8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=SQIv4Yvu; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 33901C43394; Sun, 24 Mar 2024 22:44:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711320299; bh=fRJ1NF/0Po2lrONLXrVy0VfghTonH8e7OtvZdiYNLv4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=SQIv4Yvuoog8DWovvBZ8/qr4wqXpsrZ8OcJjC/WZyB5ivfx07qN4aWK1d9SVG0v/H +ZSfDO7yuuBbaz5GAoWghuTZHSXKEFnbBLX2k4JY07z+z2HS7ZfMVq+DvzVlkMj3Bn ISenTu+lZfUbLROchT0Ef75hBKfllSpqNaC5vUfS6jLvVFivbWgIUcbBMd+o76pkPm rt1I9h6XuTU9+zaP8CcmFcptN0WpJVfBXP1nLeOy0tFkHCBpFKeUxqShAkorVXht2c B5FmAxo/YSolGN8jpq7K9aZVHcCUM1ZvL7ngtKMQpLxfd0VaUWX5xH3MhYhz8ILUg8 qAvDWB9sfKn8Q== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Muhammad Usama Anjum , Jens Axboe , Sasha Levin Subject: [PATCH 6.8 607/715] io_uring/net: correct the type of variable Date: Sun, 24 Mar 2024 18:33:06 -0400 Message-ID: <20240324223455.1342824-608-sashal@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240324223455.1342824-1-sashal@kernel.org> References: <20240324223455.1342824-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 058e04ea68c04..4aaeada03f1e7 100644 --- a/io_uring/net.c +++ b/io_uring/net.c @@ -536,7 +536,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