printflike vs kprintflike

From: Jeff Roberson (jroberson_at_chesapeake.net)
Date: 05/05/05

  • Next message: Peter Wemm: "Re: [CFR] correct type of addrinfo.ai_addrlen and netent.n_net"
    Date: Wed, 4 May 2005 18:16:06 -0400 (EDT)
    To: arch@freebsd.org
    
    

    I have a patch from Neal Fachan of isilon that implements a new gcc
    attribute 'kprintflike' that is used in place of 'printflike' in the
    kernel. This is done to stop us from leaking kernel printf formats into
    userspace. Apparently -fformat-extensions is broken in gcc3. This also
    stops our formats from leaking into any other custom formats defined in
    gcc.

    This is available at http://www.chesapeake.net/~jroberson/kprintf.diff

    This patch was made against 5.4 sources with some local changes. I can
    update it to 6.0, but I'm hoping some compiler guru will pick it up and
    commit it.

    Thanks,
    Jeff
    _______________________________________________
    freebsd-arch@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-arch
    To unsubscribe, send any mail to "freebsd-arch-unsubscribe@freebsd.org"


  • Next message: Peter Wemm: "Re: [CFR] correct type of addrinfo.ai_addrlen and netent.n_net"

    Relevant Pages

    • Re: system gets stuck in a lock during boot
      ... on the latest kernel and seeing whether that fixes the lockup? ... 'backtrack' the bisection, ... At the moment I don't have a problem applying a patch to the ... gcc version: 4.5.0 20090730 ...
      (Linux-Kernel)
    • Re: system gets stuck in a lock during boot
      ... on the latest kernel and seeing whether that fixes the lockup? ... 'backtrack' the bisection, ... At the moment I don't have a problem applying a patch to the ... gcc version: 4.5.0 20090730 ...
      (Linux-Kernel)
    • Re: system gets stuck in a lock during boot
      ... on the latest kernel and seeing whether that fixes the lockup? ... 'backtrack' the bisection, ... At the moment I don't have a problem applying a patch to the ... gcc version: 4.5.0 20090730 ...
      (Linux-Kernel)
    • CONFIG_OPTIMIZE_INLINING fun
      ... I'm wondering whether we need this patch: ... This option determines if the kernel forces gcc to inline the functions ...
      (Linux-Kernel)
    • Re: [Announce] Linux-tiny project revival
      ... kernel BIIIIIG. ... change the source file path anyway? ... gcc -E sam.c ... I once posted a patch to fix up on this, ...
      (Linux-Kernel)