Received: by 2002:a05:7412:3784:b0:e2:908c:2ebd with SMTP id jk4csp1528176rdb; Mon, 2 Oct 2023 12:20:22 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHj+cYOis+v7G5asFSRmoql9u6p4nu5aQ457RR3iFxkKsxLo20NOCTP8HVZ/d/OaK/ImvLr X-Received: by 2002:a05:6358:4404:b0:13a:9d5:356a with SMTP id z4-20020a056358440400b0013a09d5356amr13002732rwc.21.1696274421921; Mon, 02 Oct 2023 12:20:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696274421; cv=none; d=google.com; s=arc-20160816; b=qYoLmesXM1/GYJ8HawGkdNrJUfSzoEZ6NAb0LdWmUftb5ftI3M4y5UALIycD8XCLaE nw/lAYzvtQ09aFFT/JvOlS2bhZMbFWTvwH8zgMLnsngZ3f7uS6URZ/dtC1tNhUMxrNsH rdhjJn45Uwrr4syhgFZSbT1EZznHEeSK2OCtxpwoHJjYssDXVJIzM54MPreOWPYx30LF sKLE+riNZzac7B1ZfaFibgdcyFigmTPNXfRaZe8ikjj2EBk6boXPTlT11MqJ4TNdzzzS iVNYPU+LxCn8psa+cQGV3BDXgJG5kg8y/7b9F4xAWmVe+DzhSHpyBeWk5RrfOSu3odCh 60JA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=X4e+5MdOuAxyi1+BhwS40SNlhSsKv6QuIxy7lXc9Mlk=; fh=lO88XmBrt1VKrexoG00mDMqKNWeaYV7M083mZrC+Q5c=; b=aLaJ0JE1FE7JRQMG2hoflqHO2EWrzpY3sdFBRNRaiZXEZX8Z+Fg6aUKbZOlHA+SacP vv1Q2Gg8BG4ihstQXn8jSTm7FfofU2jhqaImMRYnyXeDHq7vI+JXIRe/bArQ3rCQt9Su awm+wQOjY+RK7hHihqMLGMLB8ERWSjTcp+xKc4TkLVxbuiHLKozXHvqWEGkWZRnySxV5 bHYYApplpSHQVnNinZPxvY/c5Bf+GLGKE9L9KnQHlgzObWwMgPMj5D36Kod6tEfbz0dT FwOCXwpSOXzKKbourPTwnCXqQsAhDeqaId6u8x9lsTY9Dir2em+cXCWiY/wopdGuZsMI Q13w== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@embeddedor.com header.s=default header.b=BADl0hdV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id o2-20020a056a0015c200b0069344f0eda3si13282605pfu.5.2023.10.02.12.20.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Oct 2023 12:20:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=fail header.i=@embeddedor.com header.s=default header.b=BADl0hdV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id A143C815A1CD; Mon, 2 Oct 2023 12:06:38 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238725AbjJBTGb (ORCPT + 99 others); Mon, 2 Oct 2023 15:06:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46996 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238774AbjJBTG2 (ORCPT ); Mon, 2 Oct 2023 15:06:28 -0400 Received: from omta36.uswest2.a.cloudfilter.net (omta36.uswest2.a.cloudfilter.net [35.89.44.35]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3569ED9 for ; Mon, 2 Oct 2023 12:06:24 -0700 (PDT) Received: from eig-obgw-6005a.ext.cloudfilter.net ([10.0.30.201]) by cmsmtp with ESMTP id nLaAqNpAUMZBknOFMqHPdR; Mon, 02 Oct 2023 19:06:24 +0000 Received: from gator4166.hostgator.com ([108.167.133.22]) by cmsmtp with ESMTPS id nOFLqNjcFGi8jnOFLq4NrS; Mon, 02 Oct 2023 19:06:24 +0000 X-Authority-Analysis: v=2.4 cv=Asn9YcxP c=1 sm=1 tr=0 ts=651b14b0 a=1YbLdUo/zbTtOZ3uB5T3HA==:117 a=Dx1Zrv+1i3YEdDUMOX3koA==:17 a=OWjo9vPv0XrRhIrVQ50Ab3nP57M=:19 a=dLZJa+xiwSxG16/P+YVxDGlgEgI=:19 a=IkcTkHD0fZMA:10 a=bhdUkHdE2iEA:10 a=wYkD_t78qR0A:10 a=VwQbUJbxAAAA:8 a=nVEl-0sjCtjp5Y-AIcoA:9 a=QEXdDO2ut3YA:10 a=AjGcO6oz07-iQ99wixmX:22 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=embeddedor.com; s=default; h=Content-Transfer-Encoding:Content-Type: In-Reply-To:From:References:Cc:To:Subject:MIME-Version:Date:Message-ID:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=X4e+5MdOuAxyi1+BhwS40SNlhSsKv6QuIxy7lXc9Mlk=; b=BADl0hdVjaox9SM9t9ZEc0DN0f AR6YR/t/fvSb31WnWzZ0o0X+I9lzg0+7knj1LAuFD1Rn2RC96A0fFIrkAVrYgSe3jhirvy5F9fEQP MkSfhLaUoDM+6dtjdQvf5WeVRefXeDDU2muukX3ikalynfFHfbCRVcbcOS99/P0OUGHHAlRnPe+FW gG665kE1edNnxrVqUhpVIzFTguU0GbAe35a1aBlFkHbTLBTYNYErhyMoXf0mltKJoh2Isi7/sDXfR 66TY9IhSdySSUMrzwx+RzY+vsKoCWhoOXrIzuikuG0unyXaW6Lg2AQbgZkjStWx2fPXLLt6oAtN2N NSm/waDQ==; Received: from 94-238-9-39.abo.bbox.fr ([94.238.9.39]:54352 helo=[192.168.1.98]) by gator4166.hostgator.com with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1qnOFL-003sIs-0L; Mon, 02 Oct 2023 14:06:23 -0500 Message-ID: <446f6c02-a914-cc00-2dea-478fbed898c6@embeddedor.com> Date: Mon, 2 Oct 2023 21:06:20 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.15.1 Subject: Re: [PATCH][next] PCI/P2PDMA: Fix undefined behavior bug in struct pci_p2pdma_pagemap Content-Language: en-US To: Logan Gunthorpe , "Gustavo A. R. Silva" , Bjorn Helgaas Cc: linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, linux-hardening@vger.kernel.org References: <29da763d-1570-7197-2d5a-03c5659b8b52@deltatee.com> <734c7fdf-4c41-2890-dbe7-ddb23fd6bcc7@embeddedor.com> From: "Gustavo A. R. Silva" In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - gator4166.hostgator.com X-AntiAbuse: Original Domain - vger.kernel.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - embeddedor.com X-BWhitelist: no X-Source-IP: 94.238.9.39 X-Source-L: No X-Exim-ID: 1qnOFL-003sIs-0L X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: 94-238-9-39.abo.bbox.fr ([192.168.1.98]) [94.238.9.39]:54352 X-Source-Auth: gustavo@embeddedor.com X-Email-Count: 2 X-Org: HG=hgshared;ORG=hostgator; X-Source-Cap: Z3V6aWRpbmU7Z3V6aWRpbmU7Z2F0b3I0MTY2Lmhvc3RnYXRvci5jb20= X-Local-Domain: yes X-CMAE-Envelope: MS4xfNgXPXzLCfhvsimU7UpEscgBWGD78CYg0usAC3rcDjoKtB4UQm1Ly6o2Uz6NWXiq5zDNVeQxHfgdytipKqv4MsI2Pv/9xdneInEN+gZGQIDT59Jl8U+n 8awB+UPlmLK8LfA8rnd12PlQKrtlp9Ql5Qz14oHULvri2fGOuYqGyQ7fvyfVt1rvETLJ3HVrYdSt+YIuIg4vyJAvX7gd0HV80Apzss//8p8xLyM4SYUdoXP+ X-Spam-Status: No, score=-5.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Mon, 02 Oct 2023 12:06:38 -0700 (PDT) > > Yes, but the commit message is not clear that nr_range can never be >1 > in the code as it currently is. Done: https://lore.kernel.org/linux-hardening/ZRsUL%2FhATNruwtla@work/ Thanks! -- Gustavo