Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp374947rwd; Thu, 8 Jun 2023 01:49:55 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7+YEQEGlA7cY9/u8RXzAnQxmeS27BemLdnrwJ5PY8PodhjVC84Uwfrb6+lEjsqK2AsNJ1f X-Received: by 2002:a05:6808:7cd:b0:39b:e5fe:abe8 with SMTP id f13-20020a05680807cd00b0039be5feabe8mr6931584oij.50.1686214195524; Thu, 08 Jun 2023 01:49:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686214195; cv=none; d=google.com; s=arc-20160816; b=uWXNHUNsyG09f7G84V+Cnn6rEicX204S6Ub8TrK1Gi8Ipzxz5eEnS9dZvtm7Yga7Dd yoxJEvtmLkTszI5XC8qjR1HfrHi1vq4EV+c6hqo+wgl21eqm7lFEMKM625dc9TfRYGdd 0Z2cv+9mBhhTF26++XsTzHat1KS21HfB8ZH2jZXWbNifFUMsFoDspFgRi51/V5So+Qzf EqYJR28eJh1c/X2BKD8iFjW2JXopj/LIW1l6eGwkrsRJqWdy6ekANNQjregPB/I9gYY3 zMIRp7ZLGmpISPvcElMW71YyDI5SJw984J+On+Zmri/lI10JPEIWP3mcEyiPEqiV3vU7 JzRg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=OQw4LAzesIERDw/tpoXXpYhapTxz4emCfmHUIqoyXmc=; b=osSIdSS00Oakbnj9KJJsXeTcSt2qaL4HQGWPDr3MTXHOPiRRdpj3t4hCNlPEgGK/JZ F72QU6Qxx3leAq+gx2CvR93GWtSe9F9MC68VG9A6ZGh643i2Ou09zBwyrka7PKsR9yg1 NB06LnR/YLwH7wh6f9CR59pD0gZ169gclDI1mQc9Ck/zVpHZ3/Cl6jX06OENypSMTokG E/JA0BFuIa9ubcJ7Wy3o30Y0ycc/bxh5j6icxSt2w00U3XGcGkpihKsig1hlSaoAr4Zy CvU8T/KEjeGR0YAML9368aro916QhI9O0KwfqL7jjFtuFcFuiQrPzUSlodY4hskvyX7V 03Fw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=VUz7MHYy; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r8-20020aa79628000000b00660b5630927si536422pfg.133.2023.06.08.01.49.43; Thu, 08 Jun 2023 01:49:55 -0700 (PDT) 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=@infradead.org header.s=casper.20170209 header.b=VUz7MHYy; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235379AbjFHIdf (ORCPT + 99 others); Thu, 8 Jun 2023 04:33:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37886 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232272AbjFHIdd (ORCPT ); Thu, 8 Jun 2023 04:33:33 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E77C626B2; Thu, 8 Jun 2023 01:33:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=OQw4LAzesIERDw/tpoXXpYhapTxz4emCfmHUIqoyXmc=; b=VUz7MHYyg/m98/jyhEwR0jwBGs k1c3pabfEohSaawm81RVv+cQKRq8jZaORuyZZbyPLAj4uR46aOQ7pwGGNfEEr/+UEnmNS+datSjmb XMgtAFI8ULYEQ9C72GIctLMCcEQX8JZ3Hv9gXNzT3JeJgNUjtU+BbBgXkVz3hqV3vdQqRFCojbWhZ GT44ueppZVlqYp81oh7p6CWzEUok9tPB5NQ82Co8j7kkJOMY8nDNm45gk90ZOObUU/puvVUazjOW4 x8cAWeNgxwqaxoUem5FQtANrzm/mlJPcvPGjsKhby4DIZadHvz2tQHyBBjF5/lbs1FbJmaOfGYzZv kfoIKOxA==; Received: from j130084.upc-j.chello.nl ([24.132.130.84] helo=noisy.programming.kicks-ass.net) by casper.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1q7B55-00FGiQ-I7; Thu, 08 Jun 2023 08:33:19 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id 37F04300274; Thu, 8 Jun 2023 10:33:18 +0200 (CEST) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 2124820D72192; Thu, 8 Jun 2023 10:33:18 +0200 (CEST) Date: Thu, 8 Jun 2023 10:33:18 +0200 From: Peter Zijlstra To: "Paul E. McKenney" Cc: "Jain, Ayush" , Linux Next Mailing List , sfr@canb.auug.org.au, rcu@vger.kernel.org, Wyes Karny , linux-kernel@vger.kernel.org, void@manifault.com Subject: Re: Null pointer dereference during rcutorture test on linux-next from next-20230602 Message-ID: <20230608083318.GG998233@hirez.programming.kicks-ass.net> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE 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 On Wed, Jun 07, 2023 at 12:24:12PM -0700, Paul E. McKenney wrote: > On Wed, Jun 07, 2023 at 04:48:19PM +0530, Jain, Ayush wrote: > > Hello All, > > > > Observed null pointer dereference during rcutorture test on linux-next tree > > from next-20230602. > > > > Commit ID: commit bc708bbd8260ee4eb3428b0109f5f3be661fae46 (HEAD, tag: next-20230602) > > > > Here I am attaching log trace > > > > [12133.344278] rcu-torture: rcu_torture_read_exit: Start of test > > [12133.344282] rcu-torture: rcu_torture_read_exit: Start of episode > > [12138.350637] rcu-torture: rcu_torture_read_exit: End of episode > > [12143.419412] smpboot: CPU 1 is now offline > > [12143.427996] BUG: kernel NULL pointer dereference, address: 0000000000000128 > > [12143.435777] #PF: supervisor read access in kernel mode > > [12143.441517] #PF: error_code(0x0000) - not-present page > > [12143.447256] PGD 0 P4D 0 > > [12143.450087] Oops: 0000 [#1] PREEMPT SMP NOPTI > > [12143.454955] CPU: 68 PID: 978653 Comm: rcu_torture_rea Kdump: loaded Not tainted 6.4.0-rc5-next-20230606-1686061107994 #1 > > [12143.467095] Hardware name: AMD Corporation Speedway/Speedway, BIOS RSW1009C 07/27/2018 > > [12143.475934] RIP: 0010:__bitmap_and+0x18/0x70 > > [12143.480713] Code: 00 00 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 f3 0f 1e fa 41 89 cb 49 89 f9 41 c1 eb 06 74 51 45 89 da 31 c0 45 31 c0 <48> 8b 3c c6 48 23 3c c2 49 89 3c c1 48 83 c0 01 49 09 f8 49 39 c2 > > [12143.501675] RSP: 0018:ffffa3a90db70d90 EFLAGS: 00010046 > > [12143.507510] RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000080 > > [12143.515468] RDX: ffff8a1ec17a1d68 RSI: 0000000000000128 RDI: ffff8a1e800429c0 > > [12143.523425] RBP: ffff8a1ec17a1980 R08: 0000000000000000 R09: ffff8a1e800429c0 > > [12143.531385] R10: 0000000000000002 R11: 0000000000000002 R12: ffff8a1e800429c0 > > [12143.539352] R13: 0000000000000000 R14: 0000000000032580 R15: 0000000000000000 > > [12143.547320] FS: 0000000000000000(0000) GS:ffff8a2dbf100000(0000) knlGS:0000000000000000 > > [12143.556354] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 > > [12143.562770] CR2: 0000000000000128 CR3: 0000003089e50000 CR4: 00000000003506e0 > > [12143.570729] Call Trace: > > [12143.573463] > > [12143.575714] ? __die+0x24/0x70 > > [12143.579130] ? page_fault_oops+0x82/0x150 > > [12143.583615] ? exc_page_fault+0x69/0x150 > > [12143.588001] ? asm_exc_page_fault+0x26/0x30 > > [12143.592678] ? __bitmap_and+0x18/0x70 > > [12143.596768] select_idle_cpu+0x84/0x3d0 > > [12143.601059] select_idle_sibling+0x1b7/0x500 > > [12143.605831] select_task_rq_fair+0x1b2/0x2e0 > > [12143.610603] select_task_rq+0x7a/0xc0 > > [12143.614696] try_to_wake_up+0xe8/0x550 > > [12143.618885] ? update_process_times+0x83/0x90 > > [12143.623747] ? __pfx_hrtimer_wakeup+0x10/0x10 > > [12143.628615] hrtimer_wakeup+0x22/0x30 > > [12143.632706] __hrtimer_run_queues+0x112/0x2b0 > > [12143.637574] hrtimer_interrupt+0x100/0x240 > > [12143.642152] __sysvec_apic_timer_interrupt+0x63/0x130 > > [12143.647796] sysvec_apic_timer_interrupt+0x71/0x90 > > [12143.653149] > > [12143.655493] > > [12143.657834] asm_sysvec_apic_timer_interrupt+0x1a/0x20 I'm thikning this is because of ("sched/fair: Multi-LLC select_idle_sibling()") which I've already dropped from tip/sched/core (and should hopefully also dissapear from -next if it hasn't already). Also see: https://lkml.kernel.org/r/20230605175636.GA4253@hirez.programming.kicks-ass.net