Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0CA2AC433FE for ; Tue, 21 Dec 2021 10:50:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236678AbhLUKuT (ORCPT ); Tue, 21 Dec 2021 05:50:19 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51792 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231737AbhLUKuS (ORCPT ); Tue, 21 Dec 2021 05:50:18 -0500 Received: from mail-qv1-xf32.google.com (mail-qv1-xf32.google.com [IPv6:2607:f8b0:4864:20::f32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D4EFCC06173F for ; Tue, 21 Dec 2021 02:50:17 -0800 (PST) Received: by mail-qv1-xf32.google.com with SMTP id h5so10299878qvh.8 for ; Tue, 21 Dec 2021 02:50:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=TzZdj4RX/QXxZrZ1GTU0Kqu/1JYRTtnFGSwn3iVsJlg=; b=dXgcxeYccBnxvOokgg5QB22+5nqzF3W549vxLnmbT3fAH/EMs906NbQ2vx3/xz7cwf 58KzJ7WmMLWHH+D/gWPdusd3S3op6GPJUO9ZZoTGgcX/PWtWb+NuSIKsW3uB0KImW7Td miHSx6SmXXWw3h4l6ySU+rzWX4mNwIryvJ9F6QeYBpB3AB+L/lth6bBhOZFVmqYjICMt ADRK3/Vv0YWl+rQ0pkC9Z402cZ0UeJ4KYbGC6IUh43ZzdMtGmHKQ5LvGGkLtsDt831/J mS9wk+xeaEuhawQA4k8mZpv44asE59qtbq9xZwgUkIo5uc0G6wDWoZmhaEm+P/pfJ8jm CHWA== 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:content-transfer-encoding; bh=TzZdj4RX/QXxZrZ1GTU0Kqu/1JYRTtnFGSwn3iVsJlg=; b=TCdOIKdmSrg9DiVW31fjqsV2r1DTrjRN1quwn41pcz23J1ZlvhGNA5wmRFPzQSeW8+ pPwEY/QODO+djaiqutmlAaxOoBOn0PKxmRugjqyf5LmlTChj5u4XckjcnZ5n3C0V9CLj 0MyNpjPjbv9CjPmcm8jujwtwYvY3LncR+T5h/au67x0GEjIrZbto9PX350m63su+n/6Z SdqmKMXUqqYUGZwxR09V/P6eWPwDySFjYYPpIXE/TgcW7CeOTTV75Jdt075qQzq3Y9ZT OvnLggF4AJP9EDhoUqHAXttYMQnOi6BDfTo+iZkgDjlsFBoXBQPAlP+ZZNKKE3m4H0+k CUfg== X-Gm-Message-State: AOAM5321jLm376gBMRkBOHjU/9P6FRbSFSz3ois17f8MAzhFMjJR5ao1 tb+nZnesGxTkTBKuEY+fl8LOG2QbY66fBns/g8UaUQ== X-Google-Smtp-Source: ABdhPJyjCP3r718zG2y9rZym1LLMLwBnbmF9KhPbfuMqZPHscN0Q1b4k3vZAe7XJuxJxP1nL312NQCDnvnIjGTXGHQY= X-Received: by 2002:a05:6214:d0d:: with SMTP id 13mr1681130qvh.73.1640083817001; Tue, 21 Dec 2021 02:50:17 -0800 (PST) MIME-Version: 1.0 References: <20211221101319.7980-1-jose.exposito89@gmail.com> In-Reply-To: <20211221101319.7980-1-jose.exposito89@gmail.com> From: Dmitry Baryshkov Date: Tue, 21 Dec 2021 13:50:06 +0300 Message-ID: Subject: Re: [PATCH 0/3] Add missing format_mod_supported functions To: =?UTF-8?B?Sm9zw6kgRXhww7NzaXRv?= Cc: robdclark@gmail.com, maarten.lankhorst@linux.intel.com, sean@poorly.run, airlied@linux.ie, daniel@ffwll.ch, tzimmermann@suse.de, maxime@cerno.tech, mripard@kernel.org, wens@csie.org, jernej.skrabec@gmail.com, linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 21 Dec 2021 at 13:13, Jos=C3=A9 Exp=C3=B3sito wrote: > > Hi all, > > When setting IN_FORMATS, implementing the > "drm_plane_funcs.format_mod_supported" function is mandatory to avoid > exposing a bogus blob. > > This patchset adds a bit of documentation and fixes the issue in a > couple of drivers affected by the bug. > > I reviewed all the other drivers and I didn't find more instances of > the issue. > > Jose > > Jos=C3=A9 Exp=C3=B3sito (3): > drm/plane: Mention format_mod_supported in IN_FORMATS docs > drm/msm/mdp4: Add format_mod_supported function > drm/sun4i: Add format_mod_supported function > > drivers/gpu/drm/drm_plane.c | 7 +++++-- > drivers/gpu/drm/msm/disp/mdp4/mdp4_plane.c | 8 ++++++++ You missed mdp5_plane.c here. But I assume that the proposed fix is not correct, see my comments on patch 1. > drivers/gpu/drm/sun4i/sun8i_ui_layer.c | 7 +++++++ > drivers/gpu/drm/sun4i/sun8i_vi_layer.c | 7 +++++++ > 4 files changed, 27 insertions(+), 2 deletions(-) > > -- > 2.25.1 > --=20 With best wishes Dmitry