18 Jul, 2009

6 commits


17 Jul, 2009

30 commits

  • * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound-2.6:
    ALSA: riptide - proper handling of pci_register_driver for joystick
    sound: usb-audio: add workaround for Blue Microphones devices
    ALSA: hda_intel: more strict alc880_parse_auto_config dig_nid checking
    ASoC: Fix NULL pointer dereference in __pxa2xx_pcm_hw_free

    Linus Torvalds
     
  • * git://git.kernel.org/pub/scm/linux/kernel/git/rusty/linux-2.6-for-linus:
    virtio_net: Sync header with qemu
    virtio-pci: correctly unregister root device on error
    virtio_blk: ioctl return value fix
    virtio_blk: don't bounce highmem requests
    lguest: restrict CPUID to avoid perf counter wrmsr
    lguest: remove unnecessary forward struct declaration
    lguest: fix journey

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

    * 'tracing-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip:
    tracing/function: Fix the return value of ftrace_trace_onoff_callback()

    Linus Torvalds
     
  • Whoops.. fortunately not many people use this yet.

    Signed-off-by: Alan Cox
    Signed-off-by: Linus Torvalds

    Alan Cox
     
  • asm/fpu.h uses the __IA64_UL macro which is declared in asm/types.h, so
    this include is really required. Without it, GNU libc fails to build.

    This reverts commit 2678c07b07ac2076675e5d57653bdf02e9af1950.

    Signed-off-by: Aurelien Jarno
    Acked-by: Fenghua Yu

    Aurelien Jarno
     
  • The commit 9916219579d078c80377dd3988c2cc213536d868 was supposed to
    add CONFIG_DMA_API_DEBUG support to IA64 however I forgot to add
    dma_debug_init().

    Signed-off-by: fujita
    Acked-by: Fenghua Yu

    fujita
     
  • When building ia64 kernel with CONFIG_XEN_SYS_HYPERVISOR, compiler reports
    errors:

    drivers/xen/sys-hypervisor.c: In function ‘uuid_show’:
    drivers/xen/sys-hypervisor.c:125: error: implicit declaration of function ‘IS_ERR’
    drivers/xen/sys-hypervisor.c:126: error: implicit declaration of function ‘PTR_ERR’

    This patch fixes the errors.

    Signed-off-by: Fenghua Yu
    Acked-by: Isaku Yamahata

    Fenghua Yu
     
  • Qemu added support for a few extra RX modes that Linux doesn't
    currently make use of. Sync the headers to maintain consistency.

    Signed-off-by: Alex Williamson
    Signed-off-by: Rusty Russell

    Alex Williamson
     
  • If pci_register_driver() fails we're incorrectly unregistering the root
    device with device_unregister() rather than root_device_unregister().

    Reported-by: Don Zickus
    Signed-off-by: Mark McLoughlin
    Signed-off-by: Rusty Russell

    Mark McLoughlin
     
  • Block driver ioctl methods must return ENOTTY and not -ENOIOCTLCMD if
    they expect the block layer to handle generic ioctls.

    This triggered a BLKROSET failure in xfsqa #200.

    Signed-off-by: Christoph Hellwig
    Signed-off-by: Rusty Russell

    Christoph Hellwig
     
  • By default a block driver bounces highmem requests, but virtio-blk is
    perfectly fine with any request that fit into it's 64 bit addressing scheme,
    mapped in the kernel virtual space or not.

    Besides improving performance on highmem systems this also makes the
    reproducible oops in __bounce_end_io go away (but hiding the real cause).

    Signed-off-by: Christoph Hellwig
    Signed-off-by: Rusty Russell

    Christoph Hellwig
     
  • Avoid the following:
    [ 0.012093] WARNING: at arch/x86/kernel/apic/apic.c:249 native_apic_write_dummy+0x2f/0x40()

    Rather than chase each new cpuid-detected feature, just lie about the highest
    valid CPUID so this code is never run.

    Signed-off-by: Rusty Russell

    Rusty Russell
     
  • While fixing lg.h to drop the fwd declaration, I noticed
    there's another one ;)

    Signed-off-by: Rusty Russell

    Davide Libenzi
     
  • fix: "make Guest" was complaining about duplicated G:032

    Signed-off-by: Matias Zabaljauregui
    Signed-off-by: Rusty Russell

    Matias Zabaljauregui
     
  • We can directly use %pf input format instead of kallsyms_lookup()
    and %s input format

    Signed-off-by: Xiao Guangrong
    Reviewed-by: Li Zefan
    Signed-off-by: Frederic Weisbecker

    Xiao Guangrong
     
  • We can directly use %pF input format instead of sprint_symbol()
    and %s input format.

    Signed-off-by: Xiao Guangrong
    Reviewed-by: Li Zefan
    Signed-off-by: Frederic Weisbecker

    Xiao Guangrong
     
  • Rewrite the __ftrace_replace_code() function, simplify it, but don't
    change the code's logic.

    First, we get the state we want to set, if the record has the same
    state, then do nothing, otherwise enable/disable it.

    Signed-off-by: Xiao Guangrong
    Reviewed-by: Li Zefan
    Signed-off-by: Frederic Weisbecker

    Xiao Guangrong
     
  • ftrace_trace_onoff_callback() will return an error even if we do the
    right operation, for example:

    # echo _spin_*:traceon:10 > set_ftrace_filter
    -bash: echo: write error: Invalid argument
    # cat set_ftrace_filter
    #### all functions enabled ####
    _spin_trylock_bh:traceon:count=10
    _spin_unlock_irq:traceon:count=10
    _spin_unlock_bh:traceon:count=10
    _spin_lock_irq:traceon:count=10
    _spin_unlock:traceon:count=10
    _spin_trylock:traceon:count=10
    _spin_unlock_irqrestore:traceon:count=10
    _spin_lock_irqsave:traceon:count=10
    _spin_lock_bh:traceon:count=10
    _spin_lock:traceon:count=10

    We want to set _spin_*:traceon:10 to set_ftrace_filter, it complains
    with "Invalid argument", but the operation is successful.

    This is because ftrace_process_regex() returns the number of functions that
    matched the pattern. If the number is not 0, this value is returned
    by ftrace_regex_write() whereas we want to return the number of bytes
    virtually written.
    Also the file offset pointer is not updated in this case.

    If the number of matched functions is lower than the number of bytes written
    by the user, this results to a reprocessing of the string given by the user with
    a lower size, leading to a malformed ftrace regex and then a -EINVAL returned.

    So, this patch fixes it by returning 0 if no error occured.
    The fix also applies on 2.6.30

    Signed-off-by: Xiao Guangrong
    Reviewed-by: Li Zefan
    Cc: stable@kernel.org
    Signed-off-by: Frederic Weisbecker

    Xiao Guangrong
     
  • kernel/trace/ring_buffer.c: In function 'rb_tail_page_update':
    kernel/trace/ring_buffer.c:849: warning: value computed is not used
    kernel/trace/ring_buffer.c:850: warning: value computed is not used

    Add "(void)"s to fix this warning, because we don't need here to handle
    the fail case of cmpxchg, it's fine if an interrupt already did the
    job.

    Changed from V1:
    Add a comment(which is written by Steven) for it.

    Signed-off-by: Lai Jiangshan
    Acked-by: Steven Rostedt
    Signed-off-by: Frederic Weisbecker

    Lai Jiangshan
     
  • …l/git/peterz/linux-2.6-sched

    * 'sched-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/peterz/linux-2.6-sched:
    sched: Fix bug in SCHED_IDLE interaction with group scheduling
    sched: Fix rt_rq->pushable_tasks initialization in init_rt_rq()
    sched: Reset sched stats on fork()
    sched_rt: Fix overload bug on rt group scheduling
    sched: Documentation/sched-rt-group: Fix style issues & bump version

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

    * 'timers-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip:
    timer stats: fix quick check optimization

    Linus Torvalds
     
  • * 'merge' of git://git.kernel.org/pub/scm/linux/kernel/git/benh/powerpc:
    powerpc: Fix another bug in move of altivec code to vector.S
    powerpc: Fix booke user_disable_single_step()

    Linus Torvalds
     
  • If a tty in N_TTY mode with echo enabled manages to get itself into a state
    where
    - echo characters are pending
    - FASYNC is enabled
    - tty_write_wakeup is called from either
    - a device write path (pty)
    - an IRQ (serial)

    then it either deadlocks or explodes taking a mutex in the IRQ path.

    On the serial side it is almost impossible to reproduce because you have to
    go from a full serial port to a near empty one with echo characters
    pending. The pty case happens to have become possible to trigger using
    emacs and ptys, the pty changes having created a scenario which shows up
    this bug.

    The code path is

    n_tty:process_echoes() (takes mutex)
    tty_io:tty_put_char()
    pty:pty_write (or serial paths)
    tty_wakeup (from pty_write or serial IRQ)
    n_tty_write_wakeup()
    process_echoes()
    *KABOOM*

    Signed-off-by: Alan Cox
    Signed-off-by: Linus Torvalds

    Alan Cox
     
  • Don't forget to drop a tty refererence on fail paths in
    receive_data().

    Signed-off-by: Jiri Slaby
    Signed-off-by: Alan Cox
    Signed-off-by: Linus Torvalds

    Jiri Slaby
     
  • Bootmem is not used for the vt screen buffer anymore as slab is now
    available at the time the console is initialized.

    Get rid of the now superfluous distinction between slab and bootmem,
    it's always slab.

    This also fixes a kmalloc leak which Catalin described thusly:

    Commit a5f4f52e ("vt: use kzalloc() instead of the bootmem allocator")
    replaced the alloc_bootmem() with kzalloc() but didn't set vc_kmalloced to
    1 and the memory block is later leaked. The corresponding kmemleak trace:

    unreferenced object 0xdf828000 (size 8192):
    comm "swapper", pid 0, jiffies 4294937296
    backtrace:
    [] __save_stack_trace+0x17/0x1c
    [] log_early+0x55/0x84
    [] kmemleak_alloc+0x33/0x3c
    [] __kmalloc+0xd7/0xe4
    [] con_init+0xbf/0x1b8
    [] console_init+0x11/0x20
    [] start_kernel+0x137/0x1e4

    Signed-off-by: Johannes Weiner
    Reviewed-by: Pekka Enberg
    Tested-by: Catalin Marinas
    Signed-off-by: Andrew Morton
    Signed-off-by: Alan Cox
    Signed-off-by: Linus Torvalds

    Johannes Weiner
     
  • dcb314@hotmail.com notes that this memset has its args reversed.

    It's unneeded anyway, so remove it.

    Addresses http://bugzilla.kernel.org/show_bug.cgi?id=13587

    Signed-off-by: Andrew Morton
    Signed-off-by: Alan Cox
    Signed-off-by: Linus Torvalds

    Andrew Morton
     
  • msm_serial_driver is registered using platform_driver_probe which takes
    care for the probe function itself. So don't pass it in the driver
    struct, too.

    Signed-off-by: Uwe Kleine-König
    Signed-off-by: Alan Cox
    Signed-off-by: Linus Torvalds

    Uwe Kleine-König
     
  • We can get a situation where a hangup occurs during or after a close. In
    that case the ldisc gets disposed of by the close and the hangup then
    explodes.

    Signed-off-by: Alan Cox
    Signed-off-by: Linus Torvalds

    Alan Cox
     
  • Turning on this flag could prevent the compiler from optimising away
    some "useless" checks for null pointers. Such bugs can sometimes become
    exploitable at compile time because of the -O2 optimisation.

    See http://gcc.gnu.org/onlinedocs/gcc-4.1.2/gcc/Optimize-Options.html

    An example that clearly shows this 'problem' is commit 6bf67672.

    static void __devexit agnx_pci_remove(struct pci_dev *pdev)
    {
    struct ieee80211_hw *dev = pci_get_drvdata(pdev);
    - struct agnx_priv *priv = dev->priv;
    + struct agnx_priv *priv;
    AGNX_TRACE;

    if (!dev)
    return;
    + priv = dev->priv;

    By reverting this patch, and compile it with and without
    -fno-delete-null-pointer-checks flag, we can see that the check for dev
    is compiled away.

    call printk #
    - testq %r12, %r12 # dev
    - je .L94 #,
    movq %r12, %rdi # dev,

    Clearly the 'fix' is to stop using dev before it is tested, but building
    with -fno-delete-null-pointer-checks flag at least makes it harder to
    abuse.

    Signed-off-by: Eugene Teo
    Acked-by: Eric Paris
    Acked-by: Wang Cong
    Signed-off-by: Linus Torvalds

    Eugene Teo
     
  • This reverts commit a6540f731d506d9e82444cf0020e716613d4c46c, as
    requested by Alan:

    "... as it was wrong, the pty code is now fixed and the fact this
    isn't reverted is breaking pptp setups."

    Requested-by: Alan Cox
    Signed-off-by: Linus Torvalds

    Linus Torvalds
     

16 Jul, 2009

4 commits