Re: evecv/memory leak




Kasper Dupont wrote:
> bill pursell wrote:
> >
> > I am (with extreme reluctance) using a 3rd party kernel module that I
> > do not trust.
> [...]
> >
> > I was thinking of replacing clean_up() with an exec that simply
> > calls itself. ie, the program will now look like:
> > int
> > main(int ac, char **av)
> > {
> > process_stuff();
> > execv(av[0],av);
> > }
>
> You seem to be mixing up kernel and user code.
> So which is it?

>>From user-space, I'm calling into a library which is
part of a kernel module. I have tried using the supplied free*
calls with no success, and was fairly regularly
getting a kernel panic. Instead of trying to use the supplied
free() calls, I figured it would be safer to shut down
the process and restart, and that actually seems to have
worked. I followed David Schwartz's suggestion and
did a full fork, and I haven't had the problem since.

thanks to everyone for the suggestions.

.



Relevant Pages

  • Re: Here is a case that proves my previous position wrong regurading CLONE_THREAD and CLONE_FILES
    ... > 1) The Linux Kernel does not provide POSIX style thread support. ... > consider how bad native pthread support is in Windows, ... forkand exec(). ... > The real inspired part of clone() is that you get to choose what gets copied ...
    (Linux-Kernel)
  • Re: [Patch] Support UTF-8 scripts
    ... exec is fast. ... > it is likely not for script files. ... This is distribution problem, not kernel problem. ... send the line "unsubscribe linux-kernel" in ...
    (Linux-Kernel)
  • [opensuse] Replaced ALL HW: Tyan S2469 Athlon MP still hangs OpenSuSE 10.2
    ... (That seemed to be fixed after replacing the ... didn't fix it; replaced the running ... Replaced the motherboard, with new processors... ... I'd figure it was the kernel... ...
    (SuSE)
  • Re: hda: lost interrupt
    ... Does it mean my hdd is going to crash? ... On a first sight, lots of topics come up, and the solutions range from checking the pins on the harddrive, over building a kernel without DMA and playing with hdparm up to replacing the cables or disks. ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx with a subject of "unsubscribe". ...
    (Debian-User)
  • Re: Executable programs
    ... :> recognize the format, and caused exec() to fail with an ENOEXEC error. ... :Or did the shell do that first? ... All the shells I've ever dealt with have first let the kernel try the ...
    (comp.os.linux.setup)