14 Sep, 2008

12 commits

  • The iterator for_each_zone_zonelist() uses a struct zoneref *z cursor when
    scanning zonelists to keep track of where in the zonelist it is. The
    zoneref that is returned corresponds to the the next zone that is to be
    scanned, not the current one. It was intended to be treated as an opaque
    list.

    When the page allocator is scanning a zonelist, it marks elements in the
    zonelist corresponding to zones that are temporarily full. As the
    zonelist is being updated, it uses the cursor here;

    if (NUMA_BUILD)
    zlc_mark_zone_full(zonelist, z);

    This is intended to prevent rescanning in the near future but the zoneref
    cursor does not correspond to the zone that has been found to be full.
    This is an easy misunderstanding to make so this patch corrects the
    problem by changing zoneref cursor to be the current zone being scanned
    instead of the next one.

    Signed-off-by: Mel Gorman
    Cc: Andy Whitcroft
    Cc: KAMEZAWA Hiroyuki
    Cc: [2.6.26.x]
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Mel Gorman
     
  • Fixes two DMA bugs in the pxa2xx_spi driver. The first bug is in all
    versions of this driver; the second was introduced in the 2.6.20 kernel,
    and prevents using the driver with chips like m25p16 flash (which can
    issue large DMA reads).

    1. Zero length transfers are permitted for use to insert timing,
    but pxa2xx_spi.c will fail if this is requested in DMA mode.
    Fixed by using programmed I/O (PIO) mode for such transfers.

    2. Transfers larger than 8191 are not permitted in DMA mode. A
    test for length rejects all large transfers regardless of DMA
    or PIO mode. Worked around by rejecting only large transfers
    with DMA mapped buffers, and forcing all other transfers
    larger than 8191 to use PIO mode. A rate limited warning is
    issued for DMA transfers forced to PIO mode.

    This patch should apply to all kernels back to and including 2.6.20;
    it was test patched against 2.6.20. An additional patch would be
    required for older kernels, but those versions are very buggy anyway.

    Signed-off-by: Ned Forrester
    Cc: Vernon Sauder
    Cc: Eric Miao
    Signed-off-by: David Brownell
    Cc: [2.6.25.x, 2.6.26.x]
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Ned Forrester
     
  • Fixes several chipselect bugs in the pxa2xx_spi driver. These bugs are in
    all versions of this driver and prevent using it with chips like m25p16
    flash.

    1. The spi_transfer.cs_change flag is handled too early:
    before spi_transfer.delay_usecs applies, thus making the
    delay ineffective at holding chip select.

    2. spi_transfer.delay_usecs is ignored on the last transfer
    of a message (likewise not holding chipselect long enough).

    3. If spi_transfer.cs_change is set on the last transfer, the
    chip select is always disabled, instead of the intended
    meaning: optionally holding chip select enabled for the
    next message.

    Those first three bugs were fixed with a relocation of delays
    and chip select de-assertions.

    4. If a message has the cs_change flag set on the last transfer,
    and had the chip select stayed enabled as requested (see 3,
    above), it would not have been disabled if the next message is
    for a different chip. Fixed by dropping chip select regardless
    of cs_change at end of a message, if there is no next message
    or if the next message is for a different chip.

    This patch should apply to all kernels back to and including 2.6.20;
    it was test patched against 2.6.20. An additional patch would be
    required for older kernels, but those versions are very buggy anyway.

    Signed-off-by: Ned Forrester
    Cc: Vernon Sauder
    Cc: Eric Miao
    Signed-off-by: David Brownell
    Cc: [2.6.25.x, 2.6.26.x]
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Ned Forrester
     
  • Error out on transfer length != multiple of bytes per word with -EINVAL.
    Fixes a buffer overrun crash if length < bytes per word.

    Signed-off-by: Peter Korsgaard
    Acked-by: Joakim Tjernlund
    Signed-off-by: David Brownell
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Peter Korsgaard
     
  • Commit a61f5345 (spi_mpc83xx clockrate fixes) broke clockrate calculation
    for low speeds. SPMODE_DIV16 should be set if the divider is higher than
    64, not only if the divider gets clipped to 1024.

    Furthermore, the clipping check was off by a factor 16 as well.

    Signed-off-by: Peter Korsgaard
    Signed-off-by: David Brownell
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Peter Korsgaard
     
  • A "Quicklists: 0 kB" line has just started appearing in
    /proc/meminfo, but most architectures (including x86) don't have
    them configured, so #ifdef it, like the highmem lines.

    And those architectures which do have quicklists configured are
    using them for page tables: so let's place it next to PageTables.

    Signed-off-by: Hugh Dickins
    Acked-by: Christoph Lameter
    Acked-by: KOSAKI Motohiro
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Hugh Dickins
     
  • This fixes:

    =============================================
    [ INFO: possible recursive locking detected ]
    2.6.27-rc5-00283-g70bb089 #68
    ---------------------------------------------
    touch/6855 is trying to acquire lock:
    (&info->bfs_lock){--..}, at: [] bfs_delete_inode+0x9e/0x18c

    but task is already holding lock:
    (&info->bfs_lock){--..}, at: [] bfs_create+0x45/0x187

    other info that might help us debug this:
    2 locks held by touch/6855:
    #0: (&type->i_mutex_dir_key#5){--..}, at: [] do_filp_open+0x10b/0x62f
    #1: (&info->bfs_lock){--..}, at: [] bfs_create+0x45/0x187

    stack backtrace:
    Pid: 6855, comm: touch Not tainted 2.6.27-rc5-00283-g70bb089 #68
    [] validate_chain+0x458/0x9f4
    [] ? trace_hardirqs_off+0xb/0xd
    [] __lock_acquire+0x666/0x6e0
    [] lock_acquire+0x5b/0x77
    [] ? bfs_delete_inode+0x9e/0x18c
    [] mutex_lock_nested+0xbc/0x234
    [] ? bfs_delete_inode+0x9e/0x18c
    [] ? bfs_delete_inode+0x9e/0x18c
    [] bfs_delete_inode+0x9e/0x18c
    [] ? bfs_delete_inode+0x0/0x18c
    [] generic_delete_inode+0x94/0xfe
    [] generic_drop_inode+0x12/0x12f
    [] iput+0x4b/0x4e
    [] bfs_create+0x163/0x187
    [] vfs_create+0xa6/0x114
    [] do_filp_open+0x1ad/0x62f
    [] ? native_sched_clock+0x82/0x96
    [] ? _spin_unlock+0x27/0x3c
    [] ? alloc_fd+0xbf/0xc9
    [] ? sub_preempt_count+0x9d/0xab
    [] ? alloc_fd+0xbf/0xc9
    [] do_sys_open+0x42/0xb8
    [] ? trace_hardirqs_on_thunk+0xc/0x10
    [] sys_open+0x1e/0x26
    [] sysenter_do_call+0x12/0x31
    =======================

    The problem is that we don't unlock the bfs->lock mutex before calling
    iput (we do in the other cases).

    Signed-off-by: Eric Sesterhenn
    Cc: Tigran Aivazian
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Eric Sesterhenn
     
  • There is no description of bit 4 of coredump_filter in the
    documentation. This patch adds it.

    Signed-off-by: Hidehiro Kawai
    Cc: Roland McGrath
    Cc: Mel Gorman
    Acked-by: KOSAKI Motohiro
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Hidehiro Kawai
     
  • If all the cpus in a cpuset are offlined, the tasks in it will be moved to
    the nearest ancestor with non-empty cpus.

    Signed-off-by: Li Zefan
    Acked-by: Paul Jackson
    Cc: Paul Menage
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Li Zefan
     
  • After the patch:

    commit 0b2f630a28d53b5a2082a5275bc3334b10373508
    Author: Miao Xie
    Date: Fri Jul 25 01:47:21 2008 -0700

    cpusets: restructure the function update_cpumask() and update_nodemask()

    It might happen that 'echo 0 > /cpuset/sub/cpus' returned failure but 'cpus'
    has been changed, because cpus was changed before calling heap_init() which
    may return -ENOMEM.

    This patch restores the orginal behavior.

    Signed-off-by: Li Zefan
    Acked-by: Paul Menage
    Cc: Paul Jackson
    Cc: Miao Xie
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Li Zefan
     
  • akpm: these have no callers at this time, but they shall soon, so let's
    get them right.

    [akpm@linux-foundation.org: coding-style fixes]
    Signed-off-by: Hiroshi DOYU
    Cc: Tony Lindgren
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Hiroshi DOYU
     
  • Print parent directory name as well.

    The aim is to catch non-creation of parent directory when proc_mkdir will
    return NULL and all subsequent registrations go directly in /proc instead
    of intended directory.

    Signed-off-by: Alexey Dobriyan
    Signed-off-by: Andrew Morton
    [ Fixed insane printk string while at it. - Linus ]
    Signed-off-by: Linus Torvalds

    Alexey Dobriyan
     

