Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp742168rwr; Thu, 20 Apr 2023 06:01:52 -0700 (PDT) X-Google-Smtp-Source: AKy350ZDPkwg2wG7UYSsi+6mM6e0Mt8OExVpxR+qBK161nnjmPnqa1O0VzzlfZcBgxTLAcyuiA/P X-Received: by 2002:a05:6902:1887:b0:b8f:1d7f:f537 with SMTP id cj7-20020a056902188700b00b8f1d7ff537mr1475278ybb.62.1681995710351; Thu, 20 Apr 2023 06:01:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681995710; cv=none; d=google.com; s=arc-20160816; b=CLeNIOUr0hzC8g0lMyBPCufQOC3VfyODFBj2U0Z6JBEHnMrztfiuuGKKYBGt7MsFmR 6yRACKE00+R+HFkrtVfVmHo2NpFLePBxBd13ji4dxpO/C3/59XvKjNoFIyeNyFpuCiam CQytCc/wxjObdZHIaDRnSHCQ0peafrKDcDJa2oh3zjDeWUsft7t3obplQlkDYQAYinMa n2BQb0gVkTJY8zPHMXonJCzXuMhvMHBLwPyAicp5V2R+ALaRZ24hQzmWjo0E4IqYGI+w X61ypRfWVAiakdgAO0amYb+Mz5orvnXD4Ab5Klz+ucRXL50jjklx7GvC8yAHcvYROlxV qqmw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :dkim-signature:dkim-signature; bh=DEGj41opAhdIvCdRlBTEBs0zP1XeW2Gj6H6gpuRHYkQ=; b=yfPwkUpy/eZoFMV4KcJg+W0Z4OI58FYbpOvLxwVh7b0IFgRiIpwWUm1xfvGardMdTo Wll0KkTRItnLY0xiNtaISA0sBbY3jFnarMXkZtDHIxEjng36ve2C04uXkvcDYBsWVFum CyJzmz2Csol8S0NXhxwYyrcAj6YKpVItCwCqSo7DWGnzv4+pyoWjv6ZdFAHH1LWoYn5L DGj5ep3RYZ238LzXI1UdSwxBwGm3iIXIkyIpTYGLjnUynWZlBybWT2Jkoyoi0MVAhBZz vKqOhqWRUawD3eD0GIrapIxnEXyB0A64qSWOMjnen4DGg64o4eyIc8/IGsjhEM0OLeGJ kHQQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=CUQS5+t4; dkim=neutral (no key) header.i=@suse.de; 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=suse.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 127-20020a251085000000b00b8c0924afb9si1185474ybq.311.2023.04.20.06.01.28; Thu, 20 Apr 2023 06:01:50 -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=@suse.de header.s=susede2_rsa header.b=CUQS5+t4; dkim=neutral (no key) header.i=@suse.de; 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=suse.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229933AbjDTM7V (ORCPT + 99 others); Thu, 20 Apr 2023 08:59:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47374 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229521AbjDTM7U (ORCPT ); Thu, 20 Apr 2023 08:59:20 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2ADDB1B9; Thu, 20 Apr 2023 05:59:19 -0700 (PDT) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id DF9AE1FDBA; Thu, 20 Apr 2023 12:59:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1681995557; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=DEGj41opAhdIvCdRlBTEBs0zP1XeW2Gj6H6gpuRHYkQ=; b=CUQS5+t4cUdS9r1q78kbhfp62M3cC6a92x1sc0dj8t2vCxFqW0F/aoeOuoFR8K1b3lq2Zm eCddnf9oOHZBFbcnx9dFFnY9P8BJcajXwKfLPenGqz/MZ56VoYmyFBga2wf9AcxqKgt5DV RiEKY+ECeZrWkXdOwnRDOa+gYG3DIhM= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1681995557; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=DEGj41opAhdIvCdRlBTEBs0zP1XeW2Gj6H6gpuRHYkQ=; b=yh4XmG2hOajy19+PImwlZtnncgRRn6sVqmmXrSJESFIV/WMAroxaoLmLu/N+7VIjng/kCV mymYxv3zsWidk2Cg== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id ADE8C1333C; Thu, 20 Apr 2023 12:59:17 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id 175kKSU3QWSGDAAAMHmgww (envelope-from ); Thu, 20 Apr 2023 12:59:17 +0000 Message-ID: <3d455074-bd51-51a0-7692-a0b4ca961355@suse.de> Date: Thu, 20 Apr 2023 14:59:17 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.10.0 Subject: Re: [PATCH v5] drm/fbdev-generic: prohibit potential out-of-bounds access Content-Language: en-US To: Geert Uytterhoeven Cc: Lucas De Marchi , linux-fbdev@vger.kernel.org, Li Yi , Helge Deller , linux-kernel@vger.kernel.org, Sui Jingfeng <15330273260@189.cn>, loongson-kernel@lists.loongnix.cn, dri-devel@lists.freedesktop.org References: <20230420030500.1578756-1-suijingfeng@loongson.cn> <8ec3734b-4bc2-ad8f-fc17-3002f22d1fc9@suse.de> <12c8efaa-7266-5436-dc53-009a0d23b53f@suse.de> <4a0fdbe0-cd4f-9c87-f73a-6d27f5c497bb@189.cn> From: Thomas Zimmermann In-Reply-To: Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="------------5DhebwLARl0HpDFRqz9Vb7lQ" X-Spam-Status: No, score=-6.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_MED, 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 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --------------5DhebwLARl0HpDFRqz9Vb7lQ Content-Type: multipart/mixed; boundary="------------yi8Lvwk9kZfir66Sw5gmggKi"; protected-headers="v1" From: Thomas Zimmermann To: Geert Uytterhoeven Cc: Lucas De Marchi , linux-fbdev@vger.kernel.org, Li Yi , Helge Deller , linux-kernel@vger.kernel.org, Sui Jingfeng <15330273260@189.cn>, loongson-kernel@lists.loongnix.cn, dri-devel@lists.freedesktop.org Message-ID: <3d455074-bd51-51a0-7692-a0b4ca961355@suse.de> Subject: Re: [PATCH v5] drm/fbdev-generic: prohibit potential out-of-bounds access References: <20230420030500.1578756-1-suijingfeng@loongson.cn> <8ec3734b-4bc2-ad8f-fc17-3002f22d1fc9@suse.de> <12c8efaa-7266-5436-dc53-009a0d23b53f@suse.de> <4a0fdbe0-cd4f-9c87-f73a-6d27f5c497bb@189.cn> In-Reply-To: --------------yi8Lvwk9kZfir66Sw5gmggKi Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: base64 SGkNCg0KQW0gMjAuMDQuMjMgdW0gMTQ6MjUgc2NocmllYiBHZWVydCBVeXR0ZXJob2V2ZW46 DQo+IEhpIFRob21hcywNCj4gDQo+IE9uIFRodSwgQXByIDIwLCAyMDIzIGF0IDE6MTDigK9Q TSBUaG9tYXMgWmltbWVybWFubiA8dHppbW1lcm1hbm5Ac3VzZS5kZT4gd3JvdGU6DQo+PiBB bSAyMC4wNC4yMyB1bSAxMjowNCBzY2hyaWViIFN1aSBKaW5nZmVuZzoNCj4+PiBXaGF0IHdp bGwgaGFwcGVuIGlmIHRoZSAnc2NyZWVuX3NpemUnIGlzIG5vdCBwYWdlX3NpemUgYWxpZ25l ZCBhbmQgbW1hcA0KPj4+IHdpbGwgbWFwcGluZyBpbiB0aGUgZ3JhbnVsYXJpdHkgb2YgcGFn ZXMgPw0KPj4NCj4+IFlvdSBuZWVkIHRvIG1hcCBhdCBwYWdlIGdyYW51bGFyaXR5LiBJZiBz Y3JlZW5fc2l6ZSBpcyBub3QgcGFnZS1zaXplDQo+PiBhbGlnbmVkLCB0aGVyZSdzIHRoaXMg dHJhaWxpbmcgYnVmZmVyIHRoYXQgaXMgYWNjZXNzaWJsZSwgYnV0IGNhbm5vdCBiZQ0KPj4g ZGlzcGxheWVkLiBCdXQgdX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TWNEb25hbGQsIEJvdWRpZW4gTW9lcm1hbg0KSFJCIDM2ODA5IChBRyBO dWVybmJlcmcpDQo= --------------yi8Lvwk9kZfir66Sw5gmggKi-- --------------5DhebwLARl0HpDFRqz9Vb7lQ Content-Type: application/pgp-signature; name="OpenPGP_signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="OpenPGP_signature" -----BEGIN PGP SIGNATURE----- wsF5BAABCAAjFiEExndm/fpuMUdwYFFolh/E3EQov+AFAmRBNyUFAwAAAAAACgkQlh/E3EQov+CR ShAAziz4j1u3V33PmhNJDF/Bzb9R1EABKp7Vweon2oLdgChJHqBvit4LBX+92CeLFtqY53hYmZSw xjW2gYP7zjlt7xrm/0qAreEC1aKRfDb0L2i2MIZMS6YerUCJJlkRCCp+7WwvskcY3M8Qm5SjG1ca re2G1JJKAa9U6NiYzwO43OYUT28yv1cEvX4xTJg5FbeHczs+GDpCd5HI8SSFDTlE4frEFFcDkOlf dEfs+C11fppW68/DMDLg/Sgsi//2EED1lxF/vNpYKzw0XMCHZQsGUMXTcwnq2fZBMaIE9nm4U4Oq z6JUeZX6HdgoMwJR2hM656f4VVMZC62NU+54OWgNGbBIDS6ooKXnazBqin6uqowUzIc+vZ0MCb4q GwEZma3FypiKj0ZLUxQSu/v59B7KhjyFRZd8I2eJ00D1/UmrNe1VA9G/VLFyl0GWiAPvGxpkI5lJ PQrUHPAD6YCieSlIUk3AsrAGd+dWZ3YmBkuPGqTaaWFJUplI/YE5OkaHmFLJTOQo+jXQUoXnHG2k KZg4yTRb7MEslOfr6V2zNbOjilmLUjRWSlqg3guJu9V8ntF1eR89IX9skn+neQLG7eOWXdTHYA5Y Gn5KtDnLHRqXJu0MrRgBuw6kfpNoD61DRWkpiYQ5MTYIWSB3Mc7Ff5kHUen9SwzIQ0o3Kj1P47MZ mw8= =40QI -----END PGP SIGNATURE----- --------------5DhebwLARl0HpDFRqz9Vb7lQ--