Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp2283209rwb; Wed, 30 Nov 2022 04:58:00 -0800 (PST) X-Google-Smtp-Source: AA0mqf5gprXviLzJqTNzOFH1N31L/fE+Aw4ywx35Oxz4m7vwplCUkf8zrU3XxZkkCTIqW6SLt00k X-Received: by 2002:a62:54c2:0:b0:56b:fb4f:3d7c with SMTP id i185-20020a6254c2000000b0056bfb4f3d7cmr63993589pfb.54.1669813080420; Wed, 30 Nov 2022 04:58:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669813080; cv=none; d=google.com; s=arc-20160816; b=aAdbCn92Gt2gJHjPfaWZDvrxNjDORA7ZPN/srV7aaLFjZjfUwxvnCDn5xzs9ZR2RnS i3nQF+C8nT1lM8duYOI4OnOJSoVKNj9AmxnDOt4r9rfz2KYdCw39h3iCdscVM4HYlp+b x1BoXE79I6CL7pd9kvsqxi11Rtz0TK2Rjp8SkfQitjCIlJmkpVKJHvYgeThdh03jxvcd LyXE/eV9ClTw/vnvLpnaGpPSi3BHbu/zyovPhw6KKEICInEnrjLxqEyDMBj7TEtyhdDH oGd6HHXA65st3Sjxe4Sn9hQnmZh52mTGD0ZrQ89j2OV+S85ZYY8DmoGTTqVoKLNiXijl JlGA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:mime-version :dkim-signature; bh=61fKaN1RgZu/xXzq2GQeDUU3FSJDk3tRJK16ifRK9+c=; b=HJue3iMHV3eLKgKzQHQlQnIyO6gKALex2eM2II/7Iztr92DkGtKBmdHHMdlT/YMosD zMR9+y+vZtm3nLc+2lP9EmxtfZ9dBOHADjM0AoRH5o+DYJr5FMtXnCoJWYlKBgPvbkdi 6iyekNzheX90Q5NMuF2jJyqEmvTOva6lgTQLXLvCWaIX+rUPgRTs4obSFGj2orVdgSbU 7oUUIjQ1t2ChcDdRAJbjLeiOzXqss/wRma3BqtkT1uBP/nVuoD0iXk9XjLnclX5UZm44 88RK+iyjxF6R7vM4BP12p7CldKIctILCMLAMQitEBqXD/8ki/bwMauMu3E396X3tx9M0 Vx8Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=sC6+H6sy; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b4-20020a621b04000000b0056381876081si1494591pfb.328.2022.11.30.04.57.49; Wed, 30 Nov 2022 04:58:00 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=sC6+H6sy; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229613AbiK3Mus (ORCPT + 84 others); Wed, 30 Nov 2022 07:50:48 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59798 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235162AbiK3Mup (ORCPT ); Wed, 30 Nov 2022 07:50:45 -0500 Received: from mail-yw1-x112e.google.com (mail-yw1-x112e.google.com [IPv6:2607:f8b0:4864:20::112e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 882673D90E for ; Wed, 30 Nov 2022 04:50:43 -0800 (PST) Received: by mail-yw1-x112e.google.com with SMTP id 00721157ae682-3a7081e3b95so169933957b3.1 for ; Wed, 30 Nov 2022 04:50:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=cc:to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=61fKaN1RgZu/xXzq2GQeDUU3FSJDk3tRJK16ifRK9+c=; b=sC6+H6syPiy08gXleFu7AaQzqdXgjkpEl1OPmBsnvM+t7RGMRy9+FaEdQ4nl1YStLW 2u8SidSHPvli1ImY5lOZRCij1SMgFAFxCJaK0cHQ8P+9F9sYKtxdXt6EnKSt3OQE8ZiM bzg1KBZ/+LZ7aPTVt7tDAYajV7oBDXpv8lN7F3aCTuz4zi6PS93iA7xUV27prXFFrEOk qK2VpQG5MyDUkyOQnhuxszStLh4mFrUy71RDtcCkXXgudfQX8k3ae83WbQ2wROGIwR/E LHFluOgjjAyhWQJlSyQrmyPrsJGX6ftwSoEtP2rYtinsvVx/F/hClY8e0KAZngAxZ7vi 0ngQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=61fKaN1RgZu/xXzq2GQeDUU3FSJDk3tRJK16ifRK9+c=; b=E0MAUqwI/p/lGhAQQ8xGzmGvDa3IOZSxnshiawQ5XImGQj12aowE6NjfMfr7BJM062 xSOAPdZVdIBrWdJuDF12aXbvEWP9skfTLkytAoqdEWa8dJjpgpOq8mkeTySr+t4jAJuV dVe1NnPnNNNH+oRdNe3EnqEebkOQyKvUNytq0dsVu1RZKx0QkQ/5hSqBVSb5opYqX2Pk GaSes0usMvd523ouKxano+o4TPvR5DAqcb9GBlAN33jfmSMkXPIjPcBgdFxLaSTz6kz6 ylCIvaGnYAufEWUlv4KbP2OdIOBZLgyd7WtZbfdpBqaRe5mtWqBbHFTN1f4iQS4gukMO CEjg== X-Gm-Message-State: ANoB5pk4/wKH/A9fIYs8HWb3pHRemdlurVuzMhsbxK+n4hqWOHOpWp8Q 6j5Ck/x1Obx/lbasyxHdL/kTcsrWjkcIF7R7gGHvQg== X-Received: by 2002:a81:dd8:0:b0:3b8:97ce:990a with SMTP id 207-20020a810dd8000000b003b897ce990amr26466371ywn.448.1669812642465; Wed, 30 Nov 2022 04:50:42 -0800 (PST) MIME-Version: 1.0 From: Naresh Kamboju Date: Wed, 30 Nov 2022 18:20:30 +0530 Message-ID: Subject: arm64: allmodconfig: BUG: KCSAN: data-race in p9_client_cb / p9_client_rpc To: rcu , open list , kunit-dev@googlegroups.com, lkft-triage@lists.linaro.org, kasan-dev Cc: "Paul E. McKenney" , Dominique Martinet , Netdev , Marco Elver , Anders Roxell Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org [Please ignore if it is already reported, and not an expert of KCSAN] While booting arm64 with allmodconfig following kernel BUG found, this build is enabled with CONFIG_INIT_STACK_NONE=y [ 0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd034] [ 0.000000] Linux version 6.1.0-rc7-next-20221130 (tuxmake@tuxmake) (aarch64-linux-gnu-gcc (Debian 11.3.0-6) 11.3.0, GNU ld (GNU Binutils for Debian) 2.39) #2 SMP PREEMPT_DYNAMIC @1669786411 [ 0.000000] random: crng init done [ 0.000000] Machine model: linux,dummy-virt ... [ 424.408466] ================================================================== [ 424.412792] BUG: KCSAN: data-race in p9_client_cb / p9_client_rpc [ 424.416806] [ 424.418214] write to 0xffff00000a753000 of 4 bytes by interrupt on cpu 0: [ 424.422437] p9_client_cb+0x84/0x100 [ 424.425048] req_done+0xfc/0x1c0 [ 424.427443] vring_interrupt+0x174/0x1c0 [ 424.430204] __handle_irq_event_percpu+0x2c8/0x680 [ 424.433455] handle_irq_event+0x9c/0x180 [ 424.436187] handle_fasteoi_irq+0x2b0/0x340 [ 424.439139] generic_handle_domain_irq+0x78/0xc0 [ 424.442323] __gic_handle_irq_from_irqson.isra.0+0x3d8/0x480 [ 424.446054] gic_handle_irq+0xb4/0x100 [ 424.448663] call_on_irq_stack+0x2c/0x38 [ 424.451443] do_interrupt_handler+0xd0/0x140 [ 424.454452] el1_interrupt+0x88/0xc0 [ 424.457001] el1h_64_irq_handler+0x18/0x40 [ 424.459856] el1h_64_irq+0x78/0x7c [ 424.462331] arch_local_irq_enable+0x50/0x80 [ 424.465273] arm64_preempt_schedule_irq+0x80/0xc0 [ 424.468497] el1_interrupt+0x90/0xc0 [ 424.471096] el1h_64_irq_handler+0x18/0x40 [ 424.474009] el1h_64_irq+0x78/0x7c [ 424.476464] __tsan_read8+0x118/0x280 [ 424.479086] __delay+0x104/0x140 [ 424.481521] __udelay+0x5c/0xc0 [ 424.483905] kcsan_setup_watchpoint+0x6cc/0x7c0 [ 424.487081] __tsan_read4+0x168/0x280 [ 424.489729] p9_client_rpc+0x1d0/0x580 [ 424.492429] p9_client_getattr_dotl+0xd0/0x3c0 [ 424.495457] v9fs_inode_from_fid_dotl+0x48/0x1c0 [ 424.498602] v9fs_vfs_lookup+0x23c/0x3c0 [ 424.501386] __lookup_slow+0x1b0/0x240 [ 424.504056] walk_component+0x168/0x280 [ 424.506807] path_lookupat+0x154/0x2c0 [ 424.509489] filename_lookup+0x160/0x2c0 [ 424.512261] vfs_statx+0xc0/0x280 [ 424.514710] vfs_fstatat+0x84/0x100 [ 424.517308] __do_sys_newfstatat+0x64/0x100 [ 424.520189] __arm64_sys_newfstatat+0x74/0xc0 [ 424.523262] invoke_syscall+0xb0/0x1c0 [ 424.525939] el0_svc_common.constprop.0+0x10c/0x180 [ 424.529219] do_el0_svc+0x54/0x80 [ 424.531662] el0_svc+0x4c/0xc0 [ 424.533944] el0t_64_sync_handler+0xc8/0x180 [ 424.536837] el0t_64_sync+0x1a4/0x1a8 [ 424.539436] [ 424.540810] read to 0xffff00000a753000 of 4 bytes by task 74 on cpu 0: [ 424.544927] p9_client_rpc+0x1d0/0x580 [ 424.547692] p9_client_getattr_dotl+0xd0/0x3c0 [ 424.550564] v9fs_inode_from_fid_dotl+0x48/0x1c0 [ 424.553550] v9fs_vfs_lookup+0x23c/0x3c0 [ 424.556144] __lookup_slow+0x1b0/0x240 [ 424.558655] walk_component+0x168/0x280 [ 424.561192] path_lookupat+0x154/0x2c0 [ 424.563721] filename_lookup+0x160/0x2c0 [ 424.566337] vfs_statx+0xc0/0x280 [ 424.568638] vfs_fstatat+0x84/0x100 [ 424.571051] __do_sys_newfstatat+0x64/0x100 [ 424.573821] __arm64_sys_newfstatat+0x74/0xc0 [ 424.576650] invoke_syscall+0xb0/0x1c0 [ 424.579144] el0_svc_common.constprop.0+0x10c/0x180 [ 424.582212] do_el0_svc+0x54/0x80 [ 424.584475] el0_svc+0x4c/0xc0 [ 424.586611] el0t_64_sync_handler+0xc8/0x180 [ 424.589347] el0t_64_sync+0x1a4/0x1a8 [ 424.591758] [ 424.593045] 1 lock held by systemd-journal/74: [ 424.595821] #0: ffff00000a0ead88 (&type->i_mutex_dir_key#3){++++}-{3:3}, at: walk_component+0x158/0x280 [ 424.601588] irq event stamp: 416642 [ 424.603875] hardirqs last enabled at (416641): [] preempt_schedule_irq+0x40/0x100 [ 424.609078] hardirqs last disabled at (416642): [] el1_interrupt+0x78/0xc0 [ 424.613887] softirqs last enabled at (416464): [] __do_softirq+0x5b0/0x694 [ 424.618699] softirqs last disabled at (416453): [] ____do_softirq+0x30/0x80 [ 424.623562] [ 424.624841] value changed: 0x00000002 -> 0x00000003 [ 424.627838] [ 424.629117] Reported by Kernel Concurrency Sanitizer on: [ 424.632298] CPU: 0 PID: 74 Comm: systemd-journal Tainted: G T 6.1.0-rc7-next-20221130 #2 26b4d3787db66414ab23fce17d22967bb2169e1f [ 424.639393] Hardware name: linux,dummy-virt (DT) Reported-by: Linux Kernel Functional Testing -- Linaro LKFT https://lkft.linaro.org