Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp4609785pxb; Tue, 5 Oct 2021 06:47:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz61fmiAutW3JXaAAASjAypNeBJutXBNcXiHd1fRFYDWLvsF0AbCVeV+QgSwqjCWQ7vEktx X-Received: by 2002:a17:906:318b:: with SMTP id 11mr25938691ejy.493.1633441641539; Tue, 05 Oct 2021 06:47:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633441641; cv=none; d=google.com; s=arc-20160816; b=UYw9Lj/u8UyeghCxmXuYxQrWnvOlQ/DLVE/B1Tf2NKGhc6HBtvo5MLQwdJqBxIprw7 jpL0Fdf7P5FPrTibWtOhOX9vXs3OEjfloMA9Ih9HnYPviKfDKpfZh1kh7CpR6n0o2znM l9hdZ2hlY15PPRcxiHcVbO4RdOmxZYr3ewIDrI1D+jbXVftY7A68rhcjb+OGQsTHkohp pgn47PsCtrVfY073J0mk61CNTgnChqhgyOv6B0wGeY7veScDwLXbWFhKZL80eWsRw9gc VApEs0vvAfZoilmK+2ijinFvv46bGIgiBiNdRP/C3+sB84b5gSa8Jy6zRf3GDHe6cMUN hleA== 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=DgOIE96eS9LCwM8xrp/VmKNjdKCV3OUl2f/h98/P2uA=; b=i3MtJR4Sb8iFPuzGYV6zUG3W65SlU35GAa3x37JTLYeAtcVTfrnVJpyhussnqMQYXd V0x7PEEg5clmu3rhsbl8nlWUn28/TY09bAXzehO7xmFCvuxCyxB0TcHVNDV8aZ8cppTe hysRmo59BvDF3DZLB1prZyRtyQ0z7hLxCmZU86YBgE7BwhXnq+Kts8ELK3OLTyy370KM PL4dv57SQeMyocdbknmMkhwAmmTjv/9muzDszYdrehFy88JJDvC1EmvlkkpMxprxuoDC YukK99Jd5WVmm5/dS7/gBIyxKGZJl+FcBAQytbBpwwjlMyRAuz33G8po6oHuDaygva/P 9G0Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=Ik3Vtett; 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 q8si21626880edj.90.2021.10.05.06.46.57; Tue, 05 Oct 2021 06:47:21 -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=Ik3Vtett; 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 S234814AbhJENrO (ORCPT + 99 others); Tue, 5 Oct 2021 09:47:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34654 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233602AbhJENrN (ORCPT ); Tue, 5 Oct 2021 09:47:13 -0400 Received: from mail-il1-x12f.google.com (mail-il1-x12f.google.com [IPv6:2607:f8b0:4864:20::12f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 43FCFC061749 for ; Tue, 5 Oct 2021 06:45:23 -0700 (PDT) Received: by mail-il1-x12f.google.com with SMTP id y15so21838383ilu.12 for ; Tue, 05 Oct 2021 06:45:23 -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=DgOIE96eS9LCwM8xrp/VmKNjdKCV3OUl2f/h98/P2uA=; b=Ik3VtettYsKq8tCKrQwpYih9V4scwM/ap7YHv9s4H1bIAmcl44e9EYxcyile1eNDjn BA60YaZR+yP6XLpREe7X48XFqf2HQLVL/VgOaJfgs5/OE7V9Vp2DkS5EhbtvrYQNGIaV XqjjaHpSRqrz7gvM4MQOiNmfkXBcFX89TDXl0= 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=DgOIE96eS9LCwM8xrp/VmKNjdKCV3OUl2f/h98/P2uA=; b=nQzbGWzXNYNrODS8DNQEgdoU44+Nm0Fv1IvxQZp2QT2mIq1DWkhFg0/9GiyzLJIzYM ltf/5aR8RFRzxGNJZ3h2HSBFah0VnFtJHhZ0qC1YSlFomIccux9o9alB4g4bCpaUVvM0 /xZlfFgYsnJBOpt5JCz1xxsa8fbTh9P7qaWT6sSV+i7EDUO0dWdf+iHOfXrPXhdqGDOM 55BCF6R+eSgKaYmtEoQv/hoVXbfSLqd1zBHBl+fxKmDdQWva49R1gvYE8yzKxl7tyk7M C2pLfmi8G5U7/vHvJopCv47cDr4U7ZhkcI0v1aGVT98dwjuZgqb0rNThIuWmxEPwWIP5 Zvvg== X-Gm-Message-State: AOAM5309Gvvk9znhj7aAhLh3JN5XUojlg60QzY2V57dIS28h5BMJ+gwh Kl5dba9CycGzod88AMmTKDUhRBFR8SVDQw== X-Received: by 2002:a92:ca84:: with SMTP id t4mr815894ilo.124.1633441522435; Tue, 05 Oct 2021 06:45:22 -0700 (PDT) Received: from mail-io1-f48.google.com (mail-io1-f48.google.com. [209.85.166.48]) by smtp.gmail.com with ESMTPSA id v63sm10820299ioe.17.2021.10.05.06.45.21 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 05 Oct 2021 06:45:21 -0700 (PDT) Received: by mail-io1-f48.google.com with SMTP id d18so24316773iof.13 for ; Tue, 05 Oct 2021 06:45:21 -0700 (PDT) X-Received: by 2002:a02:c7d2:: with SMTP id s18mr2725618jao.68.1633441521325; Tue, 05 Oct 2021 06:45:21 -0700 (PDT) MIME-Version: 1.0 References: <20211004092100.1.Ic90a5ebd44c75db963112be167a03cc96f9fb249@changeid> In-Reply-To: From: Doug Anderson Date: Tue, 5 Oct 2021 06:45:08 -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 5:40 PM Doug Anderson wrote: > > 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. Ah, doh! I can't push until I can get a review tag from someone. As soon as I see one then I'll give it a push. -Doug