From nobody Sun Dec 26 23:48:41 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 42F7A1902EE8 for ; Sun, 26 Dec 2021 23:48:43 +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 4JMcvH0lz1z4x1h for ; Sun, 26 Dec 2021 23:48:43 +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 F0235139FA for ; Sun, 26 Dec 2021 23:48:42 +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 1BQNmgkp009256 for ; Sun, 26 Dec 2021 23:48:42 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 1BQNmgST009254 for bugs@FreeBSD.org; Sun, 26 Dec 2021 23:48:42 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 260708] Opening /dev/urandom fails with errno=31 (EMLINK) Date: Sun, 26 Dec 2021 23:48:41 +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: 12.2-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: noloader@gmail.com X-Bugzilla-Status: Closed X-Bugzilla-Resolution: Works As Intended X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: 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=1640562523; 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=tHZpwQCnVSYJmewdn3nykEpZDCwd/Y2OH8F7dYlJay8=; b=Lk3QYCtm7DejcL0A9yUkJa4beDLjtkzWjPQD71jAgBohjMKmuTpa7JkACGTRlCrGH9ClYe lk/UATlukGKQy/gAO45+yxtb55EEXOSQJNoTVTEiKN/yt7XSzgBnwj8AWrE6HMfov08Ip5 21a6naoYVnDLNGCccPWu5/DYlK684Ew8RulBZ/YNI21p6WgjZzodB068d6wUhX4bjDqLOv jbOujIh3SAj0s1SvxleCTtxZzU9aLY6IJhqaZiF6VHlUd2Ho2wqtNOkClUSvUyqrwxCJXn tgsOdqea5K2XXq8yqR1DJptxAJTj2+MW+08Ykwr9hUagRBHgSuzoB3NbKXXqcA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1640562523; a=rsa-sha256; cv=none; b=vYokZ3FavWkFP7nIeSehaOYr2RtXbtxrqICb/Tc7exUJqoQbpjQf4rHgD1UPRp10Z2arSI foSqh9hzuo2P0KVHLyQiqpct6S8gwxoaeab/3+iq/C1TI/Tv1+kWWgDyLAJLNLePcQUige 56yNrpC3AsL0qtVKo0vMXuwa6lUGXktnYRT5YjenW/9ulwU0RuhFyvoltnyKYn+lcIDaW8 rwcF8/NKFJZZvfB0yxtWF1GTgsPdEK2rgZmMksBZoQCXY21zocgREnKuJwT2BAGxvuStCI 8f2OfVsrtenuQw8S2Hiv98jGOEkkTGFLPgyQ7CbkV7M8wM7fCVBNT5txLmk7GQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D260708 --- Comment #2 from Jeffrey Walton --- (In reply to Benjamin Takacs from comment #1) > I don't see why you would set O_NOFOLLOW here. Some basic hardening. > As man open states: "[EMLINK] O_NOFOLLOW was specified and the target is = a symbolic link." I believe this is incorrect. I believe the correct error code in this case = is ELOOP. See https://pubs.opengroup.org/onlinepubs/9699919799/functions/open.html. --=20 You are receiving this mail because: You are the assignee for the bug.=