Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp392456iob; Wed, 18 May 2022 04:40:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzuCQ9++3eVF2IJE7JVIarS4WdoWOOozHfgeHhhp1JFUPVR2iQjZPVPYlRXAIcYbASZ6tcX X-Received: by 2002:a05:6a00:181d:b0:50d:d56c:73d3 with SMTP id y29-20020a056a00181d00b0050dd56c73d3mr27136953pfa.22.1652874001717; Wed, 18 May 2022 04:40:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652874001; cv=none; d=google.com; s=arc-20160816; b=mjxdphFbFgRbWDWvjvTKsoHvcHTLiME3XOn1MEUBhP5NDSvYAutecRLhXO7ls5eimm XE00y/o5UCyCAylLooRip9KGuSkc8AB9zDBrSOSsceJcTGJR/YwtFf0HSqfsgFS4pc/p bk0WgM9PuAM5Ife43vPJMvuXG5k3rsOmULymgGfkstOoj8NuIm9zEkwdVqKO1ZkJ8XQf TkcPr2P0ERcsj0Ztlw77xY85/6MPGwSAtXqaJpb2Xr/cHulU6fVu5nO8JiyjHRkuhTon s9389M4g+NgcdwltuQFiCUZqqfPMBGhdGJezpzm+sBkVogjq9NQBYdvvrVWF1VFbVjKR WI6w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:references:organization:in-reply-to:subject:cc:to :from:dkim-signature; bh=k/lda99ziUwx4KByTuIZQEpFkE1zPMEozbCiWxt15AQ=; b=uhcTKGMbncYnmDOjCUeTUeVG11saakKgaxlpe28/khklCPqm5IHDQ7UB17GG/SzMw1 tYN9RJGtxLZ2hay3SaLYzarMKwocRs2oK0W2/5asNQnFaosTjCMrgbLrOWrck8+uC8Du e5QFzg4UjF7mpSn1ZGswZ873kIVvFsNlSt/xzG03Ai2rFfiBH5CC0v0cGE8dVrrZfrsd OlrAkOYFHTwN25c24KqLTKe1CuhrjZk8SIXkB6udgftDmoBHTWBwVTCx2UB4k6YWvToY wtqZ0BnZXatASx4LdYDVFy0bPiP/lTWd/gh0bYqmouLvpYFa7OV0DhhHpU0C09dy94JS OTBw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=lvYRUVjP; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id d85-20020a621d58000000b004fa3a8e00a7si2465332pfd.350.2022.05.18.04.39.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 May 2022 04:40:01 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=lvYRUVjP; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 3DF9A111BAA; Wed, 18 May 2022 04:39:40 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235833AbiERLjc (ORCPT + 99 others); Wed, 18 May 2022 07:39:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54762 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235714AbiERLjV (ORCPT ); Wed, 18 May 2022 07:39:21 -0400 Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 71EC517909F for ; Wed, 18 May 2022 04:39:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1652873960; x=1684409960; h=from:to:cc:subject:in-reply-to:references:date: message-id:mime-version:content-transfer-encoding; bh=rjF4zWNjVkRaA4u9AigM/0O/Su6Qa+NPXOPo2kzYSB0=; b=lvYRUVjPAVSsPE9bjm97wa2mcbS//HmsGFbSniL6Jy7jXvTqHRxzZwiO VLkuByxn7hgtkaju8B7N3k4119AUVovLBYF+pp2eQ9tw+37syA47prkPr PQYLYhNILNobUB+waivvuC468LfmPzZ/3eoSTTrQKzWIbJtoAL6BQ4zpY D1oqPDujPIif3tvlJs3P9CRveX71AjWTxHS91OLDRGvq89xJYmLIUnJSr vKSFgk+Y0voPD808jO5xx0Hfc8tnUuYDJuo+Myyc2dfi+XqbZs/OcB/sF KBxELdlWQlSu1KJCEpcPzZ6F2hbQk5sAjSNVCzjjKXPvkCZ5JebQf2r2i w==; X-IronPort-AV: E=McAfee;i="6400,9594,10350"; a="271577950" X-IronPort-AV: E=Sophos;i="5.91,234,1647327600"; d="scan'208";a="271577950" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 May 2022 04:39:20 -0700 X-IronPort-AV: E=Sophos;i="5.91,234,1647327600"; d="scan'208";a="626998272" Received: from jwasiuki-mobl1.ger.corp.intel.com (HELO localhost) ([10.249.133.47]) by fmsmga008-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 May 2022 04:39:16 -0700 From: Jani Nikula To: Borislav Petkov , Randy Dunlap Cc: LKML , 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 In-Reply-To: Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo References: <20220405151517.29753-1-bp@alien8.de> <20220405151517.29753-12-bp@alien8.de> <78e67e42-7e1e-e9fa-036d-441168100731@infradead.org> Date: Wed, 18 May 2022 14:39:14 +0300 Message-ID: <87k0ajdq8t.fsf@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,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 Wed, 18 May 2022, Borislav Petkov wrote: > On Tue, May 17, 2022 at 04:05:46PM -0700, Randy Dunlap wrote: >>=20 >>=20 >> On 4/5/22 08:15, Borislav Petkov wrote: >> > From: Borislav Petkov >> >=20 >> > Fix: >> >=20 >> > In file included from :0:0: >> > drivers/gpu/drm/i915/gt/uc/intel_guc.c: In function =E2=80=98intel_g= uc_send_mmio=E2=80=99: >> > ././include/linux/compiler_types.h:352:38: error: call to =E2=80=98_= _compiletime_assert_1047=E2=80=99 \ >> > declared with attribute error: FIELD_PREP: mask is not constant >> > _compiletime_assert(condition, msg, __compiletime_assert_, __COUNT= ER__) >> >=20 >> > and other build errors due to shift overflowing values. >> >=20 >> > See https://lore.kernel.org/r/YkwQ6%2BtIH8GQpuct@zn.tnic for the gory >> > details as to why it triggers with older gccs only. >> >=20 >>=20 >> Acked-by: Randy Dunlap >> Tested-by: Randy Dunlap >>=20 >> Is this merged anywhere? > > It's state is "new" in their patchwork: > > https://patchwork.freedesktop.org/patch/480756/ Basically we run all patches through CI before merging, and because only one patch was sent to intel-gfx, the CI just sat waiting for the rest of the series to arrive... Anyway, didn't really like the changes in i915_reg.h, sent my version of that and the rest separately [1]. > 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. :-\ Yeah, sorry about that. BR, Jani. [1] https://patchwork.freedesktop.org/series/104122/ --=20 Jani Nikula, Intel Open Source Graphics Center