Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp1984613pxb; Mon, 11 Oct 2021 18:05:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx7A8y/3VRgSRRMBucNRQ+OTmNOrr+1EJfCASSV0Q9JWj2P1GT2HLXFbtvTXkKHKIg+BpP9 X-Received: by 2002:a17:90b:1b49:: with SMTP id nv9mr2599205pjb.134.1634000705166; Mon, 11 Oct 2021 18:05:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634000705; cv=none; d=google.com; s=arc-20160816; b=bACf5EdItnA0kbxNyhiO6eXf3n8Nl8IuCnrsgKehyHagWaxUMWGe0P/wDf+WHP4zep 4zFNk9rJEQsDBPt+G8TnoAs3SQ25cXQReklS6swXa6+qg0Te54WQ0BLah82TN6rkM1Os 0Fpr8kvbeycq6IlMhJ4XRlIxgXNrWhDnzvYc6xxdNhKV904uGBbCg0TGFfGKrgIq1pxj muRkhjIBlqtXqhO8O5S5ZdsTbMqbMkAlze44ANQ56yya2Yc/EZQFz6LSE6eGxNyBmvC4 ZT/sL8NKYBk0n7geIC3WtoBD64yl4KAYKEz0hGCe9TT1I15/62NXd9xcJ2UqoOrTkZPq EMyw== 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:cc:to:content-language:subject:user-agent:mime-version :date:message-id; bh=HC19gpeFovHUcB3vyj0/n2jojgWRIsxlxViPobDW03g=; b=Bkrn2K/gFZtqAgmbuWfeg/CqXGcOmjVJvVm6dYCdLSecNImrxfDYOmTCjtnzd7UGsF vsChLLh69o1twEjkWUGu7WAgD+4bW5JndFtkZ35o1ex9L/jVzB76i39WnYg7BpZC7Noj KlTZOSOxWEUqvxg/b3DV0JwKyU6UnDquzYgU+yjP8ZzmncyxuXtXnwT1IYDPh0j6xxyB 53lJ2W8tn5wzOZhL+QHSr1p9a4rXQpynCWeuej10BVq8YTIe7pDDa3qtXTLmpSx6x42w iLkTTbzBLLHIkMjufjBaWey9a6HPx0zeJ+YZLFbUI3+sxOWWN3PiOr33xmJav7ixWUx6 VK8Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t6si1665336pjw.58.2021.10.11.18.04.51; Mon, 11 Oct 2021 18:05:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230074AbhJLBFn (ORCPT + 99 others); Mon, 11 Oct 2021 21:05:43 -0400 Received: from szxga02-in.huawei.com ([45.249.212.188]:14326 "EHLO szxga02-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230060AbhJLBFm (ORCPT ); Mon, 11 Oct 2021 21:05:42 -0400 Received: from dggemv704-chm.china.huawei.com (unknown [172.30.72.54]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4HSy3G6HCHz8ypD; Tue, 12 Oct 2021 08:58:50 +0800 (CST) Received: from dggpemm500001.china.huawei.com (7.185.36.107) by dggemv704-chm.china.huawei.com (10.3.19.47) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.8; Tue, 12 Oct 2021 09:03:39 +0800 Received: from [10.174.177.243] (10.174.177.243) by dggpemm500001.china.huawei.com (7.185.36.107) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.1.2308.8; Tue, 12 Oct 2021 09:03:39 +0800 Message-ID: <3796d319-10a9-9721-f300-44a28f1f7507@huawei.com> Date: Tue, 12 Oct 2021 09:03:38 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.1.1 Subject: Re: mm/kasan/init.c:282:20: error: redefinition of 'kasan_populate_early_vm_area_shadow' Content-Language: en-US To: Andrew Morton , Naresh Kamboju CC: Linux-Next Mailing List , open list , linux-mm , kasan-dev , Andrey Ryabinin , Alexander Potapenko , Andrey Konovalov , Dmitry Vyukov , Stephen Rothwell References: <20211011135345.9506437ee2504a81054dc06f@linux-foundation.org> From: Kefeng Wang In-Reply-To: <20211011135345.9506437ee2504a81054dc06f@linux-foundation.org> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.174.177.243] X-ClientProxiedBy: dggeme720-chm.china.huawei.com (10.1.199.116) To dggpemm500001.china.huawei.com (7.185.36.107) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2021/10/12 4:53, Andrew Morton wrote: > On Mon, 11 Oct 2021 18:12:44 +0530 Naresh Kamboju wrote: > >> + Andrew Morton >> >> On Mon, 11 Oct 2021 at 17:08, Naresh Kamboju wrote: >>> >>> Regression found on x86_64 gcc-11 built with KASAN enabled. >>> Following build warnings / errors reported on linux next 20211011. >>> >>> metadata: >>> git_describe: next-20211011 >>> git_repo: https://gitlab.com/Linaro/lkft/mirrors/next/linux-next >>> git_short_log: d3134eb5de85 (\"Add linux-next specific files for 20211011\") >>> target_arch: x86_64 >>> toolchain: gcc-11 >>> >>> build error : >>> -------------- >>> mm/kasan/init.c:282:20: error: redefinition of >>> 'kasan_populate_early_vm_area_shadow' >>> 282 | void __init __weak kasan_populate_early_vm_area_shadow(void *start, >>> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >>> In file included from include/linux/mm.h:34, >>> from include/linux/memblock.h:13, >>> from mm/kasan/init.c:9: >>> include/linux/kasan.h:463:20: note: previous definition of >>> 'kasan_populate_early_vm_area_shadow' with type 'void(void *, long >>> unsigned int)' >>> 463 | static inline void kasan_populate_early_vm_area_shadow(void *start, >>> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >>> make[3]: *** [scripts/Makefile.build:288: mm/kasan/init.o] Error 1 >>> make[3]: Target '__build' not remade because of errors. >>> >>> >>> Reported-by: Linux Kernel Functional Testing >>> >>> build link: >>> ----------- >>> https://builds.tuxbuild.com/1zLv2snHfZN8QV01yA9MB8NhUZt/build.log >>> >>> build config: >>> ------------- >>> https://builds.tuxbuild.com/1zLv2snHfZN8QV01yA9MB8NhUZt/config >>> >>> # To install tuxmake on your system globally >>> # sudo pip3 install -U tuxmake >>> tuxmake --runtime podman --target-arch x86_64 --toolchain gcc-11 >>> --kconfig defconfig --kconfig-add >>> https://builds.tuxbuild.com/1zLv2snHfZN8QV01yA9MB8NhUZt/config > > Presumably "kasan: arm64: fix pcpu_page_first_chunk crash with > KASAN_VMALLOC". Let's cc Kefeng. Yes, I send a fix patch, and reply this mail, see https://lore.kernel.org/linux-mm/5077aa7e-0167-33b6-35f0-0ea7df8f2375@huawei.com/ > > . >