search for: kern_link

Displaying 2 results from an estimated 2 matches for "kern_link".

Did you mean: kern_linker
2008 Sep 30
1
DTrace MFC broke kldstat(2) on RELENG_7
...) of data to user space while it should copy sizeof(struct kld_file_stat_1) when the old struct is used. This guy is probably suffering from this problem too: http://lists.freebsd.org/pipermail/freebsd-questions/2008-September/182896.html I used this patch to fix the problem: %%% Index: sys/kern/kern_linker.c =================================================================== --- sys/kern/kern_linker.c (revision 183486) +++ sys/kern/kern_linker.c (working copy) @@ -1199,7 +1199,12 @@ kldstat(struct thread *td, struct kldsta td->td_retval[0] = 0; - return (copyout(&stat, uap->stat, si...
2004 Sep 29
5
Kernel-loadable Root Kits
...d(2) syscall, >>>nothing more, nothing userspace-magical. >>>All a kernel routine needs to do is either invoke that syscall, or >>>call the internal kernel functions that kldload(2) calls, like e.g. >>>linker_find_file_by_name() and linker_load_file() in sys/kern/kern_linker.c >> >>Ah. Well then, as I wrote to Kris, the kernel has to deny KLD loading >>altogether, it should be a build-time option, and it should have nothing >>to over-ride this. >> >>Or am I still being too simplistic? I haven't been using KLD- or LKM- >>a...