how to be (SAFE) a kernel developer ?

2005-07-19 Thread Brian O'Mahoney
Jesper Juhl wrote: ... much useful advice, almost all of which I agree with _BUT_ please do NOT debug kernel mods on your 'main-box', where your filesystems live. unless you like to live dangerously and make perfect backups you don't mind spending lots of hours restoring, unless you want to spe

Re: Buffer Over-runs, was Open source firewalls

2005-07-14 Thread Brian O'Mahoney
First there are endless ways of stopping DAMAGE from buffer over-runs, from code that accepts user data, eg extend buffer, dont use dangerous strxxx functions so while you can move stuff to proxies, and that has been done extensively e.g. for sendmail it is a cop-out, far better fix the applic

schedule while atomic

2005-07-12 Thread Brian O'Mahoney
More importantly _exactly_what_ are you using the LOCK to protect? Short recap, spinlocks are used to serialise, ie prevent races in SMP systems, where turning the interrupts off, on a single processor, is NOT good enough to prevent races between interrupt-handlers and core kernel code accessing s

Re: [OT] SCSI Printer on AIC78XX without SCSI Terminator

2005-07-10 Thread Brian O'Mahoney
First, normal (non-differential) SCSI is an OpenCollector bus design which simply wont work without a terminator and is designed to use exactly two(2) terminators, one at each end of the bus, these both provide a pull up and terminate the bus to prevent reflections. Also the longer and faster the b