5.3 IPFW bug

2004-12-15 Thread Dmitry A. Bondareff
Hello hackers! Today I upgraded my 5.2.1-p11 box up to 5.3-p2. My firewall rules includes like this: ... /sbin/ipfw add tee 1 ip from 1.2.3.4 to 4.3.2.1 ... On 5.2.1-FreeBSD it's works fine. But FreeBSD 5.3 halted each time!!! After changed "tee 1" to "allow" now works all fine. Is this

Re: Fixing Posix semaphores

2004-12-15 Thread Joe Kelsey
On Tue, 2004-12-14 at 08:08 -0800, Kamal R. Prasad wrote: > --- Joe Kelsey <[EMAIL PROTECTED]> wrote: > > > I have a desire to fix posix semaphores in at least > > 5.3. The current > > implementation doesn't actually follow the "spirit" > > of the standard, > > even though it technically qualifie

Patch to be commited.

2004-12-15 Thread Mike Meyer
I just spent three days trying various source trees and kernel configs down a bug. My bad - I should have checked the bugs database first. My second query turned up kern/71130, which contains a patch that fixes the compilation problem I was having. I can confirm that it works as advertised. Now,

Re: 5.3 IPFW bug

2004-12-15 Thread Andre Oppermann
Dmitry A. Bondareff wrote: Hello hackers! Today I upgraded my 5.2.1-p11 box up to 5.3-p2. My firewall rules includes like this: ... /sbin/ipfw add tee 1 ip from 1.2.3.4 to 4.3.2.1 ... On 5.2.1-FreeBSD it's works fine. But FreeBSD 5.3 halted each time!!! After changed "tee 1" to "allow" now

Re: 5.3 IPFW bug

2004-12-15 Thread Maxim Konovalov
On Wed, 15 Dec 2004, 17:00+0500, Dmitry A. Bondareff wrote: > Hello hackers! > > Today I upgraded my 5.2.1-p11 box up to 5.3-p2. > My firewall rules includes like this: > ... > /sbin/ipfw add tee 1 ip from 1.2.3.4 to 4.3.2.1 > ... > On 5.2.1-FreeBSD it's works fine. > But FreeBSD 5.3 halted ea

Re: Patch to be commited.

2004-12-15 Thread Ruslan Ermilov
On Tue, Dec 14, 2004 at 07:55:35PM -0600, Mike Meyer wrote: > I just spent three days trying various source trees and kernel configs > down a bug. My bad - I should have checked the bugs database first. My > second query turned up kern/71130, which contains a patch that fixes > the compilation pro

embedded assembler in .c files

2004-12-15 Thread Andre Oppermann
I'm trying to access an assembler CPU instructions from within a normal .c file and function. Unfortunatly I have no idea how this works. If you know how to do this please contact me directly. Any help appreciated. -- Andre ___ [EMAIL PROTECTED] mailing

FreeBSD system call implementation

2004-12-15 Thread Ravi Krishna
Hi ! I am new to bsd internals and was looking at the implementation of syscall in sys/i386/i386/trap.c here its seems we get the handler for the syscall by if (p->p_sysent->sv_mask) code &= p->p_sysent->sv_mask; if (code >= p->p_sysent->sv_size) callp = &p

Re: embedded assembler in .c files

2004-12-15 Thread Ruslan Ermilov
On Wed, Dec 15, 2004 at 03:09:23PM +0100, Andre Oppermann wrote: > I'm trying to access an assembler CPU instructions from within a normal > .c file and function. Unfortunatly I have no idea how this works. > > If you know how to do this please contact me directly. Any help > appreciated. > fi

Re: HTT/SMP Dual Xeon systems unstable

2004-12-15 Thread John Baldwin
On Friday 10 December 2004 09:32 am, [EMAIL PROTECTED] wrote: > Hi, > > I'm sorry for typing this mail for the third time, I'm not sure if the > other mails did reach the list. The domain I was using to send emails has > just expired. Please cc me, as I'm not subscribed to the list with this > emai

Re: FreeBSD system call implementation

2004-12-15 Thread Kamal R. Prasad
--- Andrey Simonenko <[EMAIL PROTECTED]> wrote: > On Wed, Dec 15, 2004 at 08:19:05PM +0530, Ravi > Krishna wrote: > > > My question is why we store the > p->p_sysent->sv_table > > for each process. What is the reason for keeping > this per process? > > Are there some situations where two process

Re: FreeBSD system call implementation

