From nobody Tue Mar 25 13:29:26 2025 X-Original-To: emulation@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 4ZMW3q20WMz5rHvS for ; Tue, 25 Mar 2025 13:29:27 +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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4ZMW3q15vNz3KvY for ; Tue, 25 Mar 2025 13:29:27 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1742909367; 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: in-reply-to:in-reply-to:references:references; bh=bBiUpK81aF0riBI6mwtS7CA7b12ODfa+LJGy553y8fs=; b=PKplMc85AORinicfsMsBYEzma+d6wEUdqJeZswrSKNc5UYWIoVFMv/gbtE+g2PY0EXE92L KprX+6bH8Fvr+Md+Q86g511Zd7GC2A2nUS+qz65aDd+6z2E3vP3iakEEGpWbWeT44Yc351 eUmCScPlaBiQwW8RGK3NpPAitR+9P57IHuw6TOxjucIz926eUXqlwLMS3mvtI7pE+Jafuk Nt+LbKxJlD5ldYTm+9Z0yo4Rpnxyh54s7gz8LOkogfXk3NLTSAj2JXWSGlpkTrgIBWOpQG zdW0tUgwxNNIwGYlA2HIv0PiXWTYhXH84DLblOT7h5kEy0LOgG4ElAVTd7jU5Q== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1742909367; a=rsa-sha256; cv=none; b=xBJAQuPK3uSa6vRhO8+hRIu2zDrQT3fm8xuVAidxhL5DS7pdL+EKZhfPpLdNnztXHlj0F9 GuawAy0rFwSUqWf84Ba7KbxJCqVQ3ePFBvQaRRgEEsSgayFhQPjv0r7tzXsw91llVnK4OU ldX55+rkhyqy/BLm8Go0Sqkd1s2dw79TFogOo0e0mPJGnMqFGoNYZmY8MoNwEzir/Y5oNS SRhkgnUHi/qiUvzLHmQptVcmR+UGaohbDbccLTDkrsntz4JWmIF+bk0o75rf3EwWmEAAbj eCPMUKttGaODrhbSe0a95gHA2PqNQUnTKNsxuVoa+f0L7++ZcsSGioRUuzToew== 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=1742909367; 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: in-reply-to:in-reply-to:references:references; bh=bBiUpK81aF0riBI6mwtS7CA7b12ODfa+LJGy553y8fs=; b=E0AlD09egDc5zJQ4PG7Wy7eKhu8E71ZAKJMFEUGfFsVhpF+DiaAs07RJlfbZ7IjnaL45/M EwTBWeHz3fAbAN8zSRJx4nNF0WMURCo1TJGV4mk2DSLbsVmMPYoPQ2Qlfcx49joA2IPdvl PWhC//RYMIDiQopXkVdf9D5iCpCyCEJTPnZyIpJzVxC2cnsiSzkD5cdeg94LcZJZxB+3R+ zb8Jb4cdasK+l+uKCtIhSaJMo/e7PpzzgcXm5RSXoK3vLrA7ozkeS6UlL7rdcFDUU827TP nb1V8GtzMJDvF5GExfIKAEo2GwIdI6AvD3LjDjHGjWVVaCX9zlPYyZwpWO3GYw== 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 4ZMW3p74h1zjmf for ; Tue, 25 Mar 2025 13:29:26 +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 52PDTQ27096872 for ; Tue, 25 Mar 2025 13:29:26 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 52PDTQ2K096871 for emulation@FreeBSD.org; Tue, 25 Mar 2025 13:29:26 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: emulation@FreeBSD.org Subject: [Bug 285408] linux: jid 1 pid 88998 (server): sysctl {1,40,6} is not implemented Date: Tue, 25 Mar 2025 13:29:26 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 13.5-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: jasonmader@gmail.com X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: emulation@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Development of Emulators of other operating systems List-Archive: https://lists.freebsd.org/archives/freebsd-emulation List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-emulation@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D285408 --- Comment #6 from Jason Mader --- Found that the message may come from libressl crypto/compat/getentropy_linu= x.c #ifdef SYS__sysctl /* * Try to use sysctl CTL_KERN, KERN_RANDOM, RANDOM_UUID. * sysctl is a failsafe API, so it guarantees a result. This * should work inside a chroot, or when file descriptors are * exhausted. * * However this can fail if the Linux kernel removes support * for sysctl. Starting in 2007, there have been efforts to * deprecate the sysctl API/ABI, and push callers towards use * of the chroot-unavailable fd-using /proc mechanism -- * essentially the same problems as /dev/urandom. * * Numerous setbacks have been encountered in their deprecation * schedule, so as of June 2014 the kernel ABI still exists on * most Linux architectures. The sysctl() stub in libc is missing * on some systems. There are also reports that some kernels * spew messages to the console. */ ret =3D getentropy_sysctl(buf, len); if (ret !=3D -1) return (ret); #endif /* SYS__sysctl */ #ifdef SYS__sysctl static int getentropy_sysctl(void *buf, size_t len) { static int mib[] =3D { CTL_KERN, KERN_RANDOM, RANDOM_UUID }; size_t i; int save_errno =3D errno; for (i =3D 0; i < len; ) { size_t chunk =3D MINIMUM(len - i, 16); /* SYS__sysctl because some systems already removed sysctl(= ) */ struct __sysctl_args args =3D { .name =3D mib, .nlen =3D 3, .oldval =3D (char *)buf + i, .oldlenp =3D &chunk, }; if (syscall(SYS__sysctl, &args) !=3D 0) goto sysctlfailed; i +=3D chunk; } errno =3D save_errno; return (0); /* satisfied */ sysctlfailed: errno =3D EIO; return (-1); } #endif /* SYS__sysctl */ --=20 You are receiving this mail because: You are the assignee for the bug.=