Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp676462rwb; Thu, 11 Aug 2022 08:08:57 -0700 (PDT) X-Google-Smtp-Source: AA6agR6ZhySxG0Ap9QcKI3jjJ1GyY6USqPoC6zhhnwx2bKhM1L+kOpC5cLmMLI8BzzyLauGmHKmZ X-Received: by 2002:a05:6402:2b8f:b0:43a:66d4:a025 with SMTP id fj15-20020a0564022b8f00b0043a66d4a025mr31492823edb.121.1660230537597; Thu, 11 Aug 2022 08:08:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660230537; cv=none; d=google.com; s=arc-20160816; b=MRWCr2QEjFGWsiZZTvaxes2xZ/iOrqAwRTkv68QaD4zvDzNMXATezGQuMJ0pG4u/j3 ee7iif62PK+6UcdEY1o29UtBUGMzLAUc62Vq0r5c0F8X9YG7qqL+cD5SMGzAUkpHqZGL XRTfeZzQMsOdNGsn57WlfEc/9u/D6Rt0NIJnBXNyOrO0hXyrwTogFDZf+Vj0PFOucgeN M/IHa4zdoIjd2ZXgG+ILlgL+UqYmG3tFHvR3XaGOd+DHvfRBs7QRRgwHujewY75BgYeS zNIubfijRSJoj2lqK1ILtoBTPOvHf4GtKsf3XgT/Cwt75KE+whtR/48YqN5PR0s771zy sQ0w== 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; bh=9BmF3Ji5gJTAQfOQyztWwt7GQUoCWmH9+aqwzCjq0dQ=; b=RRPqfayBQslgN/uCW6NbB5JDSy+/KScG7C745gAM3T/cswEfKokiam6tP0/9tRIYhX EnGhCnBHjeruD6yQ1gMvMD+RN3EmA1q6jnpgCBN0QGnXboBml6mYB/q3xHFyJUkffcOr MyX1khfJQOHAPrdHP532YKFGaH6jqadWi+oESj7gKur5enm05FQatWxtRpDE6CKjFz4s DzfxIW/22L+9MLfK8XWhgmMJRlf+R18oM9hXu035Raszzifsln7+cX+8P3au5KxEXVWp TPzRiqnjnKKR15xRh0D8quvFZnB5mojNcOkkhNcUvQ6n87CwXUjX8Sm/ZFhp2/pFj7IF /vGA== ARC-Authentication-Results: i=1; mx.google.com; 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 q20-20020a170906b29400b00730ba32de19si586821ejz.117.2022.08.11.08.08.17; Thu, 11 Aug 2022 08:08:57 -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; 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 S235374AbiHKOyc (ORCPT + 99 others); Thu, 11 Aug 2022 10:54:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41592 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235335AbiHKOya (ORCPT ); Thu, 11 Aug 2022 10:54:30 -0400 Received: from mail-qk1-f179.google.com (mail-qk1-f179.google.com [209.85.222.179]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 16966F0B for ; Thu, 11 Aug 2022 07:54:30 -0700 (PDT) Received: by mail-qk1-f179.google.com with SMTP id i13so5776340qkm.8 for ; Thu, 11 Aug 2022 07:54:30 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc; bh=9BmF3Ji5gJTAQfOQyztWwt7GQUoCWmH9+aqwzCjq0dQ=; b=TQztfiRuGaGUPImsK40GDpnlDmv6mP5VjqPjFGfx1nVk30MIAaLM4d61LzLrNw0pkv /o8K0bA6c58TbJ9ilJ4iMgsAR0gUwkaetSEV1G9fU9nbtjDsvFg5hG1dGwQ8kHJg+t1W BEUSnCEQyw2PYFT1FulkvuBMS+j8iRFezRruug9h8tNrN/XCN6A0nJKvfvFGYuYD/Ggd 3qbjByYqu67VCFM2QvR/RA4q1211o2C9r+3eV8C714UWBPmofazC+15y+Q1IMA9taihS cn+oASkhm4tMGmEGEQU2BwlMJ0U2slkdBthdBloRyBIZ4nxLWmN9KvLFiPal7LxYJ1uZ cZqg== X-Gm-Message-State: ACgBeo3tUhxdosvMrFMsPKvijNXHTDCRI2nvRUzZbXvd9g+Ob4FqOfbS pSRp7PDJsc/GMgdOmb5SrHEOoWEQjOIFY984 X-Received: by 2002:a05:620a:25c8:b0:6ae:bf82:8f36 with SMTP id y8-20020a05620a25c800b006aebf828f36mr25660615qko.354.1660229668779; Thu, 11 Aug 2022 07:54:28 -0700 (PDT) Received: from mail-yw1-f176.google.com (mail-yw1-f176.google.com. [209.85.128.176]) by smtp.gmail.com with ESMTPSA id o22-20020a05620a2a1600b006b62c252d07sm2208003qkp.76.2022.08.11.07.54.27 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 11 Aug 2022 07:54:28 -0700 (PDT) Received: by mail-yw1-f176.google.com with SMTP id 00721157ae682-328303afa6eso174856897b3.10 for ; Thu, 11 Aug 2022 07:54:27 -0700 (PDT) X-Received: by 2002:a81:b049:0:b0:324:7408:94b with SMTP id x9-20020a81b049000000b003247408094bmr32604328ywk.283.1660229667766; Thu, 11 Aug 2022 07:54:27 -0700 (PDT) MIME-Version: 1.0 References: <20220811144850.215377-1-strochuk@ispras.ru> In-Reply-To: <20220811144850.215377-1-strochuk@ispras.ru> From: Geert Uytterhoeven Date: Thu, 11 Aug 2022 16:54:16 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2] drm/fb-helper: add virtual screen size check to drm_fb_helper_check_var() To: Andrey Strachuk Cc: Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter , Helge Deller , DRI Development , Linux Kernel Mailing List , ldv-project@linuxtesting.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE 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 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