19 Jun, 2008

4 commits

  • * 'agp-patches' of git://git.kernel.org/pub/scm/linux/kernel/git/airlied/agp-2.6:
    agp/intel: cleanup some serious whitespace badness
    [AGP] intel_agp: Add support for Intel 4 series chipsets
    [AGP] intel_agp: extra stolen mem size available for IGD_GM chipset
    agp: more boolean conversions.
    drivers/char/agp - use bool
    agp: two-stage page destruction issue
    agp/via: fixup pci ids

    Linus Torvalds
     
  • Signed-off-by: Dave Airlie

    Dave Airlie
     
  • Use boolean in AGP instead of having own TRUE/FALSE

    --
    Signed-off-by: Joe Perches
    Signed-off-by: Dave Airlie

    Joe Perches
     
  • * git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6: (43 commits)
    netlink: genl: fix circular locking
    Revert "mac80211: Use skb_header_cloned() on TX path."
    af_unix: fix 'poll for write'/ connected DGRAM sockets
    tun: Proper handling of IPv6 header in tun driver when TUN_NO_PI is set
    atl1: relax eeprom mac address error check
    net/enc28j60: low power mode
    net/enc28j60: section fix
    sky2: 88E8040T pci device id
    netxen: download firmware in pci probe
    netxen: cleanup debug messages
    netxen: remove global physical_port array
    netxen: fix portnum for hp mezz cards
    ibm_newemac: select CRC32 in Kconfig
    xfrm: fix fragmentation for ipv4 xfrm tunnel
    netfilter: nf_conntrack_h323: fix module unload crash
    netfilter: nf_conntrack_h323: fix memory leak in module initialization error path
    netfilter: nf_nat: fix RCU races
    atm: [he] send idle cells instead of unassigned when in SDH mode
    atm: [he] limit queries to the device's register space
    atm: [br2864] fix routed vcmux support
    ...

    Linus Torvalds
     

18 Jun, 2008

1 commit

  • Fix three ct_extend/NAT extension related races:

    - When cleaning up the extension area and removing it from the bysource hash,
    the nat->ct pointer must not be set to NULL since it may still be used in
    a RCU read side

    - When replacing a NAT extension area in the bysource hash, the nat->ct
    pointer must be assigned before performing the replacement

    - When reallocating extension storage in ct_extend, the old memory must
    not be freed immediately since it may still be used by a RCU read side

    Possibly fixes https://bugzilla.redhat.com/show_bug.cgi?id=449315
    and/or http://bugzilla.kernel.org/show_bug.cgi?id=10875

    Signed-off-by: Patrick McHardy
    Signed-off-by: David S. Miller

    Patrick McHardy
     

17 Jun, 2008