2004-12-15 Thread Peter Pentchev
On Wed, Dec 15, 2004 at 07:56:53AM -0800, Kamal R. Prasad wrote: > > --- Andrey Simonenko <[EMAIL PROTECTED]> > wrote: > > > On Wed, Dec 15, 2004 at 08:19:05PM +0530, Ravi > > Krishna wrote: > > > > > My question is why we store the > > p->p_sysent->sv_table > > > for each process. What is the r

loading kernel at any physical address

2004-12-15 Thread Vijay.Singh
Hello all, for a project I am trying to figure out how to boot a FreeBSD kernel loaded at any physical address. Right now the locore.s magic works because the load addres (KERNLOAD) and (KERNBASE) are set such that #define R(foo) ((foo)-KERNBASE) macro is able to get the addresses before paging

Re: loading kernel at any physical address

2004-12-15 Thread Igor Shmukler
I think this might be somewhat off topic, but to support superpages you probably want kernel to be aligned on 4MB boundary. Also, Mach had macros for alignment. I browsed code and it seems there are macros in i386/include/asmacros.h Perhaps I am missing something, but I don't see why would you w

Re: embedded assembler in .c files

2004-12-15 Thread Andre Oppermann
Peter Jeremy wrote: > > On Wed, 2004-Dec-15 15:09:23 +0100, Andre Oppermann wrote: > >I'm trying to access an assembler CPU instructions from within a normal > >.c file and function. Unfortunatly I have no idea how this works. > > info gcc "c ext" ext > > You might also find the relevant /usr/s

5.x system trying to boot /kernel ?

2004-12-15 Thread security
Hey, After adding KDB, KDB_UNATTENDED and DDB, two of my 5.3-STABLE servers never came back after a reboot. After talking to the datacenter, they informed me these servers are trying to boot of /kernel and not /boot/kernel/kernel .. What might be causing this behaviour ? /kernel was 4.X and these

Re: 5.x system trying to boot /kernel ?

2004-12-15 Thread Kris Kennaway
On Wed, Dec 15, 2004 at 11:39:39AM -0600, [EMAIL PROTECTED] wrote: > Hey, > > After adding KDB, KDB_UNATTENDED and DDB, two of my 5.3-STABLE servers > never came back after a reboot. After talking to the datacenter, they > informed me these servers are trying to boot of /kernel and not > /boot/ker

brute3.tar.gz

2004-12-15 Thread John Von Essen
Sort of off topic, but thought people here would be interested. MCI contacted me today because one of my systems is doing ssh logins (failed) to a box they have no right ssh-ing into. After some packet analysis, its clear that something is inside my network. The only solid evidence I have is a mac

Re: brute3.tar.gz

2004-12-15 Thread John Von Essen
Hmm... Interesting. What if I try to redirect the output of tcpdump to a file. I am doing this on a f5 BigIP which sort of runs a "FreeBSD-ish" kernel. I've tried: tcpdump -i exp1 port ssh | grep -v '63.123' | grep -v 'lb01' >/var/ssh.capture But it never rights to the file. The above will capt

Re: 5.3 IPFW bug

2004-12-15 Thread Dmitry A. Bondareff
Yes! Rights! The server freezes! No core dumped!! And I connected by console, not by network. Dmitry. - Original Message - From: "Maxim Konovalov" <[EMAIL PROTECTED]> To: "Dmitry A. Bondareff" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Wednesday, December 15, 2004 6:42 PM Subject:

iSCSI, was Re: My project wish-list for the next 12 months

