Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp4606369ioo; Tue, 31 May 2022 07:54:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyfCtJC7v5NwU16FdnUSOHgxpuJ6aaiudLutsILjJjETwZyw9+SrD+AOrsXdjTOejrXAmjK X-Received: by 2002:a05:6402:4307:b0:42d:e4eb:5b6b with SMTP id m7-20020a056402430700b0042de4eb5b6bmr3234400edc.411.1654008888632; Tue, 31 May 2022 07:54:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654008888; cv=none; d=google.com; s=arc-20160816; b=IY7RE5n9mMNnXPk7RyKCPBv5xy+hg5sHQGc3MrNtKbqKUfiQGwJ/VGBJ6RcHuH0SrA oOa8QvoXqab8cInvVJ3qwE4mXpND0VejUcURBYNxLQknocJU7TaN9mEmXclMg8QTjaFA BPghS2QT0gNjjEY8JiPzMpjhY+DzG/Gxgnen/76POFpqk3xrPE4pOSWjc65NJJqWUFho gTiUl9NpM9fIavgM2mBhsmOwt8jTNc44en4v7KNbH7tAACxDtHz8TPk9+nXO8q48VBjp wZf1rg8UolNVcjozt9R4cKLpoWrlgVs+R8fks5bA/oZUhQUdUJEVPqROlOJgTkwwuSVY 7FRQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:references :organization:in-reply-to:subject:cc:to:from:dkim-signature; bh=WQ/uECQcS56KOWN+Gy3EMvRNB6W3yH8ivDGRpjU+SUg=; b=NZeb8SkIDacL4aPWIe+DaxggaMpwW33Gv0aAlNOccbCxIc5MQOPCculK+RBu+NQRnS o8DJsnDQuoJyBDOYDKmiVSeSQQNUm+2yWr75s9ctuE9tIqfIC1G8IAhC1s5t5m1adg2q 9lflbByBi2/0d3GuGqBZGoWhvy1enqGmlHZfLzckN0zBbc8gIA4uMoZLHv4g65PoyCZ7 2x80fwskPHTUthM+azWJjtLIKRCFxqX14s7pEIgci7R7IzhtSC0vF7ORIRcT7AzFmCv/ 1sZoLcHnfOdU9Id4r3j9y+QghbPK+t2fBAWYpNWnuLD9+BvMqyMkeCeO1xDkHdHEh73d 8hxA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=QGZ3+P4I; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id qk36-20020a1709077fa400b006fe4d195c19si14789234ejc.546.2022.05.31.07.54.23; Tue, 31 May 2022 07:54:48 -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=@intel.com header.s=Intel header.b=QGZ3+P4I; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234780AbiE3Jda (ORCPT + 99 others); Mon, 30 May 2022 05:33:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32918 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234726AbiE3Jd2 (ORCPT ); Mon, 30 May 2022 05:33:28 -0400 Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5F3DE6FA3C for ; Mon, 30 May 2022 02:33:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1653903207; x=1685439207; h=from:to:cc:subject:in-reply-to:references:date: message-id:mime-version; bh=TBSc0KNGpzSlLLY6lieGvmYQxKAskO2xitesyVYh6/0=; b=QGZ3+P4Ij6XGFmwq+TB8htG172nwvfQGwrQ9m5x7LPU440WMg01Sw9qp Jjgx6wxwieI97E3ZtXUCsfHb8ljrHr7eDIvi4Oyk1lRR4tNIDyyn4yJap 9XOVuvvqstwImuoV0HdVXGHV0AGIfUEI6kncd0VEHgA+tvUlqlfmXpJCg 3gObW55TuTCNqM/eXThw+cBDR5DsVYftfjY65MLmeI+oIhhmgSewBhYCR ylCZpkuvLXRToZ9fGVXdweTfxXEqzH8QrCnmNmS2l/h22qpBcSBwRt3Wa nZ8hL/6wR+b4Y+XpXLpuKm4S1ACjBtwweKE7v8R99+orTn1bihxMrbtdK A==; X-IronPort-AV: E=McAfee;i="6400,9594,10362"; a="275040850" X-IronPort-AV: E=Sophos;i="5.91,262,1647327600"; d="scan'208";a="275040850" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 May 2022 02:33:26 -0700 X-IronPort-AV: E=Sophos;i="5.91,262,1647327600"; d="scan'208";a="529103807" Received: from jkuna-mobl.ger.corp.intel.com (HELO localhost) ([10.249.150.228]) by orsmga003-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 May 2022 02:33:20 -0700 From: Jani Nikula To: Linus Torvalds , Arnd Bergmann Cc: Sudip Mukherjee , Russell King , Viresh Kumar , Shiraz Hashim , Ville =?utf-8?B?U3lyasOkbMOk?= , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter , dri-devel , Linux Kernel Mailing List , Linux ARM , SoC Team Subject: Re: mainline build failure due to f1e4c916f97f ("drm/edid: add EDID block count and size helpers") In-Reply-To: <87a6aztli2.fsf@intel.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo References: <87a6aztli2.fsf@intel.com> Date: Mon, 30 May 2022 12:33:17 +0300 Message-ID: <877d63tleq.fsf@intel.com> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-7.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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, 30 May 2022, Jani Nikula wrote: > On Sat, 28 May 2022, Linus Torvalds wrote: >> On Sat, May 28, 2022 at 11:59 AM Arnd Bergmann wrote: >>> >>> It's CONFIG_ARM_AEABI, which is normally set everywhere. Without this >>> option, you the kernel is built for the old 'OABI' that forces all non-packed >>> struct members to be at least 16-bit aligned. >> >> Looks like forced word (32 bit) alignment to me. >> >> I wonder how many other structures that messes up, but I committed the >> EDID fix for now. > > Thanks for the fix, and the thorough commit message! > >> This has presumably been broken for a long time, but maybe the >> affected targets don't typically use EDID and kernel modesetting, and >> only use some fixed display setup instead. >> >> Those structure definitions go back a _loong_ time (from a quick 'git >> blame' I see November 2008). >> >> But despite that, I did not mark my fix 'cc:stable' because I don't >> know if any of those machines affected by this bad arm ABI issue could >> possibly care. >> >> At least my tree hopefully now builds on them, with the BUILD_BUG_ON() >> that uncovered this. > > Indeed the bug is ancient. I just threw in the BUILD_BUG_ON() on a whim > as an extra sanity check when doing pointer arithmetics on struct edid > *. > > If there are affected machines, buffer overflows are the real danger due > to edid->extensions indicating the number of extensions. That is, for EDID. Makes you wonder about all the other packed structs with enum members across the kernel. BR, Jani. -- Jani Nikula, Intel Open Source Graphics Center