15 Dec, 2010

1 commit

  • * 'bugfixes' of git://git.linux-nfs.org/projects/trondmy/nfs-2.6:
    NFS: Fix panic after nfs_umount()
    nfs: remove extraneous and problematic calls to nfs_clear_request
    nfs: kernel should return EPROTONOSUPPORT when not support NFSv4
    NFS: Fix fcntl F_GETLK not reporting some conflicts
    nfs: Discard ACL cache on mode update
    NFS: Readdir cleanups
    NFS: nfs_readdir_search_for_cookie() don't mark as eof if cookie not found
    NFS: Fix a memory leak in nfs_readdir
    Call the filesystem back whenever a page is removed from the page cache
    NFS: Ensure we use the correct cookie in nfs_readdir_xdr_filler

    Linus Torvalds
     

08 Dec, 2010

1 commit

  • * 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mjg59/platform-drivers-x86:
    wmi: use memcmp instead of strncmp to compare GUIDs
    ACPI, hp-wmi: Fix memory leak in acpi query
    msi-wmi: fix semantically incorrect use of keycode instead of scancode
    msi-wmi: Add mute key support
    asus-laptop: add wimax and wwan support
    eeepc-wmi: fix compiler warning
    ibm_rtl: _RTL_ is not available in UEFI mode
    ibm_rtl: Loosen the DMI criteria to all IBM machines
    drivers/platform/x86/thinkpad_acpi.c: delete double assignment
    eeepc-wmi: add cpufv sysfs documentation
    toshiba_acpi.c: Add key_entry for a lone FN keypress
    ibm_rtl: fix printk format warning

    Linus Torvalds
     

03 Dec, 2010

3 commits


02 Dec, 2010

2 commits

  • NFS needs to be able to release objects that are stored in the page
    cache once the page itself is no longer visible from the page cache.

    This patch adds a callback to the address space operations that allows
    filesystems to perform page cleanups once the page has been removed
    from the page cache.

    Original patch by: Linus Torvalds
    [trondmy: cover the cases of invalidate_inode_pages2() and
    truncate_inode_pages()]
    Signed-off-by: Trond Myklebust

    Linus Torvalds
     
  • The new interface creates directories per mapped image
    and under each it creates a subdir per available snapshot.
    This allows keeping a cleaner interface within the sysfs
    guidelines. The ABI documentation was updated too.

    Acked-by: Greg Kroah-Hartman
    Signed-off-by: Yehuda Sadeh
    Signed-off-by: Sage Weil

    Yehuda Sadeh
     

30 Nov, 2010

