Re: [PATCH] Configure MTU via kernel DHCP

From: Denis Vlasenko (vda_at_port.imtp.ilyichevsk.odessa.ua)
Date: 02/04/05

  • Next message: Pekka Enberg: "Re: [PATCH] PPC/PPC64: Introduce CPU_HAS_FEATURE() macro"
    To: Shane Hathaway <shane@hathawaymix.org>, Kernel Mailing List <linux-kernel@vger.kernel.org>
    Date:	Fri, 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/
    

  • Next message: Pekka Enberg: "Re: [PATCH] PPC/PPC64: Introduce CPU_HAS_FEATURE() macro"

    Relevant Pages

    • Re: [PATCH] Configure MTU via kernel DHCP
      ... > The attached patch enhances the kernel's DHCP client support (in ... > DHCP server. ... > its inclusion in the kernel. ... * Support for MTU selection via DHCP ...
      (Linux-Kernel)
    • Re: RT patch acceptance
      ... judge the complexity of a design for that type of system. ... claim that you cannot judge the complexity of a kernel modification. ... Since the patch in question doesn't actually need that information to ... nanokernel's API up to date with additions to Linux's API that RT people ...
      (Linux-Kernel)
    • [RFC] Making percpu module variables have their own memory.
      ... Someone using the -rt patch found that one of the tracing options caused ... 64K for every CPU to cover all the per_cpu variables used in the kernel ... static void wakeup_softirqd_prio ...
      (Linux-Kernel)
    • Re: This is [Re:] How to improve the quality of the kernel[?].
      ... The -mm kernel already implements what your proposed PTS would do. ... If patch have no TS ID, ... Thus i can apply for example lguest patches and implement and test new ... How many open source projects use Bugzilla and how many use the Debian BTS? ...
      (Linux-Kernel)
    • Re: Documentation - how to apply patches for various trees
      ... >> explanation of the various kernel trees and how to apply their patches. ... +a patch to the kernel or, more specifically, what base kernel a patch for ... +and what new version the patch will change the source tree into. ...
      (Linux-Kernel)