09 Jul, 2008

4 commits

  • * git://git.kernel.org/pub/scm/linux/kernel/git/bart/ide-2.6:
    it8213: fix return value in it8213_init_one()
    palm_bk3710: fix IDECLK period calculation
    ide: add __ide_default_irq() inline helper

    Linus Torvalds
     
  • Add __ide_default_irq() inline helper and use it instead of
    ide_default_irq() in ide-probe.c and ns87415.c (all host drivers
    except IDE PCI ones always setup hwif->irq so it is enough to
    check only for I/O bases 0x1f0 and 0x170).

    This fixes post-2.6.25 regression since ide_default_irq()
    define could shadow ide_default_irq() inline.

    Signed-off-by: Bartlomiej Zolnierkiewicz

    Bartlomiej Zolnierkiewicz
     
  • * 'for-linus' of git://git390.osdl.marist.edu/pub/scm/linux-2.6:
    [S390] protect _PAGE_SPECIAL bit against mprotect

    Linus Torvalds
     
  • As Andy Whitcroft recently pointed out, the current powerpc version of
    huge_ptep_set_wrprotect() has a bug. It just calls ptep_set_wrprotect()
    which in turn calls pte_update() then hpte_need_flush() with the 'huge'
    argument set to 0. This will cause hpte_need_flush() to flush the wrong
    hash entries (of any). Andy's fix for this is already in the powerpc
    tree as commit 016b33c4958681c24056abed8ec95844a0da80a3.

    I have confirmed this is a real bug, not masked by some other
    synchronization, with a new testcase for libhugetlbfs. A process write
    a (MAP_PRIVATE) hugepage mapping, fork(), then alter the mapping and
    have the child incorrectly see the second write.

    Therefore, this should be fixed for 2.6.26, and for the stable tree.
    Here is a suitable patch for 2.6.26, which I think will also be suitable
    for the stable tree (neither of the headers in question has been changed
    much recently).

    It is cut down slighlty from Andy's original version, in that it does
    not include a 32-bit version of huge_ptep_set_wrprotect(). Currently,
    hugepages are not supported on any 32-bit powerpc platform. When they
    are, a suitable 32-bit version can be added - the only 32-bit hardware
    which supports hugepages does not use the conventional hashtable MMU and
    so will have different needs anyway.

    Signed-off-by: Andy Whitcroft
    Signed-off-by: David Gibson
    Signed-off-by: Benjamin Herrenschmidt
    Signed-off-by: Linus Torvalds

    David Gibson
     

08 Jul, 2008

1 commit

  • Stop mprotect's pte_modify from wiping out the s390 pte_special bit, which
    caused oops thereafter when vm_normal_page thought X's abnormal was normal.

    Debugged-by: Ryan Hope
    Debugged-by: Zan Lynx
    Acked-by: Hugh Dickins
    Signed-off-by: Nick Piggin
    Signed-off-by: Martin Schwidefsky

    Nick Piggin
     

06 Jul, 2008

2 commits


05 Jul, 2008