2 commits

  • * git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6: (27 commits)
    af_unix: limit recursion level
    pch_gbe driver: The wrong of initializer entry
    pch_gbe dreiver: chang author
    ucc_geth: fix ucc halt problem in half duplex mode
    inet: Fix __inet_inherit_port() to correctly increment bsockets and num_owners
    ehea: Add some info messages and fix an issue
    hso: fix disable_net
    NET: wan/x25_asy, move lapb_unregister to x25_asy_close_tty
    cxgb4vf: fix setting unicast/multicast addresses ...
    net, ppp: Report correct error code if unit allocation failed
    DECnet: don't leak uninitialized stack byte
    au1000_eth: fix invalid address accessing the MAC enable register
    dccp: fix error in updating the GAR
    tcp: restrict net.ipv4.tcp_adv_win_scale (#20312)
    netns: Don't leak others' openreq-s in proc
    Net: ceph: Makefile: Remove unnessary code
    vhost/net: fix rcu check usage
    econet: fix CVE-2010-3848
    econet: fix CVE-2010-3850
    econet: disallow NULL remote addr for sendmsg(), fixes CVE-2010-3849
    ...

    Linus Torvalds
     
  • * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/bp/bp:
    EDAC: Fix typos in Documentation/edac.txt
    EDAC, MCE: Fix edac_init_mce_inject error handling
    EDAC: Remove deprecated kbuild goal definitions

    Linus Torvalds
     

29 Nov, 2010

1 commit

  • tcp_win_from_space() does the following:

    if (sysctl_tcp_adv_win_scale > (-sysctl_tcp_adv_win_scale);
    else
    return space - (space >> sysctl_tcp_adv_win_scale);

    "space" is int.

    As per C99 6.5.7 (3) shifting int for 32 or more bits is
    undefined behaviour.

    Indeed, if sysctl_tcp_adv_win_scale is exactly 32,
    space >> 32 equals space and function returns 0.

    Which means we busyloop in tcp_fixup_rcvbuf().

    Restrict net.ipv4.tcp_adv_win_scale to [-31, 31].

    Fix https://bugzilla.kernel.org/show_bug.cgi?id=20312

    Steps to reproduce:

    echo 32 >/proc/sys/net/ipv4/tcp_adv_win_scale
    wget www.kernel.org
    [softlockup]

    Signed-off-by: Alexey Dobriyan
    Signed-off-by: David S. Miller

    Alexey Dobriyan
     

26 Nov, 2010

1 commit


25 Nov, 2010

5 commits

  • …l/git/lethal/fbdev-2.6

    * 'fbdev-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/lethal/fbdev-2.6:
    sisfb: delete osdef.h
    sisfb: move the CONFIG warning to sis_main.c
    sisfb: replace SiS_SetMemory with memset_io
    sisfb: remove InPort/OutPort wrappers
    sisfb: use CONFIG_FB_SIS_301/315 instead of SIS301/315H
    sisfb: delete redudant #define SIS_LINUX_KERNEL
    sisfb: delete dead SIS_XORG_XF86 code
    sisfb: delete fallback code for pci_map_rom()
    sisfb: delete obsolete PCI ROM bug workaround
    fbdev: Update documentation index file.
    lxfb: Program panel v/h sync output polarity correctly
    fbcmap: integer overflow bug
    fbcmap: cleanup white space in fb_alloc_cmap()
    MAINTAINERS: Add fbdev patchwork entry, tidy up file patterns.
    fbdev: da8xx: punt duplicated FBIO_WAITFORVSYNC define
    fbdev: sh_mobile_lcdcfb: fix bug in reconfig()

    Linus Torvalds
     
  • * 'sh-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/lethal/sh-2.6:
    sh: clkfwk: Build fix for non-legacy CPG changes.
    sh: Use GCC __builtin_prefetch() to implement prefetch().
    sh: fix vsyscall compilation due to .eh_frame issue
    sh: avoid to flush all cache in sys_cacheflush
    sh: clkfwk: Disable init clk op for non-legacy clocks.
    sh: clkfwk: Kill off now unused algo_id in set_rate op.
    sh: clkfwk: Kill off unused clk_set_rate_ex().

    Linus Torvalds
     
  • Swap accounting can be configured by CONFIG_CGROUP_MEM_RES_CTLR_SWAP
    configuration option and then it is turned on by default. There is a boot
    option (noswapaccount) which can disable this feature.

    This makes it hard for distributors to enable the configuration option as
    this feature leads to a bigger memory consumption and this is a no-go for
    general purpose distribution kernel. On the other hand swap accounting
    may be very usuful for some workloads.

    This patch adds a new configuration option which controls the default
    behavior (CGROUP_MEM_RES_CTLR_SWAP_ENABLED). If the option is selected
    then the feature is turned on by default.

    It also adds a new boot parameter swapaccount[=1|0] which enhances the
    original noswapaccount parameter semantic by means of enable/disable logic
    (defaults to 1 if no value is provided to be still consistent with
    noswapaccount).

    The default behavior is unchanged (if CONFIG_CGROUP_MEM_RES_CTLR_SWAP is
    enabled then CONFIG_CGROUP_MEM_RES_CTLR_SWAP_ENABLED is enabled as well)

    Signed-off-by: Michal Hocko
    Acked-by: Daisuke Nishimura
    Cc: Balbir Singh
    Cc: KAMEZAWA Hiroyuki
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Michal Hocko
     
  • Asus UL30A has a 3G chip, but the radio is disabled by default.
    The DSDT also reference a WIMAX device, which is not present on this model.

    This patch adds two new files: wwan and wimax to control WWAN and
    WIMAX devices. It does not use rfkill, because like WLED and BLED,
    we don't know yet that the two ACPI functions will always control the
    radio, they may control only the leds on some hardware.

    We may add rfkill switchs later.

    Signed-off-by: Corentin Chary
    Signed-off-by: Matthew Garrett

    Corentin Chary
     
  • Based on cpufv text from sysfs-platform-eeepc-laptop that
    has almost same behavior.

    Signed-off-by: Chris Bagwell
    Signed-off-by: Matthew Garrett
    Acked-by: Corentin Chary

    Chris Bagwell
     

19 Nov, 2010

5 commits


18 Nov, 2010

1 commit


17 Nov, 2010

1 commit


16 Nov, 2010

4 commits


15 Nov, 2010

1 commit


13 Nov, 2010

4 commits

  • * git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6: (66 commits)
    can-bcm: fix minor heap overflow
    gianfar: Do not call device_set_wakeup_enable() under a spinlock
    ipv6: Warn users if maximum number of routes is reached.
    docs: Add neigh/gc_thresh3 and route/max_size documentation.
    axnet_cs: fix resume problem for some Ax88790 chip
    ipv6: addrconf: don't remove address state on ifdown if the address is being kept
    tcp: Don't change unlocked socket state in tcp_v4_err().
    x25: Prevent crashing when parsing bad X.25 facilities
    cxgb4vf: add call to Firmware to reset VF State.
    cxgb4vf: Fail open if link_start() fails.
    cxgb4vf: flesh out PCI Device ID Table ...
    cxgb4vf: fix some errors in Gather List to skb conversion
    cxgb4vf: fix bug in Generic Receive Offload
    cxgb4vf: don't implement trivial (and incorrect) ndo_select_queue()
    ixgbe: Look inside vlan when determining offload protocol.
    bnx2x: Look inside vlan when determining checksum proto.
    vlan: Add function to retrieve EtherType from vlan packets.
    virtio-net: init link state correctly
    ucc_geth: Fix deadlock
    ucc_geth: Do not bring the whole IF down when TX failure.
    ...

    Linus Torvalds
     
  • Signed-off-by: Ben Greear
    Signed-off-by: David S. Miller

    Ben Greear
     
  • * 'for-linus' of git://git.kernel.dk/linux-2.6-block: (27 commits)
    block: remove unused copy_io_context()
    Documentation: remove anticipatory scheduler info
    block: remove REQ_HARDBARRIER
    ioprio: rcu_read_lock/unlock protect find_task_by_vpid call (V2)
    ioprio: fix RCU locking around task dereference
    block: ioctl: fix information leak to userland
    block: read i_size with i_size_read()
    cciss: fix proc warning on attempt to remove non-existant directory
    bio: take care not overflow page count when mapping/copying user data
    block: limit vec count in bio_kmalloc() and bio_alloc_map_data()
    block: take care not to overflow when calculating total iov length
    block: check for proper length of iov entries in blk_rq_map_user_iov()
    cciss: remove controllers supported by hpsa
    cciss: use usleep_range not msleep for small sleeps
    cciss: limit commands allocated on reset_devices
    cciss: Use kernel provided PCI state save and restore functions
    cciss: fix board status waiting code
    drbd: Removed checks for REQ_HARDBARRIER on incomming BIOs
    drbd: REQ_HARDBARRIER -> REQ_FUA transition for meta data accesses
    drbd: Removed the BIO_RW_BARRIER support form the receiver/epoch code
    ...

    Linus Torvalds
     
  • * 'for-linus' of git://oss.sgi.com/xfs/xfs:
    xfs: remove incorrect assert in xfs_vm_writepage
    xfs: use hlist_add_fake
    xfs: fix a few compiler warnings with CONFIG_XFS_QUOTA=n
    xfs: tell lockdep about parent iolock usage in filestreams
    xfs: move delayed write buffer trace
    xfs: fix per-ag reference counting in inode reclaim tree walking
    xfs: xfs_ioctl: fix information leak to userland
    xfs: remove experimental tag from the delaylog option

    Linus Torvalds
     

12 Nov, 2010

4 commits

  • Create sub directory Documentation/leds and add short documentation for
    LP5521 and LP5523 drivers.

    Signed-off-by: Samu Onkalo
    Cc: Richard Purdie
    Cc: Jean Delvare
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Samu Onkalo
     
  • Currently, blinking LEDs can be awkward because it is not guaranteed that
    all LEDs implement blinking. The trigger that wants it to blink then
    needs to implement its own timer solution.

    Rather than require that, add led_blink_set() API that triggers can use.
    This function will attempt to use hw blinking, but if that fails
    implements a timer for it. To stop blinking again, brightness_set() also
    needs to be wrapped into API that will stop the software blink.

    As a result of this, the timer trigger becomes a very trivial one, and
    hopefully we can finally see triggers using blinking as well because it's
    always easy to use.

    Signed-off-by: Johannes Berg
    Acked-by: Richard Purdie
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Johannes Berg
     
  • The kernel syslog contains debugging information that is often useful
    during exploitation of other vulnerabilities, such as kernel heap
    addresses. Rather than futilely attempt to sanitize hundreds (or
    thousands) of printk statements and simultaneously cripple useful
    debugging functionality, it is far simpler to create an option that
    prevents unprivileged users from reading the syslog.

    This patch, loosely based on grsecurity's GRKERNSEC_DMESG, creates the
    dmesg_restrict sysctl. When set to "0", the default, no restrictions are
    enforced. When set to "1", only users with CAP_SYS_ADMIN can read the
    kernel syslog via dmesg(8) or other mechanisms.

    [akpm@linux-foundation.org: explain the config option in kernel.txt]
    Signed-off-by: Dan Rosenberg
    Acked-by: Ingo Molnar
    Acked-by: Eugene Teo
    Acked-by: Kees Cook
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Dan Rosenberg
     
  • /proc/pid/oom_adj was deprecated in August 2010 with the introduction of
    the new oom killer heuristic.

    This patch copies the Documentation/feature-removal-schedule.txt entry for
    this tunable to the Documentation/ABI/obsolete directory so nobody misses
    it.

    Signed-off-by: David Rientjes
    Reported-by: Alan Cox
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    David Rientjes
     

11 Nov, 2010

4 commits