1. 01 May, 2008 4 commits
    • Al Viro's avatar
      Fix dnotify/close race · 214b7049
      Al Viro authored
      We have a race between fcntl() and close() that can lead to
      dnotify_struct inserted into inode's list *after* the last descriptor
      had been gone from current->files.
      
      Since that's the only point where dnotify_struct gets evicted, we are
      screwed - it will stick around indefinitely.  Even after struct file in
      question is gone and freed.  Worse, we can trigger send_sigio() on it at
      any later point, which allows to send an arbitrary signal to arbitrary
      process if we manage to apply enough memory pressure to get the page
      that used to host that struct file and fill it with the right pattern...
      Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      214b7049
    • Linus Torvalds's avatar
      x86: Mark OPTIMIZE_INLINING broken · 6d98ca73
      Linus Torvalds authored
      So Ingo finally did figure out why UML broke with this option: UML
      passes gcc the -fno-unit-at-a-time flag, and apparently that wreaks
      havoc with gcc's inlining.
      
      We could turn off -fno-unit-at-a-time for UML for gcc4+ (which is what
      x86 does), but there's bad blood about this whole option, and it does
      show that the thing is just fragile as heck.
      
      So let tempers cool, and disable the thing, and we can revisit the
      decision later.
      
      Cc: Adrian Bunk <bunk@kernel.org>
      Cc: David Miller <davem@davemloft.net>
      Acked-by: default avatarIngo Molnar <mingo@elte.hu>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      6d98ca73
    • Linus Torvalds's avatar
      Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/x86/linux-2.6-x86-fixes3 · 958a2f29
      Linus Torvalds authored
      * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/x86/linux-2.6-x86-fixes3: (21 commits)
        x86: numaq fix
        x86: 8K stacks by default
        x86: ioremap ram check fix
        x86: fix HT cpu booting on 32-bit
        x86: optimize inlining off
        x86: CONFIG_X86_ELAN fix
        x86: Kconfig fix
        x86 PAT: fix performance drop for glx, use UC minus for ioremap(), ioremap_nocache() and pci_mmap_page_range()
        x86: use defconfigs from x86/configs/*
        toshiba: use ioremap_cached
        revert: "x86: ioremap(), extend check to all RAM pages"
        x86: don't bother printing compat vdso address
        fix: x86: support for new UV apic
        x86: fix early-BUG message
        x86: iommu_sac_force can become static
        x86: add proper header for reboot_force
        x86 VISWS: build fix
        x86, voyager: fix ioremap_nocache()
        hpet: fix
        x86: unexport kmap_atomic_to_page
        ...
      958a2f29
    • Linus Torvalds's avatar
      Merge git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-2.6 · 6de3d58d
      Linus Torvalds authored
      * git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-2.6:
        klist: fix coding style errors in klist.h and klist.c
        driver core: remove no longer used "struct class_device"
        pcmcia: remove pccard_sysfs_interface warnings
        devres: support addresses greater than an unsigned long via dev_ioremap
        kobject: do not copy vargs, just pass them around
        sysfs: sysfs_update_group stub for CONFIG_SYSFS=n
        DEBUGFS: Correct location of debugfs API documentation.
        driver core: warn about duplicate driver names on the same bus
        klist: implement klist_add_{after|before}()
        klist: implement KLIST_INIT() and DEFINE_KLIST()
        sysfs: Disallow truncation of files in sysfs
      6de3d58d
  2. 30 Apr, 2008 36 commits