From nobody Wed Dec 29 11:10:45 2021 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 9E43A192CEBE for ; Wed, 29 Dec 2021 11:10:46 +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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4JP7xL1nN2z4v9l for ; Wed, 29 Dec 2021 11:10:46 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) 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 1E94E23B4C for ; Wed, 29 Dec 2021 11:10:46 +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 1BTBAj7w021882 for ; Wed, 29 Dec 2021 11:10:46 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 1BTBAjMM021879 for bugs@FreeBSD.org; Wed, 29 Dec 2021 11:10:45 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 260793] 'swapon -a' can crash the system Date: Wed, 29 Dec 2021 11:10:45 +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: 12.3-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: pmc@citylink.dinoex.sub.org 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 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1640776246; 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=8SISOzhQRd7K8ztJ9GGU91lmM2tJP5DhzTdjr/zTUHs=; b=CsGCG0Pd3hwre/TXI5K9T7GVTB7bWTLPXN1T6p0oBEVFSlqnnKQx4xmMsPSqUdhzVQrhiT z2RvXBVDRtCm6GucUQ45aq7qn1YEuB02q9qM3LP4yYJGs3j3VC/51wST1bUM4BgOhNNHta Fwq5yhmT6+kFL8qxVTQ2EOid1JVnz4DKz/pyoRTboY4LTwrwgwP5Sfx+kohajlr73pa1mc QrN7F0W6O/uBFpI4xm14ZEFxBtHvpF3jPmkUkuj4v0L8HeKr/eb/nMprz/ea+vjbtDw06v BS/tyhe2uKvihEiPL7DDzB+lKfoSEnvq8irlLP+QEeJ1ayBsD9awnsMNdC8SFQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1640776246; a=rsa-sha256; cv=none; b=jW0eIaYqETDSn/RY2CM24rdnl2Qhi2NkTM34Rgt98wEAtWoy6CaJbZTQw8L70avWnZ9hxc WFWBTdLudRFSE7qonLJfpo8CWfDolDefvlJt4t2C3g1zECqtrckhZq+qLGUgUVceJWOX/z r676xohBBvDgs6/YtsdACL2+4ag0HL4AmXUgbcnFmAWQyQV5YQOyN7PE4xdBuf+/Sv8/yx WVH9XSGrTe+cWAAjJmlsh6AGvr8ZHjUCo1AVhGo7JaQmWsFL/qf3d9zTn1gYHyQGNo5wYk OiPTIFePE5v3lHoqKmd1JcSZnTWNVHxsjfMA7Kca9XzZsTNCBk947D5e4hxw7A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D260793 Bug ID: 260793 Summary: 'swapon -a' can crash the system Product: Base System Version: 12.3-RELEASE Hardware: amd64 OS: Any Status: New Severity: Affects Only Me Priority: --- Component: bin Assignee: bugs@FreeBSD.org Reporter: pmc@citylink.dinoex.sub.org Reproduce:=20 ---------- 1. Have some early and late swapspaces configured and decently filled alrea= dy. 2. With paging not yet exhausted, add another *late* swapspace into fstab. 3. Run "swapon -a". This should not do anything, because the old swapspaces are already active,= and the new one is configured as "late", and a mere "swapon -a" would not activ= ate it. Error: ------ kernel: pid 12296 (daemon), jid 5, uid 5100: exited on signal 10 (core dump= ed) kernel: pid 17717 (ruby27), jid 5, uid 5100: exited on signal 6 (core dumpe= d) kernel: pid 14938 (daemon), jid 10, uid 5100: exited on signal 10 (core dum= ped) kernel: pid 19184 (ruby27), jid 10, uid 5100: exited on signal 11 (core dum= ped) kernel: pid 19182 (ruby27), jid 10, uid 5100: exited on signal 10 (core dum= ped) [etc. etc. lots of them] And subsequent kernel crash. (It might appear that the processes coredumping are those that are fully swapped out, but this is unconfirmed). I did not find time to analyze this in-depth; it happened twice, it is obvi= ous that 'swapon -a' does mangle something seriousely, so I just don't use it anymore except during bringup. --=20 You are receiving this mail because: You are the assignee for the bug.=