From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-ua1-f42.google.com (mail-ua1-f42.google.com [209.85.222.42]) (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 43A162857EA for ; Mon, 25 May 2026 23:02:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.222.42 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779750127; cv=none; b=g9E47l/73TVJPBhMaFZMjzstiETDQDdPfvEThXX07Nh8DlpvnKHweDcrqU3/YNlq5q/F3I2GNHSyjeMkLveiVhZc+1El2VWsdUFvBNP+Huw/L8UoW2xMeaGNg+JTu1FUj6y5HLhm0VEpyokjph7URirtLNAk8yeim7V2WMwJPSM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779750127; c=relaxed/simple; bh=eu7oHNR9mcfU4ioBLEp3xWRPG5uK3jDdylzyfDDX5aY=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=VzJsAG2OoTcpvZ64C/gpRDaSbzMlXxxgJiwEBW7udpR3Vb/cChpqWlGuA1xokFiN/VsVFYs4FtGxL04QBm3umot2a39Ko7jAHdb7tl4v982jpaeNaFlXQD+oD9VdcfwWTL8oRjVXp/b+APfJ+ztkHco7kSYvgWIptAe9DKeeKNg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ziepe.ca; spf=pass smtp.mailfrom=ziepe.ca; dkim=pass (2048-bit key) header.d=ziepe.ca header.i=@ziepe.ca header.b=WpsgWDEb; arc=none smtp.client-ip=209.85.222.42 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ziepe.ca Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ziepe.ca Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=ziepe.ca header.i=@ziepe.ca header.b="WpsgWDEb" Received: by mail-ua1-f42.google.com with SMTP id a1e0cc1a2514c-95f6b47b309so1926786241.0 for ; Mon, 25 May 2026 16:02:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ziepe.ca; s=google; t=1779750125; x=1780354925; darn=vger.kernel.org; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:from:to :cc:subject:date:message-id:reply-to; bh=QHgkHa6ZlvV1jsZqbopBOds1Pj5+WDOoiFTPjaNINSw=; b=WpsgWDEbcl/mfC97gfvBOT7Hw6/l9/kWQL/Ma8C0H7ac3HKyq+bIWmkMbAgdSFbtyo q23WeK1liMif77t34U/hWxZhXdaYHG2bojD96WSGMEZAIMgpYsxkmyuaFpEKmvgNvEos zTRDNUfE1iFQkXwpbAclkptHsrgAahLFdRFxY0PgCeIeDuWKibTWORIIDIQJz56xAZHR 9EhV7Zwai8voxIq7sgc1wwQJZM8N9nsH6CWeCQd+WPRBcwoWZjMFjznNdEd3jn5JxjLT rBSvNgSCvoHLaX3SSP1UD58EME6mgKSrCZai71msRye3T5wjGd7ZMZcbQFt8OPGBK5O+ 3a2w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1779750125; x=1780354925; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=QHgkHa6ZlvV1jsZqbopBOds1Pj5+WDOoiFTPjaNINSw=; b=nFUo0u9+pkBtmIsNTwSl841TNfu1MuvCcd6AJkrMCxXLCFFyEr/G0pwDOacO7wym3O 3EJsjRN2+uaO7IURZyatd44rI/dGU60rOAeg6yh8hz3EgYeSGEhKAcBpInEGmmdX12xF xV1ErnV2P0BT9bJTNXLK6k1DN1p5j/HQdkY4P87FPyAnaBI3BqvILRIXq7AWKtyQyL1y TxRuIAhzvp9RRgAs+BUo3IRlyrNYsikimHS4pi0pnrE0AJlmLq1ekeS5il6+99jLkzYp SwKRXoJqAzxoWOCGt3rzEhtdCdceqkFwDmeVVvUy0alKP+eKGsxFpU585rGS3uFEExMh aS1A== X-Forwarded-Encrypted: i=1; AFNElJ/dsWkCsDWbPDKshiQXsXSIW41/8vV40JCvg+OobulslRaQCc7lJnIzSMqqXZHUkq+w4kkunbWwViZIpMs=@vger.kernel.org X-Gm-Message-State: AOJu0Yznti19XrqjnN/E2YVJO5Y8wYVZMhh8ZmAkCKEO5656FVYa5dIc ueAAMya+4bmEzJebzo2zuqQxx2F8YCrN1LGTWj94N0MdZZ6XuG90QnKYiF/OLUbyOeY= X-Gm-Gg: Acq92OGzdDLek+aOrI/x9KS7ByPwfPCF7IU7G1G4YJGZJtPSqU6LUUbYvkhdUHgbvaa GKVaLA0OeAnzGA9Pwkm23kW6djNbDFkR6Dg2IVMKcCOjve5O8XO+6ByN/L4lsD9a4uKs8Lh9lL8 6WU24lJTdatFq80xdXycKM4id+2zapxYVo/hwZbDI7DmYlGdBftUIbgtVSwnLpvA0aB5PFd7rOf 7m0Mo2cKBWNbmGnH2ggqAJ8w9DdJfzMudbqVzRI367uGGD8TvyEvBr0xQV/DhI/AAdrYSgrRQQJ 5AxPG1/moIypO4sK6PZu0+Q8RV1qw8Rp8A0I9UEePhEQ4nL5ccMaz5YSSDfbhcjuo7Ui6wehFJa /9AQ1rURmAp2Gi5yotzVzUGOvAQ2yv3S0FWOce3Ifqmceew/gDX+TmKh05sZ4Wg0+GMmQwlqmtc uIV55K8MbmPMtohyaSOsfGwc0Hi2FIuleBUY7y8sbkL5Q1KDyC4UHGYSyxigGtber4f2WxBBQ5R Y+1Cw== X-Received: by 2002:a05:6102:32ca:b0:633:2389:3a84 with SMTP id ada2fe7eead31-67c84613d08mr6201357137.24.1779750116975; Mon, 25 May 2026 16:01:56 -0700 (PDT) Received: from ziepe.ca (crbknf0213w-47-54-130-67.pppoe-dynamic.high-speed.nl.bellaliant.net. [47.54.130.67]) by smtp.gmail.com with ESMTPSA id 6a1803df08f44-8cc80dcf4a9sm121808066d6.2.2026.05.25.16.01.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 May 2026 16:01:56 -0700 (PDT) Received: from jgg by wakko with local (Exim 4.97) (envelope-from ) id 1wReJ1-0000000BVd6-1lfG; Mon, 25 May 2026 20:01:55 -0300 Date: Mon, 25 May 2026 20:01:55 -0300 From: Jason Gunthorpe To: Erni Sri Satya Vennela Cc: Long Li , Leon Romanovsky , Konstantin Taranov , "linux-rdma@vger.kernel.org" , "linux-hyperv@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: Re: [EXTERNAL] Re: [PATCH rdma-next v2] RDMA/mana_ib: hardening: Clamp adapter capability values from MANA_IB_GET_ADAPTER_CAP Message-ID: <20260525230155.GB2487554@ziepe.ca> References: <20260312181642.989735-1-ernis@linux.microsoft.com> <20260316194929.GI61385@unreal> <20260317094408.GR61385@unreal> <20260410154327.GA2551565@ziepe.ca> <20260413134602.GL3694781@ziepe.ca> Precedence: bulk X-Mailing-List: linux-hyperv@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: On Mon, May 25, 2026 at 11:58:17AM -0700, Erni Sri Satya Vennela wrote: > > “There is no reason they should be signed, you should just fix the > > type.” > > It is not allowed to change sign in props, so clamping is the best bet. Why not? Fix the core code, it is just old junk they are signed, they should't never have been. Jason