Re: ZFS

2004-09-17 Thread Michael Ranner
Am Mittwoch, 15. September 2004 17:26 schrieb Andrea Campi: On Wed, Sep 15, 2004 at 10:59:36AM -0500, Sam wrote: Call me crazy, but does anyone else see this as hooey? 2^64 512B sectors is 8192 zettabytes (zetta, exa, peta, tera, ...). [...] Crappy marketing articles. This one's good

Re: FreeBSD Kernel buffer overflow

2004-09-17 Thread Giorgos Keramidas
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 2004-09-17 03:37, [EMAIL PROTECTED] wrote: If we put your patch in but as a KASSERT then anyone ruinning with debugging turned on (and no-one in their right mind would write a kernel module without turning on debugging, right?) will immediatly

Re: FreeBSD Kernel buffer overflow

2004-09-17 Thread Matthew Dillon
:pass more arguments and added a KASSERT in trap.c that is only enabled for :kernels compiled with INVARIANTS turned on? :... : :A KASSERT() wrapped in #ifdef INVARIANTS has zero overhead for normal, :non-debugging kernels. The developers who are responsible for writing and :testing new system

Re: FreeBSD Kernel buffer overflow

2004-09-17 Thread Julian Elischer
[EMAIL PROTECTED] wrote: Some architectures are limited in the numer of arguments that they allow to be passed as direct values in a syscall. It is considerred pretty bad style to use too many. If one wants to pass more data then it is preferable to have a structure and pass a POINTER to it. I

Editing and compiling FreeBSD source

2004-09-17 Thread Cantarella
This is my first e-mail for this list. I am interested in studing to better understand FreeBSDĀ“s source code. With 'make buildkernel' and 'make installkernel' is it possible to compile the changes that I have made? The changes are simple (just some printf). I am just beginning this

Re: FreeBSD Kernel buffer overflow

2004-09-17 Thread Mike Meyer
Nobody can write a syscall with more than 8 arguments and this is conceptually wrong. In my opinion this is a mistake, no assumptions might be done on I'd argue that a syscall with 9 or more arguments is conceptually wrong in the first place. Anything with that many knobs needs to be an object,

Re: FreeBSD Kernel buffer overflow

2004-09-17 Thread Giorgos Keramidas
On 2004-09-17 02:46, Matthew Dillon [EMAIL PROTECTED] wrote: :A KASSERT() wrapped in #ifdef INVARIANTS has zero overhead for normal, :non-debugging kernels. The developers who are responsible for writing and :testing new system calls should use INVARIANTS anyway, so they'll quickly :catch the

Re: Editing and compiling FreeBSD source

2004-09-17 Thread Andrew Novikov
Hi, On Tue, 14 Sep 2004 08:54:02 +, Cantarella [EMAIL PROTECTED] wrote: This is my first e-mail for this list. I am interested in studing to better understand FreeBSDĀ“s source code. With 'make buildkernel' and 'make installkernel' is it possible to compile the changes that I

add-symbol-file

2004-09-17 Thread Jerry Toung
Hello list, Could somebody tell me why I can't list the source code of this kld? I built the module with COPTS=-g, it is loaded in the kernel and I run kgdb in /usr/obj/./MYKERNEL. Everything seems to go well, except kgdb still doesn't like it. However if I run kldsyms, it only loads

Re: ZFS

2004-09-17 Thread Avleen Vig
On Thu, Sep 16, 2004 at 04:50:15PM -0700, Frank Mayhar wrote: I think that the one thing we can say is that there's pretty much zero chance that we can predict what the future will bring, number of particles in the observable universe notwithstanding. Personally, I think that an apparently

Re: FreeBSD Kernel buffer overflow

2004-09-17 Thread Avleen Vig
On Fri, Sep 17, 2004 at 12:59:36AM +0100, [EMAIL PROTECTED] wrote: Inside the kernel? i can define a syscall accepting 30 args and it could send in panic freebsd kernel. I think it's a problem and a patch 'must' occur. You could also define a syscall with no arguments and have it call

Re: FreeBSD Kernel buffer overflow

2004-09-17 Thread viro
On Fri, Sep 17, 2004 at 07:52:18PM -0700, Avleen Vig wrote: The difference is, that calling panic(9) is not a bug, it's a designed mechanism to panic a kernel. The behaviour reported is NOT designed behaviour (at least, no-one has said it is). Therefore, if the man wants to write a patch to

Re: FreeBSD Kernel buffer overflow

2004-09-17 Thread Matt Emmerton
On Fri, Sep 17, 2004 at 07:52:18PM -0700, Avleen Vig wrote: The difference is, that calling panic(9) is not a bug, it's a designed mechanism to panic a kernel. The behaviour reported is NOT designed behaviour (at least, no-one has said it is). Therefore, if the man wants to write a

Re: add-symbol-file

2004-09-17 Thread Greg 'groggy' Lehey
[Format recovered--see http://www.lemis.com/email/email-format.html] Important output wrapped. On Friday, 17 September 2004 at 17:02:58 -0700, Jerry Toung wrote: Hello list, Could somebody tell me why I can't list the source code of this kld? I built the module with COPTS=-g, it is loaded in

Re: FreeBSD Kernel buffer overflow

2004-09-17 Thread Matt Emmerton
- Original Message - From: Mike Meyer [EMAIL PROTECTED] To: Matt Emmerton [EMAIL PROTECTED] Cc: [EMAIL PROTECTED]; Avleen Vig [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Saturday, September 18, 2004 1:22 AM Subject: Re: FreeBSD Kernel buffer overflow In [EMAIL