From nobody Mon Jan 17 21:39:15 2022 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 7E2861961ED4 for ; Mon, 17 Jan 2022 21:39:15 +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 4Jd4zl1dggz3l1K for ; Mon, 17 Jan 2022 21:39:15 +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 18446154C1 for ; Mon, 17 Jan 2022 21:39:15 +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 20HLdFBB012903 for ; Mon, 17 Jan 2022 21:39:15 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 20HLdF2C012902 for bugs@FreeBSD.org; Mon, 17 Jan 2022 21:39:15 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 260709] arc4random() non-randomness Date: Mon, 17 Jan 2022 21:39:15 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: misc X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: wbe@psr.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: attachments.created 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=1642455555; 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=cgHuMZT5yGJ35GVTNoMZDJ2Jsz2neClLYMWMEYgAJC4=; b=TAuOtoW8TZh4c4s76Gj5QdFbIfgy5EpUa1ciTgtplTKAIwrr4PfgfvDYr0vsxYA6wile9J KBfgMLvfxId1Xu1L8ZuW52g/Iyl+H2bMku6mmLR5STQXFpGZIx64xVBSomILq4n6D99ecf nxKmsgeStGaQCoClq34SZbGZmGWouqufbkMXOiJyFdwU2Css8w1AEcHr80mlomg19pwT5m DvUIhlF8kvfsq/6AAt6yawjJjtTqry5Uxcf/WtbjQDyYtYWeUBcRH3wOIKYlua9Ds2Fxjc FYdksRlBuGdn2K9C3v68lNZPK39JFpyjB0JUt4vlRaUkrGMdsxDPKSMzzb7cRg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1642455555; a=rsa-sha256; cv=none; b=JxNl5MiNHCWsgLnKzBxpTvQZHPucVNI41fx+Z9tzUVbEFacfalQlLhs5ibsK4R6pGDjFpp YfEgczpVqAA9fxEsVuQeubMB4CgbyFbIPeYeHJMOZ0qNst2b/U0uMPGN3hKJ1PIcmBzTK5 1qFBHAdrLdnEVpzzRXoPg/VDrMkdnT8ycTqB+h2gWzRYjkadqHeE+WAbMlp5jvjEF25jr1 IvdV8CrZv5VfsB0zUmfMFmSznM/0MWqDWHxASrBypjKMc7O8ta9Tc1KnTRn0ugCmIGJqD+ IuO/R05gEtCpa9Pji9NwJFP1BytM8Ruz+tscFBsNKd6FBmU1rDv2j/wIUNXeCQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D260709 --- Comment #4 from wbe@psr.com --- Created attachment 231096 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D231096&action= =3Dedit suggested patch for /usr/local/etc/periodic/security/410.pkg-audit Well, foo. It looks like I misunderstood how "periodic" works. I had thought the sleep call inside /etc/periodic.conf's shell procedure anticongestion {...} was called every day. A search with grep revealed tha= t's not so. In particular, on the system in question, anticongestion() would only be invoked every second (usually) or third (occasionally) day. So, that explains the roughly 50% "no sleep delay" results. This bug report may be resolved as: not a bug (reporter misunderstood how things work). There is a change to /usr/local/etc/periodic/security/410.pkg-audit you may wish to consider. I've included that as an attachment. -WBE --=20 You are receiving this mail because: You are the assignee for the bug.=