Received: by 10.223.185.116 with SMTP id b49csp1038011wrg; Fri, 23 Feb 2018 10:47:20 -0800 (PST) X-Google-Smtp-Source: AH8x2269D6FKBfANqtWkRibJvMMcdURSYlmhmtqm5Nj3nhgDf4/kOxRyywpyp9DkMdTEo4Fk0fid X-Received: by 10.101.67.198 with SMTP id n6mr2172325pgp.150.1519411640697; Fri, 23 Feb 2018 10:47:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519411640; cv=none; d=google.com; s=arc-20160816; b=ydinUsk2weLlfC8edVfEbEfwsZT6le8Yt2eueMa0pxGoUDbpKO2I2jYO7j5TeHV1Nw Ubj7yTgSyFaoPoWC3mVUppVLsYMk2b8Aw3yn42S0VhXVhtUnKqdT3a133Qp71MFWHkwW MhruJW4gRpQRdkXrNmpLcu8M+ZpmW0Of3ZgIp4SeXmPz/0JczmhCAAaa5O0tPl6GZAk/ Lk6j34qKJhKiJvLmQ4VICbUkeQd6/4ayAuY9hFa8sT6c3g2bQyPyb+mmctNz/WuymuN9 vNRvPanajEOcXysznXr6Cr6qvTWlYSP78j8bvK4vJBEcPlDh8ZLhDWZfKTl4o2h3mapw q3Jg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=bQ3dxiZjRB1iqxm/+ZF2UbXscoxDx15XhNDC9KxpVCg=; b=ePpPRkrN+YA306CO5U1vOQu7CVJphSDRWFhNAdMtO7NO6qHoQvh9XDJgcr5MDYKB/p 7iOddK7QJgfMvrPWUxEmgA4rY/fZjAdtRloeldkdGs+T0HHjMV1c3PS7OSgOOnC28+z5 K0I8sBISBjgXH5QR9ikZrtn2g7ZMmyP6RmdalvCxvvZgmpE/NL3q6mi273B725NwkCmh p7K7SLwr7S4nY7z3IjmTdNERO9HiQM1rtD118K84G2LNam3d/aUAcbYs1O+afSfiVno2 RYOAl3hu4/kzV/WTYeRqV2DNKjK50LJhPPEfdWIV8rTsP7ZFwFb2pNq1I1avR5z4fbHh j93g== 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 t8si1823005pgu.454.2018.02.23.10.47.06; Fri, 23 Feb 2018 10:47:20 -0800 (PST) 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 S934026AbeBWSq1 (ORCPT + 99 others); Fri, 23 Feb 2018 13:46:27 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:43706 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933989AbeBWSqZ (ORCPT ); Fri, 23 Feb 2018 13:46:25 -0500 Received: from localhost (LFbn-1-12258-90.w90-92.abo.wanadoo.fr [90.92.71.90]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 472D41261; Fri, 23 Feb 2018 18:46:24 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Arnd Bergmann , "David S. Miller" Subject: [PATCH 4.9 094/145] vmxnet3: prevent building with 64K pages Date: Fri, 23 Feb 2018 19:26:40 +0100 Message-Id: <20180223170736.973004784@linuxfoundation.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180223170724.669759283@linuxfoundation.org> References: <20180223170724.669759283@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.9-stable review patch. If anyone has any objections, please let me know. ------------------ From: Arnd Bergmann commit fbdf0e28d061708cf18ba0f8e0db5360dc9a15b9 upstream. I got a warning about broken code on ARM64 with 64K pages: drivers/net/vmxnet3/vmxnet3_drv.c: In function 'vmxnet3_rq_init': drivers/net/vmxnet3/vmxnet3_drv.c:1679:29: error: large integer implicitly truncated to unsigned type [-Werror=overflow] rq->buf_info[0][i].len = PAGE_SIZE; 'len' here is a 16-bit integer, so this clearly won't work. I don't think this driver is used much on anything other than x86, so there is no need to fix this properly and we can work around it with a Kconfig dependency to forbid known-broken configurations. qemu in theory supports it on other architectures too, but presumably only for compatibility with x86 guests that also run on vmware. CONFIG_PAGE_SIZE_64KB is used on hexagon, mips, sh and tile, the other symbols are architecture-specific names for the same thing. Signed-off-by: Arnd Bergmann Signed-off-by: David S. Miller Signed-off-by: Greg Kroah-Hartman --- drivers/net/Kconfig | 3 +++ 1 file changed, 3 insertions(+) --- a/drivers/net/Kconfig +++ b/drivers/net/Kconfig @@ -437,6 +437,9 @@ config XEN_NETDEV_BACKEND config VMXNET3 tristate "VMware VMXNET3 ethernet driver" depends on PCI && INET + depends on !(PAGE_SIZE_64KB || ARM64_64K_PAGES || \ + IA64_PAGE_SIZE_64KB || MICROBLAZE_64K_PAGES || \ + PARISC_PAGE_SIZE_64KB || PPC_64K_PAGES) help This driver supports VMware's vmxnet3 virtual ethernet NIC. To compile this driver as a module, choose M here: the