From nobody Mon Nov 4 06:05:13 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 4XhgtP2jM3z5cGBR for ; Mon, 04 Nov 2024 06:05:17 +0000 (UTC) (envelope-from avg@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (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 "smtp.freebsd.org", Issuer "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XhgtP2Df5z4l8N for ; Mon, 4 Nov 2024 06:05:17 +0000 (UTC) (envelope-from avg@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730700317; 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:autocrypt:autocrypt; bh=tj1w4xNVLJmVJbO8uY7M8d/GOK9z8a6IwQ5+ntqLJic=; b=Vn1jvZ0KQk+uEWiaAIzGGgbTm2JggD++EKJGt5NT8tzSJPN0x9BzgWNcrERCIuBgzL1yrz +D9wPjsMh7nxiaPH8msKAXUiOZn8hruGIIJ2LNxdjZQmWGAt3VvfPBH6o5SLMyWiEoSjnX qP0sAo4SWHF2cCduFhL8UsbIAK0cjFzcIoJZfEPizNeUBUs7soLqIZjndVgAtO1lGi091z D7yRvKSg88Khu2prm9PYlz4meL8jqMq5bGvh+wkETdYubl5iwE6vGftJv8gxcJfRJHdxLp uUpgQ2afSij0+tNh+8QIh+PA3d/8tte0RHnIzWqLJofGFmyVMUnYVI0jnivzcg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730700317; 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:autocrypt:autocrypt; bh=tj1w4xNVLJmVJbO8uY7M8d/GOK9z8a6IwQ5+ntqLJic=; b=AA6SWIjHXqJxoT7H0CNs2Y9XB9Cv4/sGLupUmiFdBcqELK64qaUUvDA+FeQiVepUpvaf16 UPIUk0/PQet6wJWUOyELqTMKO0cQaEzhm+62ErgPilG6MU+mEw1PzWlR4ZFPSivjhk5KgR 42nkoVnqJwO8Z6XkB0oykF2+D3g+zfBPQXZteofys2EapvthWRsGZTavGUjTb98DMwrf5s 6HRSq2XKNN+RHVs5w/FkxF15YFev9/51IYOryHsI6J9urKj/lYNqakuMdZJq+w6rnqNNGU 2Oy2/XIln/EwPiuG073riI1k8LW9dfOHDHs8viwjLw4ZlEzAYj548QznQ4bv1g== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1730700317; a=rsa-sha256; cv=none; b=pTJF/jzCYc6Y7mbhEVlAGV909XKbJ7uu3rOOa48oXWKLmrlMxAT4OMLNh4dXL8J1GqcEh3 shs1c3vXa2i4wMEe0G6O6x4d8YNYCc4+gb5A0XM7NiP/mi6HZ+9Kqm2k15uMaaHheKSFcA PDHoKISUGgXW/2hXNkzMy97VlvmPEtssWxh2XZiAPN6NmC+AXI8Bzj4hAMqgxxJ4YjZKT9 eEFLfvdPPvDXwPumJkVq8IX3HJDmq99lpBozVFlORAtWCzv2HKy/FDuNhoWqHyESC8xLVX GPYRII29AEtD2YRNoCBRfQtW0MnhwUOInQK6rJ3YJPdWY00rC6kVD5nNvHsPPg== Received: from [192.168.0.88] (unknown [93.188.39.137]) (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 did not present a certificate) (Authenticated sender: avg/mail) by smtp.freebsd.org (Postfix) with ESMTPSA id 4XhgtP0CD8zQD0 for ; Mon, 4 Nov 2024 06:05:16 +0000 (UTC) (envelope-from avg@FreeBSD.org) Message-ID: <297bdeca-ef39-4382-9e20-3ee1d0880bd8@FreeBSD.org> Date: Mon, 4 Nov 2024 08:05:13 +0200 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 User-Agent: Mozilla Thunderbird Content-Language: en-US To: FreeBSD Current From: Andriy Gapon Subject: userland is active during late shutdown or even panic? Autocrypt: addr=avg@FreeBSD.org; keydata= xsDNBGcKrHEBDADRvwQOK0b/yo4ys5cs6bOQMhEh4xtfbaZ/CU00cpPgUip3sOZCdrtMWlRC g25z97prxE9pKueZi+HXDhIPpa9xl14ghqF4oYScuJ1i18HyiOH2y5Q3Vv/TtFiSzicd3EAu QgS3jVidpgDSPDdj2Yz3UxYpZ+PuFl6nOnvCvqOFcjUlzKCyPaiN2b86l1Nscmhnc+zQ/faB erUOEFEDQbWMA5YfXi8HrbeR16hfRfGt7E0aMDlIj9FIPIq71UWMN9CimPgs4+rbNr1MAlLa z4GxSDhVYZEY5rqtCzr+PLXboRQWnaUwXl0/biw9enf17NHdYv1SNAFTX2eC4dZ3qBVI74dS PgNprm+PMfz+6Hhs/dAv+Nan5nVhg3EFIjYTiy0MnjMSq8uI0v0ykpAGAcJJ5xl6d23aLxgN 6f0z6pJRCO0hGPgU7UzvFD0MxJxmbzqdT1R51KDan1oD41b+tjl2LMBuCDCoB0U44Pu0zLdp xMfFTxCXtwIYKIUxwd28jwMAEQEAAc0eQW5kcml5IEdhcG9uIDxhdmdARnJlZUJTRC5vcmc+ wsENBBMBCAA3FiEEmXvSmjiQFHPVOpLnzDOt5NLj67sFAmcKrHEFCQeEzgACGwMECwkIBwUV CAkKCwUWAgMBAAAKCRDMM63k0uPru5tSDACFK15LLbq89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HPVOpLnzDOt5NLj67sFAmcKrHMFCQeEzgACGwwACgkQzDOt 5NLj67sUCAv5AXqgWnYN9EblapMbZjkiqL8pZQ0GNqh+Pg9FwbyULxjtRTO6rD4D0IxizByb ef+neeUNyYlagt5nfKMysEr0SU/gHKCi8vyTF/63ukMrGUNGmJJxrndl5ZYKC6j6eX7twrZF L1Uvlmn6FnQ22red5kHO93fDjG4zaDIZvHfwj7kzjZ4tpC7Byinf88s14mdZeScc0PnU2hj4 UGYju/wg2FF4YxaZYhcmdTiRYY0Wx85XSMZv19pnn78sadEuRvfRd4JTmw++j1xGXeqQGWzz /CTG5/Ex9GAkQ02hZbmi236byDXoet4G8TEyOph9QFVkV9bNd0jQZaFZPGEj4PSPUYGAF7s5 xJaNGgctC3aZ7WjEv1FBoo44XCU4xcjJ1wZQUrHxRhx6TW0Jtcl0U9qfKFW30TSPo6RyiXuj X4ltWKAtjoXB8nUmEJckaz7IRu2b4pXDeazZuz5JBygUs10yJjDxh2vFQZo0KaBAPx9MZlPn gpPTjT15L8xGftEjQXF6 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Has anyone here noticed weird behavior where userland on can be alive and well during quite late shutdown phases? First, I noticed this report on FreeBSD forums. Initially, I didn't find it believable, but the poster provided quite strong evidence and details. https://forums.freebsd.org/threads/zombie-kernel-reporting-its-own-crash-via-network.95217/ Then recently, I first hand experienced a similar thing during a normal reboot of a system. Here is console output from an ssh session connected to a host name 'ryth': ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 29759/usr/home/avg pts/1:[0]:ryth#18:28>poweroff ; exit Shutdown NOW! poweroff: [pid 14930] *** FINAL System shutdown message from root@ryth *** System going down IMMEDIATELY System shutdown time has arrived [root shell exited, but user shell is still active on ryth] 28923/usr/home/avg pts/1:[0]:ryth-18:28>tail -30 /var/log/messages [snip] Nov 3 18:28:25 ryth shutdown[14930]: power-down by root: Nov 3 18:28:25 ryth ntpd[2088]: ntpd exiting on signal 15 (Terminated) Nov 3 18:28:25 ryth upsmon[1989]: upsmon parent: read Nov 3 18:28:25 ryth kernel: . Nov 3 18:28:26 ryth kernel: , 1739. Nov 3 18:28:26 ryth kernel: Waiting (max 60 seconds) for system process `vnlru' to stop... done Nov 3 18:28:26 ryth kernel: Waiting (max 60 seconds) for system process `syncer' to stop... Nov 3 18:28:26 ryth kernel: Syncing disks, vnodes remaining... 0 Nov 3 18:28:27 ryth kernel: 0 28924/usr/home/avg pts/1:[0]:ryth-18:28> [finally ssh (slogin) gets disconnected] Connection to 192.168.0.77 closed by remote host. Connection to 192.168.0.77 closed. zsh: exit 255 slogin ryth ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ It was a weird feeling seeing "Syncing disks, vnodes remaining..." in messages. -- Andriy Gapon