Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Commits on Jan 7, 2007
  1. Linux 2.6.20-rc4

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

    Linus Torvalds authored
    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>
  2. Merge master.kernel.org:/pub/scm/linux/kernel/git/gregkh/driver-2.6

    Linus Torvalds authored
    * 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
  3. Merge master.kernel.org:/pub/scm/linux/kernel/git/gregkh/pci-2.6

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

    Linus Torvalds authored
    * 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
  5. Merge branch 'i2c-for-linus' of git://jdelvare.pck.nerim.net/jdelvare…

    Linus Torvalds authored
    …-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
  6. [PATCH] connector: some fixes for ia64 unaligned access errors

    Erik Jacobson authored Linus Torvalds committed
    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>
  7. [PATCH] shrink_all_memory(): fix lru_pages handling

    Andrew Morton authored Linus Torvalds committed
    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>
  8. @Dushistov

    [PATCH] fix garbage instead of zeroes in UFS

    Dushistov authored Linus Torvalds committed
    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>
  9. [PATCH] fix OOM killing of swapoff

    Hugh Dickins authored Linus Torvalds committed
    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>
  10. @matko

    [PATCH] fix the toshiba_acpi write_lcd return value

    matko authored Linus Torvalds committed
    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>
  11. @cyrillos

    [PATCH] qconf: fix SIGSEGV on empty menu items

    cyrillos authored Linus Torvalds committed
    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>
  12. [PATCH] Check for populated zone in __drain_pages

    Christoph Lameter authored Linus Torvalds committed
    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>
  13. @Alan-Cox

    [PATCH] hpt37x: Two important bug fixes

    Alan-Cox authored Linus Torvalds committed
    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>
  14. [PATCH] pata_optidma: typo in Kconfig

    Alexey Dobriyan authored Linus Torvalds committed
    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>
  15. [PATCH] KVM: Simplify test for interrupt window

    Dor Laor authored Linus Torvalds committed
    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>
  16. [PATCH] KVM: Simplify mmu_alloc_roots()

    Ingo Molnar authored Linus Torvalds committed
    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>
  17. [PATCH] KVM: Make loading cr3 more robust

    Ingo Molnar authored Linus Torvalds committed
    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>
  18. [PATCH] KVM: MMU: Add missing dirty bit

    Avi Kivity authored Linus Torvalds committed
    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>
  19. [PATCH] KVM: Don't set guest cr3 from vmx_vcpu_setup()

    Avi Kivity authored Linus Torvalds committed
    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>
  20. [PATCH] KVM: Add missing 'break'

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

    Ingo Molnar authored Linus Torvalds committed
    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>
  22. [PATCH] KVM: Initialize vcpu->kvm a little earlier

    Avi Kivity authored Linus Torvalds committed
    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>
  23. [PATCH] KVM: Improve reporting of vmwrite errors

    Avi Kivity authored Linus Torvalds committed
    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>
  24. [PATCH] KVM: MMU: add audit code to check mappings, etc are correct

    Avi Kivity authored Linus Torvalds committed
    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>
  25. [PATCH] KVM: MMU: Destroy mmu while we still have a vcpu left

    Avi Kivity authored Linus Torvalds committed
    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>
  26. [PATCH] KVM: MMU: Flush guest tlb when reducing permissions on a pte

    Avi Kivity authored Linus Torvalds committed
    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>
  27. [PATCH] KVM: MMU: Detect oom conditions and propagate error to userspace

    Avi Kivity authored Linus Torvalds committed
    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>
  28. [PATCH] KVM: MMU: Replace atomic allocations by preallocated objects

    Avi Kivity authored Linus Torvalds committed
    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>
  29. [PATCH] KVM: MMU: Free pages on kvm destruction

    Avi Kivity authored Linus Torvalds committed
    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>
  30. [PATCH] KVM: MMU: Treat user-mode faults as a hint that a page is no …

    Avi Kivity authored Linus Torvalds committed
    …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>
  31. [PATCH] KVM: MMU: Fix cmpxchg8b emulation

    Avi Kivity authored Linus Torvalds committed
    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>
  32. [PATCH] KVM: MMU: Never free a shadow page actively serving as a root

    Avi Kivity authored Linus Torvalds committed
    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>
  33. [PATCH] KVM: MMU: Page table write flood protection

    Avi Kivity authored Linus Torvalds committed
    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>
  34. [PATCH] KVM: MMU: If an empty shadow page is not empty, report more info

    Avi Kivity authored Linus Torvalds committed
    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>
Something went wrong with that request. Please try again.