Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp5302803ybf; Wed, 4 Mar 2020 21:55:05 -0800 (PST) X-Google-Smtp-Source: ADFU+vslJ9I6lh59ogF3JUK0zj0L7+H6OwSnvrELb/dmzAH3w5jRGD47Jx7+tSV5cfmoJz73EAIl X-Received: by 2002:a9d:554c:: with SMTP id h12mr3254759oti.16.1583387704991; Wed, 04 Mar 2020 21:55:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583387704; cv=none; d=google.com; s=arc-20160816; b=r4LjFj8Fe5XHKxK8sDlZw2JQ6GkSKIdXQ0oj4UyQIP9XSMBaa/Fe0KD1tKne1Tpgph WHxBEWmd2yWrPBjET67NlR4NN7LOHXGSYRVa4y4OmNX2Ytx27U7Oh6p2Ob/6paBZbfrr 1PwfvY76Rf0SqB7fNkSXH+kkBgJcDEMJ+ayPofwrWhBGTTd7orlQ+20U3mDLKvNZTEfr Pth6UxzBL1nGDAnUJkfJc8XiGWEhmMwzgTHq7IPiICmmlnSi4m4mgIb7prauK6ET6V8R 5fI/7BYpmyZWCmn7ix11tpGCMRKCBIHMxvtkfXUuFkbWnrnl69n+FcWG7q4/QhcHlfA9 FVfQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=+7mgcJIet7qBayZZcIdFHC3F2O5NeLmq5vShyrq3W0w=; b=kU+qbmu/8JJ2BLlTrvvoaCFHE7lPxZJya3GUqlmwY5X6zcBl4zFuN83eg6/ZYv9CXv 4xQVegPXKVpZ4JV9raXkGiXKiBmO03moUJMUV/zVThw+gcKrHgKo6kR7JHecBFNa6ysq XgBx3K1K/ZDQ+UI6JINzyHIDwNC9y+JkPovpFFYur+sdmJpHK9ldmzBGoM8IutvYYS1z eX65iFCItr1XnHHIXq/q3NNG6afCPZ1cFWtrRsxELcQbuV+sJzIqqtj6i34K6izIw9pg wvPoXVylm38l58c1IZlxiuatvDwaPRLXL3qCzAgyYHqym6WD7i8EvBPDIZYISR0JKWs6 NgzQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=dY9g6SaF; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j17si2742175otl.278.2020.03.04.21.54.53; Wed, 04 Mar 2020 21:55:04 -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; dkim=pass header.i=@google.com header.s=20161025 header.b=dY9g6SaF; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726087AbgCEFyU (ORCPT + 99 others); Thu, 5 Mar 2020 00:54:20 -0500 Received: from mail-qt1-f194.google.com ([209.85.160.194]:43449 "EHLO mail-qt1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725903AbgCEFyU (ORCPT ); Thu, 5 Mar 2020 00:54:20 -0500 Received: by mail-qt1-f194.google.com with SMTP id v22so3291651qtp.10 for ; Wed, 04 Mar 2020 21:54:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=+7mgcJIet7qBayZZcIdFHC3F2O5NeLmq5vShyrq3W0w=; b=dY9g6SaFxN9gyIiVuNUf1N24ghTHSEPIiKO6j1gQ7lJvXc/g0lC4uPLA/xNS6La82i v6iOG6cjJopKQ+A3S9uWOyabqxqc3R//HFFVmnsAdtqOUobD/UvkHyyagFzUZ9eHUx67 nNa5NNGd3JKATe9NJ5WnBiKUMJYO/6IE1Ae5XzY3g3wTBWu3odx6cSNzjtfiNO6XTb8U T7MrVuE7JjIQ0wc4HFK6GjzZH384Ov7XWOYe6EOb5woc6wz8raapd3D2MP1RRvRHQ3En I/Jet0BWFRonDyGXBoXbjIYFvufiSvVbir0txzFOqF/f1otES0ly9YMfTjGz/GrqPVNw SU5w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=+7mgcJIet7qBayZZcIdFHC3F2O5NeLmq5vShyrq3W0w=; b=PCC4A9BX9e2KzgXOKg4oqPKwBCKg/DxgmancoALf5OtUNnDjLT49quf8EGapPYngih TZ1do2+RZpOa83zxI7oj5YQhVaXmjKJkm/YNobUNLWhd0euos3+d4wSqCZsyCz4vKfsV cT9VdLrGdoc90z3kVznbR6zxNdrO66eXBw1EAEQCdP0TMBcRf4NCdawV28Ltr2KOqVSM lK+5kwVrM4E0o0IBM7J6KgiHH/Vodd58eV6N9gDJxUCEtHUfKMu8G/dY4vL2TL3CSPH6 S71Ft3kmpkQSLu9T5C4Prh37Uj34kfBQpHg+Q69e2EmagKI03HCMOTbsr2cfL3K9dDyP nZVQ== X-Gm-Message-State: ANhLgQ2Xd0fCcj7jdsQf+Qnto/qsqsQdnp8HI2An2GhIEHMEnrc9Dwlp ntIO6j3SQFKYo3K6D65lkH2ABlulHYCIFG0Ep3/NyQ== X-Received: by 2002:ac8:3778:: with SMTP id p53mr5648903qtb.158.1583387659031; Wed, 04 Mar 2020 21:54:19 -0800 (PST) MIME-Version: 1.0 References: <20200305163743.7128c251@canb.auug.org.au> In-Reply-To: <20200305163743.7128c251@canb.auug.org.au> From: Dmitry Vyukov Date: Thu, 5 Mar 2020 06:54:07 +0100 Message-ID: Subject: Re: linux-next: build warning after merge of the akpm-current tree To: Stephen Rothwell Cc: Andrew Morton , Linux Next Mailing List , Linux Kernel Mailing List , Walter Wu , Andrey Ryabinin , kasan-dev 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 On Thu, Mar 5, 2020 at 6:37 AM Stephen Rothwell wrote: > > Hi all, > > After merging the akpm-current tree, today's linux-next build (x86_64 > allmodconfig) produced this warning: > > mm/kasan/common.o: warning: objtool: kasan_report()+0x17: call to report_enabled() with UACCESS enabled > In file included from include/linux/bitmap.h:9, > from include/linux/cpumask.h:12, > from arch/x86/include/asm/paravirt.h:17, > from arch/x86/include/asm/irqflags.h:72, > from include/linux/irqflags.h:16, > from include/linux/rcupdate.h:26, > from include/linux/rculist.h:11, > from include/linux/pid.h:5, > from include/linux/sched.h:14, > from include/linux/uaccess.h:6, > from arch/x86/include/asm/fpu/xstate.h:5, > from arch/x86/include/asm/pgtable.h:26, > from include/linux/kasan.h:15, > from lib/test_kasan.c:12: > In function 'memmove', > inlined from 'kmalloc_memmove_invalid_size' at lib/test_kasan.c:301:2: > include/linux/string.h:441:9: warning: '__builtin_memmove' specified bound 18446744073709551614 exceeds maximum object size 9223372036854775807 [-Wstringop-overflow=] +kasan-dev We probably need to make this 18446744073709551614 constant "dynamic" so that compiler does not see it. Walter, will you take a look? Thanks > 441 | return __builtin_memmove(p, q, size); > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > > Introduced by commit > > 519e500fac64 ("kasan: add test for invalid size in memmove") > > That's a bit annoying during a normal x86_64 allmodconfig build ... > > -- > Cheers, > Stephen Rothwell