Permalink
Commits on Jan 7, 2007
  1. Linux 2.6.20-rc4

    Linus Torvalds committed Jan 7, 2007
Commits on Jan 6, 2007
  1. Revert "[PATCH] binfmt_elf: randomize PIE binaries (2nd try)"

    This reverts commit 59287c0.
    
    Hugh Dickins reports that it causes random failures on x86 with SuSE
    10.2, and points out
    
      "Isn't that randomization, anywhere from 0x10000 to ELF_ET_DYN_BASE,
       sure to place the ET_DYN from time to time just where the comment
       says it's trying to avoid? I assume that somehow results in the error
       reported."
    
    (where the comment in question is the existing comment in the source
    code about mmap/brk clashes).
    
    Suggested-by: Hugh Dickins <hugh@veritas.com>
    Acked-by: Marcus Meissner <meissner@suse.de>
    Cc: Andrew Morton <akpm@osdl.org>
    Cc: Andi Kleen <ak@suse.de>
    Cc: Ingo Molnar <mingo@elte.hu>
    Cc: Dave Jones <davej@codemonkey.org.uk>
    Cc: Arjan van de Ven <arjan@linux.intel.com>
    Signed-off-by: Linus Torvalds <torvalds@osdl.org>
    Linus Torvalds committed Jan 6, 2007
  2. Merge master.kernel.org:/pub/scm/linux/kernel/git/gregkh/driver-2.6

    * master.kernel.org:/pub/scm/linux/kernel/git/gregkh/driver-2.6:
      [PATCH] Driver core: Fix prefix driver links in /sys/module by bus-name
    Linus Torvalds committed Jan 6, 2007
  3. Merge master.kernel.org:/pub/scm/linux/kernel/git/gregkh/pci-2.6

    * master.kernel.org:/pub/scm/linux/kernel/git/gregkh/pci-2.6:
      [PATCH] PCI: disable PCI_MULTITHREAD_PROBE
    Linus Torvalds committed Jan 6, 2007
  4. Merge master.kernel.org:/pub/scm/linux/kernel/git/gregkh/usb-2.6

    * master.kernel.org:/pub/scm/linux/kernel/git/gregkh/usb-2.6:
      USB: asix: Fix AX88772 device PHY selection
      USB: usblp.c - add Kyocera Mita FS 820 to list of "quirky" printers
      sisusb_con warning fixes
      USB: Fixed bug in endpoint release function.
      USB: small update to Documentation/usb/acm.txt
      USB storage: fix ipod ejecting issue
      USB Storage: unusual_devs: add supertop drives
      USB: omap_udc build fixes (sync with linux-omap)
      USB: funsoft is borken on sparc
      USB: fix interaction between different interfaces in an "Option" usb device
      UHCI: support device_may_wakeup
      UHCI: make test for ASUS motherboard more specific
    Linus Torvalds committed Jan 6, 2007
  5. Merge branch 'i2c-for-linus' of git://jdelvare.pck.nerim.net/jdelvare…

    …-2.6
    
    * 'i2c-for-linus' of git://jdelvare.pck.nerim.net/jdelvare-2.6:
      i2c/m41t00: Do not forget to write year
      i2c-mv64xxx: Fix random oops at boot
      i2c: Migration aids for i2c_adapter.dev removal
      i2c-pnx: Add entry to MAINTAINERS
      i2c-pnx: Fix interrupt handler, get rid of EARLY config option
    Linus Torvalds committed Jan 6, 2007
  6. [PATCH] connector: some fixes for ia64 unaligned access errors

    On ia64, the various functions that make up cn_proc.c cause kernel
    unaligned access errors.
    
    If you are using these, for example, to get notification about all tasks
    forking and exiting, you get multiple unaligned access errors per process.
    
    Use put_unaligned() in the appropriate palces to fix this.
    
    Signed-off-by: Erik Jacobson <erikj@sgi.com>
    Cc: Evgeniy Polyakov <johnpol@2ka.mipt.ru>
    Cc: "Luck, Tony" <tony.luck@intel.com>
    Cc: <stable@kernel.org>
    Cc: "David S. Miller" <davem@davemloft.net>
    Signed-off-by: Andrew Morton <akpm@osdl.org>
    Signed-off-by: Linus Torvalds <torvalds@osdl.org>
    erikja committed with Linus Torvalds Jan 6, 2007
  7. [PATCH] shrink_all_memory(): fix lru_pages handling

    At the end of shrink_all_memory() we forget to recalculate lru_pages: it can
    be zero.
    
    Fix that up, and add a helper function for this operation too.
    
    Also, recalculate lru_pages each time around the inner loop to get the
    balancing correct.
    
    Cc: "Rafael J. Wysocki" <rjw@sisk.pl>
    Cc: Pavel Machek <pavel@ucw.cz>
    Signed-off-by: Andrew Morton <akpm@osdl.org>
    Signed-off-by: Linus Torvalds <torvalds@osdl.org>
    Andrew Morton committed with Linus Torvalds Jan 6, 2007
  8. [PATCH] fix garbage instead of zeroes in UFS

    Looks like this is the problem, which point Al Viro some time ago:
    
    ufs's get_block callback allocates 16k of disk at a time, and links that
    entire 16k into the file's metadata.  But because get_block is called for only
    a single buffer_head (a 2k buffer_head in this case?) we are only able to tell
    the VFS that this 2k is buffer_new().
    
    So when ufs_getfrag_block() is later called to map some more data in the file,
    and when that data resides within the remaining 14k of this fragment,
    ufs_getfrag_block() will incorrectly return a !buffer_new() buffer_head.
    
    I don't see _right_ way to do nullification of whole block, if use inode
    page cache, some pages may be outside of inode limits (inode size), and
    will be lost; if use blockdev page cache it is possible to zero real data,
    if later inode page cache will be used.
    
    The simpliest way, as can I see usage of block device page cache, but not only
    mark dirty, but also sync it during "nullification".  I use my simple tests
    collection, which I used for check that create,open,write,read,close works on
    ufs, and I see that this patch makes ufs code 18% slower then before.
    
    Signed-off-by: Andrew Morton <akpm@osdl.org>
    Signed-off-by: Linus Torvalds <torvalds@osdl.org>
    Dushistov committed with Linus Torvalds Jan 6, 2007
  9. [PATCH] fix OOM killing of swapoff

    These days, if you swapoff when there isn't enough memory, OOM killer gives
    "BUG: scheduling while atomic" and the machine hangs: badness() needs to do
    its PF_SWAPOFF return after the task_unlock (tasklist_lock is also held
    here, so p isn't going to be freed: PF_SWAPOFF might get turned off at any
    moment, but that doesn't really matter).
    
    Signed-off-by: Hugh Dickins <hugh@veritas.com>
    Cc: <stable@kernel.org>
    Signed-off-by: Andrew Morton <akpm@osdl.org>
    Signed-off-by: Linus Torvalds <torvalds@osdl.org>
    Hugh Dickins committed with Linus Torvalds Jan 6, 2007
  10. [PATCH] fix the toshiba_acpi write_lcd return value

    write_lcd() in toshiba_acpi returns 0 on success since the big ACPI patch
    merged in 2.6.20-rc2.  It should return count.
    
    Signed-off-by: Matthijs van Otterdijk <thotter@gmail.com>
    Cc: Len Brown <lenb@kernel.org>
    Signed-off-by: Andrew Morton <akpm@osdl.org>
    Signed-off-by: Linus Torvalds <torvalds@osdl.org>
    matko committed with Linus Torvalds Jan 6, 2007
  11. [PATCH] qconf: fix SIGSEGV on empty menu items

    qconf may cause SIGSEGV by trying to show debug information on empty menu
    items
    
    Signed-off-by: Cyrill V. Gorcunov <gorcunov@gmail.com>
    Cc: Roman Zippel <zippel@linux-m68k.org>
    Signed-off-by: Andrew Morton <akpm@osdl.org>
    Signed-off-by: Linus Torvalds <torvalds@osdl.org>
    cyrillos committed with Linus Torvalds Jan 6, 2007
  12. [PATCH] Check for populated zone in __drain_pages

    Both process_zones() and drain_node_pages() check for populated zones
    before touching pagesets.  However, __drain_pages does not do so,
    
    This may result in a NULL pointer dereference for pagesets in unpopulated
    zones if a NUMA setup is combined with cpu hotplug.
    
    Initially the unpopulated zone has the pcp pointers pointing to the boot
    pagesets.  Since the zone is not populated the boot pageset pointers will
    not be changed during page allocator and slab bootstrap.
    
    If a cpu is later brought down (first call to __drain_pages()) then the pcp
    pointers for cpus in unpopulated zones are set to NULL since __drain_pages
    does not first check for an unpopulated zone.
    
    If the cpu is then brought up again then we call process_zones() which will
    ignore the unpopulated zone.  So the pageset pointers will still be NULL.
    
    If the cpu is then again brought down then __drain_pages will attempt to
    drain pages by following the NULL pageset pointer for unpopulated zones.
    
    Signed-off-by: Christoph Lameter <clameter@sgi.com>
    Signed-off-by: Andrew Morton <akpm@osdl.org>
    Signed-off-by: Linus Torvalds <torvalds@osdl.org>
    Christoph Lameter committed with Linus Torvalds Jan 6, 2007
  13. [PATCH] hpt37x: Two important bug fixes

    The HPT37x driver very carefully handles DMA completions and the needed
    fixups are done on pci registers 0x50 and 0x52.  This is unfortunate
    because the actual registers are 0x50 and 0x54.  Fixing this offset cures
    the second channel problems reported.
    
    Secondly there are some problems with the HPT370 and certain ATA drives.
    The filter code however only filters ATAPI devices due to a reversed type
    check.
    
    Signed-off-by: Alan Cox <alan@redhat.com>
    Signed-off-by: Andrew Morton <akpm@osdl.org>
    Signed-off-by: Linus Torvalds <torvalds@osdl.org>
    Alan-Cox committed with Linus Torvalds Jan 6, 2007
  14. [PATCH] pata_optidma: typo in Kconfig

    Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
    Acked-by: Alan Cox <alan@redhat.com>
    Cc: Jeff Garzik <jeff@garzik.org>
    Signed-off-by: Andrew Morton <akpm@osdl.org>
    Signed-off-by: Linus Torvalds <torvalds@osdl.org>
    Alexey Dobriyan committed with Linus Torvalds Jan 6, 2007
  15. [PATCH] KVM: Simplify test for interrupt window

    No need to test for rflags.if as both VT and SVM specs assure us that on exit
    caused from interrupt window opening, 'if' is set.
    
    Signed-off-by: Dor Laor <dor.laor@qumranet.com>
    Signed-off-by: Avi Kivity <avi@qumranet.com>
    Signed-off-by: Andrew Morton <akpm@osdl.org>
    Signed-off-by: Linus Torvalds <torvalds@osdl.org>
    Dor Laor committed with Linus Torvalds Jan 6, 2007
  16. [PATCH] KVM: Simplify mmu_alloc_roots()

    Small optimization/cleanup:
    
        page == page_header(page->page_hpa)
    
    Signed-off-by: Ingo Molnar <mingo@elte.hu>
    Signed-off-by: Avi Kivity <avi@qumranet.com>
    Signed-off-by: Andrew Morton <akpm@osdl.org>
    Signed-off-by: Linus Torvalds <torvalds@osdl.org>
    Ingo Molnar committed with Linus Torvalds Jan 6, 2007
  17. [PATCH] KVM: Make loading cr3 more robust

    Prevent the guest's loading of a corrupt cr3 (pointing at no guest phsyical
    page) from crashing the host.
    
    Signed-off-by: Ingo Molnar <mingo@elte.hu>
    Signed-off-by: Avi Kivity <avi@qumranet.com>
    Signed-off-by: Andrew Morton <akpm@osdl.org>
    Signed-off-by: Linus Torvalds <torvalds@osdl.org>
    Ingo Molnar committed with Linus Torvalds Jan 6, 2007
  18. [PATCH] KVM: MMU: Add missing dirty bit

    If we emulate a write, we fail to set the dirty bit on the guest pte, leading
    the guest to believe the page is clean, and thus lose data.  Bad.
    
    Fix by setting the guest pte dirty bit under such conditions.
    
    Signed-off-by: Avi Kivity <avi@qumranet.com>
    Signed-off-by: Andrew Morton <akpm@osdl.org>
    Signed-off-by: Linus Torvalds <torvalds@osdl.org>
    Avi Kivity committed with Linus Torvalds Jan 6, 2007
  19. [PATCH] KVM: Don't set guest cr3 from vmx_vcpu_setup()

    It overwrites the right cr3 set from mmu setup.  Happens only with the test
    harness.
    
    Signed-off-by: Avi Kivity <avi@qumranet.com>
    Signed-off-by: Andrew Morton <akpm@osdl.org>
    Signed-off-by: Linus Torvalds <torvalds@osdl.org>
    Avi Kivity committed with Linus Torvalds Jan 6, 2007
  20. [PATCH] KVM: Add missing 'break'

    Signed-off-by: Avi Kivity <avi@qumranet.com>
    Signed-off-by: Andrew Morton <akpm@osdl.org>
    Signed-off-by: Linus Torvalds <torvalds@osdl.org>
    Avi Kivity committed with Linus Torvalds Jan 6, 2007
  21. [PATCH] KVM: Avoid oom on cr3 switch

    Signed-off-by: Ingo Molnar <mingo@elte.hu>
    Signed-off-by: Avi Kivity <avi@qumranet.com>
    Signed-off-by: Andrew Morton <akpm@osdl.org>
    Signed-off-by: Linus Torvalds <torvalds@osdl.org>
    Ingo Molnar committed with Linus Torvalds Jan 6, 2007
  22. [PATCH] KVM: Initialize vcpu->kvm a little earlier

    Fixes oops on early close of /dev/kvm.
    
    Signed-off-by: Avi Kivity <avi@qumranet.com>
    Signed-off-by: Andrew Morton <akpm@osdl.org>
    Signed-off-by: Linus Torvalds <torvalds@osdl.org>
    Avi Kivity committed with Linus Torvalds Jan 6, 2007
  23. [PATCH] KVM: Improve reporting of vmwrite errors

    This will allow us to see the root cause when a vmwrite error happens.
    
    Signed-off-by: Avi Kivity <avi@qumranet.com>
    Signed-off-by: Andrew Morton <akpm@osdl.org>
    Signed-off-by: Linus Torvalds <torvalds@osdl.org>
    Avi Kivity committed with Linus Torvalds Jan 6, 2007
  24. [PATCH] KVM: MMU: add audit code to check mappings, etc are correct

    Signed-off-by: Avi Kivity <avi@qumranet.com>
    Acked-by: Ingo Molnar <mingo@elte.hu>
    Signed-off-by: Andrew Morton <akpm@osdl.org>
    Signed-off-by: Linus Torvalds <torvalds@osdl.org>
    Avi Kivity committed with Linus Torvalds Jan 6, 2007
  25. [PATCH] KVM: MMU: Destroy mmu while we still have a vcpu left

    mmu_destroy flushes the guest tlb (indirectly), which needs a valid vcpu.
    
    Signed-off-by: Avi Kivity <avi@qumranet.com>
    Acked-by: Ingo Molnar <mingo@elte.hu>
    Signed-off-by: Andrew Morton <akpm@osdl.org>
    Signed-off-by: Linus Torvalds <torvalds@osdl.org>
    Avi Kivity committed with Linus Torvalds Jan 6, 2007
  26. [PATCH] KVM: MMU: Flush guest tlb when reducing permissions on a pte

    If we reduce permissions on a pte, we must flush the cached copy of the pte
    from the guest's tlb.
    
    This is implemented at the moment by flushing the entire guest tlb, and can be
    improved by flushing just the relevant virtual address, if it is known.
    
    Signed-off-by: Avi Kivity <avi@qumranet.com>
    Acked-by: Ingo Molnar <mingo@elte.hu>
    Signed-off-by: Andrew Morton <akpm@osdl.org>
    Signed-off-by: Linus Torvalds <torvalds@osdl.org>
    Avi Kivity committed with Linus Torvalds Jan 6, 2007
  27. [PATCH] KVM: MMU: Detect oom conditions and propagate error to userspace

    Signed-off-by: Avi Kivity <avi@qumranet.com>
    Acked-by: Ingo Molnar <mingo@elte.hu>
    Signed-off-by: Andrew Morton <akpm@osdl.org>
    Signed-off-by: Linus Torvalds <torvalds@osdl.org>
    Avi Kivity committed with Linus Torvalds Jan 6, 2007
  28. [PATCH] KVM: MMU: Replace atomic allocations by preallocated objects

    The mmu sometimes needs memory for reverse mapping and parent pte chains.
    however, we can't allocate from within the mmu because of the atomic context.
    
    So, move the allocations to a central place that can be executed before the
    main mmu machinery, where we can bail out on failure before any damage is
    done.
    
    (error handling is deffered for now, but the basic structure is there)
    
    Signed-off-by: Avi Kivity <avi@qumranet.com>
    Acked-by: Ingo Molnar <mingo@elte.hu>
    Signed-off-by: Andrew Morton <akpm@osdl.org>
    Signed-off-by: Linus Torvalds <torvalds@osdl.org>
    Avi Kivity committed with Linus Torvalds Jan 6, 2007
  29. [PATCH] KVM: MMU: Free pages on kvm destruction

    Because mmu pages have attached rmap and parent pte chain structures, we need
    to zap them before freeing so the attached structures are freed.
    
    Signed-off-by: Avi Kivity <avi@qumranet.com>
    Acked-by: Ingo Molnar <mingo@elte.hu>
    Signed-off-by: Andrew Morton <akpm@osdl.org>
    Signed-off-by: Linus Torvalds <torvalds@osdl.org>
    Avi Kivity committed with Linus Torvalds Jan 6, 2007
  30. [PATCH] KVM: MMU: Treat user-mode faults as a hint that a page is no …

    …longer a page table
    
    Signed-off-by: Avi Kivity <avi@qumranet.com>
    Acked-by: Ingo Molnar <mingo@elte.hu>
    Signed-off-by: Andrew Morton <akpm@osdl.org>
    Signed-off-by: Linus Torvalds <torvalds@osdl.org>
    Avi Kivity committed with Linus Torvalds Jan 6, 2007
  31. [PATCH] KVM: MMU: Fix cmpxchg8b emulation

    cmpxchg8b uses edx:eax as the compare operand, not edi:eax.
    
    cmpxchg8b is used by 32-bit pae guests to set page table entries atomically,
    and this is emulated touching shadowed guest page tables.
    
    Also, implement it for 32-bit hosts.
    
    Signed-off-by: Avi Kivity <avi@qumranet.com>
    Acked-by: Ingo Molnar <mingo@elte.hu>
    Signed-off-by: Andrew Morton <akpm@osdl.org>
    Signed-off-by: Linus Torvalds <torvalds@osdl.org>
    Avi Kivity committed with Linus Torvalds Jan 6, 2007
  32. [PATCH] KVM: MMU: Never free a shadow page actively serving as a root

    We always need cr3 to point to something valid, so if we detect that we're
    freeing a root page, simply push it back to the top of the active list.
    
    Signed-off-by: Avi Kivity <avi@qumranet.com>
    Acked-by: Ingo Molnar <mingo@elte.hu>
    Signed-off-by: Andrew Morton <akpm@osdl.org>
    Signed-off-by: Linus Torvalds <torvalds@osdl.org>
    Avi Kivity committed with Linus Torvalds Jan 6, 2007
  33. [PATCH] KVM: MMU: Page table write flood protection

    In fork() (or when we protect a page that is no longer a page table), we can
    experience floods of writes to a page, which have to be emulated.  This is
    expensive.
    
    So, if we detect such a flood, zap the page so subsequent writes can proceed
    natively.
    
    Signed-off-by: Avi Kivity <avi@qumranet.com>
    Acked-by: Ingo Molnar <mingo@elte.hu>
    Signed-off-by: Andrew Morton <akpm@osdl.org>
    Signed-off-by: Linus Torvalds <torvalds@osdl.org>
    Avi Kivity committed with Linus Torvalds Jan 6, 2007
  34. [PATCH] KVM: MMU: If an empty shadow page is not empty, report more info

    Signed-off-by: Avi Kivity <avi@qumranet.com>
    Acked-by: Ingo Molnar <mingo@elte.hu>
    Signed-off-by: Andrew Morton <akpm@osdl.org>
    Signed-off-by: Linus Torvalds <torvalds@osdl.org>
    Avi Kivity committed with Linus Torvalds Jan 6, 2007