1. 07 Jun, 2014 4 commits
  2. 06 Jun, 2014 3 commits
  3. 05 Jun, 2014 16 commits
  4. 04 Jun, 2014 2 commits
  5. 03 Jun, 2014 10 commits
  6. 02 Jun, 2014 5 commits
    • Oleg Nesterov's avatar
      uprobes: Teach copy_insn() to support tmpfs · 45e0a79a
      Oleg Nesterov authored
      tmpfs is widely used but as Denys reports shmem_aops doesn't have
      ->readpage() and thus you can't probe a binary on this filesystem.
      
      As Hugh suggested we can use shmem_read_mapping_page() in this case,
      just we need to check shmem_mapping() if ->readpage == NULL.
      Reported-by: default avatarDenys Vlasenko <dvlasenk@redhat.com>
      Suggested-by: default avatarHugh Dickins <hughd@google.com>
      Acked-by: default avatarSrikar Dronamraju <srikar@linux.vnet.ibm.com>
      Signed-off-by: default avatarOleg Nesterov <oleg@redhat.com>
      45e0a79a
    • Oleg Nesterov's avatar
      uprobes: Shift ->readpage check from __copy_insn() to uprobe_register() · 7fa31348
      Oleg Nesterov authored
      copy_insn() fails with -EIO if ->readpage == NULL, but this error
      is not propagated unless uprobe_register() path finds ->mm which
      already mmaps this file. In this case (say) "perf record" does not
      actually install the probe, but the user can't know about this.
      
      Move this check into uprobe_register() so that this problem can be
      detected earlier and reported to user.
      
      Note: this is still not perfect,
      
      	- copy_insn() and arch_uprobe_analyze_insn() should be called
      	  by uprobe_register() but this is not simple, we need vm_file
      	  for read_mapping_page() (although perhaps we can pass NULL),
      	  and we need ->mm for is_64bit_mm() (although this logic is
      	  broken anyway).
      
      	- uprobe_register() should be called by create_trace_uprobe(),
      	  not by probe_event_enable(), so that an error can be detected
      	  at "perf probe -x" time. This also needs more changes in the
      	  core uprobe code, uprobe register/unregister interface was
      	  poorly designed from the very beginning.
      Reported-by: default avatarDenys Vlasenko <dvlasenk@redhat.com>
      Acked-by: default avatarSrikar Dronamraju <srikar@linux.vnet.ibm.com>
      Signed-off-by: default avatarOleg Nesterov <oleg@redhat.com>
      7fa31348
    • Linus Torvalds's avatar
      Linux 3.15-rc8 · fad01e86
      Linus Torvalds authored
      fad01e86
    • Linus Torvalds's avatar
      Merge branch 'merge' of git://git.kernel.org/pub/scm/linux/kernel/git/benh/powerpc · 204fe038
      Linus Torvalds authored
      Pull powerpc fix from Ben Herrenschmidt:
       "Here's just one trivial patch to wire up sys_renameat2 which I seem to
        have completely missed so far.
      
        (My test build scripts fwd me warnings but miss the ones generated for
        missing syscalls)"
      
      * 'merge' of git://git.kernel.org/pub/scm/linux/kernel/git/benh/powerpc:
        powerpc: Wire renameat2() syscall
      204fe038
    • Linus Torvalds's avatar
      Merge branch 'upstream' of git://git.linux-mips.org/pub/scm/ralf/upstream-linus · 568180a5
      Linus Torvalds authored
      Pull MIPS fixes from Ralf Baechle:
       "A fair number of fixes across the field.  Nothing terribly
        complicated; the one liners in below changelog should be fairly
        descriptive.
      
        Noteworthy is the SB1 change which the result of changes to binutils
        resulting in one big gas warning for most files being assembled as
        well as the asid_cache and branch emulation fixes which fix corruption
        or possible uninteded behaviour of kernel or application code.  The
        remainder of fixes are more platforms or subsystem specific"
      
      * 'upstream' of git://git.linux-mips.org/pub/scm/ralf/upstream-linus:
        MIPS: R46000: Fix Micro-assembler field overflow for R4600 V2
        MIPS: ptrace: Avoid smp_processor_id() in preemptible code
        MIPS: Lemote 2F: cs5536: mfgpt: use raw locks
        MIPS: SB1: Fix excessive kernel warnings.
        MIPS: RC32434: fix broken PCI resource initialization
        MIPS: malta: memory.c: Initialize the 'memsize' variable
        MIPS: Fix typo when reporting cache and ftlb errors for ImgTec cores
        MIPS: Fix inconsistancy of __NR_Linux_syscalls value
        MIPS: Fix branch emulation of branch likely instructions.
        MIPS: Fix a typo error in AUDIT_ARCH definition
        MIPS: Change type of asid_cache to unsigned long
      568180a5