20 Jul, 2007

40 commits

  • a) switch by loff_t == __cmpdi2 use. Replaced with a couple
    of obvious ifs; update of ->f_pos in the first one makes sure that we
    do the right thing in all cases.
    b) block_signals() and unblock_signals() are globals on UML.
    Renamed coda ones; in principle UML probably ought to do rename as
    well, but that's another story.

    Signed-off-by: Al Viro
    Signed-off-by: Linus Torvalds

    Al Viro
     
  • Removal of rtt argument in ->cong_avoid() had missed tcp_htcp.c
    instance.

    Signed-off-by: Al Viro
    Signed-off-by: Linus Torvalds

    Al Viro
     
  • * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/selinux-2.6:
    SELinux: use SECINITSID_NETMSG instead of SECINITSID_UNLABELED for NetLabel
    SELinux: enable dynamic activation/deactivation of NetLabel/SELinux enforcement

    Linus Torvalds
     
  • * 'for-linus' of git://oss.sgi.com:8090/xfs/xfs-2.6:
    [XFS] Fix inode size update before data write in xfs_setattr
    [XFS] Allow punching holes to free space when at ENOSPC
    [XFS] Implement ->page_mkwrite in XFS.
    [FS] Implement block_page_mkwrite.

    Manually fix up conflict with Nick's VM fault handling patches in
    fs/xfs/linux-2.6/xfs_file.c

    Signed-off-by: Linus Torvalds

    Linus Torvalds
     
  • Currently, CONFIG_X86_CMPXCHG64 both enables boot-time checking of
    the cmpxchg64b feature and enables compilation of the set_64bit() family.
    Since the option is dependent on PAE, and since KVM depends on set_64bit(),
    this effectively disables KVM on i386 nopae.

    Simplify by removing the config option altogether: the boot check is made
    dependent on CONFIG_X86_PAE directly, and the set_64bit() family is exposed
    without constraints. It is up to users to check for the feature flag (KVM
    does not as virtualiation extensions imply its existence).

    Signed-off-by: Avi Kivity
    Signed-off-by: Linus Torvalds

    Avi Kivity
     
  • * git://git.linux-nfs.org/pub/linux/nfs-2.6:
    NFSv4: handle lack of clientaddr in option string
    NFSv4: debug print ntohl(status) in nfs client callback xdr code
    SUNRPC: Clean up the sillyrename code
    NFS: Introduce struct nfs_removeargs+nfs_removeres
    NFS: Use dentry->d_time to store the parent directory verifier.
    SUNRPC: move bkl locking and xdr proc invocation into a common helper
    NFSv4: Fix the nfsv4 readlink reply buffer alignment
    NFSv4: Fix the readdir reply buffer alignment
    NFSv4: More NFSv4 xdr cleanups
    NFSv4: Try to recover from getfh failures in nfs4_xdr_dec_open
    NFSv4: 'constify' lookup arguments.
    NFSv4: Don't fail nfs4_xdr_dec_open if decode_restorefh() failed
    NFSv4: Fix open state recovery
    NFSD/SUNRPC: Fix the automatic selection of RPCSEC_GSS

    Linus Torvalds
     
  • With the new setup code, we generate a couple more files

    Signed-off-by: Matthew Wilcox
    [ .. and do the same for x86-64 - Alexey ]
    Acked-by: Alexey Dobriyan
    Acked-by: H. Peter Anvin
    Signed-off-by: Linus Torvalds

    Matthew Wilcox
     
  • 83c54070ee1a2d05c89793884bea1a03f2851ed4 broke spufs by incorrectly
    updating the code, this patch gets it to compile again.

    It's probably still broken due to the scheduler changes, but this
    at least makes sure cell kernels can still be built.

    Signed-off-by: Christoph Hellwig
    Cc: Arnd Bergmann
    Acked-by: Geoff Levand
    Cc: Paul Mackerras
    Cc: Nick Piggin
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Christoph Hellwig
     
  • * git://git.kernel.org/pub/scm/linux/kernel/git/sam/kbuild: (33 commits)
    xtensa: use DATA_DATA in xtensa
    powerpc: add missing DATA_DATA to powerpc
    cris: use DATA_DATA in cris
    kallsyms: remove usage of memmem and _GNU_SOURCE from scripts/kallsyms.c
    kbuild: use -fno-optimize-sibling-calls unconditionally
    kconfig: reset generated values only if Kconfig and .config agree.
    kbuild: fix the warning when running make tags
    kconfig: strip 'CONFIG_' automatically in kernel configuration search
    kbuild: use POSIX BRE in headers install target
    Whitelist references from __dbe_table to .init
    modpost white list pattern adjustment
    kbuild: do section mismatch check on full vmlinux
    kbuild: whitelist references from variables named _timer to .init.text
    kbuild: remove hardcoded _logo names from modpost
    kbuild: remove hardcoded apic_es7000 from modpost
    kbuild: warn about references from .init.text to .exit.text
    kbuild: consolidate section checks
    kbuild: refactor code in modpost to improve maintainability
    kbuild: ignore section mismatch warnings originating from .note section
    kbuild: .paravirtprobe section is obsolete, so modpost doesn't need to handle it
    ...

    Linus Torvalds
     
  • * 'release' of git://lm-sensors.org/kernel/mhoffman/hwmon-2.6: (44 commits)
    i2c: Delete the i2c-isa pseudo bus driver
    hwmon: refuse to load abituguru driver on non-Abit boards
    hwmon: fix Abit Uguru3 driver detection on some motherboards
    hwmon/w83627ehf: Be quiet when no chip is found
    hwmon/w83627ehf: No need to initialize fan_min
    hwmon/w83627ehf: Export the thermal sensor types
    hwmon/w83627ehf: Enable VBAT monitoring
    hwmon/w83627ehf: Add support for the VID inputs
    hwmon/w83627ehf: Fix timing issues
    hwmon/w83627ehf: Add error messages for two error cases
    hwmon/w83627ehf: Convert to a platform driver
    hwmon/w83627ehf: Update the Kconfig entry
    make coretemp_device_remove() static
    hwmon: Add LM93 support
    hwmon: Improve the pwmN_enable documentation
    hwmon/smsc47b397: Don't report missing fans as spinning at 82 RPM
    hwmon: Add support for newer uGuru's
    hwmon/f71805f: Add temperature-tracking fan control mode
    hwmon/w83627ehf: Preserve speed reading when changing fan min
    hwmon: fix detection of abituguru volt inputs
    ...

    Manual fixup of trivial conflict in MAINTAINERS file

    Linus Torvalds
     
  • If root raised the default wakeup threshold over the size of the
    output pool, the pool transfer function could overflow the stack with
    RNG bytes, causing a DoS or potential privilege escalation.

    (Bug reported by the PaX Team )

    Cc: Theodore Tso
    Cc: Willy Tarreau
    Signed-off-by: Matt Mackall
    Signed-off-by: Chris Wright
    Signed-off-by: Linus Torvalds

    Matt Mackall
     
  • * 'upstream-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mfasheh/ocfs2:
    ocfs2: ->fallocate() support

    Linus Torvalds
     
  • * git://git.kernel.org/pub/scm/linux/kernel/git/mingo/linux-2.6-sched:
    [PATCH] sched: implement cpu_clock(cpu) high-speed time source
    [PATCH] sched: fix the all pinned logic in load_balance_newidle()
    [PATCH] sched: fix newly idle load balance in case of SMT
    [PATCH] sched: sched_cacheflush is now unused

    Linus Torvalds
     
  • When a CONFIG_USER_NS=n and a user tries to unshare some namespace other
    than the user namespace, the dummy copy_user_ns returns NULL rather than
    the old_ns.

    This value then gets assigned to task->nsproxy->user_ns, so that a
    subsequent setuid, which uses task->nsproxy->user_ns, causes a NULL
    pointer deref.

    Fix this by returning old_ns.

    Signed-off-by: Serge E. Hallyn
    Signed-off-by: Linus Torvalds

    Serge E. Hallyn
     
  • The slab and slob allocators already did this right, but slub would call
    "get_object_page()" on the magic ZERO_SIZE_PTR, with all kinds of nasty
    end results.

    Noted by Ingo Molnar.

    Cc: Ingo Molnar
    Cc: Christoph Lameter
    Cc: Andrew Morton
    Signed-off-by: Linus Torvalds

    Linus Torvalds
     
  • I suspect Christoph tested his code only in the NUMA configuration, for
    the combination of SLAB+non-NUMA the zero-sized kmalloc's would not work.

    Of course, this would only trigger in configurations where those zero-
    sized allocations happen (not very common), so that may explain why it
    wasn't more widely noticed.

    Seen by by Andi Kleen under qemu, and there seems to be a report by
    Michael Tsirkin on it too.

    Cc: Andi Kleen
    Cc: Roland Dreier
    Cc: Michael S. Tsirkin
    Cc: Pekka Enberg
    Cc: Christoph Lameter
    Cc: Andrew Morton
    Signed-off-by: Linus Torvalds

    Linus Torvalds
     
  • Implement the cpu_clock(cpu) interface for kernel-internal use:
    high-speed (but slightly incorrect) per-cpu clock constructed from
    sched_clock().

    This API, unused at the moment, will be used in the future by blktrace,
    by the softlockup-watchdog, by printk and by lockstat.

    Signed-off-by: Ingo Molnar

    Ingo Molnar
     
  • nr_moved is not the correct check for triggering all pinned logic. Fix
    the all pinned logic in the case of load_balance_newidle().

    Signed-off-by: Suresh Siddha
    Signed-off-by: Ingo Molnar

    Suresh Siddha
     
  • In the presence of SMT, newly idle balance was never happening for
    multi-core and SMP domains (even when both the logical siblings are
    idle).

    If thread 0 is already idle and when thread 1 is about to go to idle,
    newly idle load balance always think that one of the threads is not idle
    and skips doing the newly idle load balance for multi-core and SMP
    domains.

    This is because of the idle_cpu() macro, which checks if the current
    process on a cpu is an idle process. But this is not the case for the
    thread doing the load_balance_newidle().

    Fix this by using runqueue's nr_running field instead of idle_cpu(). And
    also skip the logic of 'only one idle cpu in the group will be doing
    load balancing' during newly idle case.

    Signed-off-by: Suresh Siddha
    Signed-off-by: Ingo Molnar

    Suresh Siddha
     
  • Since Ingo's recent scheduler rewrite which was merged as commit
    0437e109e1841607f2988891eaa36c531c6aa6ac sched_cacheflush is unused.

    Signed-off-by: Ralf Baechle
    Signed-off-by: Ingo Molnar

    Ralf Baechle
     
  • If a NFSv4 mount is attempted with string based options, and the
    option string doesn't contain a clientaddr= option, the kernel will
    currently oops. Check for this situation and return a proper error.

    Signed-off-by: Jeff Layton
    Signed-off-by: Trond Myklebust

    Jeff Layton
     
  • status in nfs client callback xdr code is passed in network order.
    print it in host order for better readability.

    Signed-off-by: Benny Halevy
    Signed-off-by: Trond Myklebust

    Benny Halevy
     
  • Fix a couple of bugs:
    - Don't rely on the parent dentry still being valid when the call completes.
    Fixes a race with shrink_dcache_for_umount_subtree()

    - Don't remove the file if the filehandle has been labelled as stale.

    Fix a couple of inefficiencies
    - Remove the global list of sillyrenamed files. Instead we can cache the
    sillyrename information in the dentry->d_fsdata
    - Move common code from unlink_setup/unlink_done into fs/nfs/unlink.c

    Signed-off-by: Trond Myklebust

    Trond Myklebust
     
  • We need a common structure for setting up an unlink() rpc call in order to
    fix the asynchronous unlink code.

    Signed-off-by: Trond Myklebust

    Trond Myklebust
     
  • This will free up the d_fsdata field for other use.

    Signed-off-by: Trond Myklebust

    Trond Myklebust
     
  • Since every invocation of xdr encode or decode functions takes the BKL now,
    there's a lot of redundant lock_kernel/unlock_kernel pairs that we can pull
    out into a common function.

    Signed-off-by: J. Bruce Fields
    Signed-off-by: Trond Myklebust

    J. Bruce Fields
     
  • Signed-off-by: Trond Myklebust

    Trond Myklebust
     
  • Signed-off-by: Trond Myklebust

    Trond Myklebust
     
  • Signed-off-by: Trond Myklebust

    Trond Myklebust
     
  • Try harder to recover the open state if the server failed to return a
    filehandle.

    Signed-off-by: Trond Myklebust

    Trond Myklebust
     
  • Signed-off-by: Trond Myklebust

    Trond Myklebust
     
  • We can already easily recover from that inside _nfs4_proc_open().

    Signed-off-by: Trond Myklebust

    Trond Myklebust
     
  • Ensure that opendata->state is always initialised when we do state
    recovery.

    Ensure that we set the filehandle in the case where we're doing an
    "OPEN_CLAIM_PREVIOUS" call due to a server reboot.

    Signed-off-by: Trond Myklebust

    Trond Myklebust
     
  • Bruce's patch broke the ability to compile RPCSEC_GSS as a module.

    Signed-off-by: Trond Myklebust

    Trond Myklebust
     
  • There are no users of i2c-isa left, so we can finally get rid of it.

    Signed-off-by: Jean Delvare

    Jean Delvare
     
  • With this patch the abituguru refuses to load on non Abit motherboards, as
    discussed in lkml CONFIG_BREAK_MY_MACHINE thread.

    Signed-off-by: Hans de Goede
    Acked-by: Jean Delvare
    Signed-off-by: Mark M. Hoffman

    Hans de Goede
     
  • This patch changes the driver to also detect uguru3's which hold 0x08 at DATA
    initially, as has been reported here:
    https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=220160

    Also when an uguru3's holds 0x0014 in the ID register it will now report
    "Abit AB9 Pro" as motherboard identification.

    Signed-off-by: Hans de Goede
    Signed-off-by: Mark M. Hoffman

    Hans de Goede
     
  • This fixes bug #8593:
    http://bugzilla.kernel.org/show_bug.cgi?id=8593

    Signed-off-by: Jean Delvare
    Signed-off-by: Mark M. Hoffman

    Jean Delvare
     
  • We don't need to initialize fan_min in this driver, as the fan_div
    attributes are read-only.

    Signed-off-by: Jean Delvare
    Signed-off-by: Mark M. Hoffman

    Jean Delvare
     
  • Add support for the w83627ehf thermal sensor types. I made them read-only,
    as the BIOS is supposed to set them up properly. This information makes it
    easier to find out which temperature channel corresponds to the CPU.

    Signed-off-by: Jean Delvare
    Signed-off-by: Mark M. Hoffman

    Jean Delvare