01 Feb, 2012

1 commit

  • There are few important bug fixes for LogFS

    * tag 'for-linus' of git://github.com/prasad-joshi/logfs_upstream:
    Logfs: Allow NULL block_isbad() methods
    logfs: Grow inode in delete path
    logfs: Free areas before calling generic_shutdown_super()
    logfs: remove useless BUG_ON
    MAINTAINERS: Add Prasad Joshi in LogFS maintiners
    logfs: Propagate page parameter to __logfs_write_inode
    logfs: set superblock shutdown flag after generic sb shutdown
    logfs: take write mutex lock during fsync and sync
    logfs: Prevent memory corruption
    logfs: update page reference count for pined pages

    Fix up conflict in fs/logfs/dev_mtd.c due to semantic change in what
    "mtd->block_isbad" means in commit f2933e86ad93: "Logfs: Allow NULL
    block_isbad() methods" clashing with the abstraction changes in the
    commits 7086c19d0742: "mtd: introduce mtd_block_isbad interface" and
    d58b27ed58a3: "logfs: do not use 'mtd->block_isbad' directly".

    This resolution takes the semantics from commit f2933e86ad93, and just
    makes mtd_block_isbad() return zero (false) if the 'block_isbad'
    function is NULL. But that also means that now "mtd_can_have_bb()"
    always returns 0.

    Now, "mtd_block_markbad()" will obviously return an error if the
    low-level driver doesn't support bad blocks, so this is somewhat
    non-symmetric, but it actually makes sense if a NULL "block_isbad"
    function is considered to mean "I assume that all my blocks are always
    good".

    Linus Torvalds
     

31 Jan, 2012

3 commits

  • Here are a bunch of USB patches for 3.3-rc1.

    Nothing major, largest thing here is the removal of some drivers that
    did not work at all. Other than that, the normal collection of bugfixes
    and new device ids.

    Signed-off-by: Greg Kroah-Hartman

    * tag 'usb-3.3-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb: (52 commits)
    uwb & wusb: fix kconfig error
    USB: Realtek cr: fix autopm scheduling while atomic
    USB: ftdi_sio: Add more identifiers
    xHCI: Cleanup isoc transfer ring when TD length mismatch found
    usb: musb: omap2430: minor cleanups.
    qcaux: add more Pantech UML190 and UML290 ports
    Revert "drivers: usb: Fix dependency for USB_HWA_HCD"
    usb: mv-otg - Fix build if CONFIG_USB is not set
    USB: cdc-wdm: Avoid hanging on interface with no USB_CDC_DMM_TYPE
    usb: add support for STA2X11 host driver
    drivers: usb: Fix dependency for USB_HWA_HCD
    kernel-doc: fix new warning in usb.h
    USB: OHCI: fix new compiler warnings
    usb: serial: kobil_sct: fix compile warning:
    drivers/usb/host/ehci-fsl.c: add missing iounmap
    USB: cdc-wdm: better allocate a buffer that is at least as big as we tell the USB core
    USB: cdc-wdm: call wake_up_all to allow driver to shutdown on device removal
    USB: cdc-wdm: use two mutexes to allow simultaneous read and write
    USB: cdc-wdm: updating desc->length must be protected by spin_lock
    USB: usbsevseg: fix max length
    ...

    Linus Torvalds
     
  • 1) Setting link attributes can modify the size of the attributes that
    would be reported on a subsequent getlink netlink operation,
    therefore min_ifinfo_dump_size needs to be adjusted. From Stefan
    Gula.

    2) Resegmentation of TSO frames while trimming can violate invariants
    expected by callers, namely that the number of segments can only stay
    the same or decrease, never increase. If MSS changes, however, we
    can trim data but then end up with more segments. Fix this by only
    segmenting to the MSS already recorded in the SKB. That's the
    simplest fix for now and if we want to get more fancy in the future
    that's a more involved change.

    This probably explains some retransmit counter inaccuracies.

    From Neal Cardwell.

    3) Fix too-many-wakeups in POLL with AF_UNIX sockets, from Eric Dumazet.

    4) Fix CAIF crashes wrt. namespace handling. From Eric Dumazet and
    Eric W. Biederman.

    5) TCP port selection fixes from Flavio Leitner.

    6) More socket memory cgroup build fixes in certain randonfig
    situations. From Glauber Costa.

    7) Fix TCP memory sysctl regression reported by Ingo Molnar, also from
    Glauber Costa.

    * git://git.kernel.org/pub/scm/linux/kernel/git/davem/net:
    af_unix: fix EPOLLET regression for stream sockets
    tcp: fix tcp_trim_head() to adjust segment count with skb MSS
    net/tcp: Fix tcp memory limits initialization when !CONFIG_SYSCTL
    net caif: Register properly as a pernet subsystem.
    netns: Fail conspicously if someone uses net_generic at an inappropriate time.
    net: explicitly add jump_label.h header to sock.h
    net: RTNETLINK adjusting values of min_ifinfo_dump_size
    ipv6: Fix ip_gre lockless xmits.
    xen-netfront: correct MAX_TX_TARGET calculation.
    netns: fix net_alloc_generic()
    tcp: bind() optimize port allocation
    tcp: bind() fix autoselection to share ports
    l2tp: l2tp_ip - fix possible oops on packet receive
    iwlwifi: fix PCI-E transport "inta" race
    mac80211: set bss_conf.idle when vif is connected
    mac80211: update oper_channel on ibss join

    Linus Torvalds
     
  • sysctl_tcp_mem() initialization was moved to sysctl_tcp_ipv4.c
    in commit 3dc43e3e4d0b52197d3205214fe8f162f9e0c334, since it
    became a per-ns value.

    That code, however, will never run when CONFIG_SYSCTL is
    disabled, leading to bogus values on those fields - causing hung
    TCP sockets.

    This patch fixes it by keeping an initialization code in
    tcp_init(). It will be overwritten by the first net namespace
    init if CONFIG_SYSCTL is compiled in, and do the right thing if
    it is compiled out.

    It is also named properly as tcp_init_mem(), to properly signal
    its non-sysctl side effect on TCP limits.

    Reported-by: Ingo Molnar
    Signed-off-by: Glauber Costa
    Cc: David S. Miller
    Link: http://lkml.kernel.org/r/4F22D05A.8030604@parallels.com
    [ renamed the function, tidied up the changelog a bit ]
    Signed-off-by: Ingo Molnar
    Signed-off-by: David S. Miller

    Glauber Costa
     

