From nobody Sat May 25 16:01:33 2024 X-Original-To: current@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Vmmqw0fjmz5Lpsp for ; Sat, 25 May 2024 16:01:48 +0000 (UTC) (envelope-from rlibby@gmail.com) Received: from mail-lj1-f173.google.com (mail-lj1-f173.google.com [209.85.208.173]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Vmmqv68Tsz4LrD for ; Sat, 25 May 2024 16:01:47 +0000 (UTC) (envelope-from rlibby@gmail.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-lj1-f173.google.com with SMTP id 38308e7fff4ca-2e73359b900so65118831fa.2 for ; Sat, 25 May 2024 09:01:47 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716652905; x=1717257705; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=pP6FYWjs67yPQs7psHquJJ40L8bbeJAWlbItNtUvUWE=; b=o2kXPLiILokJVbM5/BtdkGH6yUBTeAytF4T1E7OrwU5DtsLpTLs90kb7MRsclqCaJY OmlYeRuQAvz5x+lcEZAeGsCT6DTUzffg8NEokaQr0aXDDhCGHA6VafN3tXXtpoWk26Gr XXA+Yh8W3oXdbFa3zydt47HELk6+VW/xYGkbG/o2tEOAxh4IqgepMqM0l3h1WuFcMhDa 2A+eYpkR0o3Lsi5M7hLEBM9wBuVAhhUoFKQm6nEDspS59Mofs71Mpbu4/Dtr20jbwMnK 9JVTqvl/UncJKAoilk+de6wkal7xJfGjbrnw+LWNjuT2vO+qR/RooGrIskE3HJOYkXiZ GOdQ== X-Gm-Message-State: AOJu0Yx+OOeXVmtvTAyy4ZTGwmQz02ePLeYQ962iu1AQqXb8WQl3EbE7 tqAJnba65icLUlTasF22XGRw1nBKb/8ELcjasqs/MjmwUaz2NKzD3G1tcSyo X-Google-Smtp-Source: AGHT+IFLbkdBUliVcdxLre7Y894V1SAtVo9G3QcfEBhNMVdPaf0u6eigqZxBn4CYn/6e3DnvXnGBuA== X-Received: by 2002:a2e:b6ca:0:b0:2e3:603e:4697 with SMTP id 38308e7fff4ca-2e95b2881c5mr31615191fa.36.1716652905016; Sat, 25 May 2024 09:01:45 -0700 (PDT) Received: from mail-lf1-f49.google.com (mail-lf1-f49.google.com. [209.85.167.49]) by smtp.gmail.com with ESMTPSA id 38308e7fff4ca-2e95be01aecsm7530311fa.109.2024.05.25.09.01.44 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 25 May 2024 09:01:44 -0700 (PDT) Received: by mail-lf1-f49.google.com with SMTP id 2adb3069b0e04-52449b7aa2bso7299374e87.3 for ; Sat, 25 May 2024 09:01:44 -0700 (PDT) X-Received: by 2002:a19:7505:0:b0:51e:e846:2b6f with SMTP id 2adb3069b0e04-52966ca6691mr3019172e87.51.1716652904612; Sat, 25 May 2024 09:01:44 -0700 (PDT) List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@FreeBSD.org MIME-Version: 1.0 References: <72f0035ec7624700007c9cf3a69788ac@Leidinger.net> In-Reply-To: <72f0035ec7624700007c9cf3a69788ac@Leidinger.net> From: Ryan Libby Date: Sat, 25 May 2024 09:01:33 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: panic: lock "tmpfsni" 0xfffff80721307090 already initialized To: Alexander Leidinger Cc: Current Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:15169, ipnet:209.85.128.0/17, country:US] X-Rspamd-Queue-Id: 4Vmmqv68Tsz4LrD On Sat, May 25, 2024 at 1:32=E2=80=AFAM Alexander Leidinger wrote: > > Hi, > > [123095] panic: lock "tmpfsni" 0xfffff80721307090 already initialized > [123095] cpuid =3D 8 > [123095] time =3D 1716597585 > [123095] KDB: stack backtrace: > [123095] db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame > 0xfffffe08285c9690 > [123095] vpanic() at vpanic+0x13f/frame 0xfffffe08285c97c0 > [123095] panic() at panic+0x43/frame 0xfffffe08285c9820 > [123095] lock_init() at lock_init+0x155/frame 0xfffffe08285c9830 > [123095] _mtx_init() at _mtx_init+0x89/frame 0xfffffe08285c9850 > [123095] tmpfs_node_init() at tmpfs_node_init+0x28/frame > 0xfffffe08285c9870 > [123095] keg_alloc_slab() at keg_alloc_slab+0x28d/frame > 0xfffffe08285c98c0 > [123095] zone_import() at zone_import+0xec/frame 0xfffffe08285c9950 > [123095] cache_alloc() at cache_alloc+0x3b3/frame 0xfffffe08285c99b0 > [123095] cache_alloc_retry() at cache_alloc_retry+0x23/frame > 0xfffffe08285c99f0 > [123095] tmpfs_alloc_node() at tmpfs_alloc_node+0x108/frame > 0xfffffe08285c9a40 > [123095] tmpfs_alloc_file() at tmpfs_alloc_file+0xbf/frame > 0xfffffe08285c9ad0 > [123095] tmpfs_create() at tmpfs_create+0x38/frame 0xfffffe08285c9b00 > [123095] VOP_CREATE_APV() at VOP_CREATE_APV+0x3c/frame > 0xfffffe08285c9b20 > [123095] vn_open_cred() at vn_open_cred+0x2e2/frame 0xfffffe08285c9c80 > [123095] openatfp() at openatfp+0x268/frame 0xfffffe08285c9dc0 > [123095] sys_openat() at sys_openat+0x28/frame 0xfffffe08285c9de0 > [123095] filemon_wrapper_openat() at filemon_wrapper_openat+0x12/frame > 0xfffffe08285c9e00 > [123095] amd64_syscall() at amd64_syscall+0x15b/frame 0xfffffe08285c9f30 > [123095] fast_syscall_common() at fast_syscall_common+0xf8/frame > 0xfffffe08285c9f30 > [123095] --- syscall (499, FreeBSD ELF64, openat), rip =3D 0xab82ba, rsp = =3D > 0x8217439e8, rbp =3D 0x821743a20 --- > [123095] Uptime: 1d10h11m35s > > This is with a world from 2024-05-17-084543. > > Full logs available at https://wiki.leidinger.net/core.txt.7 (1.1 MB). > > This was in the middle of the night, poudriere was running. > > Bye, > Alexander. > > -- > http://www.Leidinger.net Alexander@Leidinger.net: PGP 0x8F31830F9F2772BF > http://www.FreeBSD.org netchild@FreeBSD.org : PGP 0x8F31830F9F2772BF It looks like tmpfs_node_init ought to pass the MTX_NEW flag, but I am not seeing what may have changed recently that would explain why this hasn't been hit before or more often on INVARIANTS kernels. For future debugging, maybe uma should do an initial trashing of memory even for zones that have an init procedure. Ryan