7 commits

  • We've introduced extra need of compat layer for ip_tunnel_prl{}
    for PRL (Potential Router List) management. Though compat_ioctl
    is still missing in ipv4/ipv6, let's make the interface more
    straight-forward and eliminate extra need for nasty compat layer
    anyway since the interface is new for 2.6.26.

    Signed-off-by: YOSHIFUJI Hideaki
    Signed-off-by: David S. Miller

    YOSHIFUJI Hideaki
     
  • * 'release' of git://git.kernel.org/pub/scm/linux/kernel/git/aegl/linux-2.6:
    [IA64] Fix CONFIG_IA64_SGI_UV build error
    [IA64] Update check_sal_cache_flush to use platform_send_ipi()
    [IA64] perfmon: fix async exit bug

    Linus Torvalds
     
  • * 'merge' of git://git.kernel.org/pub/scm/linux/kernel/git/paulus/powerpc: (21 commits)
    [POWERPC] Turn on ATA_SFF so we get SATA_SVW back in defconfigs
    [POWERPC] Remove ppc32's export of console_drivers
    [POWERPC] Fix -Os kernel builds with newer gcc versions
    [POWERPC] Fix bootwrapper builds with newer gcc versions
    [POWERPC] Build fix for drivers/macintosh/mediabay.c
    [POWERPC] Fix warning in pseries/eeh_driver.c
    [POWERPC] Add missing of_node_put in drivers/macintosh/therm_adt746x.c
    [POWERPC] Add missing of_node_put in drivers/macintosh/smu.c
    [POWERPC] Add missing of_node_put in pseries/nvram.c
    [POWERPC] Fix return value check logic in debugfs virq_mapping setup
    [POWERPC] Fix rmb to order cacheable vs. noncacheable
    powerpc/spufs: fix missed stop-and-signal event
    powerpc/spufs: synchronize interaction between spu exception handling and time slicing
    powerpc/spufs: remove class_0_dsisr from spu exception handling
    powerpc/spufs: wait for stable spu status in spu_stopped()
    [POWERPC] bootwrapper: add simpleImage* to list of boot targets
    [POWERPC] 83xx: MPC837xRDB's VSC7385 ethernet switch isn't on the MDIO bus
    [POWERPC] Updated Freescale PPC defconfigs
    [POWERPC] 8610: Update defconfig for MPC8610 HPCD
    [POWERPC] 85xx: MPC8548CDS - Fix size of PCIe IO space
    ...

    Linus Torvalds
     
  • * 'upstream' of git://ftp.linux-mips.org/pub/scm/upstream-linus:
    [MIPS] Au1200: MMC resource size off by one
    [MIPS] TANBAC: Update defconfig
    [MIPS] Vr41xx: Initialize PCI io_map_base
    [MIPS] Malta: Always compile MTD platform device registration code.
    [MIPS] Malta: Fix build errors for 64-bit kernels
    [MIPS] Lasat: sysctl fixup
    [MIPS] Fix buggy use of kmap_coherent.
    [MIPS] Lasat: bring back from the dead
    [MIPS] vpe_id is required for VSMP and SMTC builds
    [MIPS] Export smp_call_function and smp_call_function_single.
    [MIPS] Bring the SWARM defconfig up to date
    [MIPS] Sibyte: Build RTC support as an object
    [MIPS] Fix the fix for divide by zero error in build_{clear,copy}_page
    [MIPS] Fix build for PNX platforms.
    [MIPS] Add RM200 with R5000 CPU to known ARC machines
    [MIPS] Better load address for big endian SNI RM
    [MIPS] SB1250: Initialize io_map_base
    [MIPS] Alchemy: Add au1500 reserved interrupt
    [MIPS] Export empty_zero_page for sake of the ext4 module.

    Linus Torvalds
     
  • This seems to have been removed accidentally in commit
    ed7b1889da256977574663689b598d88950bbd23 ("Unexport asm/page.h"), but
    wasn't supposed to have been -- the original patch at
    http://lkml.org/lkml/2007/10/30/144 just moved it from $(header-y) to
    $(unifdef-y)

    Signed-off-by: David Woodhouse
    Acked-by: Peter Korsgaard
    Signed-off-by: Linus Torvalds

    David Woodhouse
     
  • This file is only included where it makes sense now, so there's no need
    for the CONFIG_ARCH_SUPPORTS_AOUT conditional -- and that conditional is
    bad, because we want to export to userspace.

    Signed-off-by: David Woodhouse
    Acked-by: Peter Korsgaard
    Signed-off-by: Linus Torvalds

    David Woodhouse
     
  • Fix build error in CONFIG_IA64_SGI_UV config. (GENERIC builds
    are ok).

    Signed-off-by: Jack Steiner
    Signed-off-by: Tony Luck

    Jack Steiner
     

16 Jun, 2008

10 commits


15 Jun, 2008

1 commit

  • * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jbarnes/pci-2.6:
    PCI: fixup write combine comment in pci_mmap_resource
    x86: PAT export resource_wc in pci sysfs
    x86, pci-dma.c: don't always add __GFP_NORETRY to gfp
    suspend-vs-iommu: prevent suspend if we could not resume
    x86: pci-dma.c: use __GFP_NO_OOM instead of __GFP_NORETRY
    pci, x86: add workaround for bug in ASUS A7V600 BIOS (rev 1005)
    PCI: use dev_to_node in pci_call_probe
    PCI: Correct last two HP entries in the bfsort whitelist

    Linus Torvalds
     

14 Jun, 2008

1 commit


13 Jun, 2008

