From patchwork Fri Mar 1 15:28:40 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dan Carpenter X-Patchwork-Id: 21212 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:2097:b0:108:e6aa:91d0 with SMTP id gs23csp1156238dyb; Fri, 1 Mar 2024 07:30:11 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUg7ZEVfow0geQ1SQC299TiiDZcTNR6leIgPyjhuprKLxI/rOv0DEzAp6Q+fxoxcYTedDaDY7uoSHCN8KyVtQ+xiL2HlQ== X-Google-Smtp-Source: AGHT+IGebbQ0Id1Ozoc2HC5EqcTPn+0fa1uaOUWScEjtKlCtffNUsyuMgjUm2fPAEXbYvGhqhfJz X-Received: by 2002:a05:6a21:184:b0:1a1:20dd:1e0e with SMTP id le4-20020a056a21018400b001a120dd1e0emr2031133pzb.2.1709307011060; Fri, 01 Mar 2024 07:30:11 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709307011; cv=pass; d=google.com; s=arc-20160816; b=Lptz9PUN1jkUZmM1H74sScWCzwTxV/dcq/teMkot7SpS8B1c/ENU/3lQAyiEkNhzH0 heGPcLkIteBrUiM/K4xTAvhjGGesh0IEa8hEniMf3srGv/WqXH2gxdAV+Qq6AXNBEe1c Cid+aNHK0DRGjokUFsuwNTAJMlFUVPF9UfFLFMcRpbnFMs1Oa78fYKGCsIs1aAKrg3D3 K3wXxMCRLTNQ47vg/LWhbLqHEtSfgcHotzWZgyuKZnSvWkJ65Nvc7iNl/6kYwFU+XQqS xN+eFuAv9TCzcgnzQhgDU22hvlwcgMIuVh092EQuB+JfTqi+cwiBWBHn0+zAVaA3XoBX Caug== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-disposition:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:message-id:subject:cc:to:from:date :dkim-signature; bh=rNTA2Vl3+hBLcp2L5qFBQu/x5GLlzDoP1qQamQQoMng=; fh=OQfUnDyPnV6+yhse/ZGx9w5NalJnAXrCSu0chvX9pbU=; b=nycEhf1NcUTHSt3nrWO/PYuS6tzHLDG0n9bx9cmiqeKnvNbhzhzMaX7IIeEbEAOzKT YnJskYlWsw5pyMB5g4RvLEx0u8BdM46yxkO92NkQEIspJjJG152vVEJgQ0JzARc6u4tq pjPETZ7VIJ0MfPtGnu8IpJGXBQCjmQNwfAor8ChnHyVQAzr8gtPZ/H1Kn8pUBWo1O63g 47GGaFDwCSOoiaHkhyCCMWCzv+aE2VdJfCwY3uvGvzUnWCEq1vy3s2xOkdi2y+Y8HaZj WZ2lK9bl4HI0E3VqwRkqEQcefcZWHiR4UAXd8H+wME3F6+5Q+hTF8QfCc/7k5q0uTFUL biYg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="Rf9/NDu0"; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-88621-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-88621-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id e63-20020a636942000000b005ceea21d9ccsi3647699pgc.771.2024.03.01.07.30.10 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Mar 2024 07:30:11 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-88621-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="Rf9/NDu0"; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-88621-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-88621-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 567AEB23ED8 for ; Fri, 1 Mar 2024 15:29:13 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id F05177004D; Fri, 1 Mar 2024 15:28:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="Rf9/NDu0" Received: from mail-lj1-f171.google.com (mail-lj1-f171.google.com [209.85.208.171]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1631E1C33 for ; Fri, 1 Mar 2024 15:28:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.171 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709306930; cv=none; b=MfH52uwpiagYScOoMN4EHoTxTAHSdcqss3UtklRK/m/JNLdiW/RC3ty7D+9D12Q0u606MRzcWMhmFFL+XGzjYbU7qeYrVzVcz1ZOHXoDp1cTeQVibxXRTWSRRyrTQcaBkTFZCYtzWGEbaA5NU/PXitNKXfayaT1DOMl8Z7lpOKM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709306930; c=relaxed/simple; bh=V79S0AcqOHxYCtN03M3/RNtHhAC92r+ITa1cgvX9Hk0=; h=Date:From:To:Cc:Subject:Message-ID:MIME-Version:Content-Type: Content-Disposition; b=cKbvUZ0yu/jQhJcr7t/iwKrF4pw2xn6dE6sxJG2eLIp4RS7KmqPZWId1TYELl0RQiH1A2WtirSO+OCw1H8+EC10hJBtBuU0bETRYIH4jq7ub9ui4IczG3P4gili7fWS7rLV4KJj7Fl92mIRUBrESOi8Rc0JI3wIucFIETaA87/I= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=Rf9/NDu0; arc=none smtp.client-ip=209.85.208.171 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-lj1-f171.google.com with SMTP id 38308e7fff4ca-2d240d8baf6so24505591fa.3 for ; Fri, 01 Mar 2024 07:28:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1709306925; x=1709911725; darn=vger.kernel.org; h=content-disposition:mime-version:message-id:subject:cc:to:from:date :from:to:cc:subject:date:message-id:reply-to; bh=rNTA2Vl3+hBLcp2L5qFBQu/x5GLlzDoP1qQamQQoMng=; b=Rf9/NDu0CxKM2foXY/U8BUASTwSof0VcJGZM//gJye9CZEfGm3LEK2vshzBmcqHAQG HI8VG+csv+XhDjX2hJmk5cy10sEoSo+M421we4HJbYtAAM7MGOBd5DEuJ6mAygMcYgQ3 rzkYpIJM/3Fma+WuSkH30V1VMGCS2e+RIQeJYjYc61QpSmlzvvkKkj13nBBWl2EtVM1y E42Rah/IU8IIjlfPNyWjnx0u4wI36iAPYIB+tiTZ5a1qa3Kq20C+48zHdCgMkwXexnXQ 6sUt4h4X3sN9MNyKsJk/wnMPCEmSxUKxpMXkENGDDwgVsCaLU2Gi2eisvZYfRqROtFyu JRcw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709306925; x=1709911725; h=content-disposition:mime-version:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=rNTA2Vl3+hBLcp2L5qFBQu/x5GLlzDoP1qQamQQoMng=; b=xDbovwaSqjCv+CeWwKGEXXyiE2y282PA42IjF/li3dfRuMOJVpGidVO1Pmb7EN3/cw 2UjDrNGHEZG2MEnYOZfwtmZXuNFvwJNx64QuVTc0JjKXrYJwx63yTpQ7idLMbBzldCVs /pefQYxZ8GEOIEi3lXGbLV+DfQjoU3vnOs3QXgCC7yhpEmEVpGx6e/uS6VuAZWjHJme7 SynIylR9GMyJSRWWx/trDc/jTGZ7ic6erDXXLWQfCZhtnGcIEDthTjmPTzPvAe79d5MW J9xpbiEexvHLP6eHPHVsFDdPQ1TxXlH0MX9kD1h1zEdookGH1DfUyDYD05VyM7bFQ3ir XBjA== X-Forwarded-Encrypted: i=1; AJvYcCXD6w0WHKhft0aL1L4xF571y67F4VFJcWpIOaQEc1Y75A7twHQrN9lrhilPPfMstntGbeZfmgwDPK+K/7z7GPzDIlbdobS1xFmP7PEm X-Gm-Message-State: AOJu0YwGVV5pb5w8kgVgeYYmvybmp/7P1khmxOtMz1Wi9LQOwFGr5C6t iFC19gykCkRj+OkvDjAFcWWe+7USIsBx5s8bgQzwE+O97oEcgnaKiE60QWYFkJQ= X-Received: by 2002:a05:6512:311c:b0:512:ec53:5915 with SMTP id n28-20020a056512311c00b00512ec535915mr1334997lfb.15.1709306925008; Fri, 01 Mar 2024 07:28:45 -0800 (PST) Received: from localhost ([102.222.70.76]) by smtp.gmail.com with ESMTPSA id p7-20020a05600c358700b00412b6fbb9b5sm7674242wmq.8.2024.03.01.07.28.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Mar 2024 07:28:44 -0800 (PST) Date: Fri, 1 Mar 2024 18:28:40 +0300 From: Dan Carpenter To: Dylan Yudaken Cc: Jens Axboe , Pavel Begunkov , Dylan Yudaken , io-uring@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 0/2] io_uring/net: fix bug in io_recvmsg_mshot_prep() Message-ID: <7f5d7887-f76e-4e68-98c2-894bfedbf292@moroto.mountain> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Disposition: inline X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1792338308341226673 X-GMAIL-MSGID: 1792338308341226673 The casting is problematic and could introduce an integer underflow issue. Dan Carpenter (2): io_uring/net: fix overflow check in io_recvmsg_mshot_prep() io_uring/net: remove unnecesary check io_uring/net.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-)