Re: Review requested for /dev/random driver improvements!

2000-08-23 Thread Donn Miller

Mark Murray wrote:
 
  I'm getting some errors trying to build this.  Attached is my make.log
  that shows the errors.
 
 The one that's there now should fix this (I forgot to include a 1-line
 patch to sys/conf/files).

I just tried the patch, which completed successfully.  But now, I'm
getting these errors (see attached make.log).

-Donn

cc -c -march=pentium -O -pipe -Wall -Wredundant-decls -Wnested-externs 
-Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  
-fformat-extensions -ansi  -nostdinc -I- -I. -I../.. -I../../../include  -D_KERNEL 
-include opt_global.h -elf  -mpreferred-stack-boundary=2 ../../i386/i386/genassym.c
sh ../../kern/genassym.sh genassym.o  assym.s
rm -f param.c
cp ../../conf/param.c .
perl5 ../../kern/vnode_if.pl -h ../../kern/vnode_if.src
cc -march=pentium -O -pipe -Wall -Wredundant-decls -Wnested-externs 
-Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  
-fformat-extensions -ansi  -nostdinc -I- -I. -I../.. -I../../../include  -D_KERNEL 
-include opt_global.h -elf  -mpreferred-stack-boundary=2 -c 
../../i386/linux/linux_genassym.c
sh ../../kern/genassym.sh linux_genassym.o  linux_assym.h
perl5 ../../kern/vnode_if.pl -c ../../kern/vnode_if.src
perl5 ../../kern/makeobjops.pl -h ../../kern/device_if.m
perl5 ../../kern/makeobjops.pl -h ../../kern/bus_if.m
perl5 ../../kern/makeobjops.pl -h ../../kern/linker_if.m
perl5 ../../kern/makeobjops.pl -h ../../dev/ppbus/ppbus_if.m
perl5 ../../kern/makeobjops.pl -h ../../isa/isa_if.m
perl5 ../../kern/makeobjops.pl -h ../../pci/pci_if.m
rm -f .newdep
mkdep -a -f .newdep -march=pentium -O -pipe -Wall -Wredundant-decls -Wnested-externs 
-Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  
-fformat-extensions -ansi  -nostdinc -I- -I. -I../.. -I../../../include  -D_KERNEL 
-include opt_global.h -elf  -mpreferred-stack-boundary=2 ../../dev/ed/if_ed_pci.c 
../../dev/md/md.c ../../dev/nulldev/nulldev.c  ../../dev/ppbus/if_plip.c 
../../dev/ppbus/lpt.c  ../../dev/ppbus/ppb_1284.c ../../dev/ppbus/ppb_base.c  
../../dev/ppbus/ppb_msq.c ../../dev/ppbus/ppbconf.c ../../dev/ppbus/ppi.c  
../../dev/randomdev/harvest.c ../../dev/randomdev/randomdev.c  
../../dev/randomdev/yarrow.c ../../dev/randomdev/hash.c  
../../crypto/blowfish/bf_cbc.c ../../crypto/blowfish/bf_enc.c  
../../crypto/blowfish/bf_skey.c ../../dev/sound/isa/ad1816.c  
../../dev/sound/isa/es1888.c ../../dev/sound/isa/ess.c  ../../dev/sound/isa/gusc.c 
../../dev/sound/isa/mss.c  ../../dev/sound/isa/sb.c ../../dev/sound/isa/sbc.c  
../../dev/sound/pci/csa.c ../../dev/sound/pci/csapcm.c  ../../dev/sound/pci/ds1.c 
../../dev/sound/pci/emu10k1.c  ../../dev/sound/pci/es137x.c 
../../dev/sound/pci/neomagic.c  ../../dev/sound/pci/solo.c 
../../dev/sound/pci/t4dwave.c  ../../dev/sound/pci/via82c686.c 
../../dev/sound/pcm/ac97.c  ../../dev/sound/pcm/channel.c ../../dev/sound/pcm/dsp.c  
../../dev/sound/pcm/fake.c ../../dev/sound/pcm/feeder.c  ../../dev/sound/pcm/mixer.c 
../../dev/sound/pcm/sound.c  ../../gnu/ext2fs/ext2_alloc.c 
../../gnu/ext2fs/ext2_balloc.c  ../../gnu/ext2fs/ext2_inode.c 
../../gnu/ext2fs/ext2_inode_cnv.c  ../../gnu/ext2fs/ext2_linux_balloc.c  
../../gnu/ext2fs/ext2_linux_ialloc.c ../../gnu/ext2fs/ext2_lookup.c  
../../gnu/ext2fs/ext2_subr.c ../../gnu/ext2fs/ext2_vfsops.c  
../../gnu/ext2fs/ext2_vnops.c ../../isa/isa_common.c ../../isa/isahint.c  
../../isa/pnp.c ../../isa/pnpparse.c ../../isofs/cd9660/cd9660_bmap.c  
../../isofs/cd9660/cd9660_lookup.c ../../isofs/cd9660/cd9660_node.c  
../../isofs/cd9660/cd9660_rrip.c ../../isofs/cd9660/cd9660_util.c  
../../isofs/cd9660/cd9660_vfsops.c ../../isofs/cd9660/cd9660_vnops.c  
../../kern/imgact_aout.c ../../kern/imgact_elf.c  ../../kern/imgact_shell.c 
../../kern/init_main.c ../../kern/init_sysent.c  ../../kern/kern_acct.c 
../../kern/kern_acl.c ../../kern/kern_cap.c  ../../kern/kern_clock.c 
../../kern/kern_conf.c ../../kern/kern_descrip.c  ../../kern/kern_environment.c 
../../kern/kern_event.c  ../../kern/kern_exec.c ../../kern/kern_exit.c 
../../kern/kern_fork.c  ../../kern/kern_intr.c ../../kern/kern_jail.c 
../../kern/kern_kthread.c  ../../kern/kern_ktrace.c ../../kern/kern_linker.c 
../../kern/kern_lock.c  ../../kern/kern_lockf.c ../../kern/kern_malloc.c 
../../kern/kern_mib.c  ../../kern/kern_module.c ../../kern/kern_ntptime.c  
../../kern/kern_physio.c ../../kern/kern_proc.c ../../kern/kern_prot.c  
../../kern/kern_resource.c ../../kern/kern_shutdown.c  ../../kern/kern_sig.c 
../../kern/kern_subr.c ../../kern/kern_switch.c  ../../kern/kern_synch.c 
../../kern/kern_syscalls.c  ../../kern/kern_sysctl.c ../../kern/kern_tc.c 
../../kern/kern_threads.c  ../../kern/kern_time.c ../../kern/kern_timeout.c 
../../kern/kern_xxx.c  ../../kern/link_aout.c ../../kern/link_elf.c ../../kern/md5c.c  
../../kern/subr_autoconf.c ../../kern/subr_blist.c ../../kern/subr_bus.c  
../../kern/subr_devstat.c ../../kern/subr_disk.c  ../../kern/subr_disklabel.c 

