From nobody Thu Aug 01 13:11:37 2024 X-Original-To: bugs@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 4WZTr91tpTz5SlV9 for ; Thu, 01 Aug 2024 13:11:37 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4WZTr909Qqz45lD for ; Thu, 1 Aug 2024 13:11:37 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1722517897; a=rsa-sha256; cv=none; b=Ro+KHX5tU0menNrikaeh0s938OEQ8OxHz9QnQsuLUw3pe7LJFAavqNlMvpBsWL7K1Yg4k7 /dooEFfl+F7K2bx8KxEVzNlaNWjz8aKchfXzeumb1l0GKPIH0KUz07a7ulZhBoPyobBCJf nAY1Axze2B+wmjb98uWwQVRCFS4X7m0re4EUEnGBO9gtcfEWHChSdRbyh+70XnVB2zlhR2 3wHpWA79WTHHy1AWroSluGjcoE9fL4r7+hya1RA+dMEol+hwaYdUqgOB9Lr908VxXw1N01 YkauEP6DgkON81SDwlXlOrRaU+SNTwgNSEUcOiMTgRog3EoNNkrFYYlVBoRK+g== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1722517897; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=ra/qiMgdFKAKrD2abuF26pI3qgk4LooOc4z3WvnN32k=; b=Xkxgf0BbEBww4t13h4vKGe1ZleEUp56iFiCe2U9oho5ij076OWfJmpxDUtN77zTR82f0LU jn2pR5y/gEfrxYpty7k2IMENO8/iC2H+H0TQ350VtwDz1aus/ppBZJGJDO0RCMpkXy1sBV KkYXmJYtTH3gpLAXrIsKJC2ocUnsFMQk2/LdZNz0w0OVBsUdnMA9rbFtv6vfVsYsqfHZfM k71hCjIXqrODeUrUK2yDU9UTJJpi1xOncsW01hp4A8urm4m3+OcwvmBrCimUPBvoUWGrfP Bcc9DeKzX4csYGVVqw4NEy6p7ybAWyoDf7da4zf05RncpUwA0Rcgt8uUrBUAOA== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4WZTr86qSHzmP2 for ; Thu, 1 Aug 2024 13:11:36 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 471DBaej065675 for ; Thu, 1 Aug 2024 13:11:36 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 471DBacY065674 for bugs@FreeBSD.org; Thu, 1 Aug 2024 13:11:36 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 280554] unmounting tmpfs when swap is 100% full causes kernel panic Date: Thu, 01 Aug 2024 13:11:37 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: Unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: admin@support.od.ua X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D280554 Bug ID: 280554 Summary: unmounting tmpfs when swap is 100% full causes kernel panic Product: Base System Version: Unspecified Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: bin Assignee: bugs@FreeBSD.org Reporter: admin@support.od.ua FreeBSD 12.3-STABLE #0 r372170M: Mon Jun 27 19:29:31 EEST 2022 I only have textdump.tar.1 file, but there is kernel.debug in the system. How to repeat: Have a ZFS system and a 2-3 GB disk partition for swap. Have synth with the following settings: cat << EOF >> synth.ini [Global Configuration] profile_selected=3D LiveSystem [LiveSystem] Operating_system=3D FreeBSD Directory_packages=3D /var/synth/live_packages Directory_repository=3D /var/synth/live_packages/All Directory_portsdir=3D /usr/ports Directory_options=3D /var/db/ports Directory_distfiles=3D /usr/ports/distfiles Directory_buildbase=3D /usr/obj/synth-live Directory_logs=3D /var/log/synth Directory_ccache=3D /ccache Directory_system=3D / Number_of_builders=3D 2 Max_jobs_per_builder=3D 1 Tmpfs_workdir=3D true Tmpfs_localbase=3D true leverage_prebuilt=3D false EOF Have a large list of packages to build, including lang/rust For example: cat << EOF >> synth-update.txt lang/rust mail/spamassassin security/py-openssl@py39 security/p5-Net-SSLeay www/lynx ftp/curl net-mgmt/flowd net/libpcap sysutils/py-ansible-core@py39 sysutils/ansible@py39 sysutils/py-ansible-compat@py39 sysutils/ansible-sysrc sysutils/py-ansible-lint@py39 misc/mc net/samba413 sysutils/nut security/gnutls sysutils/tracker sysutils/monit ports-mgmt/synth ports-mgmt/pkg_tree ports-mgmt/pkg dns/unbound sysutils/py-ansible-core@py39 sysutils/ansible@py39 sysutils/py-ansible-compat@py39 sysutils/ansible-sysrc sysutils/py-ansible-lint@py39 dns/nsd devel/cmake devel/cmake-core benchmarks/siege archivers/unrar sysutils/sanoid EOF Run synth with these parameters: synth build /full/path/synth-update.txt When the swap is 100% full, type the Control-Q combination. The second build queue will finish building the current package and unmount= the readninly tmps partitions. Fatal trap 12: page fault while in kernel mode cpuid =3D 0; apic id =3D 00 fault virtual address =3D 0x20000 fault code =3D supervisor write data, page not present instruction pointer =3D 0x20:0xffffffff810c5d54 stack pointer =3D 0x28:0xfffffe00468187d0 frame pointer =3D 0x28:0xfffffe00468187d0 code segment =3D base 0x0, limit 0xfffff, type 0x1b =3D DPL 0, pres 1, long 1, def32 0, gran 1 processor eflags =3D interrupt enabled, resume, IOPL =3D 0 current process =3D 3286 (umount) trap number =3D 12 panic: page fault cpuid =3D 0 time =3D 1722461598 KDB: stack backtrace: db_trace_self_wrapper() at 0xffffffff80497d0b =3D db_trace_self_wrapper+0x2b/frame 0xfffffe0046818590 vpanic() at 0xffffffff80c92688 =3D vpanic+0x178/frame 0xfffffe00468185e0 panic() at 0xffffffff80c92503 =3D panic+0x43/frame 0xfffffe0046818640 trap_fatal() at 0xffffffff812d0e9f =3D trap_fatal+0x38f/frame 0xfffffe00468= 186a0 trap_pfault() at 0xffffffff812d0eef =3D trap_pfault+0x4f/frame 0xfffffe0046= 818700 calltrap() at 0xffffffff812a9438 =3D calltrap+0x8/frame 0xfffffe0046818700 --- trap 0xc, rip =3D 0xffffffff810c5d54, rsp =3D 0xfffffe00468187d0, rbp = =3D 0xfffffe00468187d0 --- mac_labelzone_dtor() at 0xffffffff810c5d54 =3D mac_labelzone_dtor+0x4/frame 0xfffffe00468187d0 uma_zfree_arg() at 0xffffffff8112acc6 =3D uma_zfree_arg+0x56/frame 0xfffffe0046818830 mac_vnode_destroy() at 0xffffffff810d1451 =3D mac_vnode_destroy+0xa1/frame 0xfffffe0046818890 _vdrop() at 0xffffffff80d622b6 =3D _vdrop+0x266/frame 0xfffffe00468188c0 vflush() at 0xffffffff80d6385b =3D vflush+0x38b/frame 0xfffffe0046818a10 tmpfs_unmount() at 0xffffffff82d2af26 =3D tmpfs_unmount+0x76/frame 0xfffffe0046818a60 dounmount() at 0xffffffff80d59ff8 =3D dounmount+0x588/frame 0xfffffe0046818= ad0 sys_unmount() at 0xffffffff80d59903 =3D sys_unmount+0x383/frame 0xfffffe0046818c00 amd64_syscall() at 0xffffffff812d1a57 =3D amd64_syscall+0x387/frame 0xfffffe0046818d30 fast_syscall_common() at 0xffffffff812a9d5e =3D fast_syscall_common+0xf8/fr= ame 0xfffffe0046818d30 --- syscall (22, FreeBSD ELF64, sys_unmount), rip =3D 0x8002deaaa, rsp =3D 0x7fffffffd258, rbp =3D 0x7fffffffd780 --- KDB: enter: panic db:1:lockinfo> show lockedvnods Locked vnodes db:0:kdb.enter.panic> show pcpu cpuid =3D 0 dynamic pcpu =3D 0xdddcc0 curthread =3D 0xfffff801dc549740: pid 3286 tid 102095 "umount" curpcb =3D 0xfffff801dc549ce0 fpcurthread =3D 0xfffff801dc549740: pid 3286 "umount" idlethread =3D 0xfffff8000318c000: tid 100003 "idle: cpu0" curpmap =3D 0xfffff801de4a2138 tssp =3D 0xffffffff821e60a0 commontssp =3D 0xffffffff821e60a0 rsp0 =3D 0xfffffe0046818e00 kcr3 =3D 0xffffffffffffffff ucr3 =3D 0xffffffffffffffff scr3 =3D 0x0 gs32p =3D 0xffffffff821ec8b8 ldt =3D 0xffffffff821ec8f8 tss =3D 0xffffffff821ec8e8 tlb gen =3D 2425508 curvnet =3D 0 db:0:kdb.enter.panic> bt Tracing pid 3286 tid 102095 td 0xfffff801dc549740 kdb_enter() at 0xffffffff80cdb937 =3D kdb_enter+0x37/frame 0xfffffe00468185= 90 vpanic() at 0xffffffff80c926a4 =3D vpanic+0x194/frame 0xfffffe00468185e0 panic() at 0xffffffff80c92503 =3D panic+0x43/frame 0xfffffe0046818640 trap_fatal() at 0xffffffff812d0e9f =3D trap_fatal+0x38f/frame 0xfffffe00468= 186a0 trap_pfault() at 0xffffffff812d0eef =3D trap_pfault+0x4f/frame 0xfffffe0046= 818700 calltrap() at 0xffffffff812a9438 =3D calltrap+0x8/frame 0xfffffe0046818700 --- trap 0xc, rip =3D 0xffffffff810c5d54, rsp =3D 0xfffffe00468187d0, rbp = =3D 0xfffffe00468187d0 --- mac_labelzone_dtor() at 0xffffffff810c5d54 =3D mac_labelzone_dtor+0x4/frame 0xfffffe00468187d0 uma_zfree_arg() at 0xffffffff8112acc6 =3D uma_zfree_arg+0x56/frame 0xfffffe0046818830 mac_vnode_destroy() at 0xffffffff810d1451 =3D mac_vnode_destroy+0xa1/frame 0xfffffe0046818890 _vdrop() at 0xffffffff80d622b6 =3D _vdrop+0x266/frame 0xfffffe00468188c0 vflush() at 0xffffffff80d6385b =3D vflush+0x38b/frame 0xfffffe0046818a10 tmpfs_unmount() at 0xffffffff82d2af26 =3D tmpfs_unmount+0x76/frame 0xfffffe0046818a60 dounmount() at 0xffffffff80d59ff8 =3D dounmount+0x588/frame 0xfffffe0046818= ad0 sys_unmount() at 0xffffffff80d59903 =3D sys_unmount+0x383/frame 0xfffffe0046818c00 amd64_syscall() at 0xffffffff812d1a57 =3D amd64_syscall+0x387/frame 0xfffffe0046818d30 fast_syscall_common() at 0xffffffff812a9d5e =3D fast_syscall_common+0xf8/fr= ame 0xfffffe0046818d30 --- syscall (22, FreeBSD ELF64, sys_unmount), rip =3D 0x8002deaaa, rsp =3D 0x7fffffffd258, rbp =3D 0x7fffffffd780 --- --=20 You are receiving this mail because: You are the assignee for the bug.=