2004-12-15 Thread Danny Braniss
let me start by a local saying: Q- What's a camel A- It's a horse designed by a committee. BTW, the camel is a very efficient piece of equipment. If I would plan a 24/7 life support system I would not use iSCSI. (having to rely on packets traveling the Internet, DOS, etc, is not go

Re: Fixing Posix semaphores

2004-12-15 Thread Joe Kelsey
On Tue, 2004-12-14 at 10:11 -0800, Kamal R. Prasad wrote: > --- Joe Kelsey <[EMAIL PROTECTED]> wrote: > > > BTW -how would > > > you deal with a diskless workstation running > > Freebsd? > > > > Why does this matter? If the system uses NFS, then > > all bets are off. > > If the system contains a

RE: My project wish-list for the next 12 months

2004-12-15 Thread Macy, Kip
Mbuf clusters can easily be allocated from their own pool, but I guess you're probably right about various bits of incidental memory allocation. -Kip -Original Message- From: Scott M. Ferris [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 14, 200

Re: Partiotioning 2.2TB Under FreeBSD 5.2.1

2004-12-15 Thread Giorgos Keramidas
On 2004-12-14 12:29, Amandeep Pannu <[EMAIL PROTECTED]> wrote: > I have 12WD 200GB SATA drives with RAID5 and glabal spare on 3ware 9000 > series controller. Also one 80GB SATA drive for OS. > I had to manually compile the twa driver. kldload twa. The system started > recognizing the controller and

Re: Partiotioning 2.2TB Under FreeBSD 5.2.1

2004-12-15 Thread Henry Whincup
I am new to this big arrays. FreeBSD 5.2.1 doesnt see all the 2.2TB. So am I, and I had the same problem recently. I used 5.3-Stable as of a couple of weeks ago so YMMV, but... GEOM: create disk da0 dp=0xc832fc50 da0 at twa0 bus 0 target 0 lun 0 da0: <3ware Logical Disk 00 1.00> Fixed Direct Acc

Re: FreeBSD system call implementation

2004-12-15 Thread Andrey Simonenko
On Wed, Dec 15, 2004 at 08:19:05PM +0530, Ravi Krishna wrote: > My question is why we store the p->p_sysent->sv_table > for each process. What is the reason for keeping this per process? > Are there some situations where two processes can have different system calls > available? Processes can hav

Re: embedded assembler in .c files

2004-12-15 Thread Peter Jeremy
On Wed, 2004-Dec-15 15:09:23 +0100, Andre Oppermann wrote: >I'm trying to access an assembler CPU instructions from within a normal >.c file and function. Unfortunatly I have no idea how this works. info gcc "c ext" ext You might also find the relevant /usr/src/contrib/gcc/config/*/*.md useful.

Multi-volume compressed dumps on DVDs

2004-12-15 Thread Peter Jeremy
Has anyone looked at modifying dump/restore to support: 1) Dumping onto DVDs (sending the appropriate "close volume" command) 2) Compressed multi-volume dumps This means monitoring the compressed data stream and flushing the compress engine state at the end of each volume (so that each volume

Re: HTT/SMP Dual Xeon systems unstable

2004-12-15 Thread Stephen Montgomery-Smith
John Baldwin wrote: There is a problem in the kernel that causes with 3 or more processors (including logical CPUs from HTT). Disabling HTT in the BIOS is probably your best bet as it will get you down to 2 CPUs which should work much better. HTT also isn't but so useful anyways for most workl

Re: Fixing Posix semaphores

2004-12-15 Thread Julian Elischer
Joe Kelsey wrote: On Tue, 2004-12-14 at 10:11 -0800, Kamal R. Prasad wrote: --- Joe Kelsey <[EMAIL PROTECTED]> wrote: BTW -how would you deal with a diskless workstation running Freebsd? Why does this matter? If the system uses NFS, then all bets are off. If the system contains a

Re: Partiotioning 2.2TB Under FreeBSD 5.2.1

2004-12-15 Thread Amandeep Pannu
Hi all, Thanks all for your replies. I installed 5.3 which saw the whole 2.2TB in sysinstall then I made two slices and mounted them. Everything worked fine. Thanks again. Kudos to 5.3 Aman >> I am new to this big arrays. FreeBSD 5.2.1 doesnt see all the 2.2TB. > So am I, and I had the same probl

duplicate CVS modules in merged CVSROOT

2004-12-15 Thread Dmitry Morozovsky
Colleagues, in releaselog I found the following warning: cvs checkout: duplicate key found for `cut' at line 2585 of `/FreeBSD/ncvs/CVSROOT/modules' looking further... [EMAIL PROTECTED]:~/FreeBSD/CVSROOT> cvs ann modules | grep '[^a-z]cut[^a-z]' Annotations for modules *** 1.2

kernel malloc usage

2004-12-15 Thread Kenny Chamber
I have a question concerning the use of malloc to allocate small amounts of memory for packet wrappers for certain packets. Basically, I'm using malloc in much the same way as one would use it in a standard userland program: allocating small chunks and freeing them again a short(ish) time later. A

Re: kernel malloc usage

2004-12-15 Thread Brooks Davis
On Thu, Dec 16, 2004 at 04:39:27AM +0300, Kenny Chamber wrote: > I have a question concerning the use of malloc to allocate small amounts > of memory for packet wrappers for certain packets. > Basically, I'm using malloc in much the same way as one would use it in > a standard userland program: all