Received: by 2002:a05:6358:e9c4:b0:b2:91dc:71ab with SMTP id hc4csp1916821rwb; Fri, 5 Aug 2022 09:51:43 -0700 (PDT) X-Google-Smtp-Source: AA6agR7X5Dx6cr5cem1G5Bq6GWPA0FzgWDuFmhmKm5U+ZjHyP6lbGvQiDEw6A++MudbTsblpn6xj X-Received: by 2002:a17:902:d2c8:b0:16e:ea4e:36e0 with SMTP id n8-20020a170902d2c800b0016eea4e36e0mr7774352plc.37.1659718302849; Fri, 05 Aug 2022 09:51:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659718302; cv=none; d=google.com; s=arc-20160816; b=pWeOcsH2NomlG5xc4sJyD4aaRdZEM05vmi+42RH1EQ43oRi+d+lpa1++N73yJwF6VN DmW4yCj+IZDhBlswTqZ5FWQgUNhzW69V6h2oTsSDPrVqiKAN9i3JZ2q6BZSLY9FQ0N3a at9aXvn7urqOI0Fafui0sembuZXWSLbZLjlYz2yg+o+nVJeZ5kA+PkxAWSlN4NlqJGgC OOMus0IqA8riz8fNeM69q+o3NJN/ESv5sRgeVHILqiqlwlCYVuCp+yZshVR5k6RWDUx6 qXcS2L8o/gChGPbuDOIAu8ZYvukley+u3Cn2WrxQA2om+Roe22QK5UOcnugrk8G3HpcB Dp3A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=l+6b50p8GGxPzLpEpNFk4bTf27GtT29sts3yo/4o6HU=; b=oZR+N6Mk4xrsqhvqRS5oZopCerBIRV9CdUf34h13MHNk3fSbMU3/d/WAg9Hbia4U3H qgM/5TeQYkDNLpDBnnO+aFIosc1Tjp/fcxQZim4wRHauDUdfdcy6zFZDn4P6OxTpVHE9 YGjbUMHMWMtzIOYunFPfN3GxB27kONRFHbY+7TYGNPidWuJKbugsstdE9wrYYzn0an2H /rb3HnbZgqfXoH4oab2+Y5eZZNA4ZW/xW/3N+jf1WMnyK+Ydyi7bIYzkfsEynucP6+EN oB6bGpqXVHf8C7lS0VwPpU6Bgj7j35/OFbT4x7ueNp5vHO+yAnP3RigBkdUUo5aavGTx Jm6A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmx.net header.s=badeba3b8450 header.b=VY4XvpIb; 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=fail (p=NONE sp=NONE dis=NONE) header.from=gmx.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j5-20020a633c05000000b0040da5486b4dsi3447297pga.489.2022.08.05.09.51.28; Fri, 05 Aug 2022 09:51:42 -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=@gmx.net header.s=badeba3b8450 header.b=VY4XvpIb; 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=fail (p=NONE sp=NONE dis=NONE) header.from=gmx.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240760AbiHEQsI (ORCPT + 99 others); Fri, 5 Aug 2022 12:48:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46686 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236963AbiHEQsG (ORCPT ); Fri, 5 Aug 2022 12:48:06 -0400 Received: from mout.gmx.net (mout.gmx.net [212.227.17.20]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F11C428E01; Fri, 5 Aug 2022 09:48:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1659718077; bh=BwxgXFyMoX6LG4RcXS/FAfwlY+oHnVTND2orTGFFzTg=; h=X-UI-Sender-Class:Date:Subject:To:Cc:References:From:In-Reply-To; b=VY4XvpIbVvbOGQNhkoQViFXEx1DZaUvp6CDdqM9Z8ieXT/ri0Aas/wsOqzvzjYKhW wGWlmGB1bYJI1eR9QI4KDJ3aWyAg7Yxw6H7FN45lSVGBJ581oJ5446zPxHrRwFNSx9 c9Hx+f3QACVCuV2XUQCsev9DWfiirimdssBJdcaw= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from [192.168.20.60] ([92.116.139.128]) by mail.gmx.net (mrgmx105 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MJVHU-1o08Bh2wEC-00JuGH; Fri, 05 Aug 2022 18:47:57 +0200 Message-ID: <98c1755d-5b67-70f7-c569-431e650ece70@gmx.de> Date: Fri, 5 Aug 2022 18:47:07 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 Subject: Re: [PATCH 0/3] Fix bugs in *_set_par() caused by user input Content-Language: en-US To: Zheyu Ma , adaplas@gmail.com, santiago@crfreenet.org, akpm@linux-foundation.org Cc: linux-fbdev@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org References: <20220804124125.3506755-1-zheyuma97@gmail.com> From: Helge Deller In-Reply-To: <20220804124125.3506755-1-zheyuma97@gmail.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:k9hWd321fIJId4w8JA+DmGPit3IfSkp0j0DDxrSaFTDDz5RI90+ rgYRcegevBKruvpsas6YTNL7Sd/n5FS79ygEB8ZjRG1Irc6fe/UruUExSw6XHsBnIcjCFhE mNWteMGBNNBGslWubvmFTWBCXvw5wcK8Zb1F1A0QZWgrGN3s9QkBiQAZpxcmn1iz7E65bQT 3i+DL97ehXko+KC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b86qyTU+QHp7QLU3/rUzf Y87R3BluQnWr4zfzxLlfOSukmkGMxZZZu64SYXGaV9kuX4BUOW5N5LwoaIRlTEetj74czxAPZ pZex8fmT9uFxIv00ASynq8Nws47fX20o8HUE1d8qYxeqvkvuJFWr8ifxQ== X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,FREEMAIL_FROM,NICE_REPLY_A,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2,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 8/4/22 14:41, Zheyu Ma wrote: > In the function *_set_par(), the value of 'screen_size' is > calculated by the user input. If the user provides the improper value, > the value of 'screen_size' may larger than 'info->screen_size', which > may cause a bug in the memset_io(). > > Zheyu Ma (3): > video: fbdev: vt8623fb: Check the size of screen before memset_io() > video: fbdev: arkfb: Check the size of screen before memset_io() > video: fbdev: s3fb: Check the size of screen before memset_io() applied all 3 patches to fbdev git tree. Thanks! Helge > > drivers/video/fbdev/arkfb.c | 2 ++ > drivers/video/fbdev/s3fb.c | 2 ++ > drivers/video/fbdev/vt8623fb.c | 2 ++ > 3 files changed, 6 insertions(+) >