Re: Review requested for /dev/random driver improvements!

2000-08-23 Thread Mark Murray

 I just tried the patch, which completed successfully.  But now, I'm
 getting these errors (see attached make.log).

Clean out your tree and reapply the patches; they got applied twice to some
files :-)

M
--
Mark Murray
Join the anti-SPAM movement: http://www.cauce.org


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: Review requested for /dev/random driver improvements!

2000-08-23 Thread Donn Miller

On Wed, 23 Aug 2000, Mark Murray wrote:

  I just tried the patch, which completed successfully.  But now, I'm
  getting these errors (see attached make.log).
 
 Clean out your tree and reapply the patches; they got applied twice to some
 files :-)

OK, earlier I had done just that.  After re-compiling and rebooting, my
machine hangs at the beginning point of the boot stage, where it says
"Pentium F00F bug detected".  The boot just halts right there.  There was
no panic, just a dead hang.

-Donn



To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: Review requested for /dev/random driver improvements!

2000-08-23 Thread Mark Murray

  Clean out your tree and reapply the patches; they got applied twice to some
  files :-)
 
 OK, earlier I had done just that.  After re-compiling and rebooting, my
 machine hangs at the beginning point of the boot stage, where it says
 "Pentium F00F bug detected".  The boot just halts right there.  There was
 no panic, just a dead hang.

