lkml.org 
[lkml]   [1999]   [Mar]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Doubt on Linux

>
>
> When IP has to send a packet on a particular interface, it gets the
> "hard_start_xmit" function pointer of that interface and hands over the
> sk_buff to this function.
> If after calling this send function, the driver ( or module ) is unloaded
> from the kernel ( using rmmod from user space ), the function pointer
> becomes invalid and the kernel crashes.
>
> If it was a direct function call ( not function pointer ) from IP to the
> module, the rmmod would have failed, returning module busy.
>
> How do we handle this case ?
>
> Even if i put a lock in the entry of the send function also, the above case
> can still occur.
>
> Is there any soultion for this.
>
> Thanks in advance
>


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:50    [W:0.039 / U:0.160 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site