Received: by 10.213.65.68 with SMTP id h4csp881156imn; Wed, 4 Apr 2018 08:48:28 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+hEwWhLQO5UOhven6lXwyrkgaTarwR8h4PJDgY3bCHHjhgo8Je7cWEN+E7mKCvV6rns0uB X-Received: by 2002:a17:902:ba8a:: with SMTP id k10-v6mr19147602pls.337.1522856908934; Wed, 04 Apr 2018 08:48:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522856908; cv=none; d=google.com; s=arc-20160816; b=f/8PdRFQFO6sLl2cIbE2dM0VVKRM31RHAx2KhltZXDWJY/IyMNoEWX+it3XAJLDhMr jYrTzsxncW54Dw0cVuny80nRRQChy2YqS9qKiwM6TPXcNKIA0uL4FjzGVOKwkhYRcwKS DMmwC/aZGmEdkDsZ9bnLxX6PGWeycihMqPMYXfY4IrGAHteFP5GeoPF0YKVJ+RQFqIgx 869vQh2AvQK7N7NsfTK9MMveyWtxNAfUbCI6yQvQGjzKv59FD41wKUD7BRpcayLbaL74 5TTK05pI3TgAdBdOmHO/q5ZMvPHPmElMoafVhKAKTsyOnzHV3Tpam8rdKw1c+q/nxCtq bzLA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:from:subject:cc:to:message-id:date :arc-authentication-results; bh=7lJYAaD+S7z9wc7qvvrzci9ENUTTwNOSUW1KpCFLH5Q=; b=0af+ZE5uZ/pFErakQTJOtQ/X+IfMKGUZwDqMKBezzqU3/zAlrcI/5Crtm7wcC6pKKR 8AOxUSIe1PgdQVIJqlR4fOofwNfHakiv8PV64LSGH5rw7+XGbY0tPi5b189D+D9+CNo7 HBycT0+lzAfQckDPoN/XY4Djaq/tcboWEpKGu1WXwMJzl6as3p9/nVl062JbURRgOm84 FrUptAhgU8B4+/tJooe0bXGyr1DZLjt79K9wImwAoS3FKA5wZuwAhUjUCVpEEgd61jGZ sdY0/NFqujbu6O/2QTO0mbSOZAvCwXoyjoPmAeNH2ZQ5IEtiwECZXnD4dvQ/D1UhbVnj p/Rg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i127si4356017pfc.148.2018.04.04.08.48.14; Wed, 04 Apr 2018 08:48:28 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752074AbeDDPq2 (ORCPT + 99 others); Wed, 4 Apr 2018 11:46:28 -0400 Received: from shards.monkeyblade.net ([184.105.139.130]:40492 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751612AbeDDPq1 (ORCPT ); Wed, 4 Apr 2018 11:46:27 -0400 Received: from localhost (67.110.78.66.ptr.us.xo.net [67.110.78.66]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) (Authenticated sender: davem-davemloft) by shards.monkeyblade.net (Postfix) with ESMTPSA id 25841108649DB; Wed, 4 Apr 2018 08:46:26 -0700 (PDT) Date: Wed, 04 Apr 2018 11:46:25 -0400 (EDT) Message-Id: <20180404.114625.963104761929638198.davem@davemloft.net> To: tanxiaojun@huawei.com Cc: yisen.zhuang@huawei.com, salil.mehta@huawei.com, huawei.libin@huawei.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, wangzhou1@hisilicon.com, linyunsheng@huawei.com Subject: Re: [PATCH] net: hns3: fix length overflow when CONFIG_ARM64_64K_PAGES From: David Miller In-Reply-To: <1522834848-63974-1-git-send-email-tanxiaojun@huawei.com> References: <1522834848-63974-1-git-send-email-tanxiaojun@huawei.com> X-Mailer: Mew version 6.7 on Emacs 25.3 / Mule 6.0 (HANACHIRUSATO) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.12 (shards.monkeyblade.net [149.20.54.216]); Wed, 04 Apr 2018 08:46:26 -0700 (PDT) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Tan Xiaojun Date: Wed, 4 Apr 2018 17:40:48 +0800 > When enable the config item "CONFIG_ARM64_64K_PAGES", the size of PAGE_SIZE > is 65536(64K). But the type of length is u16, it will overflow. So change it > to u32. > > Signed-off-by: Tan Xiaojun Applied, thanks.