Received: by 2002:a05:6358:bb9e:b0:b9:5105:a5b4 with SMTP id df30csp4832966rwb; Tue, 6 Sep 2022 13:31:22 -0700 (PDT) X-Google-Smtp-Source: AA6agR70XCvZbpgRHjJfCWtLNIdFdZHewnc5+8F2us48824mHdGQY8U/Iw3gb28XbvLFVo8St4QG X-Received: by 2002:a17:906:8a65:b0:770:7e4b:89cf with SMTP id hy5-20020a1709068a6500b007707e4b89cfmr140238ejc.489.1662496282460; Tue, 06 Sep 2022 13:31:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662496282; cv=none; d=google.com; s=arc-20160816; b=dmhh2/tzPUtLIOzLLbAd4MgiZsgTOWckdKFCQPUrRvhauucxqdG2A2TfIde9k5g8X9 MeGKHoZx+5h+vsJGS2nT4vSeW5HhKBpkVGgTlbDMii4m1CmQOsxI6GJJwLWTtbYY1YU8 ECbosWZrGeYvKTspWh/HuojvWCOl5CR+6YfJXerSw6W4pK/uAfEDhByUn0A/bn1nDhmp EroUeSxtoWITb5JQJ053GXznsModtXg3MbEDZkwszoM0nZn++RggguyT226jiDKYWtBf lMbwbQTMNZ3yvLzRzSFlEQmjXCrVMndYEB2oQdfK563wamE5qjgT7LER7QMUpoNMWza9 DLLA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:mail-followup-to:message-id:subject:cc:to:from:date :dkim-signature; bh=nLFlBHZY1lvIxs+wDFQOuCeDs8kLFFZtfH1W2GDdEPo=; b=0pUeak5nZ3or/NWpNYzRbt0f9SFhQrgezfn8si6LZWxXMUyA3uH2cehq63NlhyDwZo 7pmh7JxQucl7orQk6NxXn0XWI0LznUVD2vyGNMx6Bz3Xpsv2l4zl65uZCicUOr082OwU 6rezE3dGdfTSdtJVt5h2MXEDVAMS0PhXTwIE/QZSE6STltIeDejuKBN5pBHuC2iaDYpt GY+vpPhwqdlrvC5CwT4dueetAPqNEheUAI3VZ3zY7sdRY4Qyhovxlp2l00EPKu7dMpuT eQ/JaifxhpQzaMFT/XJOyxU6umw6lHJz89pPudZV/Ln2Ejy3TkkQEUqlYfjj04t5wAME nPFQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ffwll.ch header.s=google header.b=UqsTLgVj; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d5-20020aa7c1c5000000b0044e69ba81e1si5870831edp.168.2022.09.06.13.30.56; Tue, 06 Sep 2022 13:31:22 -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=@ffwll.ch header.s=google header.b=UqsTLgVj; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231224AbiIFUJe (ORCPT + 99 others); Tue, 6 Sep 2022 16:09:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51614 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230192AbiIFUJK (ORCPT ); Tue, 6 Sep 2022 16:09:10 -0400 Received: from mail-wm1-x332.google.com (mail-wm1-x332.google.com [IPv6:2a00:1450:4864:20::332]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C4C24658E for ; Tue, 6 Sep 2022 13:04:28 -0700 (PDT) Received: by mail-wm1-x332.google.com with SMTP id bd26-20020a05600c1f1a00b003a5e82a6474so8093088wmb.4 for ; Tue, 06 Sep 2022 13:04:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ffwll.ch; s=google; h=in-reply-to:content-disposition:mime-version:references :mail-followup-to:message-id:subject:cc:to:from:date:from:to:cc :subject:date; bh=nLFlBHZY1lvIxs+wDFQOuCeDs8kLFFZtfH1W2GDdEPo=; b=UqsTLgVjQLipDQfZb/x0qe5JDHCOxqku0e19QU0dYlou2/J8OVBZJeRDxNXiMt97Fh 3E5z3Ckh+fTAiNAZ88UqDkC8Rxqq2be8e1Xcs8X8S+5QiUwgVbbGmxhGgJ8jaABZOpvw +SV8IhftYfLCmHJyD8EeqxTHO2IpFsS+Y4e0s= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references :mail-followup-to:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date; bh=nLFlBHZY1lvIxs+wDFQOuCeDs8kLFFZtfH1W2GDdEPo=; b=W2mlYGTbtBmTh1J3CEpKjJ3oNPvKrhxQvPu1t18n4fwSbnkjAezUeN5kwejAtQaf+y MBW/a+UwQIVl+eVoC99EseCZXx36ikfuxEBZ1cFTQTcTRaQRQjgqEODSBVSJEOtWnqT+ pY7JVffjVky5D1V9MS+pYxYaWoUqcO5tSY2f8YcxugyzBBUOezZ/x0ouBbJa05zst2pL +/bdAlx7L/ORs/qaY4QBSkf/hGYcOb37Y+HRdFPj7VVSDfxumdShArC358xIU9YZGgxE AHILVvMJ38tHbiRUTKN4jCvGFD7orv/jgcIu8AjAkMXWgXKnFOJi4ENcma7F2LuW3/jp LKCQ== X-Gm-Message-State: ACgBeo2t5CGR3IrSbgI6p4MlMjsvQ9hUN8jfqgB6GCAoPFUJwfrWvuD5 HwaWe9TtWWCJNYVjXhrMn0bwnnlJ6+Gafw== X-Received: by 2002:a05:600c:1c95:b0:3a5:c28a:df3e with SMTP id k21-20020a05600c1c9500b003a5c28adf3emr54685wms.40.1662494084388; Tue, 06 Sep 2022 12:54:44 -0700 (PDT) Received: from phenom.ffwll.local (212-51-149-33.fiber7.init7.net. [212.51.149.33]) by smtp.gmail.com with ESMTPSA id n22-20020a05600c465600b003a839b9ba0asm20868743wmo.40.2022.09.06.12.54.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Sep 2022 12:54:43 -0700 (PDT) Date: Tue, 6 Sep 2022 21:54:41 +0200 From: Daniel Vetter To: Alexey Khoroshilov Cc: Geert Uytterhoeven , Andrey Strachuk , ldv-project@linuxtesting.org, Thomas Zimmermann , David Airlie , Helge Deller , Maarten Lankhorst , Linux Kernel Mailing List , Maxime Ripard , DRI Development , Daniel Vetter Subject: Re: [ldv-project] [PATCH v2] drm/fb-helper: add virtual screen size check to drm_fb_helper_check_var() Message-ID: Mail-Followup-To: Alexey Khoroshilov , Geert Uytterhoeven , Andrey Strachuk , ldv-project@linuxtesting.org, Thomas Zimmermann , David Airlie , Helge Deller , Maarten Lankhorst , Linux Kernel Mailing List , Maxime Ripard , DRI Development References: <20220811144850.215377-1-strochuk@ispras.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Operating-System: Linux phenom 5.18.0-4-amd64 X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE, T_SPF_TEMPERROR autolearn=no 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 Thu, Aug 11, 2022 at 11:59:00PM +0300, Alexey Khoroshilov wrote: > For v2 I would suggest to update description to something like this: > > Make sure that virtual screen size is not less than physical screen one. > > and comment to: > /* make sure that virtual resolution >= physical resolution */ Did this land somewhere? If not please resend with r-b tags and everything. Thanks, Daniel > > -- > Alexey > > > On 11.08.2022 17:54, Geert Uytterhoeven wrote: > > Hi Andrey, > > > > On Thu, Aug 11, 2022 at 4:49 PM Andrey Strachuk wrote: > >> Add virtual screen size check to drm_fb_helper_check_var() in > >> order to validate userspace input. > >> > >> Found by Linux Verification Center (linuxtesting.org) with syzkaller. > >> > >> Signed-off-by: Andrey Strachuk > > > > Thanks for the update! > > > >> Fixes: 785b93ef8c30 ("drm/kms: move driver specific fb common code to helper functions (v2)") > > > > I'd drop the Fixes tag completely, as the bug was present in the > > intel and radeon drivers before. But probably it doesn't matter, as no one > > is gonna backport this to v2.6.31 and earlier ;-) > > > > Reviewed-by: Geert Uytterhoeven > > > > Gr{oetje,eeting}s, > > > > Geert > > > > -- > > Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org > > > > In personal conversations with technical people, I call myself a hacker. But > > when I'm talking to journalists I just say "programmer" or something like that. > > -- Linus Torvalds > > > > _______________________________________________ > > ldv-project mailing list > > ldv-project@linuxtesting.org > > http://linuxtesting.org/cgi-bin/mailman/listinfo/ldv-project > > > -- Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch