Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2837140rwd; Fri, 19 May 2023 10:48:47 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7DkEYgwXhRy8QG71PCt7H69owPE/zpXdG62LMO9piZmOkSHx91eupfq7PIJVXV25M+1gVp X-Received: by 2002:a17:90a:a415:b0:253:3e9d:f920 with SMTP id y21-20020a17090aa41500b002533e9df920mr2991053pjp.3.1684518527661; Fri, 19 May 2023 10:48:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684518527; cv=none; d=google.com; s=arc-20160816; b=VhhJP+qoAobCq+Ns8dffYmLTO79c9xBm3+5EuERp5/JGpVIcW5Gfqc6Re+KeSrPo/y vxn1JDA0MQwjRN/2/+i0rwOMJrEfeknHbvJ+y57QJzzEQX/G3kIPV7ZHMh+NCqGI7STs wgjIPmF5DETUAKocJHtWpjHaTOZddiB7LOuXYO+5GyT7F5IeN9+1ivieIGJg1uTjYwIz EGaz4WHTuiZk6165OHS7RWbO79aXnFUm7+CSciR+05A9oPLyqwph3sxox84tylazppla 066H/LiPCbiYuQm4nYh4A4pw8CvRBwaccS2sEE+019TIY439naRufKhePPxD5MV7AnaF IRMw== 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 :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=axl0zhsvpOM6Fxxob2rDzGKPa3FDR+vU6oCHaOjC7nk=; b=ILTxDRUAf0lcCiMHnt53w6OTB8XOA8HiW2yUhKk3TB56ZfrJKJ8FMcOSHqqxW0LE6F OtbFBvZ1v/TzL/P8rvueALELCi4lEz436IUGApiw+a7Zd/CfMSFQykbEZhXmZV5bfJxl gu657L2GbnQTNd66vcJ+ypWiassvL+i7P5iEmyszVf+H7yLAhcIPgvwqaLeKaoxcG63S qCZ8GwFtP4WKYNIl6IQjmGHuFUAC6dMIs1L7DSQrISukHS3lzQlH3yjtwlwglsoYbRs3 lzE3kcvKQDAQ2RNK0AbgdMxHYXIEn2hMvZ66soU366K/7UJfivlKVD7C0KY5VVAieTUS StLQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@wanadoo.fr header.s=t20230301 header.b=LhUmCPjq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e3-20020a17090ac20300b00252b14e5ce4si1853020pjt.190.2023.05.19.10.48.32; Fri, 19 May 2023 10:48:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@wanadoo.fr header.s=t20230301 header.b=LhUmCPjq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232023AbjESReF (ORCPT + 99 others); Fri, 19 May 2023 13:34:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42892 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232142AbjESRd5 (ORCPT ); Fri, 19 May 2023 13:33:57 -0400 Received: from smtp.smtpout.orange.fr (smtp-20.smtpout.orange.fr [80.12.242.20]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9F2F5171F for ; Fri, 19 May 2023 10:33:34 -0700 (PDT) Received: from [192.168.1.18] ([86.243.2.178]) by smtp.orange.fr with ESMTPA id 03yTqTToaqmw803yUqQMYM; Fri, 19 May 2023 19:33:08 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wanadoo.fr; s=t20230301; t=1684517588; bh=axl0zhsvpOM6Fxxob2rDzGKPa3FDR+vU6oCHaOjC7nk=; h=Date:Subject:To:Cc:References:From:In-Reply-To; b=LhUmCPjqjFRrzSgpetc6BLMo5HV9JGPDZKReX7utFpQcGXqk9CrF05Xmi4ocCv7Rm A03Pj1M9tXhjMr3lYU0EUSLBffJtkkkEHZ+lk2jKYI+pINbTdgMRtatuopHZwOux0B asNIJX1rZuitNY1XTKyZODeFlf2qfc9R4wgB7dkQV8G5SRDbJEuBHK3GaM0ckGw0Lf tbQce+LrhfA1iiIDbEUivumHleLZS1iejFP73gBWiQOv6M4371SjgDKJtk93JKAmFe BmBMszFt7s3gDU8ymOMLm7GSv/OrfJG47u0XC9sWW+NQobJ6b6UVKBt6Yg6lKYCloo Iuq3oFKRwOyBQ== X-ME-Helo: [192.168.1.18] X-ME-Auth: Y2hyaXN0b3BoZS5qYWlsbGV0QHdhbmFkb28uZnI= X-ME-Date: Fri, 19 May 2023 19:33:08 +0200 X-ME-IP: 86.243.2.178 Message-ID: <193a5d30-dd0c-fadb-3358-2fd46fa47e60@wanadoo.fr> Date: Fri, 19 May 2023 19:33:05 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Subject: Re: [PATCH 1/2] x86/PCI: Fix a sanity check in pirq_convert_irt_table() To: "Maciej W. Rozycki" Cc: Bjorn Helgaas , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , x86@kernel.org, "H. Peter Anvin" , linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org, linux-pci@vger.kernel.org References: Content-Language: fr, en-US From: Christophe JAILLET In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-3.6 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 Le 19/05/2023 à 13:21, Maciej W. Rozycki a écrit : > On Sat, 6 May 2023, Christophe JAILLET wrote: > >> We compare the size in bytes of a struct (and its ending flexible array) >> with the number of elements in a flexible array. > > Incorrect, see the inline documentation for the struct. Ouch. As you explained in your reply for the 2nd patch: irT_routing_table != irQ_routing_table Sorry for the noise. CJ > >> This is wrong and "ir->size < ir->used" is likely to be always false. > > Hopefully, but we've seen all kinds of rubbish in PC BIOS data, and this > data structure seems available for OEMs to program with a tool called BCP. > Better safe than sorry. Therefore, NAK. > > Maciej >