11 commits

  • ip_fast_csum needs an asm "memory" clobber, otherwise the aggressive
    optimizations in gcc-4.3 cause it to be miscompiled.

    Signed-off-by: Kyle McMartin

    Kyle McMartin
     
  • * git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6:
    tcp: Revert 'process defer accept as established' changes.
    ipv6: Fix duplicate initialization of rawv6_prot.destroy
    bnx2x: Updating the Maintainer
    net: Eliminate flush_scheduled_work() calls while RTNL is held.
    drivers/net/r6040.c: correct bad use of round_jiffies()
    fec_mpc52xx: MPC52xx_MESSAGES_DEFAULT: 2nd NETIF_MSG_IFDOWN => IFUP
    ipg: fix receivemode IPG_RM_RECEIVEMULTICAST{,HASH} in ipg_nic_set_multicast_list()
    netfilter: nf_conntrack: fix ctnetlink related crash in nf_nat_setup_info()
    netfilter: Make nflog quiet when no one listen in userspace.
    ipv6: Fail with appropriate error code when setting not-applicable sockopt.
    ipv6: Check IPV6_MULTICAST_LOOP option value.
    ipv6: Check the hop limit setting in ancillary data.
    ipv6 route: Fix route lifetime in netlink message.
    ipv6 mcast: Check address family of gf_group in getsockopt(MS_FILTER).
    dccp: Bug in initial acknowledgment number assignment
    dccp ccid-3: X truncated due to type conversion
    dccp ccid-3: TFRC reverse-lookup Bug-Fix
    dccp ccid-2: Bug-Fix - Ack Vectors need to be ignored on request sockets
    dccp: Fix sparse warnings
    dccp ccid-3: Bug-Fix - Zero RTT is possible

    Linus Torvalds
     
  • * master.kernel.org:/home/rmk/linux-2.6-arm:
    [ARM] 5091/1: Add missing bitfield include to regs-lcd.h
    [ARM] 5090/1: Correct pxafb palette typo error
    [ARM] 5077/1: spi: fix list scan success verification in PXA ssp driver

    Linus Torvalds
     
  • We need this at least for huge page detection for now, because powerpc
    needs the vm_area_struct to be able to determine whether a virtual address
    is referring to a huge page (its pmd_huge() doesn't work).

    It might also come in handy for some of the other users.

    Signed-off-by: Dave Hansen
    Acked-by: Matt Mackall
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Dave Hansen
     
  • Add support for the next generation of HP Smart Array SAS/SATA
    controllers. Shipping date is late Fall 2008.

    Bump the driver version to 3.6.20 to reflect the new hardware support from
    patch 1 of this set.

    Signed-off-by: Mike Miller
    Cc: Jens Axboe
    Cc:
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Mike Miller
     
  • Move the forward-declaration of struct mm_struct a little way up
    proc_fs.h. This fixes a bunch of "'struct mm_struct' declared inside
    parameter list" warnings with CONFIG_PROC_FS=n

    Signed-off-by: Ben Nizette
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Ben Nizette
     
  • Add ext2_find_{first,next}_bit(), which are needed for ext4. They're
    derived out of the ext2_find_next_zero_bit found in the same file.
    Compile tested with crosstools

    [Reworked to preserve all symmetry with ext2_find_{first,next}_zero_bit()]

    This fixes http://bugzilla.kernel.org/show_bug.cgi?id=10393

    [akpm@linux-foundation.org: coding-style fixes]
    Signed-off-by: Geert Uytterhoeven
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Aneesh Kumar K.V
     
  • This reverts two changesets, ec3c0982a2dd1e671bad8e9d26c28dcba0039d87
    ("[TCP]: TCP_DEFER_ACCEPT updates - process as established") and
    the follow-on bug fix 9ae27e0adbf471c7a6b80102e38e1d5a346b3b38
    ("tcp: Fix slab corruption with ipv6 and tcp6fuzz").

    This change causes several problems, first reported by Ingo Molnar
    as a distcc-over-loopback regression where connections were getting
    stuck.

    Ilpo Järvinen first spotted the locking problems. The new function
    added by this code, tcp_defer_accept_check(), only has the
    child socket locked, yet it is modifying state of the parent
    listening socket.

    Fixing that is non-trivial at best, because we can't simply just grab
    the parent listening socket lock at this point, because it would
    create an ABBA deadlock. The normal ordering is parent listening
    socket --> child socket, but this code path would require the
    reverse lock ordering.

    Next is a problem noticed by Vitaliy Gusev, he noted:

    ----------------------------------------
    >--- a/net/ipv4/tcp_timer.c
    >+++ b/net/ipv4/tcp_timer.c
    >@@ -481,6 +481,11 @@ static void tcp_keepalive_timer (unsigned long data)
    > goto death;
    > }
    >
    >+ if (tp->defer_tcp_accept.request && sk->sk_state == TCP_ESTABLISHED) {
    >+ tcp_send_active_reset(sk, GFP_ATOMIC);
    >+ goto death;

    Here socket sk is not attached to listening socket's request queue. tcp_done()
    will not call inet_csk_destroy_sock() (and tcp_v4_destroy_sock() which should
    release this sk) as socket is not DEAD. Therefore socket sk will be lost for
    freeing.
    ----------------------------------------

    Finally, Alexey Kuznetsov argues that there might not even be any
    real value or advantage to these new semantics even if we fix all
    of the bugs:

    ----------------------------------------
    Hiding from accept() sockets with only out-of-order data only
    is the only thing which is impossible with old approach. Is this really
    so valuable? My opinion: no, this is nothing but a new loophole
    to consume memory without control.
    ----------------------------------------

    So revert this thing for now.

    Signed-off-by: David S. Miller

    David S. Miller
     
  • …6/linux-2.6-tip into for-linus

    Jesse Barnes
     
  • …l/git/tip/linux-2.6-tip

    * 'sched-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip:
    sched: 64-bit: fix arithmetics overflow
    sched: fair group: fix overflow(was: fix divide by zero)
    sched: fix TASK_WAKEKILL vs SIGKILL race

    Linus Torvalds
     
  • Macros like Fld() or FShft used in regs-lcd.h are defined in bitfield.h, but
    the latter is not included.
    Also fix one whitespace issue while being there.

    Signed-off-by: Antonio Ospite
    Signed-off-by: Stefan Schmidt
    Acked-by: Eric Miao
    Signed-off-by: Russell King

    Stefan Schmidt
     

12 Jun, 2008

5 commits

  • * 'core/iter-div' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip:
    always_inline timespec_add_ns
    add an inlined version of iter_div_u64_rem
    common implementation of iterative div/mod

    Linus Torvalds
     
  • timespec_add_ns is used from the x86-64 vdso, which cannot call out to
    other kernel code. Make sure that timespec_add_ns is always inlined
    (and only uses always_inlined functions) to make sure there are no
    unexpected calls.

    Signed-off-by: Jeremy Fitzhardinge
    Signed-off-by: Ingo Molnar

    Jeremy Fitzhardinge
     
  • iter_div_u64_rem is used in the x86-64 vdso, which cannot call other
    kernel code. For this case, provide the always_inlined version,
    __iter_div_u64_rem.

    Signed-off-by: Jeremy Fitzhardinge
    Signed-off-by: Ingo Molnar

    Jeremy Fitzhardinge
     
  • We have a few instances of the open-coded iterative div/mod loop, used
    when we don't expcet the dividend to be much bigger than the divisor.
    Unfortunately modern gcc's have the tendency to strength "reduce" this
    into a full mod operation, which isn't necessarily any faster, and
    even if it were, doesn't exist if gcc implements it in libgcc.

    The workaround is to put a dummy asm statement in the loop to prevent
    gcc from performing the transformation.

    This patch creates a single implementation of this loop, and uses it
    to replace the open-coded versions I know about.

    Signed-off-by: Jeremy Fitzhardinge
    Cc: Andrew Morton
    Cc: john stultz
    Cc: Segher Boessenkool
    Cc: Christian Kujau
    Cc: Robert Hancock
    Signed-off-by: Ingo Molnar

    Jeremy Fitzhardinge
     
  • For the ranges with IORESOURCE_PREFETCH, export a new resource_wc interface in
    pci /sysfs along with resource (which is uncached).

    Signed-off-by: Venkatesh Pallipadi
    Signed-off-by: Suresh Siddha
    Acked-by: Jesse Barnes
    Signed-off-by: Ingo Molnar
    Signed-off-by: Thomas Gleixner

    venkatesh.pallipadi@intel.com