Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp1291902rwl; Wed, 12 Apr 2023 10:35:58 -0700 (PDT) X-Google-Smtp-Source: AKy350YL+x2GAtJCaXE4kVxf8QA2j/M0c0mZ8xBYMxdkiGBvXvtYixRAT0LgwJcc3BLq9Rzs/gog X-Received: by 2002:a17:907:b60c:b0:94e:4fe5:613f with SMTP id vl12-20020a170907b60c00b0094e4fe5613fmr4023273ejc.67.1681320958437; Wed, 12 Apr 2023 10:35:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681320958; cv=none; d=google.com; s=arc-20160816; b=m4wVm7q6GZRwMfQy2JxsODbH5GFXbSGX7FfUg6ptoKU9MVOH0oFDT0iVVso6SsTUwZ uZXaQbC1D5d5IKdv+YCPsh5CB8nSssFWS3IrbDsLrG4T0bS7AVYj6MtbL5456NbomZS4 Pt01SD97cXdF4YSVYZLhlEMNEiApWzdjF42mqL8ezi4n0aWTz91adFAjzU3DW4ytIrb7 l1x8m89dAhDzk5sp4JmfJrrrEMnVUmN5kvzzKFXUmy8fbNc93nLRuYtUA3aYj7AdpFcs drkWm+U9zBDjQWK0tdHaxxX6PvX9r2SAZHL22TjQTh0GRYZ3VF2Pumb+2YnNKCZqYYmo fG4A== 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:to:content-language:subject:user-agent:mime-version:date :message-id:sender:hmm_source_type:hmm_attache_num:hmm_source_ip; bh=bapcKa1X04BftAWHgqXdbXaf6M0si+nWn7kWsI06Raw=; b=Hpimxkn5gUjUfc0hpV6w9kqaVg30XLBNBsAbg3+m63EkqtF5WhilsGl65/vc0HRPce nwmHSxPYSXP3uYpLoTPhMmbTCoA+B5RX15v7YF3qBR+RF9zvt3Bx79bpbNpVEjRVsiku 3ClMz72Cs4ZapJHm9AyXlhLEvQpCnkL5koTLq7C8/uNh8Qg5bz8J0+e5lK3DF6DWzCgX ineP4mX2RHwmvruGCYxACh9JFmqIMF5njX4Tko4L4PHkjWpyftyeUdsLHIBqaDSRHPbY 4KafvdBEbXbvAeFVCM8wUDC/beSo0N7+zBIYS/MwoBUDMT5JQVQCYAs43Wp1JFxoLt5S 1iaA== 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 l2-20020a056402124200b005048a2d547bsi10329476edw.106.2023.04.12.10.35.33; Wed, 12 Apr 2023 10:35:58 -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 S231236AbjDLRWq (ORCPT + 99 others); Wed, 12 Apr 2023 13:22:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60848 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230268AbjDLRWo (ORCPT ); Wed, 12 Apr 2023 13:22:44 -0400 Received: from 189.cn (ptr.189.cn [183.61.185.101]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 93E22110; Wed, 12 Apr 2023 10:22:42 -0700 (PDT) HMM_SOURCE_IP: 10.64.8.43:35530.848855770 HMM_ATTACHE_NUM: 0000 HMM_SOURCE_TYPE: SMTP Received: from clientip-114.242.206.180 (unknown [10.64.8.43]) by 189.cn (HERMES) with SMTP id A7259100283; Thu, 13 Apr 2023 01:22:38 +0800 (CST) Received: from ([114.242.206.180]) by gateway-151646-dep-7b48884fd-tj646 with ESMTP id 4ee3a391a261402392da6e81550f5bf1 for 15330273260@189.cn; Thu, 13 Apr 2023 01:22:41 CST X-Transaction-ID: 4ee3a391a261402392da6e81550f5bf1 X-Real-From: 15330273260@189.cn X-Receive-IP: 114.242.206.180 X-MEDUSA-Status: 0 Sender: 15330273260@189.cn Message-ID: Date: Thu, 13 Apr 2023 01:22:37 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.9.0 Subject: Re: [PATCH] drm/fbdev-generic: fix potential out-of-bounds access Content-Language: en-US To: Sui Jingfeng <15330273260@189.cn>, Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Li Yi , Helge Deller , Lucas De Marchi , linux-kernel@vger.kernel.org, linux-fbdev@vger.kernel.org, dri-devel@lists.freedesktop.org, loongson-kernel@lists.loongnix.cn References: <20230409132110.494630-1-15330273260@189.cn> <42f16d0d-4e1a-a016-f4cc-af24efa75f1c@189.cn> From: Sui Jingfeng <15330273260@189.cn> In-Reply-To: <42f16d0d-4e1a-a016-f4cc-af24efa75f1c@189.cn> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00, FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,FROM_LOCAL_DIGITS, FROM_LOCAL_HEX,NICE_REPLY_A,SPF_HELO_PASS,SPF_PASS 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 2023/4/13 01:13, Sui Jingfeng wrote: > I finally got reject by drm_fbdev_generic_helper_fb_dirty() with > follow code: It finally got rejected by drm_fbdev_generic_helper_fb_dirty() function with follow code: