Skip to content
  1. Aug 07, 2011
    • Linus Torvalds's avatar
      vfs: show O_CLOEXE bit properly in /proc/<pid>/fdinfo/<fd> files · 1117f72e
      Linus Torvalds authored
      
      
      The CLOEXE bit is magical, and for performance (and semantic) reasons we
      don't actually maintain it in the file descriptor itself, but in a
      separate bit array.  Which means that when we show f_flags, the CLOEXE
      status is shown incorrectly: we show the status not as it is now, but as
      it was when the file was opened.
      
      Fix that by looking up the bit properly in the 'fdt->close_on_exec' bit
      array.
      
      Uli needs this in order to re-implement the pfiles program:
      
        "For normal file descriptors (not sockets) this was the last piece of
         information which wasn't available.  This is all part of my 'give
         Solaris users no reason to not switch' effort.  I intend to offer the
         code to the util-linux-ng maintainers."
      
      Requested-by: default avatarUlrich Drepper <drepper@akkadia.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      1117f72e
    • Linus Torvalds's avatar
      oom_ajd: don't use WARN_ONCE, just use printk_once · c2142704
      Linus Torvalds authored
      
      
      WARN_ONCE() is very annoying, in that it shows the stack trace that we
      don't care about at all, and also triggers various user-level "kernel
      oopsed" logic that we really don't care about.  And it's not like the
      user can do anything about the applications (sshd) in question, it's a
      distro issue.
      
      Requested-by: Andi Kleen <andi@firstfloor.org> (and many others)
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      c2142704
    • Mandeep Singh Baines's avatar
      lib/sha1: use the git implementation of SHA-1 · 1eb19a12
      Mandeep Singh Baines authored
      
      
      For ChromiumOS, we use SHA-1 to verify the integrity of the root
      filesystem.  The speed of the kernel sha-1 implementation has a major
      impact on our boot performance.
      
      To improve boot performance, we investigated using the heavily optimized
      sha-1 implementation used in git.  With the git sha-1 implementation, we
      see a 11.7% improvement in boot time.
      
      10 reboots, remove slowest/fastest.
      
      Before:
      
        Mean: 6.58 seconds Stdev: 0.14
      
      After (with git sha-1, this patch):
      
        Mean: 5.89 seconds Stdev: 0.07
      
      The other cool thing about the git SHA-1 implementation is that it only
      needs 64 bytes of stack for the workspace while the original kernel
      implementation needed 320 bytes.
      
      Signed-off-by: default avatarMandeep Singh Baines <msb@chromium.org>
      Cc: Ramsay Jones <ramsay@ramsay1.demon.co.uk>
      Cc: Nicolas Pitre <nico@cam.org>
      Cc: Herbert Xu <herbert@gondor.apana.org.au>
      Cc: David S. Miller <davem@davemloft.net>
      Cc: linux-crypto@vger.kernel.org
      Signed-off-by: default avatarLinus Torvalds <torvalds@li...>
      1eb19a12
  2. Aug 06, 2011
    • Linus Torvalds's avatar
      Merge branch 'drm-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/airlied/drm-2.6 · de96355c
      Linus Torvalds authored
      * 'drm-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/airlied/drm-2.6: (55 commits)
        Revert "drm/i915: Try enabling RC6 by default (again)"
        drm/radeon: Extended DDC Probing for ECS A740GM-M DVI-D Connector
        drm/radeon: Log Subsystem Vendor and Device Information
        drm/radeon: Extended DDC Probing for Connectors with Improperly Wired DDC Lines (here: Asus M2A-VM HDMI)
        drm: Separate EDID Header Check from EDID Block Check
        drm: Add NULL check about irq functions
        drm: Fix irq install error handling
        drm/radeon: fix potential NULL dereference in drivers/gpu/drm/radeon/atom.c
        drm/radeon: clean reg header files
        drm/debugfs: Initialise empty variable
        drm/radeon/kms: add thermal chip quirk for asus 9600xt
        drm/radeon: off by one in check_reg() functions
        drm/radeon/kms: fix version comment due to merge timing
        drm/i915: allow cache sharing policy control
        drm/i915/hdmi: HDMI source product description infoframe support
        drm/i915/hdmi: split infoframe setting from infoframe type code
        drm: track CEA version number if present
        drm/i915: Try enabling RC6 by default (again)
        Revert "drm/i915/dp: Zero the DPCD data before connection probe"
        drm/i915/dp: wait for previous AUX channel activity to clear
        ...
      de96355c
    • Linus Torvalds's avatar
      Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/sparc · 8cd290a0
      Linus Torvalds authored
      * git://git.kernel.org/pub/scm/linux/kernel/git/davem/sparc:
        sparc: Size mondo queues more sanely.
        sparc: Access kernel TSB using physical addressing when possible.
        sparc: Fix __atomic_add_unless() return value.
        sparc: use kbuild-generic support for true asm-generic header files
        sparc: Use popc when possible for ffs/__ffs/ffz.
        sparc: Set reboot-cmd using reboot data hypervisor call if available.
        sparc: Add some missing hypervisor API groups.
        sparc: Use hweight64() in popc emulation.
        sparc: Use popc if possible for hweight routines.
        sparc: Minor tweaks to Niagara page copy/clear.
        sparc: Sanitize cpu feature detection and reporting.
      8cd290a0
    • Linus Torvalds's avatar
      Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net · 07d952dc
      Linus Torvalds authored
      * git://git.kernel.org/pub/scm/linux/kernel/git/davem/net: (54 commits)
        ipv6: check for IPv4 mapped addresses when connecting IPv6 sockets
        mlx4: decreasing ref count when removing mac
        net: Fix security_socket_sendmsg() bypass problem.
        net: Cap number of elements for sendmmsg
        net: sendmmsg should only return an error if no messages were sent
        ixgbe: fix PHY link setup for 82599
        ixgbe: fix __ixgbe_notify_dca() bail out code
        igb: fix WOL on second port of i350 device
        e1000e: minor re-order of #include files
        e1000e: remove unnecessary check for NULL pointer
        intel drivers: repair missing flush operations
        macb: restore wrap bit when performing underrun cleanup
        cdc_ncm: fix endianness problem.
        irda: use PCI_VENDOR_ID_*
        mlx4: Fixing Ethernet unicast packet steering
        net: fix NULL dereferences in check_peer_redir()
        bnx2x: Clear MDIO access warning during first driver load
        bnx2x: Fix BCM578xx MAC test
        bnx2x: Fix BCM54618se invalid link indication
        bnx2x: Fix BCM84833 link
        ...
      07d952dc
    • Linus Torvalds's avatar
      Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/ide · 5fdb3247
      Linus Torvalds authored
      * git://git.kernel.org/pub/scm/linux/kernel/git/davem/ide:
        drivers/ide/cy82c693.c: Add missing pci_dev_put
        ide: Fix irq flags madness
      5fdb3247
  3. Aug 05, 2011
  4. Aug 04, 2011