Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp4107904pxb; Mon, 4 Oct 2021 17:44:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwl3VgarB/54C11/EgJRcw2LUBEkMs/gQo+uC4SIMJH1K8aPUBMpQrBXGMiY7WIyDWbe2Wr X-Received: by 2002:aa7:d78e:: with SMTP id s14mr21450771edq.171.1633394657756; Mon, 04 Oct 2021 17:44:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633394657; cv=none; d=google.com; s=arc-20160816; b=Vv4wa6Gcbnrh+RMgL7sCHAkgKAPtcUJY+yrv5S5LRKBCXsEpptZTQ146XfwLd4XCAU J03vjjQXYXvR+qacqbYX7f/zFWzoOnXIzvEjf4Ez5zvl0V7uPPfKI2fgsTV3Lp+ghkWE Cfwoq1RAAHSMezcaNTNkd+f7Asp7CcCanXLsmkF7NMmwDjLkKAQIA4VkTww3uVQZ3094 9KeKrd7GSjC0y7LnZRDj/NnL/+rjgRmw4J0BYA3srTYP9TpdSwEKqs7E36WnpJsDoGk+ MzD9zRFxEe5gFda/E3Pi+n34Nk+eos5pOdveIGsX9aZAQMXD6eRscQVApQnEnsSINqLR nrNw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=S8/bkKiby+7EkwB2wz+nIC2A5KBIG95pAQLX24jqAYI=; b=TQj5/x0eT9NLX70SsMtpAXMSQ9HTFi014DjnbkG20mi5cevA0YuzF6erEsRP961orJ S+JPSuEVHX6VlcceVc6V4dT3hvpmiAKpeh+Iz2AdVbi+DQLP2NyYXoWYNjn0F+a/WiSc ZSzOX1F5G1K3myVcKOQv6Kjmpal7qbvzGwFZC9OPqOK+GG+HfmMkMPXAV1hkpSFbelfy ufR4tKxtwn6sJL4skNweBobtploWo1kpgW/yU7mrAHm1RoGryUBoKY99UYfFIDUnfzFj OZReFbeAqcRLbe+wsKyfuuBhI4vk7oyMo2iCcqyuRElQC/q4TAcBS+7H3BGnBKTaDzmB SvAQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=M4ztBx95; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j7si19148048edt.387.2021.10.04.17.43.53; Mon, 04 Oct 2021 17:44:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=M4ztBx95; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230437AbhJEAnA (ORCPT + 99 others); Mon, 4 Oct 2021 20:43:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51284 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231137AbhJEAmy (ORCPT ); Mon, 4 Oct 2021 20:42:54 -0400 Received: from mail-io1-xd36.google.com (mail-io1-xd36.google.com [IPv6:2607:f8b0:4864:20::d36]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A67D4C061764 for ; Mon, 4 Oct 2021 17:41:04 -0700 (PDT) Received: by mail-io1-xd36.google.com with SMTP id r75so22392287iod.7 for ; Mon, 04 Oct 2021 17:41:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=S8/bkKiby+7EkwB2wz+nIC2A5KBIG95pAQLX24jqAYI=; b=M4ztBx95ziwV0D+GbQdUtLp28pZJUKwn8h37ftcAcvY9Q+EomhOOR8ELG6jdaRGj3a QVUY+CqmNTnFHSoiLipf+EsQQkWXzpd3KFueYcdENLdMuAKkkHMaY/0f7xI77fy+JeFB EaXeVy1tYdpZoF8k/8oUKSLYtCLcaRmwShGnI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=S8/bkKiby+7EkwB2wz+nIC2A5KBIG95pAQLX24jqAYI=; b=l/SxPnCrUkywpiS1icU4dx8qlUmavaYodb4yYFZJvOd5kZrQe224iCOxhQug3QTp3F 8C7AL6r2i6WKGT8AcHmPI0bpWjjdr4hhUokO75mfbwASaLJNTqY+vOEtfLhSdPHMfcTE qTPK7NE2DnYFVF5KokpQn6IKG1p6NqKX8ERBgKUVRyh0j2QRh1ExKjAk/FJ5Ei7JCrIE jIH/x3/jMto6QgNsjH+u0fh5IC+nZpS1Z6fv29PA37+eqC7QYEw1FvdyRhFQS205pbwg x4VzRXLMU0lbf6LWCRWjp0GVte+11hhPBuk29Znu6asQV8Zh0hNsPWvGyozTL7t0uC61 E2Yw== X-Gm-Message-State: AOAM533wUWm9trUKEIZ9fTrdIpbK4gr40eekeXeXBIPlXIeJkR+YQY9i W2twQoeqqiEqY4+5AiR6uthQ+Xn6KuU3BA== X-Received: by 2002:a02:c4da:: with SMTP id h26mr167978jaj.101.1633394463858; Mon, 04 Oct 2021 17:41:03 -0700 (PDT) Received: from mail-io1-f43.google.com (mail-io1-f43.google.com. [209.85.166.43]) by smtp.gmail.com with ESMTPSA id y2sm9865917ioj.12.2021.10.04.17.41.02 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 04 Oct 2021 17:41:03 -0700 (PDT) Received: by mail-io1-f43.google.com with SMTP id q205so22382570iod.8 for ; Mon, 04 Oct 2021 17:41:02 -0700 (PDT) X-Received: by 2002:a6b:2ccb:: with SMTP id s194mr153772ios.128.1633394462524; Mon, 04 Oct 2021 17:41:02 -0700 (PDT) MIME-Version: 1.0 References: <20211004092100.1.Ic90a5ebd44c75db963112be167a03cc96f9fb249@changeid> In-Reply-To: From: Doug Anderson Date: Mon, 4 Oct 2021 17:40:49 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] drm/edid: Fix crash with zero/invalid EDID To: Geert Uytterhoeven Cc: DRI Development , kernel test robot , Daniel Vetter , David Airlie , Jani Nikula , Linus Walleij , Maarten Lankhorst , Maxime Ripard , Sam Ravnborg , Thomas Zimmermann , Linux Kernel Mailing List , Linux-Renesas Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On Mon, Oct 4, 2021 at 10:14 AM Geert Uytterhoeven wrote: > > Hi Douglas, > > On Mon, Oct 4, 2021 at 6:22 PM Douglas Anderson wrote: > > In the commit bac9c2948224 ("drm/edid: Break out reading block 0 of > > the EDID") I broke out reading the base block of the EDID to its own > > function. Unfortunately, when I did that I messed up the handling when > > drm_edid_is_zero() indicated that we had an EDID that was all 0x00 or > > when we went through 4 loops and didn't get a valid EDID. Specifically > > I needed to pass the broken EDID to connector_bad_edid() but now I was > > passing an error-pointer. > > > > Let's re-jigger things so we can pass the bad EDID in properly. > > > > Fixes: bac9c2948224 ("drm/edid: Break out reading block 0 of the EDID") > > Reported-by: kernel test robot > > Reported-by: Geert Uytterhoeven > > Signed-off-by: Douglas Anderson > > The crash is was seeing is gone, so > Tested-by: Geert Uytterhoeven Thanks for testing! I'll plan to apply tomorrow morning (California time) to balance between giving folks a chance to yell at me for my patch and the urgency of fixing the breakage. -Doug