Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp137592imm; Thu, 7 Jun 2018 15:22:12 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKwmep78MtY5rgfT8mQQGf2o062LEn2VuTdiFv6n33tqRUgw9348iM1ZOxgcPvMN1OTVwxk X-Received: by 2002:aa7:820e:: with SMTP id k14-v6mr3371322pfi.97.1528410132691; Thu, 07 Jun 2018 15:22:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528410132; cv=none; d=google.com; s=arc-20160816; b=OppSZbI5ESNPc7H4ArrogsdCQjp5FD04VfKdd2sFV9w2xIXFvoCa2ETe8owd1VgCqt VwW6/WwkzIR3llaieHCglY6zvdRA7iuOyJJPPilmH+BMgOc4tVylbK9ggQQRiOrwCZPX OGMbMIX7cnsUDemt4GxNBgjKM8LD3JPo8MZ/lVZwuNFqJOrj1RyDbB2lGY9KrF17KP9W RGwXI3pAUsNIz3SIyPFIo03PRxK+M7dKTPZqLbgTvlQNq0aVupNHhpEEYkkJH0NprRbY BiT/wdSI3fO21HbUPrb45sCQPOcMjItIbqnoFFPH0t+PhjnEl9kkF73Efd8ND/3CNV5w 8nMA== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:arc-authentication-results; bh=VLbQWsUEVTzmSqAXP9T4s25C+ISb9Jf62+lrYB6BZSM=; b=cJiXBzLATEth+5CGrSWTZAEltRuLz3a5MY32egn0Xbc2k0UN0GnSKNnpiy5FCSwjyd x1kuZnebDruuJGtd4wIuutNly5oGf2dH482AbFA/AHzDTXWG2ECFVmfFTE7dUUSPDMM4 oHJqWoesOU7cFccvO7OKk3iryAqJQNfp0MOSE9/0nMyqUOA39Xkz40bEdudU+LDGohuw R5+Hadi2Mzf7KPzarIxNBZZlO8YAzE6NnF7c54K8OPQY3Z4mDJsdaROUr3wg0FjsEIq/ GN/BMVZMRRpwL5UkbuLvxr5K3esTge8rjSfVLOYcDESN3JowP9EO5gzEbly5cfRVGWsr brIA== 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 g23-v6si19054182pli.110.2018.06.07.15.21.57; Thu, 07 Jun 2018 15:22:12 -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 S1752184AbeFGWVe (ORCPT + 99 others); Thu, 7 Jun 2018 18:21:34 -0400 Received: from www62.your-server.de ([213.133.104.62]:45276 "EHLO www62.your-server.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751607AbeFGWVc (ORCPT ); Thu, 7 Jun 2018 18:21:32 -0400 Received: from [178.197.248.12] (helo=linux.home) by www62.your-server.de with esmtpsa (TLSv1.2:DHE-RSA-AES256-SHA:256) (Exim 4.85_2) (envelope-from ) id 1fR3HY-0005jF-8h; Fri, 08 Jun 2018 00:21:24 +0200 Subject: Re: [PATCH] xsk: Fix umem fill/completion queue mmap on 32-bit To: =?UTF-8?B?QmrDtnJuIFTDtnBlbA==?= , geert@linux-m68k.org Cc: David Miller , =?UTF-8?B?QmrDtnJuIFTDtnBlbA==?= , "Karlsson, Magnus" , ast@kernel.org, Arnd Bergmann , akpm@linux-foundation.org, Netdev , linux-mm@kvack.org, LKML References: <1528378654-1484-1-git-send-email-geert@linux-m68k.org> From: Daniel Borkmann Message-ID: <67dd01ce-2aa8-6e33-326e-6b57b3c6d67b@iogearbox.net> Date: Fri, 8 Jun 2018 00:21:23 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit X-Authenticated-Sender: daniel@iogearbox.net X-Virus-Scanned: Clear (ClamAV 0.99.3/24642/Thu Jun 7 22:39:10 2018) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 06/07/2018 06:34 PM, Björn Töpel wrote: > Den tors 7 juni 2018 kl 15:37 skrev Geert Uytterhoeven : >> >> With gcc-4.1.2 on 32-bit: >> >> net/xdp/xsk.c:663: warning: integer constant is too large for ‘long’ type >> net/xdp/xsk.c:665: warning: integer constant is too large for ‘long’ type >> >> Add the missing "ULL" suffixes to the large XDP_UMEM_PGOFF_*_RING values >> to fix this. >> >> net/xdp/xsk.c:663: warning: comparison is always false due to limited range of data type >> net/xdp/xsk.c:665: warning: comparison is always false due to limited range of data type >> >> "unsigned long" is 32-bit on 32-bit systems, hence the offset is >> truncated, and can never be equal to any of the XDP_UMEM_PGOFF_*_RING >> values. Use loff_t (and the required cast) to fix this. >> >> Fixes: 423f38329d267969 ("xsk: add umem fill queue support and mmap") >> Fixes: fe2308328cd2f26e ("xsk: add umem completion queue support and mmap") >> Signed-off-by: Geert Uytterhoeven [...] > > Thanks Geert! > > Acked-by: Björn Töpel Applied to bpf, thanks everyone!