30 Jan, 2012

1 commit

  • Commit 2aede851ddf08666f68ffc17be446420e9d2a056

    PM / Hibernate: Freeze kernel threads after preallocating memory

    introduced a mechanism by which kernel threads were frozen after
    the preallocation of hibernate image memory to avoid problems with
    frozen kernel threads not responding to memory freeing requests.
    However, it overlooked the s2disk code path in which the
    SNAPSHOT_CREATE_IMAGE ioctl was run directly after SNAPSHOT_FREE,
    which caused freeze_workqueues_begin() to BUG(), because it saw
    that worqueues had been already frozen.

    Although in principle this issue might be addressed by removing
    the relevant BUG_ON() from freeze_workqueues_begin(), that would
    reintroduce the very problem that commit 2aede851ddf08666f68ffc17be4
    attempted to avoid into that particular code path. For this reason,
    to fix the issue at hand, introduce thaw_kernel_threads() and make
    the SNAPSHOT_FREE ioctl execute it.

    Special thanks to Srivatsa S. Bhat for detailed analysis of the
    problem.

    Reported-and-tested-by: Jiri Slaby
    Signed-off-by: Rafael J. Wysocki
    Acked-by: Srivatsa S. Bhat
    Cc: stable@kernel.org

    Rafael J. Wysocki
     

29 Jan, 2012

2 commits

  • …ernel/git/gregkh/driver-core

    Here are some patches for the 3.3-rc1 tree.

    It contains the removal of the sysdev code, now that all users of it are
    gone, as well as some sysfs bugfixes that have been reported by users.
    There are also some documentation updates here as well.

    * tag 'driver-core-3.3-rc1-bugfixes' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core:
    sysfs: Complain bitterly about attempts to remove files from nonexistent directories.
    stable: update documentation to ask for kernel version
    base/core.c:fix typo in comment in function device_add
    Documentation: devres: add allocation functions to list of supported calls
    Documentation update for the driver model core
    kernel-doc: fix new warnings in driver-core
    kernel-doc: fix new warnings in debugfs
    kernel-doc: fix new warnings in device.h
    driver core: remove drivers/base/sys.c and include/linux/sysdev.h

    Linus Torvalds
     
  • * 'fixes' of git://git.linaro.org/people/rmk/linux-arm: (31 commits)
    ARM: 7304/1: ioremap: fix boundary check when reusing static mapping
    ARM: 7301/1: Rename the T() macro to TUSER() to avoid namespace conflicts
    ARM: 7299/1: ftrace: clear zero bit in reported IPs for Thumb-2
    ARM: 7298/1: realview: fix mapping of MPCore private memory region
    PCMCIA: fix sa1111 oops on remove
    ARM: 7288/1: mach-sa1100: add missing module_init() call
    ARM: 7297/1: smp_twd: make sure timer is stopped before registering it
    ARM: 7296/1: proc-v7.S: remove HARVARD_CACHE preprocessor guards
    ARM: 7295/1: cortex-a7: move proc_info out of !CONFIG_ARM_LPAE block
    ARM: 7293/1: logical_cpu_map: decouple CPU mapping from SMP
    ARM: 7291/1: cache: assume 64-byte L1 cachelines for ARMv7 CPUs
    ARM: 7290/1: vmlinux.lds.S: align the exception fixup table to a 4-byte boundary
    ARM: 7289/1: vmlinux.lds.S: do not hardcode cacheline size as 32 bytes
    MFD: ucb1x00-ts: fix resume failure
    MFD: ucb1x00-core: fix gpiolib direction_output handling
    MFD: ucb1x00-core: fix missing restore of io output data on resume
    MFD: mcp-core: fix mcp_priv() to be more type safe
    MFD: mcp-core: fix complaints from the genirq layer
    Revert "ARM: sa11x0: Implement autoloading of codec and codec pdata for mcp bus."
    Revert "ARM: sa1100: Refactor mcp-sa11x0 to use platform resources."
    ...

    Fix up conflict due to arch/arm/mach-mx5/Kconfig having been merged into
    mach-imx5 (commit 784a90c0a7d8: "ARM i.MX: Merge i.MX5 support into
    mach-imx"), but the ARM_L1_CACHE_SHIFT_6 entry was moved to be driven by
    the CPU_V7 logic from it in the old location in rmk's branch (commit
    a092f2b15399: "ARM: 7291/1: cache: assume 64-byte L1 cachelines for
    ARMv7 CPUs").

    Linus Torvalds
     

28 Jan, 2012

1 commit

  • By definition net_generic should never be called when it can return
    NULL. Fail conspicously with a BUG_ON to make it clear when people mess
    up that a NULL return should never happen.

    Recently there was a bug in the CAIF subsystem where it was registered
    with register_pernet_device instead of register_pernet_subsys. It was
    erroneously concluded that net_generic could validly return NULL and
    that net_assign_generic was buggy (when it was just inefficient).
    Hopefully this BUG_ON will prevent people to coming to similar erroneous
    conclusions in the futrue.

    Signed-off-by: Eric W. Biederman
    Tested-by: Sasha Levin
    Signed-off-by: David S. Miller

    Eric W. Biederman
     

27 Jan, 2012

2 commits

  • Commit 36a1211970193ce215de50ed1e4e1272bc814df1 removed linux/module.h
    include statement from one of the headers that end up in net/sock.h.
    It was providing us with static_branch() definition implicitly, so
    after its removal the build got broken.

    To fix this, and avoid having this happening in the future,
    let me do the right thing and include linux/jump_label.h
    explicitly in sock.h.

    Signed-off-by: Glauber Costa
    Reported-by: Randy Dunlap
    CC: David S. Miller
    Signed-off-by: David S. Miller

    Glauber Costa
     
  • * 'core-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
    rcu: Add missing __cpuinit annotation in rcutorture code
    sched: Add "const" to is_idle_task() parameter
    rcu: Make rcutorture bool parameters really bool (core code)
    memblock: Fix alloc failure due to dumb underflow protection in memblock_find_in_range_node()

    Linus Torvalds
     

26 Jan, 2012

1 commit

  • * 'drm-fixes' of git://people.freedesktop.org/~airlied/linux:
    drm/ttm: fix two regressions since move_notify changes
    drm/radeon: avoid deadlock if GPU lockup is detected in ib_pool_get
    drm/radeon: silence out possible lock dependency warning
    drm: Fix authentication kernel crash
    gma500: Fix shmem mapping
    drm/radeon/kms: refine TMDS dual link checks
    drm/radeon/kms: use drm_detect_hdmi_monitor for picking encoder mode
    drm/radeon/kms: rework modeset sequence for DCE41 and DCE5
    drm/radeon/kms: move panel mode setup into encoder mode set
    drm/radeon/kms: move disp eng pll setup to init path
    drm/radeon: finish getting bios earlier
    drm/radeon: fix invalid memory access in radeon_atrm_get_bios()
    drm/radeon/kms: add some missing semaphore init
    drm/radeon/kms: Add an MSI quirk for Dell RS690
    gpu, drm, sis: Don't return uninitialized variable from sis_driver_load()

    Linus Torvalds
     

25 Jan, 2012

9 commits

  • * 'for-greg' of git://git.kernel.org/pub/scm/linux/kernel/git/balbi/usb:
    usb: musb: omap2430: minor cleanups.
    usb: dwc3: unmap the proper number of sg entries
    usb: musb: fix shutdown while usb gadget is in use
    usb: gadget: f_mass_storage: Use "bool" instead of "int" in fsg_module_parameters
    usb: gadget: check for streams only for SS udcs
    usb: gadget: fsl_udc: fix the usage of udc->max_ep
    drivers: usb: otg: Fix dependencies for some OTG drivers
    usb: renesas: silence uninitialized variable report in usbhsg_recip_run_handle()
    usb: gadget: SS Isoc endpoints use comp_desc->bMaxBurst too
    usb: gadget: storage: endian fix
    usb: dwc3: ep0: fix compile warning
    usb: musb: davinci: fix build breakage
    usb: gadget: langwell: don't call gadget's disconnect()
    usb: gadget: langwell: drop langwell_otg support
    usb: otg: kill langwell_otg driver
    usb: dwc3: ep0: tidy up Pending Request handling

    Greg Kroah-Hartman
     
  • If the master tries to authenticate a client using drm_authmagic and
    that client has already closed its drm file descriptor,
    either wilfully or because it was terminated, the
    call to drm_authmagic will dereference a stale pointer into kmalloc'ed memory
    and corrupt it.

    Typically this results in a hard system hang.

    This patch fixes that problem by removing any authentication tokens
    (struct drm_magic_entry) open for a file descriptor when that file
    descriptor is closed.

    Signed-off-by: Thomas Hellstrom
    Reviewed-by: Daniel Vetter
    Cc: stable@vger.kernel.org
    Signed-off-by: Dave Airlie

    Thomas Hellstrom
     
  • Quoth Len:
    "This fixes a merge-window regression due to a conflict
    between error injection and preparation to remove atomicio.c
    Here we fix that regression and complete the removal
    of atomicio.c.

    This also re-orders some idle initialization code to
    complete the merge window series that allows cpuidle
    to cope with bringing processors on-line after boot."

    * 'release' of git://git.kernel.org/pub/scm/linux/kernel/git/lenb/linux:
    Use acpi_os_map_memory() instead of ioremap() in einj driver
    ACPI, APEI, EINJ, cleanup 0 vs NULL confusion
    ACPI, APEI, EINJ Allow empty Trigger Error Action Table
    thermal: Rename generate_netlink_event
    ACPI / PM: Add Sony Vaio VPCCW29FX to nonvs blacklist.
    ACPI: Remove ./drivers/acpi/atomicio.[ch]
    ACPI, APEI: Add RAM mapping support to ACPI
    ACPI, APEI: Add 64-bit read/write support for APEI on i386
    ACPI processor hotplug: Delay acpi_processor_start() call for hotplugged cores
    ACPI processor hotplug: Split up acpi_processor_add

    Linus Torvalds
     
  • Davem says:

    1) Fix JIT code generation on x86-64 for divide by zero, from Eric Dumazet.

    2) tg3 header length computation correction from Eric Dumazet.

    3) More build and reference counting fixes for socket memory cgroup
    code from Glauber Costa.

    4) module.h snuck back into a core header after all the hard work we
    did to remove that, from Paul Gortmaker and Jesper Dangaard Brouer.

    5) Fix PHY naming regression and add some new PCI IDs in stmmac, from
    Alessandro Rubini.

    6) Netlink message generation fix in new team driver, should only advertise
    the entries that changed during events, from Jiri Pirko.

    7) SRIOV VF registration and unregistration fixes, and also add a
    missing PCI ID, from Roopa Prabhu.

    8) Fix infinite loop in tx queue flush code of brcmsmac, from Stanislaw Gruszka.

    9) ftgmac100/ftmac100 build fix, missing interrupt.h include.

    10) Memory leak fix in net/hyperv do_set_mutlicast() handling, from Wei Yongjun.

    11) Off by one fix in netem packet scheduler, from Vijay Subramanian.

    12) TCP loss detection fix from Yuchung Cheng.

    13) TCP reset packet MD5 calculation uses wrong address, fix from Shawn Lu.

    14) skge carrier assertion and DMA mapping fixes from Stephen Hemminger.

    15) Congestion recovery undo performed at the wrong spot in BIC and CUBIC
    congestion control modules, fix from Neal Cardwell.

    16) Ethtool ETHTOOL_GSSET_INFO is unnecessarily restrictive, from Michał Mirosław.

    17) Fix triggerable race in ipv6 sysctl handling, from Francesco Ruggeri.

    18) Statistics bug fixes in mlx4 from Eugenia Emantayev.

    19) rds locking bug fix during info dumps, from your's truly.

    * git://git.kernel.org/pub/scm/linux/kernel/git/davem/net: (67 commits)
    rds: Make rds_sock_lock BH rather than IRQ safe.
    netprio_cgroup.h: dont include module.h from other includes
    net: flow_dissector.c missing include linux/export.h
    team: send only changed options/ports via netlink
    net/hyperv: fix possible memory leak in do_set_multicast()
    drivers/net: dsa/mv88e6xxx.c files need linux/module.h
    stmmac: added PCI identifiers
    llc: Fix race condition in llc_ui_recvmsg
    stmmac: fix phy naming inconsistency
    dsa: Add reporting of silicon revision for Marvell 88E6123/88E6161/88E6165 switches.
    tg3: fix ipv6 header length computation
    skge: add byte queue limit support
    mv643xx_eth: Add Rx Discard and Rx Overrun statistics
    bnx2x: fix compilation error with SOE in fw_dump
    bnx2x: handle CHIP_REVISION during init_one
    bnx2x: allow user to change ring size in ISCSI SD mode
    bnx2x: fix Big-Endianess in ethtool -t
    bnx2x: fixed ethtool statistics for MF modes
    bnx2x: credit-leakage fixup on vlan_mac_del_all
    macvlan: fix a possible use after free
    ...

    Linus Torvalds
     
  • A considerable effort was invested in wiping out module.h
    from being present in all the other standard includes. This
    one leaked back in, but once again isn't strictly necessary,
    so remove it.

    Signed-off-by: Paul Gortmaker
    Signed-off-by: David S. Miller

    Paul Gortmaker
     
  • This patch changes event message behaviour to send only updated records
    instead of whole list. This fixes bug on which userspace receives non-actual
    data in case multiple events occur in row.

    Signed-off-by: Jiri Pirko
    Signed-off-by: David S. Miller

    Jiri Pirko
     
  • Fix new kernel-doc warning:

    Warning(include/linux/usb.h:1251): No description found for parameter 'num_mapped_sgs'

    Signed-off-by: Randy Dunlap
    Signed-off-by: Greg Kroah-Hartman

    Randy Dunlap
     
  • * 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jack/linux-fs:
    quota: Pass information that quota is stored in system file to userspace
    ext2: protect inode changes in the SETVERSION and SETFLAGS ioctls
    jbd: Issue cache flush after checkpointing

    Linus Torvalds
     
  • Fix new kernel-doc warnings:

    Warning(include/linux/device.h:299): No description found for parameter 'name'
    Warning(include/linux/device.h:299): No description found for parameter 'subsys'
    Warning(include/linux/device.h:299): No description found for parameter 'node'
    Warning(include/linux/device.h:299): No description found for parameter 'add_dev'
    Warning(include/linux/device.h:299): No description found for parameter 'remove_dev'
    Warning(include/linux/device.h:685): No description found for parameter 'id'
    Warning(include/linux/device.h:1009): No description found for parameter '__driver'
    Warning(include/linux/device.h:1009): No description found for parameter '__register'
    Warning(include/linux/device.h:1009): No description found for parameter '__unregister'

    Signed-off-by: Randy Dunlap
    Cc: Lars-Peter Clausen
    Cc: Greg Kroah-Hartman
    Signed-off-by: Greg Kroah-Hartman

    Randy Dunlap
     

24 Jan, 2012

14 commits

  • The way this driver was added by f0ae849 (usb: Add Intel Langwell USB
    OTG Transceiver Driver) never even compiled together with langwell_udc,
    and that's the only way for it to be useful.

    Signed-off-by: Alexander Shishkin
    Cc: stable@vger.kernel.org # v2.6.31+
    Cc: Heikki Krogerus
    Cc: Greg Kroah-Hartman
    Cc: Alan Cox
    Cc: linux-usb@vger.kernel.org
    Signed-off-by: Felipe Balbi

    Alexander Shishkin
     
  • so move its include into fs.h inside the __KERNEL__ protection.

    Signed-off-by: Stephen Rothwell
    Signed-off-by: Linus Torvalds

    Stephen Rothwell
     
  • Len Brown
     
  • Power management fixes for 3.3

    Two fixes for regressions introduced during the merge window, one fix for
    a long-standing obscure issue in the computation of hibernate image size
    and two small PM documentation fixes.

    * tag 'pm-fixes-for-3.3' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm:
    PM / Sleep: Fix read_unlock_usermodehelper() call.
    PM / Hibernate: Rewrite unlock_system_sleep() to fix s2disk regression
    PM / Hibernate: Correct additional pages number calculation
    PM / Documentation: Fix minor issue in freezing_of_tasks.txt
    PM / Documentation: Fix spelling mistake in basic-pm-debugging.txt

    Linus Torvalds
     
  • The usual kernel-doc fixups from Randy. Some of them David acked as
    merged in his tree, this is the random left-overs.

    * kernel-doc:
    docbook: fix sched source file names in device-drivers book
    docbook: change iomap source filename in deviceiobook
    docbook: don't use serial_core.h in device-drivers book
    kernel-doc: fix kernel-doc warnings in sched
    kernel-doc: fix new warnings in cfg80211.h
    kernel-doc: fix new warning in usb.h
    kernel-doc: fix new warnings in device.h
    kernel-doc: fix new warnings in debugfs
    kernel-doc: fix new warning in regulator core
    kernel-doc: fix new warnings in pci
    kernel-doc: fix new warnings in driver-core
    kernel-doc: fix new warnings in auditsc.c
    scripts/kernel-doc: fix fatal error caused by cfg80211.h

    Linus Torvalds
     
  • Quoth Andrew:
    "Random fixes. And a simple new LED driver which I'm trying to sneak
    in while you're not looking."

    Sneaking successful.

    * akpm:
    score: fix off-by-one index into syscall table
    mm: fix rss count leakage during migration
    SHM_UNLOCK: fix Unevictable pages stranded after swap
    SHM_UNLOCK: fix long unpreemptible section
    kdump: define KEXEC_NOTE_BYTES arch specific for s390x
    mm/hugetlb.c: undo change to page mapcount in fault handler
    mm: memcg: update the correct soft limit tree during migration
    proc: clear_refs: do not clear reserved pages
    drivers/video/backlight/l4f00242t03.c: return proper error in l4f00242t03_probe if regulator_get() fails
    drivers/video/backlight/adp88x0_bl.c: fix bit testing logic
    kprobes: initialize before using a hlist
    ipc/mqueue: simplify reading msgqueue limit
    leds: add led driver for Bachmann's ot200
    mm: __count_immobile_pages(): make sure the node is online
    mm: fix NULL ptr dereference in __count_immobile_pages
    mm: fix warnings regarding enum migrate_mode

    Linus Torvalds
     
  • * git://git.samba.org/sfrench/cifs-2.6:
    CIFS: Rename *UCS* functions to *UTF16*
    [CIFS] ACL and FSCACHE support no longer EXPERIMENTAL
    [CIFS] Fix build break with multiuser patch when LANMAN disabled
    cifs: warn about impending deprecation of legacy MultiuserMount code
    cifs: fetch credentials out of keyring for non-krb5 auth multiuser mounts
    cifs: sanitize username handling
    keys: add a "logon" key type
    cifs: lower default wsize when unix extensions are not used
    cifs: better instrumentation for coalesce_t2
    cifs: integer overflow in parse_dacl()
    cifs: Fix sparse warning when calling cifs_strtoUCS
    CIFS: Add descriptions to the brlock cache functions

    Linus Torvalds
     
  • Fix new kernel-doc notation warnings:

    Warning(include/linux/sched.h:2094): No description found for parameter 'p'
    Warning(include/linux/sched.h:2094): Excess function parameter 'tsk' description in 'is_idle_task'
    Warning(kernel/sched/cpupri.c:139): No description found for parameter 'newpri'
    Warning(kernel/sched/cpupri.c:139): Excess function parameter 'pri' description in 'cpupri_set'
    Warning(kernel/sched/cpupri.c:208): Excess function parameter 'bootmem' description in 'cpupri_init'

    Signed-off-by: Randy Dunlap
    Cc: Ingo Molnar
    Cc: Peter Zijlstra
    Signed-off-by: Linus Torvalds

    Randy Dunlap
     
  • Fix new kernel-doc warnings:

    Warning(include/net/cfg80211.h:1165): No description found for parameter 'channel_type'
    Warning(include/net/cfg80211.h:2090): No description found for parameter 'probe_resp_offload'

    Signed-off-by: Randy Dunlap
    Cc: Johannes Berg
    Cc: linux-wireless@vger.kernel.org
    Signed-off-by: Linus Torvalds

    Randy Dunlap
     
  • Fix new kernel-doc warning:

    Warning(include/linux/usb.h:1251): No description found for parameter 'num_mapped_sgs'

    Signed-off-by: Randy Dunlap
    Cc: Greg Kroah-Hartman
    Signed-off-by: Linus Torvalds

    Randy Dunlap
     
  • Fix new kernel-doc warnings:

    Warning(include/linux/device.h:299): No description found for parameter 'name'
    Warning(include/linux/device.h:299): No description found for parameter 'subsys'
    Warning(include/linux/device.h:299): No description found for parameter 'node'
    Warning(include/linux/device.h:299): No description found for parameter 'add_dev'
    Warning(include/linux/device.h:299): No description found for parameter 'remove_dev'
    Warning(include/linux/device.h:685): No description found for parameter 'id'
    Warning(include/linux/device.h:1009): No description found for parameter '__driver'
    Warning(include/linux/device.h:1009): No description found for parameter '__register'
    Warning(include/linux/device.h:1009): No description found for parameter '__unregister'

    Signed-off-by: Randy Dunlap
    Cc: Lars-Peter Clausen
    Cc: Greg Kroah-Hartman
    Signed-off-by: Linus Torvalds

    Randy Dunlap
     
  • Commit cc39c6a9bbde ("mm: account skipped entries to avoid looping in
    find_get_pages") correctly fixed an infinite loop; but left a problem
    that find_get_pages() on shmem would return 0 (appearing to callers to
    mean end of tree) when it meets a run of nr_pages swap entries.

    The only uses of find_get_pages() on shmem are via pagevec_lookup(),
    called from invalidate_mapping_pages(), and from shmctl SHM_UNLOCK's
    scan_mapping_unevictable_pages(). The first is already commented, and
    not worth worrying about; but the second can leave pages on the
    Unevictable list after an unusual sequence of swapping and locking.

    Fix that by using shmem_find_get_pages_and_swap() (then ignoring the
    swap) instead of pagevec_lookup().

    But I don't want to contaminate vmscan.c with shmem internals, nor
    shmem.c with LRU locking. So move scan_mapping_unevictable_pages() into
    shmem.c, renaming it shmem_unlock_mapping(); and rename
    check_move_unevictable_page() to check_move_unevictable_pages(), looping
    down an array of pages, oftentimes under the same lock.

    Leave out the "rotate unevictable list" block: that's a leftover from
    when this was used for /proc/sys/vm/scan_unevictable_pages, whose flawed
    handling involved looking at pages at tail of LRU.

    Was there significance to the sequence first ClearPageUnevictable, then
    test page_evictable, then SetPageUnevictable here? I think not, we're
    under LRU lock, and have no barriers between those.

    Signed-off-by: Hugh Dickins
    Reviewed-by: KOSAKI Motohiro
    Cc: Minchan Kim
    Cc: Rik van Riel
    Cc: Shaohua Li
    Cc: Eric Dumazet
    Cc: Johannes Weiner
    Cc: Michel Lespinasse
    Cc: [back to 3.1 but will need respins]
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Hugh Dickins
     
  • kdump only allocates memory for the prstatus ELF note. For s390x,
    besides of prstatus multiple ELF notes for various different register
    types are stored. Therefore the currently allocated memory is not
    sufficient. With this patch the KEXEC_NOTE_BYTES macro can be defined
    by architecture code and for s390x it is set to the correct size now.

    Signed-off-by: Michael Holzheu
    Cc: "Eric W. Biederman"
    Cc: Vivek Goyal
    Cc: Martin Schwidefsky
    Cc: Heiko Carstens
    Reviewed-by: Simon Horman
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Michael Holzheu
     
  • sparc64 allmodconfig:

    In file included from include/linux/compat.h:15,
    from /usr/src/25/arch/sparc/include/asm/siginfo.h:19,
    from include/linux/signal.h:5,
    from include/linux/sched.h:73,
    from arch/sparc/kernel/asm-offsets.c:13:
    include/linux/fs.h:618: warning: parameter has incomplete type

    It seems that my sparc64 compiler (gcc-3.4.5) doesn't like the forward
    declaration of enums.

    Fix this by moving the "enum migrate_mode" definition into its own header
    file.

    Acked-by: Mel Gorman
    Cc: Rik van Riel
    Cc: Andrea Arcangeli
    Cc: Minchan Kim
    Cc: Dave Jones
    Cc: Jan Kara
    Cc: Andy Isaacson
    Cc: Nai Xia
    Cc: Johannes Weiner
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Andrew Morton
     

23 Jan, 2012

6 commits

  • It doesn't seem right for the thermal subsystem to export a symbol
    named generate_netlink_event. This function is thermal-specific and
    its name should reflect that fact. Rename it to
    thermal_generate_netlink_event.

    Signed-off-by: Jean Delvare
    Acked-by: Rafael J. Wysocki
    Acked-by: R.Durgadoss
    Signed-off-by: Len Brown

    Jean Delvare
     
  • Now that all users of 'struct sysdev' are removed from the kernel, we
    can safely remove the .h and .c files for this code, to ensure that no
    one accidentally starts to use it again.

    Many thanks for Kay who did all the hard work here on making this
    happen.

    Cc: Kay Sievers
    Signed-off-by: Greg Kroah-Hartman

    Greg Kroah-Hartman
     
  • Fixes:

    net/bluetooth/hci_core.c: In function ‘__check_enable_hs’:
    net/bluetooth/hci_core.c:2587:1: warning: return from incompatible pointer type [enabled by default]

    Signed-off-by: David S. Miller

    David S. Miller
     
  • There is a case in __sk_mem_schedule(), where an allocation
    is beyond the maximum, but yet we are allowed to proceed.
    It happens under the following condition:

    sk->sk_wmem_queued + size >= sk->sk_sndbuf

    The network code won't revert the allocation in this case,
    meaning that at some point later it'll try to do it. Since
    this is never communicated to the underlying res_counter
    code, there is an inbalance in res_counter uncharge operation.

    I see two ways of fixing this:

    1) storing the information about those allocations somewhere
    in memcg, and then deducting from that first, before
    we start draining the res_counter,
    2) providing a slightly different allocation function for
    the res_counter, that matches the original behavior of
    the network code more closely.

    I decided to go for #2 here, believing it to be more elegant,
    since #1 would require us to do basically that, but in a more
    obscure way.

    Signed-off-by: Glauber Costa
    Cc: KAMEZAWA Hiroyuki
    Cc: Johannes Weiner
    Cc: Michal Hocko
    CC: Tejun Heo
    CC: Li Zefan
    CC: Laurent Chavey
    Acked-by: Tejun Heo
    Signed-off-by: David S. Miller

    Glauber Costa
     
  • For the memcg sock code, we'll need to register allocations
    that are temporarily over limit. Let's make sure that margin
    is 0 in this case.

    I am keeping this as a separate patch, so that if any weirdness
    interaction appears in the future, we can now exactly what caused
    it.

    Suggested by Johannes Weiner

    Signed-off-by: Glauber Costa
    CC: KAMEZAWA Hiroyuki
    CC: Johannes Weiner
    CC: Michal Hocko
    CC: Tejun Heo
    CC: Li Zefan
    Acked-by: Tejun Heo
    Signed-off-by: David S. Miller

    Glauber Costa
     
  • There is still a build bug with the sock memcg code, that triggers
    with !CONFIG_NET, that survived my series of randconfig builds.

    Signed-off-by: Glauber Costa
    Reported-by: Randy Dunlap
    CC: Hiroyouki Kamezawa
    Signed-off-by: David S. Miller

    Glauber Costa