Re: Linux 2.6.7-rc2

From: Albert Cahalan (albert_at_users.sf.net)
Date: 05/31/04

  • Next message: David Weinehall: "Oops at get_kobj_path_length with 2.6.5/2.6.6 on boot/resume"
    To: linux-kernel mailing list <linux-kernel@vger.kernel.org>
    Date:	31 May 2004 08:20:24 -0400
    
    

    Peter Osterlund writes:

    > If I put "#if 0" around the *wdata assignment in
    > nfs_writepage_sync, the stack usage goes down to 36,
    > so it looks like gcc is building a temporary structure
    > on the stack and then copies the whole thing to *wdata.

    This would be required because of the -Wno-strict-aliasing
    option. For the 2.7.xx kernels, how about we start off by
    replacing -Wno-strict-aliasing with -std=gnu99 ? It's been
    5 years since 1999. The "restrict" keyword is useful too.

    -
    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: David Weinehall: "Oops at get_kobj_path_length with 2.6.5/2.6.6 on boot/resume"

    Relevant Pages

    • Re: Linux 2.6.7-rc2
      ... >> temporary structure on the stack and then copies the whole thing to ... with a test case that exercises these code paths. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: [Bug 2773] New: kernel panic under medium load
      ... Now, that would look like a pointer that _should_ be zero, but with a ... possibly due to a stack overflow that just overwrote the thread-info (and ... > Controller ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: 2.6.9-rcX cdrom.c is subject to "chaotic" behaviour
      ... The culprit is newly ... while the offsetof on the other hand is ... >> which in turn results in random values from the stack being evaluated ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: [RFC] cleanup patches for strings
      ... larger, slower, and uses more stack. ... If the array is declared const makes ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: [2.6 patch] i386: always use 4k stacks
      ... > today on an older Niksun box running off the end of the stack. ... Check the compaq drivers for SATA as well, ... Jeff ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)