9 commits

  • In linux-next there is a commit ("x86: Add performance variants of cpumask
    operators") which, as part of the 4096 cpu support work adds some new APIs
    for dealing with cpu masks. Add trivial versions of these now so that
    subsystems can update in a timely manner and avoid conflicts in linux-next
    and the next merge window.

    Cc: Mike Travis
    Cc: Thomas Gleixner
    Cc: Ingo Molnar
    Signed-off-by: Stephen Rothwell
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Stephen Rothwell
     
  • This has been sitting around unloved for way too long..

    The Marvell CaFe chip's SD implementation chokes during card insertion
    if one attempts to set the voltage and power up in the same
    SDHCI_POWER_CONTROL register write. This adds a quirk that does
    that particular dance in two steps.

    It also adds an entry to pci_ids.h for the CaFe chip's SD device.

    Signed-off-by: Andres Salomon
    Cc: Pierre Ossman
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Andres Salomon
     
  • This commit includes a bugfix for the fragile setuid fixup code in the
    case that filesystem capabilities are supported (in access()). The effect
    of this fix is gated on filesystem capability support because changing
    securebits is only supported when filesystem capabilities support is
    configured.)

    [akpm@linux-foundation.org: coding-style fixes]
    Signed-off-by: Andrew G. Morgan
    Acked-by: Serge Hallyn
    Acked-by: David Howells
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Andrew G. Morgan
     
  • In linux-next there is a commit ("rcu: split list.h and move rcu-protected
    lists into rculist.h") that moved the rcu related list iterators from
    list.h to rculist.h. Add a trivial version of the file now so that
    various subsystem trees can start using it now for -next changes and so
    reduce the build errors caused by adding uses of the moved functions.

    Cc: Franck Bui-Huu
    Acked-by: Paul E. McKenney
    Cc: Josh Triplett
    Acked-by: Ingo Molnar
    Signed-off-by: Stephen Rothwell
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Stephen Rothwell
     
  • Signed-off-by: Miguel Ojeda
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Miguel Ojeda
     
  • > the build (.config attached) failed, make ends with :
    > ...
    > UPD include/linux/compile.h
    > CC init/version.o
    > LD init/built-in.o
    > LD vmlinux
    > drivers/built-in.o: In function `sas_request_addr':
    > (.text+0x33bab): undefined reference to `request_firmware'
    > drivers/built-in.o: In function `sas_request_addr':
    > (.text+0x33c3f): undefined reference to `release_firmware'
    > make: *** [vmlinux] Error 1

    There's a slight fault in the stub logic. It fails for FW_LOADER=m and
    the user =y.

    This should fix it.

    This patch fixes the following 2.6.26-rc regression:
    http://bugzilla.kernel.org/show_bug.cgi?id=10730

    Reviewed-by: Toralf Foerster
    Signed-off-by: Adrian Bunk
    Cc: "Rafael J. Wysocki"
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    James Bottomley
     
  • Remove all clameter@sgi.com addresses from the kernel tree since they will
    become invalid on June 27th. Change my maintainer email address for the
    slab allocators to cl@linux-foundation.org (which will be the new email
    address for the future).

    Signed-off-by: Christoph Lameter
    Signed-off-by: Christoph Lameter
    Cc: Pekka Enberg
    Cc: Stephen Rothwell
    Cc: Matt Mackall
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Christoph Lameter
     
  • * 'upstream' of git://ftp.linux-mips.org/pub/scm/upstream-linus:
    [MIPS] Fix bug in atomic_sub_if_positive.

    Linus Torvalds
     
  • * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/penberg/slab-2.6:
    slub: Do not use 192 byte sized cache if minimum alignment is 128 byte

    Linus Torvalds
     

04 Jul, 2008

2 commits

  • The branch optimization fixes in 2.6.21 introduced a bug in
    atomic_sub_if_positive that causes it to return even when the sc
    instruction fails. The result is that e.g. down_trylock becomes unreliable
    as the semaphore counter is not always decremented.

    Original MUA-shredded patch from Morten Larsen .

    Signed-off-by: Ralf Baechle

    Ralf Baechle
     
  • The 192 byte cache is not necessary if we have a basic alignment of 128
    byte. If it would be used then the 192 would be aligned to the next 128 byte
    boundary which would result in another 256 byte cache. Two 256 kmalloc caches
    cause sysfs to complain about a duplicate entry.

    MIPS needs 128 byte aligned kmalloc caches and spits out warnings on boot without
    this patch.

    Signed-off-by: Christoph Lameter
    Signed-off-by: Pekka Enberg

    Christoph Lameter
     

03 Jul, 2008

3 commits

  • * 'for-2.6.26' of git://git.kernel.dk/linux-2.6-block:
    Properly notify block layer of sync writes
    block: Fix the starving writes bug in the anticipatory IO scheduler

    Linus Torvalds
     
  • * 'i2c-for-linus' of git://jdelvare.pck.nerim.net/jdelvare-2.6:
    i2c: Fix bad hint about irqs in i2c.h
    i2c: Documentation: fix device matching description

    Linus Torvalds
     
  • * git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6: (55 commits)
    net: fib_rules: fix error code for unsupported families
    netdevice: Fix wrong string handle in kernel command line parsing
    net: Tyop of sk_filter() comment
    netlink: Unneeded local variable
    net-sched: fix filter destruction in atm/hfsc qdisc destruction
    net-sched: change tcf_destroy_chain() to clear start of filter list
    ipv4: fix sysctl documentation of time related values
    mac80211: don't accept WEP keys other than WEP40 and WEP104
    hostap: fix sparse warnings
    hostap: don't report useless WDS frames by default
    textsearch: fix Boyer-Moore text search bug
    netfilter: nf_conntrack_tcp: fixing to check the lower bound of valid ACK
    ipv6 route: Convert rt6_device_match() to use RT6_LOOKUP_F_xxx flags.
    netlabel: Fix a problem when dumping the default IPv6 static labels
    net/inet_lro: remove setting skb->ip_summed when not LRO-able
    inet fragments: fix race between inet_frag_find and inet_frag_secret_rebuild
    CONNECTOR: add a proc entry to list connectors
    netlink: Fix some doc comments in net/netlink/attr.c
    tcp: /proc/net/tcp rto,ato values not scaled properly (v2)
    include/linux/netdevice.h: don't export MAX_HEADER to userspace
    ...

    Linus Torvalds
     

02 Jul, 2008

2 commits


01 Jul, 2008

2 commits

  • fsync_buffers_list() and sync_dirty_buffer() both issue async writes and
    then immediately wait on them. Conceptually, that makes them sync writes
    and we should treat them as such so that the IO schedulers can handle
    them appropriately.

    This patch fixes a write starvation issue that Lin Ming reported, where
    xx is stuck for more than 2 minutes because of a large number of
    synchronous IO in the system:

    INFO: task kjournald:20558 blocked for more than 120 seconds.
    "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this
    message.
    kjournald D ffff810010820978 6712 20558 2
    ffff81022ddb1d10 0000000000000046 ffff81022e7baa10 ffffffff803ba6f2
    ffff81022ecd0000 ffff8101e6dc9160 ffff81022ecd0348 000000008048b6cb
    0000000000000086 ffff81022c4e8d30 0000000000000000 ffffffff80247537
    Call Trace:
    [] kobject_get+0x12/0x17
    [] getnstimeofday+0x2f/0x83
    [] sync_buffer+0x0/0x3f
    [] io_schedule+0x5d/0x9f
    [] sync_buffer+0x3b/0x3f
    [] __wait_on_bit+0x40/0x6f
    [] sync_buffer+0x0/0x3f
    [] out_of_line_wait_on_bit+0x6c/0x78
    [] wake_bit_function+0x0/0x23
    [] sync_dirty_buffer+0x98/0xcb
    [] journal_commit_transaction+0x97d/0xcb6
    [] lock_timer_base+0x26/0x4b
    [] kjournald+0xc1/0x1fb
    [] autoremove_wake_function+0x0/0x2e
    [] kjournald+0x0/0x1fb
    [] kthread+0x47/0x74
    [] schedule_tail+0x28/0x5d
    [] child_rip+0xa/0x12
    [] kthread+0x0/0x74
    [] child_rip+0x0/0x12

    Lin Ming confirms that this patch fixes the issue. I've run tests with
    it for the past week and no ill effects have been observed, so I'm
    proposing it for inclusion into 2.6.26.

    Signed-off-by: Jens Axboe

    Jens Axboe
     
  • This patch makes mac80211 refuse a WEP key whose length is not WEP40 nor
    WEP104.

    Signed-off-by: Emmanuel Grumbach
    Signed-off-by: Tomas Winkler
    Signed-off-by: John W. Linville

    Emmanuel Grumbach
     

30 Jun, 2008

8 commits

  • * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input:
    Input: fix locking in force-feedback core
    Input: add KEY_MEDIA_REPEAT definition

    Linus Torvalds
     
  • …git/tip/linux-2.6-tip

    * 'x86-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip:
    ptrace GET/SET FPXREGS broken
    x86: fix cpu hotplug crash
    x86: section/warning fixes
    x86: shift bits the right way in native_read_tscp

    Linus Torvalds
     
  • This patch adds the Repeat key to the input layer. The usage
    in the HUT is 0xBC (listed under "15.7 Transport Controls").

    Signed-off-by: Dmitry Torokhov

    Bastien Nocera
     
  • * git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/v4l-dvb: (42 commits)
    V4L/DVB (8108): Fix open/close race in saa7134
    V4L/DVB (8100): V4L/vivi: fix possible memory leak in vivi_fillbuff
    V4L/DVB (8097): xc5000: check device hardware state to determine if firmware download is needed
    V4L/DVB (8096): au8522: prevent false-positive lock status
    V4L/DVB (8092): videodev: simplify and fix standard enumeration
    V4L/DVB (8075): stv0299: Uncorrected block count and bit error rate fixed
    V4L/DVB (8074): av7110: OSD transfers should not be interrupted
    V4L/DVB (8073): av7110: Catch another type of ARM crash
    V4L/DVB (8071): tda10023: Fix possible kernel oops during initialisation
    V4L/DVB (8069): cx18: Fix S-Video and Compsite inputs for the Yuan MPC718 and enable card entry
    V4L/DVB (8068): cx18: Add I2C slave reset via GPIO upon initialization
    V4L/DVB (8067): cx18: Fix firmware load for case when digital capture happens first
    V4L/DVB (8066): cx18: Fix audio mux input definitions for HVR-1600 Line In 2 and FM radio
    V4L/DVB (8063): cx18: Fix unintended auto configurations in cx18-av-core
    V4L/DVB (8061): cx18: only select tuner / frontend modules if !DVB_FE_CUSTOMISE
    V4L/DVB (8048): saa7134: Fix entries for Avermedia A16d and Avermedia E506
    V4L/DVB (8044): au8522: tuning optimizations
    V4L/DVB (8043): au0828: add support for additional USB device id's
    V4L/DVB (8042): DVB-USB UMT-010 channel scan oops
    V4L/DVB (8040): soc-camera: remove soc_camera_host_class class
    ...

    Linus Torvalds
     
  • * 'release' of git://git.kernel.org/pub/scm/linux/kernel/git/lenb/linux-acpi-2.6:
    dock: bay: Don't call acpi_walk_namespace() when ACPI is disabled.
    ACPI: don't walk tables if ACPI was disabled
    thermal: Create CONFIG_THERMAL_HWMON=n

    Linus Torvalds
     
  • * git://git.kernel.org/pub/scm/linux/kernel/git/sam/kbuild-fixes:
    kbuild: fix a.out.h export to userspace with O= build.

    Linus Torvalds
     
  • * 'audit.b52' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/audit-current:
    [PATCH] remove useless argument type in audit_filter_user()
    [PATCH] audit: fix kernel-doc parameter notation
    [PATCH] kernel/audit.c: nlh->nlmsg_type is gotten more than once

    Linus Torvalds
     
  • * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs-2.6:
    [patch 2/3] vfs: dcache cleanups
    [patch 1/3] vfs: dcache sparse fixes
    [patch 3/3] vfs: make d_path() consistent across mount operations
    [patch 4/4] flock: remove unused fields from file_lock_operations
    [patch 3/4] vfs: fix ERR_PTR abuse in generic_readlink
    [patch 2/4] fs: make struct file arg to d_path const
    [patch 1/4] vfs: path_{get,put}() cleanups
    [patch for 2.6.26 4/4] vfs: utimensat(): fix write access check for futimens()
    [patch for 2.6.26 3/4] vfs: utimensat(): fix error checking for {UTIME_NOW,UTIME_OMIT} case
    [patch for 2.6.26 1/4] vfs: utimensat(): ignore tv_sec if tv_nsec == UTIME_OMIT or UTIME_NOW
    [patch for 2.6.26 2/4] vfs: utimensat(): be consistent with utime() for immutable and append-only files
    [PATCH] fix cgroup-inflicted breakage in block_dev.c

    Linus Torvalds
     

28 Jun, 2008

3 commits


27 Jun, 2008

3 commits


26 Jun, 2008

1 commit