Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp657053iog; Fri, 24 Jun 2022 11:05:35 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tbUXMJ1TwJAVwvBupPzCX1rSuT4nreZfBqatHtvDVY29j7C3yDuC80HRdQdIdWtwBoS+eO X-Received: by 2002:a63:d57:0:b0:3fd:ac2b:75aa with SMTP id 23-20020a630d57000000b003fdac2b75aamr66372pgn.533.1656093935627; Fri, 24 Jun 2022 11:05:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656093935; cv=none; d=google.com; s=arc-20160816; b=lOigpcYrkKabGj7g6lNHbWb2L74pKZL/VQrmpyh2+3VLAvGFmvZ2mHNbJAmzFceD/e P4XFTSDFpSu5v9qxmZnfiGw4FVeAtTiVocscg49rsHqoSMrKRk+Hpb6VgSvUL95hPtgR +gveJpRdQJisp6UA274zuQEZIhUoSczm2vxvuWV910V6IKnLKts3FYRRChhhZNOcSSr7 N334YsSI5D2muO1Btj+lo5frGLXGDUTQQI71cwYeACypW3lPkiOFCFL4HhYmUz1XswmG 7MqMNwtVui8Jsh4t8X48eDwOTf5e88FuG4pX47GWLnWBxZbBoO9jNk1mymVlt228jEm2 F57Q== 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=gqe2BcnXvHPlqIWzjEeLMU7FqAv/n1XXHRJeEUKzlKg=; b=LXxN8Qyr146rFInaQ0OxWgsNDmBIug6gCxU2kD9hG3FMILP2kFXcBmZg/+kw5K1ih4 jrlK+gfvsmDSgFR9/Z/Ulrv4Bdf3kOnhjvhxewzH2IY1vV2yCgC6hNwuxL5bFL9+8wna U0UDZb8ifrTp2KrFKmGGzLKQUCtwj0f3FeF9maVnkeFsnOEtVewwWaO8wt+lxfaBW7ds ancXS5ez9Nj82uzNoD1N/4cR37bYp7dSaLdjGFfQDMscmd83QVmg77lRb3LZZHzU9x6e dxyKvMXEPCxwJismDtpysPYY704g9DUo+DT3/2SR69uVUvMJ4hi0dhZnHVzCgb91FI+Q 3DwA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=Kwt9moQU; 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=chromium.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j5-20020a17090a3e0500b001ec72b4cc65si7625399pjc.109.2022.06.24.11.05.23; Fri, 24 Jun 2022 11:05:35 -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=@chromium.org header.s=google header.b=Kwt9moQU; 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=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231952AbiFXR6L (ORCPT + 99 others); Fri, 24 Jun 2022 13:58:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58722 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230475AbiFXR6J (ORCPT ); Fri, 24 Jun 2022 13:58:09 -0400 Received: from mail-oa1-x2d.google.com (mail-oa1-x2d.google.com [IPv6:2001:4860:4864:20::2d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4A5D910FCD for ; Fri, 24 Jun 2022 10:58:06 -0700 (PDT) Received: by mail-oa1-x2d.google.com with SMTP id 586e51a60fabf-101d2e81bceso4844255fac.0 for ; Fri, 24 Jun 2022 10:58:06 -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=gqe2BcnXvHPlqIWzjEeLMU7FqAv/n1XXHRJeEUKzlKg=; b=Kwt9moQUmYxkfufWsGqYBe5lp3LxFQbCnc0bamVdgN/b93sQhP6MEbkSTB7dkyROlE EyqGapHYCUabHsQjh7Hx6PJftkV7ojjZ4a5esOjA/2X0G5Xr6i0M/y2yRW98HfqLoNgG Tx/vQZXQDex2uzamvTdL9PY543Zsz0xr9Ggx4= 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=gqe2BcnXvHPlqIWzjEeLMU7FqAv/n1XXHRJeEUKzlKg=; b=mra8FLixSutxix2Gw7G0XZwIpLWmufyVKNeyXLXJ0HNqccZuVhBzA823qH5niUUBtD UWsrqLqvAwbcpbahIeSJo3hOhY2P2dGyjkYu22tZ7934WrRLsXdRboADT9S4e3EIdlS3 3VFXOq5xSMMDYGS6hSgjsbmKbnTuYpm1KH9PtHqV1GJjzkcGjinSfuE5274CmgQmDEmj OZegntQUAvro/qY1ee/q3Bibspmr68+/2n62h5puh/9U+g6t0K6E6Ff1BrhcFAws6W6g OIo7/603ERmm0EOaUsbvf44nX7mmF8l21uMGfVs/itlk7gPq1qmYldc2fSZirAMyaJxA 8qPA== X-Gm-Message-State: AJIora/uf3EaVJQmfyGaF1WcmFsqvGfxz3LelePFkjD674lvB4+bmtiL /52sN1glbGEOjc7HRLSf9j2cStIU1a/lEQ== X-Received: by 2002:a05:6870:15ce:b0:101:8329:27e1 with SMTP id k14-20020a05687015ce00b00101832927e1mr127553oad.298.1656093485959; Fri, 24 Jun 2022 10:58:05 -0700 (PDT) Received: from mail-oa1-f54.google.com (mail-oa1-f54.google.com. [209.85.160.54]) by smtp.gmail.com with ESMTPSA id 44-20020a9d032f000000b006169f5547e0sm1893895otv.30.2022.06.24.10.58.05 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 24 Jun 2022 10:58:05 -0700 (PDT) Received: by mail-oa1-f54.google.com with SMTP id 586e51a60fabf-101dc639636so4764646fac.6 for ; Fri, 24 Jun 2022 10:58:05 -0700 (PDT) X-Received: by 2002:a05:6870:f71d:b0:f2:a4c5:191a with SMTP id ej29-20020a056870f71d00b000f2a4c5191amr2897379oab.257.1656093484616; Fri, 24 Jun 2022 10:58:04 -0700 (PDT) MIME-Version: 1.0 References: <20220617172623.1.I62db228170b1559ada60b8d3e1637e1688424926@changeid> <4196825.8hzESeGDPO@phil> In-Reply-To: <4196825.8hzESeGDPO@phil> From: Brian Norris Date: Fri, 24 Jun 2022 10:57:53 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] drm/rockchip: vop: Don't crash for invalid duplicate_state() To: Heiko Stuebner Cc: Doug Anderson , Daniel Vetter , David Airlie , dri-devel , "open list:ARM/Rockchip SoC..." , LKML , Sandy Huang , Sean Paul Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,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 Fri, Jun 24, 2022 at 12:23 AM Heiko Stuebner wrote: > The interesting question would be, do we want some fixes tag for it? I'm not aware of any currently-upstream code that will hit this [1]. I've hit it in out-of-tree code (or, code that I submitted to dri-devel, but wasn't accepted as-is), and this is the "belt and braces" part -- the primary fix is that we should avoid calling things like drm_atomic_get_crtc_state() at inappropriate times. So, is the "extra safety" check really something that should go to -stable? (Because let's be honest, everything with a Fixes tag goes there.) Maybe? Anyway, if you want to "blame" anything, this commit actually dropped the safety check: 4e257d9eee23 drm/rockchip: get rid of rockchip_drm_crtc_mode_config Brian [1] But I'm not omniscient. So maybe it's good to have anyway.