Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp157443pxb; Thu, 31 Mar 2022 02:02:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyqcxt+9GiAie33C91v6Ex4VXoJ3bOm98EfWP1+E12s7aJNkmmccQWWFQBOEFpNEjF+XYsh X-Received: by 2002:a17:906:5d08:b0:6db:7291:df22 with SMTP id g8-20020a1709065d0800b006db7291df22mr3835783ejt.178.1648717371998; Thu, 31 Mar 2022 02:02:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648717371; cv=none; d=google.com; s=arc-20160816; b=Yv9YlvknCM9JIP+EwHOEP/hhL6Meq/pwnfDP3XyjExx3EaFPZE+pnzMLj9R286w/qy Gy85eGttgIfQ2LW7YTq0RE/q/eIuYyzyAIflKbaJCSzXUPFebFJDY0wQzvzs+e+zGarn nfNI46P13YePYBy4C9TJY0KDjdEYyR2xNxLdmXWg88cSsrNVKS8WKTHH+SWkLMFW2mIT 0+uUdhm5GzTTWj2UcDkBOqhUX/+EXj58AtCvRraLYpFi6Kba/l3C1Do6gEVo7x/DnLhX AoYeim1QZaoEv+0v26o3W9exXh4G9gpNXlq5ghKNbppbgUNZ30X/0wDAq35z4BgVamYI tYxA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:references:message-id :in-reply-to:subject:cc:to:from:date; bh=iurmycp3sDYNXcm6HMvUbeDcqVvIt5J6OvD57Bm5Jos=; b=By9gtpuy9UAhOCsJ6ZUWGflb2ftmD9ReR7RoEvIjQ4IrzYzxXts8t3x+4LujIWiwGc LQlWsHc48jI/Bx6ZpDfwHloKRTUJgbBc+GKsgvUr9vLYH0i0U3s+TFJwjN+gIi7unyIg uS93Kt5594VzAPDWYmiKsks6SdTQ96fjVGQSqoZ6gdOhXz7NF6FRYH3ijTCLp0EaUNAx qIuVxMX200Z2RbAikiYi+Z17fKhWL2n8ZxzyT2wJCwxcldO1SvA9Mfyd1yzAn3igsts5 DduSeQREit6BTZWQJUSxkfdakzbmr2enQDnzpvL2lQlTCsDIL6JMriQvxb9Wf3cNOozo g5XQ== ARC-Authentication-Results: i=1; mx.google.com; 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 gv14-20020a170906f10e00b006e1aeffceefsi6218695ejb.361.2022.03.31.02.02.26; Thu, 31 Mar 2022 02:02:51 -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; 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 S231952AbiCaHPa (ORCPT + 99 others); Thu, 31 Mar 2022 03:15:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43162 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232007AbiCaHOl (ORCPT ); Thu, 31 Mar 2022 03:14:41 -0400 Received: from angie.orcam.me.uk (angie.orcam.me.uk [78.133.224.34]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 3741991AD4 for ; Thu, 31 Mar 2022 00:11:56 -0700 (PDT) Received: by angie.orcam.me.uk (Postfix, from userid 500) id 78A299200B3; Thu, 31 Mar 2022 09:11:55 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by angie.orcam.me.uk (Postfix) with ESMTP id 7570E92009E; Thu, 31 Mar 2022 08:11:55 +0100 (BST) Date: Thu, 31 Mar 2022 08:11:55 +0100 (BST) From: "Maciej W. Rozycki" To: Linus Torvalds cc: Thomas Gleixner , Dmitry Osipenko , Linux Kernel Mailing List , the arch/x86 maintainers Subject: Re: [GIT pull] x86/irq for v5.18-rc1 In-Reply-To: Message-ID: References: <164786042536.122591.4459156564791679956.tglx@xen13> <164786043041.122591.4693682080153649212.tglx@xen13> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE 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 On Mon, 21 Mar 2022, Linus Torvalds wrote: > > - Handle the IRT routing table format in AMI BIOSes correctly > > *Very* minor nit here in the hope of future cleanups: the other x86 > irq routing table structions (Christ, that's a sentence that shouldn't > exist in a sane world) use "__attribute__((packed))" and this one uses > "__packed". I have reviewed and reverified the code for resubmission now and frankly I don't know where this "__packed" artefact has come from. I certainly have "__attribute__((packed))" in all my copies of the change including one I have submitted (though `checkpatch.pl' does want it indeed to be `__packed' instead). Also accessing memory beyond __va(0x100000) does not appear to crash on my 32-bit x86 machine, so it must be something specific to x86-64. Not an excuse for a range overrun of course, but still odd (and as I previously mentioned I find it odd too that this code is ever run for x86-64 in the first place). Finally, following your suggestion I have added verification for a range overrun for the whole table for both the existing $PIR format and the new $IRT format. It isn't a big deal and we shouldn't trust external sources of data. Maciej