From owner-freebsd-current Tue Mar 13 12:14:51 2001 Delivered-To: freebsd-current@freebsd.org Received: from duke.cs.duke.edu (duke.cs.duke.edu [152.3.140.1]) by hub.freebsd.org (Postfix) with ESMTP id 20DCB37B71A for ; Tue, 13 Mar 2001 12:14:44 -0800 (PST) (envelope-from gallatin@cs.duke.edu) Received: from grasshopper.cs.duke.edu (grasshopper.cs.duke.edu [152.3.145.30]) by duke.cs.duke.edu (8.9.3/8.9.3) with ESMTP id PAA02365 for ; Tue, 13 Mar 2001 15:14:43 -0500 (EST) Received: (from gallatin@localhost) by grasshopper.cs.duke.edu (8.11.2/8.9.1) id f2DKEDW55722; Tue, 13 Mar 2001 15:14:13 -0500 (EST) (envelope-from gallatin@cs.duke.edu) From: Andrew Gallatin MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15022.32661.564910.735073@grasshopper.cs.duke.edu> Date: Tue, 13 Mar 2001 15:14:13 -0500 (EST) To: current@freebsd.org Subject: random as module needs work X-Mailer: VM 6.75 under 21.1 (patch 12) "Channel Islands" XEmacs Lucid Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I built a kernel without the random device and tried to use the module. I loaded it from the bootloader and the machine panic'ed on boot: Mounting root from ufs:/dev/da0a da0 at sym0 bus 0 target 0 lun 0 da0: Fixed Direct Access SCSI-2 device da0: 40.000MB/s transfers (20.000MHz, offset 15, 16bit), Tagged Queueing Enabled da0: 8683MB (17783240 512 byte sectors: 255H 63S/T 1106C) Entropy harvesti fatal kernel trap: trap entry = 0x2 (memory management fault) a0 = 0xe8c77a27c5265710 a1 = 0x1 a2 = 0x0 pc = 0xfffffc000042f824 ra = 0xfffffc000042f830 curproc = 0xfffffe00058c24e0 pid = 34, comm = sysctl Stopped at name2oid+0x104: ldq a1,0x28(s1) <0xe8c77a27c5265710> name2oid() at name2oid+0x104 sysctl_sysctl_name2oid() at sysctl_sysctl_name2oid+0xd0 sysctl_root() at sysctl_root+0x16c userland_sysctl() at userland_sysctl+0x1c0 __sysctl() at __sysctl+0xa4 syscall() at syscall+0x638 XentSys1() at XentSys1+0x10 db> reboot Gdb says: (gdb) l* 0xfffffc000042f824 0xfffffc000042f824 is in name2oid (../../kern/kern_sysctl.c:621). 616 *p = '\0'; 617 618 oidp = SLIST_FIRST(lsp); 619 620 while (oidp && *len < CTL_MAXNAME) { 621 if (strcmp(name, oidp->oid_name)) { 622 oidp = SLIST_NEXT(oidp, oid_link); 623 continue; 624 } 625 *oid++ = oidp->oid_number; When I boot into single user mode and try to load the module after boot, this happens: Enter full pathname of shell or RETURN for /bin/sh: # kldload random panic: cpu_fork: curproc syncing disks... done Uptime: 27s ------------------------------------------------------------------------------ Andrew Gallatin, Sr Systems Programmer http://www.cs.duke.edu/~gallatin Duke University Email: gallatin@cs.duke.edu Department of Computer Science Phone: (919) 660-6590 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message