lkml.org 
[lkml]   [2005]   [Feb]   [4]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
/
FromDenis Vlasenko <>
SubjectRe: [PATCH] Configure MTU via kernel DHCP
DateFri, 4 Feb 2005 10:06:49 +0200
On Thursday 03 February 2005 06:47, Shane Hathaway wrote:
> The attached patch enhances the kernel's DHCP client support (in 
> net/ipv4/ipconfig.c) to set the interface MTU if provided by the DHCP server.  
> Without this patch, it's difficult to netboot on a network that uses jumbo 
> frames.  The patch is based on 2.6.10, but I'll update it to the latest 
> testing kernel if that would expedite its inclusion in the kernel.
> 
> More background: it's currently difficult to netboot on a jumbo frame network 
> because when clients try to mount the root partition, they are still 
> configured with a small MTU and therefore reject packets sent by the 
> jumbo-frame-enabled NFS server.  Linux needs to set the client MTU before 
> mounting any NFS shares.  Fortunately, the DHCP protocol already supports 
> setting the MTU; this patch just integrates that feature into the kernel.
> 
> Incidentally, ipconfig.c doesn't appear to do enough bounds checking on byte 1 
> of DHCP/BOOTP extension fields (the length field).  It looks like a malicious 
> DHCP server could mess with kernel memory that way.  I could try to fix the 
> hole, but maybe someone more experienced with this code would like to verify 
> there's a problem first.

Long term solution is to use approptiately configured initramfs or initrd image
and do above mentioned stuff in userspace.
--
vda

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

\
 
 \ /
  Last update: 2005-03-22 14:10    [from the cache]
©2003-2008