Re: kernel not patching?
> OK... in my ongoing strange saga, I added > > char *dgilbert_bre5_top = "dgilbert_bre5_top"; > > as a global variable in vinumraid5.c --- I'm doing this as part of a > strategy to track down a memory (stack) corruption bug. > > Anyways... when I recompile the kernel, it compiles this one > module... and this global variable is referenced. When I then search > for this string (by lessing the kernel and searching for dgilbert), I > can't find it in the kernel's image. What's up? Module != kernel -- \\ Give a man a fish, and you feed him for a day. \\ Mike Smith \\ Tell him he should learn how to fish himself, \\ [EMAIL PROTECTED] \\ and he'll hate you for a lifetime. \\ [EMAIL PROTECTED] To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-stable" in the body of the message
Re: kernel not patching?
> "Peter" == Peter Jeremy <[EMAIL PROTECTED]> writes: Peter> (BTW, auto char *foo = "foo"; means that the stack contains a Peter> pointer to a string foo. The string will be in static storage Peter> - ie to find the stack, you need to work out the KVA for "foo" Peter> and then search for this address). Mmm knew that. May not have hacked kernel too much, but I have a fair grasp of C uglyness. the char *foo was put in as a global to check the value of the char foo[]="foostring" that I put into the functions. Now... this is not strictly C-legal, but with gcc, it will autosize foo[] and copy "foostring" into it. The cool thing is that sizeof(foo) == strlen(foo)+1. Dave. -- |David Gilbert, Velocet Communications. | Two things can only be | |Mail: [EMAIL PROTECTED] | equal if and only if they | |http://www.velocet.net/~dgilbert | are precisely opposite. | =GLO To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-stable" in the body of the message
Re: kernel not patching?
On 1999-Dec-03 06:20:25 +1100, David Gilbert wrote: >I have 'options vinum' in the kernel ... and typing 'make' give: I presume you read the warning in LINT: # Configuring Vinum into the kernel is not necessary, since the kld # module gets started automatically when vinum(8) starts. This # device is also untested. Use at your own risk. Maybe you should switch to using vinum as a KLD and see if your problem goes away. (BTW, auto char *foo = "foo"; means that the stack contains a pointer to a string foo. The string will be in static storage - ie to find the stack, you need to work out the KVA for "foo" and then search for this address). Peter To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-stable" in the body of the message
Re: kernel not patching?
On Thu, 2 Dec 1999, David Gilbert wrote: > I have 'options vinum' in the kernel ... and typing 'make' give: pseudo-device vinum #Vinum concat/mirror/raid driver -- - bill fumerola - [EMAIL PROTECTED] - BF1560 - computer horizons corp - - ph:(800) 252-2421 - [EMAIL PROTECTED] - [EMAIL PROTECTED] - To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-stable" in the body of the message
Re: kernel not patching?
> "Mikhail" == Mikhail Teterin <[EMAIL PROTECTED]> writes: Mikhail> Well, if you use vinum module, the string will not be in Mikhail> kernel, but in /modules/vinum.ko :) I have 'options vinum' in the kernel ... and typing 'make' give: [2:20:320]root@raid1:/sys/compile/RAID> make cc -c -O -Wreturn-type -Wcomment -Wredundant-decls -Wimplicit -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wuninitialized -Wformat -Wunused -fformat-extensions -ansi -g -nostdinc -I- -I. -I../.. -I../../../include -DKERNEL -DVM_STACK -include opt_global.h -elf ../../dev/vinum/vinumraid5.c cc -c -O -Wreturn-type -Wcomment -Wredundant-decls -Wimplicit -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wuninitialized -Wformat -Wunused -fformat-extensions -ansi -g -nostdinc -I- -I. -I../.. -I../../../include -DKERNEL -DVM_STACK -include opt_global.h -elf setdef0.c cc -c -O -Wreturn-type -Wcomment -Wredundant-decls -Wimplicit -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wuninitialized -Wformat -Wunused -fformat-extensions -ansi -g -nostdinc -I- -I. -I../.. -I../../../include -DKERNEL -DVM_STACK -include opt_global.h -elf setdef1.c sh ../../conf/newvers.sh RAID cc -c -O -Wreturn-type -Wcomment -Wredundant-decls -Wimplicit -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wuninitialized -Wformat -Wunused -fformat-extensions -ansi -g -nostdinc -I- -I. -I../.. -I../../../include -DKERNEL -DVM_STACK -include opt_global.h -elf vers.c loading kernel Dave. -- |David Gilbert, Velocet Communications. | Two things can only be | |Mail: [EMAIL PROTECTED] | equal if and only if they | |http://www.velocet.net/~dgilbert | are precisely opposite. | =GLO To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-stable" in the body of the message
Re: kernel not patching?
David Gilbert once wrote: > char *dgilbert_bre5_top = "dgilbert_bre5_top"; > > as a global variable in vinumraid5.c --- I'm doing this as part of a > strategy to track down a memory (stack) corruption bug. > > Anyways... when I recompile the kernel, it compiles this one module... > and this global variable is referenced. When I then search for this > string (by lessing the kernel and searching for dgilbert), I can't > find it in the kernel's image. What's up? Well, if you use vinum module, the string will not be in kernel, but in /modules/vinum.ko :) -mi To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-stable" in the body of the message
kernel not patching?
OK... in my ongoing strange saga, I added char *dgilbert_bre5_top = "dgilbert_bre5_top"; as a global variable in vinumraid5.c --- I'm doing this as part of a strategy to track down a memory (stack) corruption bug. Anyways... when I recompile the kernel, it compiles this one module... and this global variable is referenced. When I then search for this string (by lessing the kernel and searching for dgilbert), I can't find it in the kernel's image. What's up? Dave. -- |David Gilbert, Velocet Communications. | Two things can only be | |Mail: [EMAIL PROTECTED] | equal if and only if they | |http://www.velocet.net/~dgilbert | are precisely opposite. | =GLO To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-stable" in the body of the message