12 Sep, 2008

3 commits

  • * 'for-linus' of git://git.kernel.dk/linux-2.6-block:
    sg: disable interrupts inside sg_copy_buffer

    Linus Torvalds
     
  • Change the MN10300 fault handler to make it check in_atomic() rather than
    in_interrupt() as commit 6edaf68a87d17570790fd55f0c451a29ec1d6703 did for other
    architectures:

    Author: Peter Zijlstra
    Date: Wed Dec 6 20:32:18 2006 -0800

    [PATCH] mm: arch do_page_fault() vs in_atomic()

    In light of the recent pagefault and filemap_copy_from_user work I've
    gone through all the arch pagefault handlers to make sure the
    inc_preempt_count() 'feature' works as expected.

    Several sections of code (including the new filemap_copy_from_user)
    rely on the fact that faults do not take locks under increased preempt
    count.

    Signed-off-by: David Howells
    Acked-by: Peter Zijlstra
    Signed-off-by: Linus Torvalds

    David Howells
     
  • The callers of sg_copy_buffer must disable interrupts before calling
    it (since it uses kmap_atomic). Some callers use it on
    interrupt-disabled code but some need to take the trouble to disable
    interrupts just for this. No wonder they forget about it and we hit a
    bug like:

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

    James said that it might be better to disable interrupts inside the
    function rather than risk the callers getting it wrong.

    Signed-off-by: FUJITA Tomonori
    Signed-off-by: Jens Axboe

    FUJITA Tomonori
     

