1. 21 11月, 2008 4 次提交
    • L
      Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6 · 4dd61d92
      Linus Torvalds 提交于
      * git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6: (23 commits)
        net: fix tiny output corruption of /proc/net/snmp6
        atl2: don't request irq on resume if netif running
        ipv6: use seq_release_private for ip6mr.c /proc entries
        pkt_sched: fix missing check for packet overrun in qdisc_dump_stab()
        smc911x: Fix printf format typo in smc911x driver.
        asix: Fix asix-based cards connecting to 10/100Mbs LAN.
        mv643xx_eth: fix recycle check bound
        mv643xx_eth: fix the order of mdiobus_{unregister, free}() calls
        sh: sh_eth: Update to change of mii_bus
        TPROXY: supply a struct flowi->flags argument in inet_sk_rebuild_header()
        TPROXY: fill struct flowi->flags in udp_sendmsg()
        net: ipg.c fix bracing on endian swapping
        phylib: Fix auto-negotiation restart avoidance
        net: jme.c rxdesc.flags is __le16, other missing endian swaps
        phylib: fix phy name example in documentation
        net: Do not fire linkwatch events until the device is registered.
        phonet: fix compilation with gcc-3.4
        ixgbe: fix compilation with gcc-3.4
        pktgen: fix multiple queue warning
        net: fix ip_mr_init() error path
        ...
      4dd61d92
    • L
      Merge branch 'tracing-fixes-for-linus' of... · 95763dd5
      Linus Torvalds 提交于
      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:
        ftrace: fix dyn ftrace filter selection
        ftrace: make filtered functions effective on setting
        ftrace: fix set_ftrace_filter
        trace: introduce missing mutex_unlock()
        tracing: kernel/trace/trace.c: introduce missing kfree()
      95763dd5
    • L
      Merge branch 'x86-fixes-for-linus' of... · 0260da16
      Linus Torvalds 提交于
      Merge branch 'x86-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip
      
      * 'x86-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip:
        x86: uaccess_64: fix return value in __copy_from_user()
        x86: quirk for reboot stalls on a Dell Optiplex 330
      0260da16
    • H
      parisc: fix bug in compat_arch_ptrace · ed79b86d
      Helge Deller 提交于
      Commit 81e192d6 ("parisc: convert to
      generic compat_sys_ptrace") introduced a bug which segfaults the parisc
      64bit kernel when stracing 32bit applications:
      
        Kernel Fault: Code=15 regs=00000000bafa42b0 (Addr=00000001baf5ab57)
             YZrvWESTHLNXBCVMcbcbcbcbOGFRQPDI
        PSW: 00001000000001101111111100001011 Tainted: G        W
        r00-03  000000ff0806ff0b 000000004068edc0 00000000401203f8 00000000fb3e2508
        r04-07  0000000040686dc0 00000000baf5a800 fffffffffffffffc fffffffffb3e2508
        r08-11  00000000baf5a800 000000000004b068 00000000000402b0 0000000000040d68
        r12-15  0000000000042a9c 0000000000040a9c 0000000000040d60 0000000000042e9c
        r16-19  000000000004b060 000000000004b058 0000000000042d9c ffffffffffffffff
        r20-23  000000000800000b 0000000000000000 000000000800000b fffffffffb3e2508
        r24-27  00000000fffffffc 0000000000000003 00000000fffffffc 0000000040686dc0
        r28-31  00000001baf5a7ff 00000000bafa4280 00000000bafa42b0 00000000000001d7
        sr00-03  0000000000fca000 0000000000000000 0000000000000000 0000000000fca000
        sr04-07  0000000000000000 0000000000000000 0000000000000000 0000000000000000
      
        IASQ: 0000000000000000 0000000000000000 IAOQ: 0000000040120400 0000000040120404
         IIR: 4b9a06b0    ISR: 0000000000000000  IOR: 00000001baf5ab57
         CPU:        0   CR30: 00000000bafa4000 CR31: 00000000d22344e0
         ORIG_R28: 00000000fb3e2248
         IAOQ[0]: compat_arch_ptrace+0xb8/0x160
         IAOQ[1]: compat_arch_ptrace+0xbc/0x160
         RP(r2): compat_arch_ptrace+0xb0/0x160
        Backtrace:
         [<00000000401612ac>] compat_sys_ptrace+0x15c/0x180
         [<0000000040104ef8>] syscall_exit+0x0/0x14
      
      The problem is that compat_arch_ptrace() enters with an addr value of
      type compat_ulong_t and calls translate_usr_offset() to translate the
      address offset into a struct pt_regs offset like this:
      
      	addr = translate_usr_offset(addr)
      
      this means that any return value of translate_usr_offset() is stored
      back as compat_ulong_t type into the addr variable.
      
      But since translate_usr_offset() returns -1 for invalid offsets, addr
      can now get the value 0xffffffff which then fails the next return-value
      sanity check and thus the kernel tries to access invalid memory:
      
      	if (addr < 0)
      		break;
      
      Fix this bug by modifying translate_usr_offset() to take and return
      values of type compat_ulong_t, and by returning the value
      "sizeof(struct pt_regs)" as an error indicator.
      
      Additionally change the sanity check to check for return values
      for >= sizeof(struct pt_regs).
      
      This patch survived my compile and run-tests.
      Signed-off-by: NHelge Deller <deller@gmx.de>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      ed79b86d
  2. 20 11月, 2008 36 次提交