Re: -rc3 leaking NOT BIO [Was: Memory leak in 2.6.11-rc1?]

From: Parag Warudkar (kernel-stuff_at_comcast.net)
Date: 02/17/05

  • Next message: castet.matthieu_at_free.fr: "Re: [OOPS] 2.6.10, ReiserFS errors, preempt"
    To: Horst von Brand <vonbrand@inf.utfsm.cl>
    Date:	Thu, 17 Feb 2005 08:35:35 -0500
    
    

    On Wednesday 16 February 2005 10:48 pm, Horst von Brand wrote:
    > Does x86_64 use up a (freeable) register for the frame pointer or not?
    > I.e., does -fomit-frame-pointer have any effect on the generated code?

    {Took Linus out of the loop as he probably isn't interested}

    The generated code is different for both cases but for some reason gcc has
    trouble with __builtin_return_address on x86-64.

    For e.g. specifying gcc -fo-f-p, a method produces following assembly.

    method_1:
    .LFB2:
            subq $8, %rsp
    .LCFI0:
            movl $__FUNCTION__.0, %esi
            movl $.LC0, %edi
            movl $0, %eax
            call printf
            movl $0, %eax
            addq $8, %rsp
            ret

    And with -fno-o-f-p, the same method yields

    method_1:
    .LFB2:
            pushq %rbp
    .LCFI0:
            movq %rsp, %rbp
    .LCFI1:
            movl $__FUNCTION__.0, %esi
            movl $.LC0, %edi
            movl $0, %eax
            call printf
            movl $0, %eax
            leave
            ret
    -
    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: castet.matthieu_at_free.fr: "Re: [OOPS] 2.6.10, ReiserFS errors, preempt"

    Relevant Pages

    • Re: Poss. bug in tulip driver since 2.4.7
      ... Prasanna Meda wrote: ... you need to bring the for loop outside the loop. ... it to Linus. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • wait_event and preemption in 2.6
      ... I'm writing a device driver for PPC Linux and I'm using wait_event. ... preemption is turned on. ... check the condition and break out of the loop. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: The price of SELinux (CPU)
      ... computers, it's probable that even a 2:1 slowdown would still result in ... I can't speak for Linus' thinking of course, but I have worked in secure ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • [PATCH] NULL pointer deref in tcp_do_twkill_work()
      ... Shouldn't the loop always restart from the beginning instead of using the ... The alternative is to not drop the lock, but I'm guessing we need to do ... Proposed patch is attached. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • x86 build issue with software suspend code
      ... collision and the relocation from and alloc section targeting targeting ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)