Please drop into the debugger and see if you can find out what it is doing.
(Or just where the hang is happening).

M
--
Mark Murray
Join the anti-SPAM movement: http://www.cauce.org


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: Review requested for /dev/random driver improvements!

2000-08-23 Thread Donn Miller

Basically, it is hanging immediately after this message:

Preloaded elf kernel "kernel.old" at 0xc0392000.
Intel Pentium detected, installing workaround for F00F bug
nulldev: null device, zero device

I couldn't even drop into the debugger, because my machine was locked solid.
The next boot message WOULD'VE been:

random: entropy source

So, at least I know the hang is occuring at random: entropy source.

-Donn


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: Review requested for /dev/random driver improvements!

2000-08-23 Thread Mark Murray

 So, at least I know the hang is occuring at random: entropy source.

OK; please uncomment the #define DEBUG in yarrow.c and let me know what
the output of that looks like?

Thanks!

M
--
Mark Murray
Join the anti-SPAM movement: http://www.cauce.org


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: Review requested for /dev/random driver improvements!

2000-08-23 Thread Donn Miller

Mark Murray wrote:
 
  So, at least I know the hang is occuring at random: entropy source.
 
 OK; please uncomment the #define DEBUG in yarrow.c and let me know what
 the output of that looks like?

I get 

random: entropy source
Random init

and then my machine just locks up tight, right there.

-Donn


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: Review requested for /dev/random driver improvements!

2000-08-22 Thread Donn Miller

Mark Murray wrote:
 
 Hi All
 
 Please could those of you with the time and computrons available
 please review the patches for the entropy (/dev/random) driver at
 http://people.freebsd.org/~markm/randomdev.patch.

I'm getting some errors trying to build this.  Attached is my make.log
that shows the errors.

-Donn

linking kernel
yarrow.o: In function `random_kthread':
yarrow.o(.text+0x36): undefined reference to `yarrow_hash_init'
yarrow.o(.text+0xe3): undefined reference to `yarrow_hash_iterate'
yarrow.o(.text+0x103): undefined reference to `yarrow_hash_iterate'
yarrow.o: In function `reseed':
yarrow.o(.text+0x317): undefined reference to `yarrow_hash_init'
yarrow.o(.text+0x334): undefined reference to `yarrow_hash_iterate'
yarrow.o(.text+0x34b): undefined reference to `yarrow_hash_iterate'
yarrow.o(.text+0x37a): undefined reference to `yarrow_hash_init'
yarrow.o(.text+0x392): undefined reference to `yarrow_hash_iterate'
yarrow.o(.text+0x3a3): undefined reference to `yarrow_hash_iterate'
yarrow.o(.text+0x3b6): undefined reference to `yarrow_hash_iterate'
yarrow.o(.text+0x3c6): undefined reference to `yarrow_hash_finish'
yarrow.o(.text+0x3f5): undefined reference to `yarrow_hash_init'
yarrow.o(.text+0x406): undefined reference to `yarrow_hash_iterate'
yarrow.o(.text+0x42c): undefined reference to `yarrow_hash_iterate'
yarrow.o(.text+0x449): undefined reference to `yarrow_hash_finish'
yarrow.o(.text+0x457): undefined reference to `yarrow_encrypt_init'
yarrow.o(.text+0x481): undefined reference to `yarrow_encrypt'
yarrow.o: In function `read_random':
yarrow.o(.text+0x5d0): undefined reference to `yarrow_encrypt'
yarrow.o(.text+0x645): undefined reference to `yarrow_encrypt'
yarrow.o: In function `generator_gate':
yarrow.o(.text+0x78b): undefined reference to `yarrow_encrypt'
yarrow.o(.text+0x7a6): undefined reference to `yarrow_encrypt_init'
*** Error code 1

Stop in /usr/src/sys/compile/CUSTOM.



Re: Review requested for /dev/random driver improvements!

2000-08-22 Thread Mark Murray

 I'm getting some errors trying to build this.  Attached is my make.log
 that shows the errors.

The one that's there now should fix this (I forgot to include a 1-line
patch to sys/conf/files).

Thanks!

M
--
Mark Murray
Join the anti-SPAM movement: http://www.cauce.org


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message