NetBSD Problem Report #49454
From www@NetBSD.org Sun Dec 7 02:19:05 2014
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
(Client CN "mail.netbsd.org", Issuer "Postmaster NetBSD.org" (verified OK))
by mollari.NetBSD.org (Postfix) with ESMTPS id 2DD16A654C
for <gnats-bugs@gnats.NetBSD.org>; Sun, 7 Dec 2014 02:19:05 +0000 (UTC)
Message-Id: <20141207021904.1DF98A654F@mollari.NetBSD.org>
Date: Sun, 7 Dec 2014 02:19:04 +0000 (UTC)
From: jmcneill@invisible.ca
Reply-To: jmcneill@invisible.ca
To: gnats-bugs@NetBSD.org
Subject: cprng_fast is not available during first pass of device autoconf
X-Send-Pr-Version: www-1.0
>Number: 49454
>Category: kern
>Synopsis: cprng_fast is not available during first pass of device autoconf
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: kern-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sun Dec 07 02:20:00 +0000 2014
>Originator: Jared McNeill
>Release: 7.99.2
>Organization:
Jared McNeill
>Environment:
NetBSD 7.99.2 (ALLWINNER_A80) #140: Sat Dec 6 22:07:43 AST 2014
>Description:
I get the following panic trying to call cprng_fast32 in a driver attach function, when the driver attached at boot time:
panic: kernel diagnostic assertion "off < percpu_nextoff" failed: file "/Users/jmcneill/branches/HEAD/src/sys/kern/subr_percpu.c", line 76
Seems cprng_fast isn't initialized until after configure in init_main.
>How-To-Repeat:
>Fix:
(Contact us)
$NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2014
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.