11 Sep, 2008

19 commits

  • * 'for-linus' of git://git.kernel.dk/linux-2.6-block:
    block: disable sysfs parts of the disk command filter

    Linus Torvalds
     
  • * 'kvm-updates/2.6.27' of git://git.kernel.org/pub/scm/linux/kernel/git/avi/kvm:
    KVM: VMX: Always return old for clear_flush_young() when using EPT
    KVM: SVM: fix guest global tlb flushes with NPT
    KVM: SVM: fix random segfaults with NPT enabled

    Linus Torvalds
     
  • * git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi-rc-fixes-2.6:
    [SCSI] fix check of PQ and PDT bits for WLUNs
    [SCSI] make scsi_check_sense HARDWARE_ERROR return ADD_TO_MLQUEUE on retry
    [SCSI] scsi_dh: make check_sense return ADD_TO_MLQUEUE
    [SCSI] zfcp: Remove duplicated unlikely() macros.
    [SCSI] zfcp: channel cannot be detached due to refcount imbalance
    [SCSI] zfcp: Fix reference counter for remote ports
    [SCSI] zfcp: Simplify ccw notify handler
    [SCSI] zfcp: Correctly query end flag in gpn_ft response
    [SCSI] zfcp: Fix request queue locking
    [SCSI] sd: select CRC_T10DIF only when necessary

    Linus Torvalds
     
  • * 'release' of git://git.kernel.org/pub/scm/linux/kernel/git/aegl/linux-2.6:
    [IA64] prevent ia64 from invoking irq handlers on offline CPUs
    [IA64] arch/ia64/sn/pci/tioca_provider.c: introduce missing kfree
    [IA64] fix up bte.h
    [IA64] fix compile failure with non modular builds

    Linus Torvalds
     
  • * 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jack/linux-udf-2.6:
    udf: add llseek method
    udf: Fix error paths in udf_new_inode()
    udf: Fix lock inversion between iprune_mutex and alloc_mutex (v2)

    Linus Torvalds
     
  • We still have life time issues with the sysfs command filter kobject,
    so disable it for 2.6.27 release. We can revisit this and make it work
    properly for 2.6.28, for 2.6.27 release it's too risky.

    Signed-off-by: Jens Axboe

    Jens Axboe
     
  • As well as discard fake accessed bit and dirty bit of EPT.

    Signed-off-by: Sheng Yang
    Signed-off-by: Avi Kivity

    Sheng Yang
     
  • Accesses to CR4 are intercepted even with Nested Paging enabled. But the code
    does not check if the guest wants to do a global TLB flush. So this flush gets
    lost. This patch adds the check and the flush to svm_set_cr4.

    Signed-off-by: Joerg Roedel
    Signed-off-by: Avi Kivity

    Joerg Roedel
     
  • This patch introduces a guest TLB flush on every NPF exit in KVM. This fixes
    random segfaults and #UD exceptions in the guest seen under some workloads
    (e.g. long running compile workloads or tbench). A kernbench run with and
    without that fix showed that it has a slowdown lower than 0.5%

    Cc: stable@kernel.org
    Signed-off-by: Joerg Roedel
    Signed-off-by: Alexander Graf
    Signed-off-by: Avi Kivity

    Joerg Roedel
     
  • * git://git.kernel.org/pub/scm/linux/kernel/git/bart/ide-2.6:
    add deprecated ide-scsi to feature-removal-schedule.txt
    ide: Fix pointer arithmetic in hpt3xx driver code (3rd try)

    Linus Torvalds
     
  • Signed-off-by: Geert Uytterhoeven
    Signed-off-by: Linus Torvalds

    Geert Uytterhoeven
     
  • commit 0d3244d6439c8c31d2a29efd587c7aca9042c8aa ("V4L/DVB (8342):
    sh_mobile_ceu_camera: Add SuperH Mobile CEU driver V3") introduced
    VIDEO_SH_MOBILE_CEU, which selects VIDEOBUF_DMA_CONTIG. This circumvents the
    dependency on HAS_DMA of VIDEOBUF_DMA_CONTIG.

    Add a dependency on HAS_DMA to VIDEO_SH_MOBILE_CEU to fix this.

    Signed-off-by: Geert Uytterhoeven
    Acked-by: Paul Mundt
    Acked-by: Magnus Damm
    Signed-off-by: Linus Torvalds

    Geert Uytterhoeven
     
  • This fixes a SWIOTLB oops

    With SWIOTLB being enabled and straight-forward page allocation
    failure [1], the swiotlb_alloc_coherent fall-back path hits an
    issue [2], resulting in my webcam failing to work.

    At the time of oops, RDI is clearly a pointer to a structure which
    has arrived as NULL, leading to the typo in swiotlb_map_single's
    callsite arguments.

    Correctly passing the device structure [3] addresses the issue and
    gets my webcam working again (the allocation failure still occuring).

    --- [1]

    skype: page allocation failure. order:3, mode:0x1
    Pid: 5895, comm: skype Not tainted 2.6.27-rc6-235c-debug #1

    Call Trace:
    [] __alloc_pages_internal+0x4a0/0x5d0
    [] alloc_pages_current+0xad/0x110
    [] __get_free_pages+0x1d/0x60
    [] swiotlb_alloc_coherent+0x49/0x180
    [] dma_alloc_coherent+0x281/0x310
    [] hcd_buffer_alloc+0x50/0x90
    [] usb_buffer_alloc+0x2d/0x40
    [] uvc_alloc_urb_buffers+0x53/0xf0 [uvcvideo]
    [] uvc_init_video+0x158/0x3e0 [uvcvideo]
    [] uvc_video_enable+0x37/0x80 [uvcvideo]
    [] uvc_v4l2_do_ioctl+0x723/0x1260 [uvcvideo]
    [] ? trace_hardirqs_off_caller+0x21/0xc0
    [] ? trace_hardirqs_off_caller+0x21/0xc0
    [] video_usercopy+0x19f/0x390 [videodev]
    [] ? uvc_v4l2_do_ioctl+0x0/0x1260 [uvcvideo]
    [] ? put_lock_stats+0xe/0x30
    [] uvc_v4l2_ioctl+0x4d/0x80 [uvcvideo]
    [] native_ioctl+0x83/0x90 [compat_ioctl32]
    [] v4l_compat_ioctl32+0x2be/0x1da4 [compat_ioctl32]
    [] ? do_page_fault+0x3d1/0xae0
    [] ? trace_hardirqs_on+0xd/0x10
    [] ? trace_hardirqs_on_caller+0x149/0x1b0
    [] ? trace_hardirqs_on+0xd/0x10
    [] compat_sys_ioctl+0x8a/0x3c0
    [] ? trace_hardirqs_off_thunk+0x3a/0x3c
    [] sysenter_dispatch+0x7/0x2c
    [] ? trace_hardirqs_on_thunk+0x3a/0x3f

    Mem-Info:
    Node 0 DMA per-cpu:
    CPU 0: hi: 0, btch: 1 usd: 0
    CPU 1: hi: 0, btch: 1 usd: 0
    Node 0 DMA32 per-cpu:
    CPU 0: hi: 186, btch: 31 usd: 3
    CPU 1: hi: 186, btch: 31 usd: 0
    Node 0 Normal per-cpu:
    CPU 0: hi: 186, btch: 31 usd: 23
    CPU 1: hi: 186, btch: 31 usd: 179
    Active:78545 inactive:48683 dirty:31 writeback:0 unstable:2
    free:830202 slab:17516 mapped:17473 pagetables:3496 bounce:0
    Node 0 DMA free:36kB min:28kB low:32kB high:40kB active:0kB
    inactive:0kB present:15156kB pages_scanned:0 all_unreclaimable? no
    lowmem_reserve[]: 0 3207 3956 3956
    Node 0 DMA32 free:3197192kB min:6512kB low:8140kB high:9768kB
    active:0kB inactive:0kB present:3284896kB pages_scanned:0
    all_unreclaimable? no
    lowmem_reserve[]: 0 0 748 748
    Node 0 Normal free:123580kB min:1516kB low:1892kB high:2272kB
    active:314180kB inactive:194732kB present:766464kB pages_scanned:0
    all_unreclaimable? no
    lowmem_reserve[]: 0 0 0 0
    Node 0 DMA: 1*4kB 0*8kB 0*16kB 1*32kB 0*64kB 0*128kB 0*256kB 0*512kB
    0*1024kB 0*2048kB 0*4096kB = 36kB
    Node 0 DMA32: 4*4kB 3*8kB 2*16kB 3*32kB 4*64kB 5*128kB 3*256kB 5*512kB
    4*1024kB 5*2048kB 776*4096kB = 3197224kB
    Node 0 Normal: 14*4kB 14*8kB 8*16kB 6*32kB 1*64kB 3*128kB 3*256kB
    2*512kB 4*1024kB 1*2048kB 28*4096kB = 123560kB
    64847 total pagecache pages
    0 pages in swap cache
    Swap cache stats: add 0, delete 0, find 0/0
    Free swap = 502752kB
    Total swap = 502752kB
    1048576 pages RAM
    52120 pages reserved
    71967 pages shared
    143004 pages non-shared

    --- [2]

    BUG: unable to handle kernel NULL pointer dereference at 00000000000002c8
    IP: [] map_single+0x1c/0x280
    PGD 10e54e067 PUD 10e595067 PMD 0
    Oops: 0000 [1] PREEMPT SMP DEBUG_PAGEALLOC
    CPU 0
    Modules linked in: kvm_intel kvm microcode uvcvideo compat_ioctl32
    videodev v4l1_compat shpchp pci_hotplug
    Pid: 5895, comm: skype Not tainted 2.6.27-rc6-235c-debug #1
    RIP: 0010:[] [] map_single+0x1c/0x280
    RSP: 0018:ffff88010e78d988 EFLAGS: 00210296
    RAX: 0000780000000000 RBX: 0000000000000000 RCX: 0000000000000002
    RDX: 0000000000005000 RSI: 0000000000000000 RDI: 0000000000000000
    RBP: ffff88010e78d9e8 R08: 0000000000000000 R09: 0000000000000001
    R10: ffff88010e78d698 R11: 0000000000000001 R12: 0000000000000002
    R13: 0000000000000000 R14: 0000000000005000 R15: ffff88012f1c9968
    FS: 0000000000000000(0000) GS:ffffffff80a6cdc0(0063) knlGS:00000000f6355b90
    CS: 0010 DS: 002b ES: 002b CR0: 0000000080050033
    CR2: 00000000000002c8 CR3: 000000010e57d000 CR4: 00000000000026e0
    DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
    DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400
    Process skype (pid: 5895, threadinfo ffff88010e78c000, task ffff88012b9cc460)
    Stack: 0000000200000000 0000000000005000 0000000000000000 0000000000000000
    00000000000017b8 0000000000000000 ffff88010e78d9c8 0000000000000000
    0000000000000002 0000000000000000 0000000000005000 ffff88012f1c9968
    Call Trace:
    [] swiotlb_map_single_attrs+0x60/0xf0
    [] swiotlb_map_single+0xc/0x10
    [] swiotlb_alloc_coherent+0xfe/0x180
    [] dma_alloc_coherent+0x281/0x310
    [] hcd_buffer_alloc+0x50/0x90
    [] usb_buffer_alloc+0x2d/0x40
    [] uvc_alloc_urb_buffers+0x53/0xf0 [uvcvideo]
    [] uvc_init_video+0x158/0x3e0 [uvcvideo]
    [] uvc_video_enable+0x37/0x80 [uvcvideo]
    [] uvc_v4l2_do_ioctl+0x723/0x1260 [uvcvideo]
    [] ? trace_hardirqs_off_caller+0x21/0xc0
    [] ? trace_hardirqs_off_caller+0x21/0xc0
    [] video_usercopy+0x19f/0x390 [videodev]
    [] ? uvc_v4l2_do_ioctl+0x0/0x1260 [uvcvideo]
    [] ? put_lock_stats+0xe/0x30
    [] uvc_v4l2_ioctl+0x4d/0x80 [uvcvideo]
    [] native_ioctl+0x83/0x90 [compat_ioctl32]
    [] v4l_compat_ioctl32+0x2be/0x1da4 [compat_ioctl32]
    [] ? do_page_fault+0x3d1/0xae0
    [] ? trace_hardirqs_on+0xd/0x10
    [] ? trace_hardirqs_on_caller+0x149/0x1b0
    [] ? trace_hardirqs_on+0xd/0x10
    [] compat_sys_ioctl+0x8a/0x3c0
    [] ? trace_hardirqs_off_thunk+0x3a/0x3c
    [] sysenter_dispatch+0x7/0x2c
    [] ? trace_hardirqs_on_thunk+0x3a/0x3f

    Code: 45 31 c0 48 89 e5 e8 a4 ff ff ff c9 c3 66 90 55 48 89 e5 41 57
    41 56 41 55 41 54 53 48 83 ec 38 48 89 75 b0 48 89 55 a8 89 4d a4
    8b 87 c8 02 00 00 48 85 c0 0f 84 1c 02 00 00 48 8b 58 08 48
    RIP [] map_single+0x1c/0x280
    RSP
    CR2: 00000000000002c8
    ---[ end trace 5d15baeeb7025a0e ]---

    --- [3]

    ffffffff8046c830 :
    map_single():
    /store/kernel/linux/lib/swiotlb.c:291
    ffffffff8046c830: 55 push %rbp
    ffffffff8046c831: 48 89 e5 mov %rsp,%rbp
    ffffffff8046c834: 41 57 push %r15
    ffffffff8046c836: 41 56 push %r14
    ffffffff8046c838: 41 55 push %r13
    ffffffff8046c83a: 41 54 push %r12
    ffffffff8046c83c: 53 push %rbx
    ffffffff8046c83d: 48 83 ec 38 sub $0x38,%rsp
    ffffffff8046c841: 48 89 75 b0 mov %rsi,-0x50(%rbp)
    ffffffff8046c845: 48 89 55 a8 mov %rdx,-0x58(%rbp)
    ffffffff8046c849: 89 4d a4 mov %ecx,-0x5c(%rbp)
    dma_get_seg_boundary():
    /store/kernel/linux/include/linux/dma-mapping.h:80
    ffffffff8046c84c: 48 8b 87 c8 02 00 00 mov 0x2c8(%rdi),%rax
    Signed-off-by: Linus Torvalds

    Daniel J Blueman
     
  • Signed-off-by: FUJITA Tomonori
    Signed-off-by: Bartlomiej Zolnierkiewicz

    FUJITA Tomonori
     
  • git commit 74811f355f4f69a187fa74892dcf2a684b84ce99 causes crash at
    module load (or boot) time on my machine with a hpt374 controller.
    The reason for this is that for initializing second controller which sets
    (hwif->dev == host->dev[1]) to true (1), adds 1 to a void ptr, which
    advances it by one byte instead of advancing it by sizeof(hpt_info) bytes.
    Because of this, all initialization functions get corrupted data in info
    variable which causes a crash at boot time.

    This patch fixes that and makes my machine boot again.

    The card itself is a HPT374 raid conroller: Here is the lspci -v output:
    03:06.0 RAID bus controller: HighPoint Technologies, Inc. HPT374 (rev
    07)
    Subsystem: HighPoint Technologies, Inc. Unknown device 0001
    Flags: bus master, 66MHz, medium devsel, latency 120, IRQ 28
    I/O ports at 8000 [size=8]
    I/O ports at 7800 [size=4]
    I/O ports at 7400 [size=8]
    I/O ports at 7000 [size=4]
    I/O ports at 6800 [size=256]
    Expansion ROM at fe8e0000 [disabled] [size=128K]
    Capabilities: [60] Power Management version 2

    03:06.1 RAID bus controller: HighPoint Technologies, Inc. HPT374 (rev
    07)
    Subsystem: HighPoint Technologies, Inc. Unknown device 0001
    Flags: bus master, 66MHz, medium devsel, latency 120, IRQ 28
    I/O ports at 9800 [size=8]
    I/O ports at 9400 [size=4]
    I/O ports at 9000 [size=8]
    I/O ports at 8800 [size=4]
    I/O ports at 8400 [size=256]
    Capabilities: [60] Power Management version 2

    Signed-off-by: Masoud Sharbiani
    Cc: Sergei Shtylyov
    Cc: Andrew Morton
    [bart: use dev_get_drvdata() per Sergei's suggestion]
    Signed-off-by: Bartlomiej Zolnierkiewicz

    Masoud Sharbiani
     
  • Make ia64 refrain from clearing a given to-be-offlined CPU's bit in the
    cpu_online_mask until it has processed pending irqs. This change
    prevents other CPUs from being blindsided by an apparently offline CPU
    nevertheless changing globally visible state. Also remove the existing
    redundant cpu_clear(cpu, cpu_online_map).

    Signed-off-by: Paul E. McKenney
    Signed-off-by: Tony Luck

    Paul E. McKenney
     
  • Error handling code following a kmalloc should free the allocated data.

    Signed-off-by: Julia Lawall
    Signed-off-by: Tony Luck

    Julia Lawall
     
  • bte.h expects a #define of L1_CACHE_MASK which is currently only
    in bte.c. This small patch gets bte.h to include cleanly and makes
    BTE_UNALIGNED_COPY not report errors.

    Signed-off-by: Robin Holt
    Signed-off-by: Tony Luck

    Robin Holt
     
  • Broke the non modular builds by moving an essential function into
    modules.c. Fix this by moving it out again and into asm/sections.h as
    an inline. To do this, the definitions of struct fdesc and struct
    got_val have been lifted out of modules.c and put in asm/elf.h where
    they belong.

    Signed-off-by: James Bottomley
    Signed-off-by: Tony Luck

    James Bottomley
     

10 Sep, 2008

6 commits

  • ocfs2 will become read-only if we try to read the bytes which pass
    the end of i_size. This can be easily reproduced by following steps:
    1. mkfs a ocfs2 volume with bs=4k cs=4k and nosparse.
    2. create a small file(say less than 100 bytes) and we will create the file
    which is allocated 1 cluster.
    3. read 8196 bytes from the kernel using O_DIRECT which exceeds the limit.
    4. The ocfs2 volume becomes read-only and dmesg shows:
    OCFS2: ERROR (device sda13): ocfs2_direct_IO_get_blocks:
    Inode 66010 has a hole at block 1
    File system is now read-only due to the potential of on-disk corruption.
    Please run fsck.ocfs2 once the file system is unmounted.

    So suppress the ERROR message.

    Signed-off-by: Tao Ma
    Signed-off-by: Mark Fasheh

    Tao Ma
     
  • Linus Torvalds
     
  • * git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6:
    ipv6: Fix OOPS in ip6_dst_lookup_tail().
    ipsec: Restore larval states and socket policies in dump
    [Bluetooth] Reject L2CAP connections on an insecure ACL link
    [Bluetooth] Enforce correct authentication requirements
    [Bluetooth] Fix reference counting during ACL config stage

    Linus Torvalds
     
  • * git://git.kernel.org/pub/scm/linux/kernel/git/davem/sparc-2.6:
    sparc64: Disable timer interrupts in fixup_irqs().

    Linus Torvalds
     
  • This fixes kernel bugzilla 11469: "TUN with 1024 neighbours:
    ip6_dst_lookup_tail NULL crash"

    dst->neighbour is not necessarily hooked up at this point
    in the processing path, so blindly dereferencing it is
    the wrong thing to do. This NULL check exists in other
    similar paths and this case was just an oversight.

    Also fix the completely wrong and confusing indentation
    here while we're at it.

    Based upon a patch by Evgeniy Polyakov.

    Signed-off-by: Neil Horman
    Signed-off-by: David S. Miller

    Neil Horman
     
  • …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:
    clockevents: remove WARN_ON which was used to gather information

    Linus Torvalds