Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp238841iob; Wed, 18 May 2022 00:47:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxHWhOLXVheDad1V5J8oVHA8C8NDoRnBAWA6myalB/RO4CrmawfnznxEE/1FE4KpyeiSUQk X-Received: by 2002:a63:e40c:0:b0:3f2:5729:eace with SMTP id a12-20020a63e40c000000b003f25729eacemr15074953pgi.384.1652860065935; Wed, 18 May 2022 00:47:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652860065; cv=none; d=google.com; s=arc-20160816; b=OCx0VyNsWR3EB+Dje1czI04Ck+RTdouaWawLMO/sJ5+4lUdqaxnA54oXrTDg/CvQ4t 7KDSTxNW9BJhGVOpbsKzeOsW1e1DftNL5g2kt9jIqw0Hj6EdE9VHz3AVDdNqHxu6WJPA dJkKmfVWOhs8K0ADDh5R2VI69aJs7Zj0FAAYVTA6aeq9qQkjQbGYA1dG0jMYR+pKuAni Vb5xKejYLZHLRNz7dqJcU7Kt3MULjZ1+MRjuC6mFdQWD1aCQ3HMtvEcD5uCoyHzJ+JiD hk1iePiB6Pj4YNWUZ7rlJweaSvitRu8jBRoJMUCyITm4JDhJQuHcqEuMlm4iwmj2jD5Q SxEg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=a8Szr4z7U3LLWZpmFRmG29wYOgRi5MD6X+p5qsug0OA=; b=NWJ+2Gw+FAuYtiIlg2WdQ/NSlLS4u5ilW4fnH39rypUw7aQ4kgQ4XTaDp2sMTAyZV6 FsRDIKrppj5FI6gZOD+FPCXAXVYMdMezc1nxHMfE0Bc/hMGuLzwHZSEcwPPLq+aGVe8T ZYNhXWlkYTZIOI94wWACF6uP5Y6JBbKWSj3mcKbRtAADMD4pMAvW9MSl1fupGl1cIkT6 bfUVVpNIGAnwUA+5sS76ZjkgoB7ZGP/uQA9XWhHSIUgpm5ZYoZ2lD3mbvAMGVWiQj0GK 9aiNBFZ123buI0AOd4D7UUUyKD7D+fvg/thQZCyzaU7DtLEHGjezCleZh5cCrB8FISV9 NRrA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b="Pob2AA/6"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id h4-20020a170902f54400b0015cfa9a0a25si2211134plf.361.2022.05.18.00.47.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 May 2022 00:47:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b="Pob2AA/6"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 0FA6D119069; Wed, 18 May 2022 00:45:31 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232364AbiERHpH (ORCPT + 99 others); Wed, 18 May 2022 03:45:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35108 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232343AbiERHpF (ORCPT ); Wed, 18 May 2022 03:45:05 -0400 Received: from mail.skyhub.de (mail.skyhub.de [IPv6:2a01:4f8:190:11c2::b:1457]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 69DA8115C8F for ; Wed, 18 May 2022 00:45:04 -0700 (PDT) Received: from zn.tnic (p200300ea974657d0329c23fffea6a903.dip0.t-ipconnect.de [IPv6:2003:ea:9746:57d0:329c:23ff:fea6:a903]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.skyhub.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id 527C91EC0666; Wed, 18 May 2022 09:44:58 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1652859898; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=a8Szr4z7U3LLWZpmFRmG29wYOgRi5MD6X+p5qsug0OA=; b=Pob2AA/6Vhjy47GRjAV39j87RoTblM7SFu97DnhIry+QeDLbyAQdHuDrgFDWIiEnpC4bm/ Xi/iAffzZviq9amZHlIwnWlB180E1+Fa+9cjED1quaEIpjZb08y2XM+M/dfSOZpW8uPJ98 G1U8sQiSeFJI7pnTBmLcMFUjPrbkZYw= Date: Wed, 18 May 2022 09:44:52 +0200 From: Borislav Petkov To: Randy Dunlap Cc: LKML , Jani Nikula , Joonas Lahtinen , Rodrigo Vivi , Tvrtko Ursulin , David Airlie , Daniel Vetter , intel-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org Subject: Re: [PATCH 11/11] drm/i915: Fix undefined behavior due to shift overflowing the constant Message-ID: References: <20220405151517.29753-1-bp@alien8.de> <20220405151517.29753-12-bp@alien8.de> <78e67e42-7e1e-e9fa-036d-441168100731@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <78e67e42-7e1e-e9fa-036d-441168100731@infradead.org> X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 Tue, May 17, 2022 at 04:05:46PM -0700, Randy Dunlap wrote: > > > On 4/5/22 08:15, Borislav Petkov wrote: > > From: Borislav Petkov > > > > Fix: > > > > In file included from :0:0: > > drivers/gpu/drm/i915/gt/uc/intel_guc.c: In function ‘intel_guc_send_mmio’: > > ././include/linux/compiler_types.h:352:38: error: call to ‘__compiletime_assert_1047’ \ > > declared with attribute error: FIELD_PREP: mask is not constant > > _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__) > > > > and other build errors due to shift overflowing values. > > > > See https://lore.kernel.org/r/YkwQ6%2BtIH8GQpuct@zn.tnic for the gory > > details as to why it triggers with older gccs only. > > > > Acked-by: Randy Dunlap > Tested-by: Randy Dunlap > > Is this merged anywhere? It's state is "new" in their patchwork: https://patchwork.freedesktop.org/patch/480756/ so I guess not yet. > It could/should at least be in linux-next so that other people > don't waste time on it. -ETOOMANYPATCHES I guess. :-\ -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette