1. 17 9月, 2010 3 次提交
    • L
      Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/lrg/voltage-2.6 · 3a919cf0
      Linus Torvalds 提交于
      * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/lrg/voltage-2.6:
        regulator: wm8350-regulator - fix the logic of checking REGULATOR_MODE_STANDBY mode
        regulator: wm831x-ldo - fix the logic to set REGULATOR_MODE_IDLE and REGULATOR_MODE_STANDBY modes
        regulator: ab8500 - fix off-by-one value range checking for selector
        regulator: 88pm8607 - fix value range checking for accessing info->vol_table
        regulator: isl6271a-regulator - fix regulator_desc parameter for regulator_register()
        regulator: ad5398 - fix a memory leak
        regulator: Update e-mail address for Liam Girdwood
        regulator: set max8998->dev to &pdev->dev.
        regulator: tps6586x-regulator - fix bit_mask parameter for tps6586x_set_bits()
        regulator: tps6586x-regulator - fix value range checking for val
        regulator: max8998 - set max8998->num_regulators
        regulator: max8998 - fix memory allocation size for max8998->rdev
        regulator: tps6507x - remove incorrect comments
        regulator: max1586 - improve the logic of choosing selector
        regulator: ab8500 - fix the logic to remove already registered regulators in error path
        regulator: ab3100 - fix the logic to remove already registered regulators in error path
        regulator/ab8500: move dereference below the check for NULL
      3a919cf0
    • L
      94ca9d66
    • L
      Merge branch 'drm-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/airlied/drm-2.6 · 2c35cd01
      Linus Torvalds 提交于
      * 'drm-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/airlied/drm-2.6:
        drm/radeon/kms: only warn on mipmap size checks in r600 cs checker (v2)
        drm/radeon/kms: force legacy pll algo for RV620 LVDS
        drm: fix race between driver loading and userspace open.
        drm: Use a nondestructive mode for output detect when polling (v2)
        drm/radeon/kms: fix the colorbuffer CS checker for r300-r500
        drm/radeon/kms: increase lockup detection interval to 10 sec for r100-r500
        drm/radeon/kms/evergreen: fix backend setup
        drm: Use a nondestructive mode for output detect when polling
        drm/radeon: add some missing copyright headers
        drm: Only decouple the old_fb from the crtc is we call mode_set*
        drm/radeon/kms: don't enable underscan with interlaced modes
        drm/radeon/kms: add connector table for Mac x800
        drm/radeon/kms: fix regression in RMX code (v2)
        drm: Fix regression in disable polling e58f637b
      2c35cd01
  2. 15 9月, 2010 10 次提交
    • A
      drm/radeon/kms: only warn on mipmap size checks in r600 cs checker (v2) · fe725d4f
      Alex Deucher 提交于
      The texture base address registers are in units of 256 bytes.
      The original CS checker treated these offsets as bytes, so the
      original check was wrong.  I fixed the units in a patch during
      the 2.6.36 cycle, but this ended up breaking some existing
      userspace (probably due to a bug in either userspace texture allocation
      or the drm texture mipmap checker).  So for now, until we come
      up with a better fix, just warn if the mipmap size it too large.
      This will keep existing userspace working and it should be just
      as safe as before when we were checking the wrong units.  These
      are GPU MC addresses, so if they fall outside of the VRAM or
      GART apertures, they end up at the GPU default page, so this should
      be safe from a security perspective.
      
      v2: Just disable the warning.  It just spams the log and there's
      nothing the user can do about it.
      Signed-off-by: NAlex Deucher <alexdeucher@gmail.com>
      Cc: Jerome Glisse <glisse@freedesktop.org>
      Signed-off-by: NDave Airlie <airlied@redhat.com>
      fe725d4f
    • L
      Merge ssh://master.kernel.org/home/hpa/tree/sec · 9c03f162
      Linus Torvalds 提交于
      * ssh://master.kernel.org/home/hpa/tree/sec:
        x86-64, compat: Retruncate rax after ia32 syscall entry tracing
        x86-64, compat: Test %rax for the syscall number, not %eax
        compat: Make compat_alloc_user_space() incorporate the access_ok()
      9c03f162
    • D
      MN10300: Fix up the IRQ names for the on-chip serial ports · a4128b03
      David Howells 提交于
      Fix up the IRQ names for the MN10300 on-chip serial ports in the driver as
      request_interrupt() no longer allows names containing slashes, giving a warning
      like the following if one is encountered:
      
      	------------[ cut here ]------------
      	WARNING: at fs/proc/generic.c:323 __xlate_proc_name+0x62/0x7c()
      	name 'ttySM0/Rx'
      Signed-off-by: NDavid Howells <dhowells@redhat.com>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      a4128b03
    • L
      Merge git://git.infradead.org/mtd-2.6 · 65e0b598
      Linus Torvalds 提交于
      * git://git.infradead.org/mtd-2.6:
        mtd: pxa3xx: fix build error when CONFIG_MTD_PARTITIONS is not defined
        mtd: mxc_nand: configure pages per block for v2 controller
        mtd: OneNAND: Fix loop hang when DMA error at Samsung SoCs
        mtd: OneNAND: Fix 2KiB pagesize handling at Samsung SoCs
        mtd: Blackfin NFC: fix invalid free in remove()
        mtd: Blackfin NFC: fix build error after nand_scan_ident() change
        mxc_nand: Do not do byte accesses to the NFC buffer.
      65e0b598
    • L
      Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/hid · d7a4b63b
      Linus Torvalds 提交于
      * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/hid:
        HID: fix hiddev's use of usb_find_interface
        HID: fixup blacklist entry for Asus T91MT
        HID: add device ID for new Asus Multitouch Controller
        HID: add no-get quirk for eGalax touch controller
        HID: Add quirk for eGalax touch controler.
        HID: add support for another BTC Emprex remote control
        HID: Set Report ID properly for Output reports on the Control endpoint.
        HID: Kanvus Note A5 tablet needs HID_QUIRK_MULTI_INPUT
        HID: Add support for chicony multitouch screens.
      d7a4b63b
    • L
      Merge branch 'bugfixes' of git://git.linux-nfs.org/projects/trondmy/nfs-2.6 · de8d4f5d
      Linus Torvalds 提交于
      * 'bugfixes' of git://git.linux-nfs.org/projects/trondmy/nfs-2.6:
        SUNRPC: Fix the NFSv4 and RPCSEC_GSS Kconfig dependencies
        statfs() gives ESTALE error
        NFS: Fix a typo in nfs_sockaddr_match_ipaddr6
        sunrpc: increase MAX_HASHTABLE_BITS to 14
        gss:spkm3 miss returning error to caller when import security context
        gss:krb5 miss returning error to caller when import security context
        Remove incorrect do_vfs_lock message
        SUNRPC: cleanup state-machine ordering
        SUNRPC: Fix a race in rpc_info_open
        SUNRPC: Fix race corrupting rpc upcall
        Fix null dereference in call_allocate
      de8d4f5d
    • J
      aio: check for multiplication overflow in do_io_submit · 75e1c70f
      Jeff Moyer 提交于
      Tavis Ormandy pointed out that do_io_submit does not do proper bounds
      checking on the passed-in iocb array:
      
             if (unlikely(nr < 0))
                     return -EINVAL;
      
             if (unlikely(!access_ok(VERIFY_READ, iocbpp, (nr*sizeof(iocbpp)))))
                     return -EFAULT;                      ^^^^^^^^^^^^^^^^^^
      
      The attached patch checks for overflow, and if it is detected, the
      number of iocbs submitted is scaled down to a number that will fit in
      the long.  This is an ok thing to do, as sys_io_submit is documented as
      returning the number of iocbs submitted, so callers should handle a
      return value of less than the 'nr' argument passed in.
      Reported-by: NTavis Ormandy <taviso@cmpxchg8b.com>
      Signed-off-by: NJeff Moyer <jmoyer@redhat.com>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      75e1c70f
    • R
      x86-64, compat: Retruncate rax after ia32 syscall entry tracing · eefdca04
      Roland McGrath 提交于
      In commit d4d67150, we reopened an old hole for a 64-bit ptracer touching a
      32-bit tracee in system call entry.  A %rax value set via ptrace at the
      entry tracing stop gets used whole as a 32-bit syscall number, while we
      only check the low 32 bits for validity.
      
      Fix it by truncating %rax back to 32 bits after syscall_trace_enter,
      in addition to testing the full 64 bits as has already been added.
      Reported-by: NBen Hawkes <hawkes@sota.gen.nz>
      Signed-off-by: NRoland McGrath <roland@redhat.com>
      Signed-off-by: NH. Peter Anvin <hpa@linux.intel.com>
      eefdca04
    • H
      x86-64, compat: Test %rax for the syscall number, not %eax · 36d001c7
      H. Peter Anvin 提交于
      On 64 bits, we always, by necessity, jump through the system call
      table via %rax.  For 32-bit system calls, in theory the system call
      number is stored in %eax, and the code was testing %eax for a valid
      system call number.  At one point we loaded the stored value back from
      the stack to enforce zero-extension, but that was removed in checkin
      d4d67150.  An actual 32-bit process
      will not be able to introduce a non-zero-extended number, but it can
      happen via ptrace.
      
      Instead of re-introducing the zero-extension, test what we are
      actually going to use, i.e. %rax.  This only adds a handful of REX
      prefixes to the code.
      Reported-by: NBen Hawkes <hawkes@sota.gen.nz>
      Signed-off-by: NH. Peter Anvin <hpa@linux.intel.com>
      Cc: <stable@kernel.org>
      Cc: Roland McGrath <roland@redhat.com>
      Cc: Andrew Morton <akpm@linux-foundation.org>
      36d001c7
    • H
      compat: Make compat_alloc_user_space() incorporate the access_ok() · c41d68a5
      H. Peter Anvin 提交于
      compat_alloc_user_space() expects the caller to independently call
      access_ok() to verify the returned area.  A missing call could
      introduce problems on some architectures.
      
      This patch incorporates the access_ok() check into
      compat_alloc_user_space() and also adds a sanity check on the length.
      The existing compat_alloc_user_space() implementations are renamed
      arch_compat_alloc_user_space() and are used as part of the
      implementation of the new global function.
      
      This patch assumes NULL will cause __get_user()/__put_user() to either
      fail or access userspace on all architectures.  This should be
      followed by checking the return value of compat_access_user_space()
      for NULL in the callers, at which time the access_ok() in the callers
      can also be removed.
      Reported-by: NBen Hawkes <hawkes@sota.gen.nz>
      Signed-off-by: NH. Peter Anvin <hpa@linux.intel.com>
      Acked-by: NBenjamin Herrenschmidt <benh@kernel.crashing.org>
      Acked-by: NChris Metcalf <cmetcalf@tilera.com>
      Acked-by: NDavid S. Miller <davem@davemloft.net>
      Acked-by: NIngo Molnar <mingo@elte.hu>
      Acked-by: NThomas Gleixner <tglx@linutronix.de>
      Acked-by: NTony Luck <tony.luck@intel.com>
      Cc: Andrew Morton <akpm@linux-foundation.org>
      Cc: Arnd Bergmann <arnd@arndb.de>
      Cc: Fenghua Yu <fenghua.yu@intel.com>
      Cc: H. Peter Anvin <hpa@zytor.com>
      Cc: Heiko Carstens <heiko.carstens@de.ibm.com>
      Cc: Helge Deller <deller@gmx.de>
      Cc: James Bottomley <jejb@parisc-linux.org>
      Cc: Kyle McMartin <kyle@mcmartin.ca>
      Cc: Martin Schwidefsky <schwidefsky@de.ibm.com>
      Cc: Paul Mackerras <paulus@samba.org>
      Cc: Ralf Baechle <ralf@linux-mips.org>
      Cc: <stable@kernel.org>
      c41d68a5
  3. 14 9月, 2010 13 次提交
  4. 13 9月, 2010 14 次提交