Skip to content
  1. Apr 09, 2009
    • Li Zefan's avatar
      blktrace: pass the right pointer to kfree() · 9eb85125
      Li Zefan authored
      
      
      Impact: fix kfree crash with non-standard act_mask string
      
      If passing a string with leading white spaces to strstrip(),
      the returned ptr != the original ptr.
      
      This bug was introduced by me.
      
      Signed-off-by: default avatarLi Zefan <lizf@cn.fujitsu.com>
      Cc: Jens Axboe <jens.axboe@oracle.com>
      Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
      LKML-Reference: <49DD694C.8020902@cn.fujitsu.com>
      Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
      9eb85125
    • Frederic Weisbecker's avatar
      tracing/syscalls: use a dedicated file header · 47788c58
      Frederic Weisbecker authored
      
      
      Impact: fix build warnings and possibe compat misbehavior on IA64
      
      Building a kernel on ia64 might trigger these ugly build warnings:
      
      CC      arch/ia64/ia32/sys_ia32.o
      In file included from arch/ia64/ia32/sys_ia32.c:55:
      arch/ia64/ia32/ia32priv.h:290:1: warning: "elf_check_arch" redefined
      In file included from include/linux/elf.h:7,
                       from include/linux/module.h:14,
                       from include/linux/ftrace.h:8,
                       from include/linux/syscalls.h:68,
                       from arch/ia64/ia32/sys_ia32.c:18:
      arch/ia64/include/asm/elf.h:19:1: warning: this is the location of the previous definition
      [...]
      
      sys_ia32.c includes linux/syscalls.h which in turn includes linux/ftrace.h
      to import the syscalls tracing prototypes.
      
      But including ftrace.h can pull too much things for a low level file,
      especially on ia64 where the ia32 private headers conflict with higher
      level headers.
      
      Now we isolate the syscall tracing headers in their own lightweight file.
      
      Reported-by: default avatarTony Luck <tony.luck@intel.com>
      Tested-by: default avatarTony Luck <tony.luck@intel.com>
      Signed-off-by: default avatarFrederic Weisbecker <fweisbec@gmail.com>
      Acked-by: default avatarTony Luck <tony.luck@intel.com>
      Signed-off-by: default avatarSteven Rostedt <rostedt@goodmis.org>
      Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
      Cc: Jason Baron <jbaron@redhat.com>
      Cc: "Frank Ch. Eigler" <fche@redhat.com>
      Cc: Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
      Cc: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
      Cc: Lai Jiangshan <laijs@cn.fujitsu.com>
      Cc: Jiaying Zhang <jiayingz@google.com>
      Cc: Michael Rubin <mrubin@google.com>
      Cc: Martin Bligh <mbligh@google.com>
      Cc: Michael Davidson <md@google.com>
      LKML-Reference: <20090408184058.GB6017@nowhere>
      Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
      47788c58
  2. Apr 08, 2009
    • Tetsuo Handa's avatar
      tracing: append a comma to INIT_FTRACE_GRAPH · f876d346
      Tetsuo Handa authored
      
      
      Impact: dont break future extensions of INIT_TASK
      
      While not a problem right now, due to lack of a comma, build fails if
      elements are appended to INIT_TASK() macro in development code:
      
       arch/x86/kernel/init_task.c:33: error: request for member `XXXXXXXXXX' in something not a structure or union
       arch/x86/kernel/init_task.c:33: error: initializer element is not constant
       arch/x86/kernel/init_task.c:33: error: (near initialization for `init_task.ret_stack')
       make[1]: *** [arch/x86/kernel/init_task.o] Error 1
       make: *** [arch/x86/kernel] Error 2
      
      Signed-off-by: default avatarTetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
      Cc: srostedt@redhat.com
      LKML-Reference: <200904080505.n3855hcn017109@www262.sakura.ne.jp>
      Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
      f876d346
    • Linus Torvalds's avatar
      Linux 2.6.30-rc1 · 577c9c45
      Linus Torvalds authored
      577c9c45
    • Linus Torvalds's avatar
      Merge branch 'core/softlockup' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip · 1551260d
      Linus Torvalds authored
      * 'core/softlockup' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip:
        softlockup: make DETECT_HUNG_TASK default depend on DETECT_SOFTLOCKUP
        softlockup: move 'one' to the softlockup section in sysctl.c
        softlockup: ensure the task has been switched out once
        softlockup: remove timestamp checking from hung_task
        softlockup: convert read_lock in hung_task to rcu_read_lock
        softlockup: check all tasks in hung_task
        softlockup: remove unused definition for spawn_softlockup_task
        softlockup: fix potential race in hung_task when resetting timeout
        softlockup: fix to allow compiling with !DETECT_HUNG_TASK
        softlockup: decouple hung tasks check from softlockup detection
      1551260d
    • Linus Torvalds's avatar
      Merge branch 'tracing-fixes-for-linus' of... · c93f216b
      Linus Torvalds authored
      Merge branch 'tracing-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip
      
      * 'tracing-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip:
        branch tracer, intel-iommu: fix build with CONFIG_BRANCH_TRACER=y
        branch tracer: Fix for enabling branch profiling makes sparse unusable
        ftrace: Correct a text align for event format output
        Update /debug/tracing/README
        tracing/ftrace: alloc the started cpumask for the trace file
        tracing, x86: remove duplicated #include
        ftrace: Add check of sched_stopped for probe_sched_wakeup
        function-graph: add proper initialization for init task
        tracing/ftrace: fix missing include string.h
        tracing: fix incorrect return type of ns2usecs()
        tracing: remove CALLER_ADDR2 from wakeup tracer
        blktrace: fix pdu_len when tracing packet command requests
        blktrace: small cleanup in blk_msg_write()
        blktrace: NUL-terminate user space messages
        tracing: move scripts/trace/power.pl to scripts/tracing/power.pl
      c93f216b
    • Linus Torvalds's avatar
      Merge branch 'irq/threaded' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip · c61b79b6
      Linus Torvalds authored
      * 'irq/threaded' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip:
        genirq: fix devres.o build for GENERIC_HARDIRQS=n
        genirq: provide old request_irq() for CONFIG_GENERIC_HARDIRQ=n
        genirq: threaded irq handlers review fixups
        genirq: add support for threaded interrupts to devres
        genirq: add threaded interrupt handler support
      c61b79b6
    • Trond Myklebust's avatar
      NFS: Fix the return value in nfs_page_mkwrite() · 2b2ec755
      Trond Myklebust authored
      Commit c2ec175c
      
       ("mm: page_mkwrite
      change prototype to match fault") exposed a bug in the NFS
      implementation of page_mkwrite.  We should be returning 0 on success...
      
      Signed-off-by: default avatarTrond Myklebust <Trond.Myklebust@netapp.com>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      2b2ec755
    • Linus Torvalds's avatar
      Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jbarnes/pci-2.6 · 8e2c4f28
      Linus Torvalds authored
      * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jbarnes/pci-2.6:
        PCI: pci_slot: grab refcount on slot's bus
        PCI Hotplug: acpiphp: grab refcount on p2p subordinate bus
        PCI: allow PCI core hotplug to remove PCI root bus
        PCI: Fix oops in pci_vpd_truncate
        PCI: don't corrupt enable_cnt when doing manual resource alignment
        PCI: annotate pci_rescan_bus as __ref, not __devinit
        PCI-IOV: fix missing kernel-doc
        PCI: Setup disabled bridges even if buses are added
        PCI: SR-IOV quirk for Intel 82576 NIC
      8e2c4f28
    • Linus Torvalds's avatar
      Merge branch 'for-linus' of git://git.kernel.dk/linux-2.6-block · 6a5d2638
      Linus Torvalds authored
      * 'for-linus' of git://git.kernel.dk/linux-2.6-block:
        loop: mutex already unlocked in loop_clr_fd()
        cfq-iosched: don't let idling interfere with plugging
        block: remove unused REQ_UNPLUG
        cfq-iosched: kill two unused cfqq flags
        cfq-iosched: change dispatch logic to deal with single requests at the time
        mflash: initial support
        cciss: change to discover first memory BAR
        cciss: kernel scan thread for MSA2012
        cciss: fix residual count for block pc requests
        block: fix inconsistency in I/O stat accounting code
        block: elevator quiescing helpers
      6a5d2638
    • Linus Torvalds's avatar
      Fix build errors due to CONFIG_BRANCH_TRACER=y · aeeae868
      Linus Torvalds authored
      
      
      The code that enables branch tracing for all (non-constant) branches
      plays games with the preprocessor and #define's the C 'if ()' construct
      to do tracing.
      
      That's all fine, but it fails for some unusual but valid C code that is
      sometimes used in macros, notably by the intel-iommu code:
      
      	if (i=drhd->iommu, drhd->ignored) ..
      
      because now the preprocessor complains about multiple arguments to the
      'if' macro.
      
      So make the macro expansion of this particularly horrid trick use
      varargs, and handle the case of comma-expressions in if-statements.  Use
      another macro to do it cleanly in just one place.
      
      This replaces a patch by David (and acked by Steven) that did this all
      inside that one already-too-horrid macro.
      
      Tested-by: default avatarIngo Molnar <mingo@elte.hu>
      Cc: David Woodhouse <dwmw2@infradead.org>
      Cc: Steven Rostedt <rostedt@goodmis.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      aeeae868
  3. Apr 07, 2009