lost filesystems, recovery

2003-02-18 Thread mika ruohotie
hello, recently my current system lost it's filesystems complitely while [1] running the daily thru the disk. well, current and current, it was 5.0-current, but not recent one, had soft-updates. disklabel is fine, and if i dd the partitions into a file, and then read that with stings, it seems

DHCP Client DoS

2003-02-18 Thread Ian Watkinson
Hi all, We've recently found a problem with dhclient that can DoS a DHCP server. If you have schg flags set on /etc/resolv.conf to stop dhcp overwriting your existing nameservers, the problem occurs. Basically, the client just keeps rejecting the IP details it has received from the server and

Re: DHCP Client DoS

2003-02-18 Thread Stijn Hoop
On Tue, Feb 18, 2003 at 01:41:12PM +, Ian Watkinson wrote: We've recently found a problem with dhclient that can DoS a DHCP server. If you have schg flags set on /etc/resolv.conf to stop dhcp overwriting your existing nameservers, the problem occurs. Basically, the client just keeps

Re: DHCP Client DoS

2003-02-18 Thread Volker Stolz
In local.freebsd-hackers, you wrote: We've recently found a problem with dhclient that can DoS a DHCP server. If you have schg flags set on /etc/resolv.conf to stop dhcp overwriting your existing nameservers, the problem occurs. Basically, the client just keeps rejecting the IP details it has

Re: DHCP Client DoS

2003-02-18 Thread Stijn Hoop
On Tue, Feb 18, 2003 at 04:11:14PM +0100, Volker Stolz wrote: In local.freebsd-hackers, you wrote: We've recently found a problem with dhclient that can DoS a DHCP server. If you have schg flags set on /etc/resolv.conf to stop dhcp overwriting your existing nameservers, the problem occurs.

Simple question about profiling

2003-02-18 Thread Paolo Pisati
I've to confess this my first serious profile session, and i found something really strange (at least for me... =P) [flag@law3 src]$ gprof proto3 [snip] % cumulative self self total time seconds secondscalls ms/call ms/call name 74.4 39.2639.26

Re: Simple question about profiling

2003-02-18 Thread Erik Trulsson
On Mon, Feb 17, 2003 at 03:10:34PM +0100, Paolo Pisati wrote: I've to confess this my first serious profile session, and i found something really strange (at least for me... =P) [flag@law3 src]$ gprof proto3 [snip] % cumulative self self total time seconds

Report to Sender

2003-02-18 Thread MCNSTL41
Incident Information:- Database: d:/notes/data/mail2.box Originator: hackers [EMAIL PROTECTED] Recipients: [EMAIL PROTECTED], [EMAIL PROTECTED] Subject:The Garden of Eden Date/Time: 02/18/2003 03:06:30 PM The file attachment 1,10121,0-1067-402-0,00[1].bat you sent to the recipients listed

arc4random() range

2003-02-18 Thread Paul Herman
Hi, ...a potential quick commit for someone. :-) What's the concesus that arc4random() should be a drop-in replacement for rand()/random()? Consider the following that caclulates the average of a bunch of random numbers on [0.0, 1.0]: bash$ cat rand.c #include stdlib.h int i; double

Re: Hi!Dear FreeBSD!

2003-02-18 Thread Nik Clayton
On Sun, Feb 02, 2003 at 10:37:21AM -0600, Stephen Hilton wrote: I really like this idea :-), and think that a database of all types of FreeBSD people from end-users to commiters who want to opt-in to this listing could spawn a lot of educational and fun opportunities for individuals who

Tyan S4520 GCHE

2003-02-18 Thread Brian Buchanan
I'm having problems getting SMP to work on a Tyan S4520 Thunder GCHE motherboard with 4x 1.9GHz Xeon processors: Programming 16 pins in IOAPIC #0 IOAPIC #0 intpin 2 - irq 0 Programming 16 pins in IOAPIC #1 Programming 16 pins in IOAPIC #2 AP #1 (PHY# 2) failed! panic y/n? [y] AP #2 (PHY# 4)

Per-jail CPU limits?

2003-02-18 Thread Mooneer Salem
Hello, I've been looking at the kernel source, in particular the scheduler in the past few weeks. I found a place in kern_switch.c where per-jail CPU controls could be added (in particular, in the kse_reassign() function). From looking at that function, I could loop through td_runq until I

Re: arc4random() range

2003-02-18 Thread Kris Kennaway
On Tue, Feb 18, 2003 at 04:04:57PM -0800, Paul Herman wrote: What's the concesus that arc4random() should be a drop-in replacement for rand()/random()? Consider the following that caclulates the average of a bunch of random numbers on [0.0, 1.0]: rand() and random() return signed values (int

Re: arc4random() range

2003-02-18 Thread Anthony Schneider
an issue of arc4random return u_int32_t and rand* returning int (ie unsigned vs signed)? -Anthony. On Tue, Feb 18, 2003 at 04:04:57PM -0800, Paul Herman wrote: Hi, ...a potential quick commit for someone. :-) What's the concesus that arc4random() should be a drop-in replacement for

Re: arc4random() range

2003-02-18 Thread Paul Herman
On Tue, 18 Feb 2003, Anthony Schneider wrote: an issue of arc4random return u_int32_t and rand* returning int (ie unsigned vs signed)? Nope, casting arc4random() to int or casting random() to unsigned int won't solve the problem. The problem still is that arc4random()'s range is twice that of

RE: Per-jail CPU limits?

2003-02-18 Thread Mooneer Salem
Hello, An update: * I changed a block of code in kse_reassign() to the following: if ((td = kg-kg_last_assigned)) { do { td = TAILQ_NEXT(td, td_runq); } while (td jail_check_cpu(td)); } else { td = TAILQ_FIRST(kg-kg_runq); } * jail_check_cpu() has been

RE: Per-jail CPU limits?

2003-02-18 Thread Julian Elischer
Firstly, this is a -current question so 'hackers' is not the best place.. secondly all teh kse stuff is ONLY used for a threaded program. Unthreaded programs (not compiled with libkse) are permanently bound to their KSE. On Tue, 18 Feb 2003, Mooneer Salem wrote: Hello, An update: * I

Re: Hi!Dear FreeBSD!

2003-02-18 Thread Ade Lovett
On 02/18/03 18:15, Nik Clayton [EMAIL PROTECTED] wrote: Please, no wheel reinvention. http://www.pm.org/groups/index.html Cool. Does this mean the doc@ team are ready for FreeBSDmongers? :) -aDe To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-hackers in the body

Re: Hi!Dear FreeBSD!

2003-02-18 Thread Terry Lambert
Nik Clayton wrote: On Sun, Feb 02, 2003 at 10:37:21AM -0600, Stephen Hilton wrote: Why not base it on latitude and longitude, along with an email address and text fields to allow for some self expression of areas of interest etc...? A clickable map would be a nice interface for the

Re: arc4random() range

2003-02-18 Thread Peter Jeremy
On Tue, Feb 18, 2003 at 06:22:37PM -0800, Paul Herman wrote: On Tue, 18 Feb 2003, Anthony Schneider wrote: an issue of arc4random return u_int32_t and rand* returning int (ie unsigned vs signed)? Nope, casting arc4random() to int or casting random() to unsigned int won't solve the problem.

Re: Hi!Dear FreeBSD!

2003-02-18 Thread Wes Peters
On Wednesday 19 February 2003 06:30, Terry Lambert wrote: Nik Clayton wrote: On Sun, Feb 02, 2003 at 10:37:21AM -0600, Stephen Hilton wrote: Why not base it on latitude and longitude, along with an email address and text fields to allow for some self expression of areas of interest