Permalink
Commits on Dec 14, 2006
  1. Linux v2.6.20-rc1

    Linus Torvalds
    Linus Torvalds committed Dec 14, 2006
    .. and so the stabilization phase starts.
    
    Signed-off-by: Linus Torvalds <torvalds@osdl.org>
  2. [NETFILTER]: bridge-netfilter: remove deferred hooks

    kaber authored and davem330 committed Dec 14, 2006
    Remove the deferred hooks and all related code as scheduled in
    feature-removal-schedule.
    
    Signed-off-by: Patrick McHardy <kaber@trash.net>
    Signed-off-by: David S. Miller <davem@davemloft.net>
  3. [IPV6]: Make fib6_node subtree depend on IPV6_SUBTREES

    kinordlu authored and David S. Miller committed Dec 14, 2006
    Make fib6_node 'subtree' depend on IPV6_SUBTREES.
    
    Signed-off-by: Kim Nordlund <kim.nordlund@nokia.com>
    Signed-off-by: David S. Miller <davem@davemloft.net>
  4. [SCTP]: Add support for SCTP_CONTEXT socket option.

    Ivan Skytte Jorgensen David S. Miller
    Ivan Skytte Jorgensen authored and David S. Miller committed Dec 14, 2006
    Signed-off-by: Ivan Skytte Jorgensen <isj-sctp@i1.dk>
    Signed-off-by: Sridhar Samudrala <sri@us.ibm.com>
    Signed-off-by: David S. Miller <davem@davemloft.net>
  5. [SCTP]: Enable auto loading of SCTP when creating an ipv6 SCTP socket.

    Sridhar Samudrala David S. Miller
    Sridhar Samudrala authored and David S. Miller committed Dec 14, 2006
    Signed-off-by: Sridhar Samudrala <sri@us.ibm.com>
    Signed-off-by: David S. Miller <davem@davemloft.net>
  6. [SCTP]: Handle address add/delete events in a more efficient way.

    Sridhar Samudrala David S. Miller
    Sridhar Samudrala authored and David S. Miller committed Dec 14, 2006
    Currently in SCTP, we maintain a local address list by rebuilding the whole
    list from the device list whenever we get a address add/delete event.
    
    This patch fixes it by only adding/deleting the address for which we
    receive the event.
    
    Also removed the sctp_local_addr_lock() which is no longer needed as we
    now use list_for_each_safe() to traverse this list. This fixes the bugs
    in sctp_copy_laddrs_xxx() routines where we do copy_to_user() while
    holding this lock.
    
    Signed-off-by: Sridhar Samudrala <sri@us.ibm.com>
    Signed-off-by: David S. Miller <davem@davemloft.net>
  7. [TCP]: Fix oops caused by __tcp_put_md5sig_pool()

    David S. Miller
    David S. Miller committed Dec 14, 2006
    It should call tcp_free_md5sig_pool() not __tcp_free_md5sig_pool()
    so that it does proper refcounting.
    
    Signed-off-by: David S. Miller <davem@davemloft.net>
  8. [IPV6]: Fix IPV6_UNICAST_HOPS getsockopt().

    Brian Haley David S. Miller
    Brian Haley authored and David S. Miller committed Dec 13, 2006
    > Relevant standard (RFC 3493) notes:
    >
    >    The IPV6_UNICAST_HOPS option may be used with getsockopt() to
    >    determine the hop limit value that the system will use for subsequent
    >    unicast packets sent via that socket.
    >
    > I don't reckon -1 could be the hop limit value.
    
    -1 means un-initialized.
    
    > IMHO, the value from
    > case 1 (if socket is connected to some destination), otherwise case 2
    > (if bound to a scope interface) or ultimately the default hop limit
    > ought to be returned instead, as it will be most often correct, while
    > the current behavior is always wrong, unless setsockopt() has been used
    > first. I don't if some people may think doing a route lookup in
    > getsockopt might be overly expensive, but at least the two other cases
    > should be ok, particularly the last one.
    
    The following patch seems to work for me, but this code has behaved this
    way for a while, so don't know if it will break any existing apps.
    
    Signed-off-by: Brian Haley <brian.haley@hp.com>
    Signed-off-by: David S. Miller <davem@davemloft.net>
  9. [DCCP] ccid3: return value in ccid3_hc_rx_calc_first_li

    imcdnzl authored and David S. Miller committed Dec 12, 2006
    In a recent patch we introduced invalid return codes which will result in the
    opposite of what is intended (i.e. send more packets in face of peculiar
    network conditions).
    
    This fixes it by returning ~0 which means not calculated as per
    dccp_li_hist_calc_i_mean.
    
    Signed-off-by: Ian McDonald <ian.mcdonald@jandi.co.nz>
    Signed-off-by: Arnaldo Carvalho de Melo <acme@mandriva.com>
  10. [NETFILTER]: {ip,ip6,arp}_tables: fix exponential worst-case search f…

    Al Viro David S. Miller
    Al Viro authored and David S. Miller committed Dec 12, 2006
    …or loops
    
    If we come to node we'd already marked as seen and it's not a part of path
    (i.e. we don't have a loop right there), we already know that it isn't a
    part of any loop, so we don't need to revisit it.
    
    That speeds the things up if some chain is refered to from several places
    and kills O(exp(table size)) worst-case behaviour (without sleeping,
    at that, so if you manage to self-LART that way, you are SOL for a long
    time)...
    
    Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
    Signed-off-by: Patrick McHardy <kaber@trash.net>
    Signed-off-by: David S. Miller <davem@davemloft.net>
  11. [NETFILTER]: ip_tables: ipt and ipt_compat checks unification

    Dmitry Mishin David S. Miller
    Dmitry Mishin authored and David S. Miller committed Dec 12, 2006
    Matches and targets verification is duplicated in normal and compat processing
    ways. This patch refactors code in order to remove this.
    
    Signed-off-by: Dmitry Mishin <dim@openvz.org>
    Signed-off-by: Patrick McHardy <kaber@trash.net>
    Signed-off-by: David S. Miller <davem@davemloft.net>
  12. [NETFILTER]: x_tables: add missing try to load conntrack from match/t…

    Yasuyuki Kozakai David S. Miller
    Yasuyuki Kozakai authored and David S. Miller committed Dec 12, 2006
    …argets
    
    CLUSTERIP, CONNMARK, CONNSECMARK, and connbytes need ip_conntrack or
    layer 3 protocol module of nf_conntrack.
    
    Signed-off-by: Yasuyuki Kozakai <yasuyuki.kozakai@toshiba.co.jp>
    Signed-off-by: Patrick McHardy <kaber@trash.net>
    Signed-off-by: David S. Miller <davem@davemloft.net>
  13. [NETFILTER]: x_tables: error if ip_conntrack is asked to handle IPv6 …

    Yasuyuki Kozakai David S. Miller
    Yasuyuki Kozakai authored and David S. Miller committed Dec 12, 2006
    …packets
    
    To do that, this makes nf_ct_l3proto_try_module_{get,put} compatible
    functions. As a result we can remove '#ifdef' surrounds and direct call of
    need_conntrack().
    
    Signed-off-by: Yasuyuki Kozakai <yasuyuki.kozakai@toshiba.co.jp>
    Signed-off-by: Patrick McHardy <kaber@trash.net>
    Signed-off-by: David S. Miller <davem@davemloft.net>
  14. [NETFILTER]: nf_nat: fix NF_NAT dependency

    Yasuyuki Kozakai David S. Miller
    Yasuyuki Kozakai authored and David S. Miller committed Dec 12, 2006
    NF_NAT depends on NF_CONNTRACK_IPV4, not NF_CONNTRACK.
    
    Signed-off-by: Yasuyuki Kozakai <yasuyuki.kozakai@toshiba.co.jp>
    Signed-off-by: Patrick McHardy <kaber@trash.net>
    Signed-off-by: David S. Miller <davem@davemloft.net>
  15. [NETFILTER]: Fix INET=n linking error

    kaber authored and David S. Miller committed Dec 12, 2006
    Building with INET=n results in
    
    WARNING: "ip_route_output_key" [net/netfilter/nf_conntrack_h323.ko] undefined!
    
    The entire code in net/netfilter is only used for IPv4/IPv6 currently, so
    let it depend on INET.
    
    Noticed by Toralf Förster <toralf.foerster@gmx.de>.
    
    Signed-off-by: Patrick McHardy <kaber@trash.net>
    Signed-off-by: David S. Miller <davem@davemloft.net>
Commits on Dec 13, 2006
  1. Merge branch 'for-linus' of master.kernel.org:/home/rmk/linux-2.6-arm

    Linus Torvalds
    Linus Torvalds committed Dec 13, 2006
    * 'for-linus' of master.kernel.org:/home/rmk/linux-2.6-arm:
      [ARM] 4017/1: [Jornada7xx] - Updating Jornada720.c
      [ARM] 3992/1: i.MX/MX1 CPU Frequency scaling support
      [ARM] Provide a method to alter the control register
      [ARM] 4016/1: prefetch macro is wrong wrt gcc's "delete-null-pointer-checks"
      [ARM] Remove empty fixup function
      [ARM] 4014/1: include drivers/hid/Kconfig
      [ARM] 4013/1: clocksource driver for netx
      [ARM] 4012/1: Clocksource for pxa
      [ARM] Clean up ioremap code
      [ARM] Unuse another Linux PTE bit
      [ARM] Clean up KERNEL_RAM_ADDR
      [ARM] Add sys_*at syscalls
      [ARM] 4004/1: S3C24XX: UDC remove implict addition of VA to regs
      [ARM] Formalise the ARMv6 processor name string
      [ARM] Handle HWCAP_VFP in VFP support code
      [ARM] 4011/1: AT91SAM9260: Fix compilation with NAND driver
      [ARM] 4010/1: AT91SAM9260-EK board: Prepare for MACB Ethernet support
  2. Merge branch 'release' of master.kernel.org:/home/ftp/pub/scm/linux/k…

    Linus Torvalds
    Linus Torvalds committed Dec 13, 2006
    …ernel/git/aegl/linux-2.6
    
    * 'release' of master.kernel.org:/home/ftp/pub/scm/linux/kernel/git/aegl/linux-2.6:
      [IA64] Move sg_dma_{len,address} from pci.h to scatterlist.h
  3. Driver core: deprecate PM_LEGACY, default it to N

    David Brownell authored and gregkh committed Dec 5, 2006
    Deprecate the old "legacy" PM API, and more importantly default it to "n".
    Virtually nothing in-tree uses it any more.
    
    Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
    Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  4. Driver core: Make platform_device_add_data accept a const pointer

    Scott Wood authored and gregkh committed Dec 4, 2006
    platform_device_add_data() makes a copy of the data that is given to it,
    and thus the parameter can be const.  This removes a warning when data
    from get_property() on powerpc is handed to platform_device_add_data(),
    as get_property() returns a const pointer.
    
    Signed-off-by: Scott Wood <scottwood@freescale.com>
    Signed-off-by: Andrew Morton <akpm@osdl.org>
    Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  5. Driver core: "platform_driver_probe() can save codespace": save codes…

    Andrew Morton authored and gregkh committed Dec 4, 2006
    …pace
    
    This function can be __init
    
    Cc: David Brownell <dbrownell@users.sourceforge.net>
    Cc: Dmitry Torokhov <dtor@mail.ru>
    Signed-off-by: Andrew Morton <akpm@osdl.org>
    Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  6. DebugFS : file/directory removal fix

    Mathieu Desnoyers authored and gregkh committed Nov 24, 2006
    Fix file and directory removal in debugfs. Add inotify support for file removal.
    
    The following scenario :
    create dir a
    create dir a/b
    
    cd a/b (some process goes in cwd a/b)
    
    rmdir a/b
    rmdir a
    
    fails due to the fact that "a" appears to be non empty. It is because
    the "b" dentry is not deleted from "a" and still in use. The same
    problem happens if "b" is a file. d_delete is nice enough to know when
    it needs to unhash and free the dentry if nothing else is using it or,
    if someone is using it, to remove it from the hash queues and wait for
    it to be deleted when it has no users.
    
    The nice side-effect of this fix is that it calls the file removal
    notification.
    
    Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
    Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  7. DebugFS : more file/directory creation error handling

    Mathieu Desnoyers authored and gregkh committed Nov 24, 2006
    Correct dentry count to handle creation errors.
    
    This patch puts a dput at the file creation instead of the file removal :
    lookup_one_len already returns a dentry with reference count of 1. Then,
    the dget() in simple_mknod increments it when the dentry is associated
    with a file. In a scenario where simple_create or simple_mkdir returns
    an error, this would lead to an unwanted increment of the reference
    counter, therefore making file removal impossible.
    
    Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
    Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  8. DebugFS : file/directory creation error handling

    Mathieu Desnoyers authored and gregkh committed Nov 24, 2006
    Fix error handling of file and directory creation in DebugFS.
    
    The error path should release the file system because no _remove will be called
    for this erroneous creation.
    
    Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
    Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  9. DebugFS : coding style fixes

    Mathieu Desnoyers authored and gregkh committed Nov 24, 2006
    Minor coding style fixes along the way : 80 cols and a white space.
    
    Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
    Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  10. DebugFS : inotify create/mkdir support

    Mathieu Desnoyers authored and gregkh committed Nov 24, 2006
    Add inotify create and mkdir events to DebugFS.
    
    Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
    Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  11. driver core: delete virtual directory on class_unregister()

    mita authored and gregkh committed Nov 20, 2006
    Class virtual directory is created as the need arises.
    But it is not deleted when the class is unregistered.
    
    Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com>
    Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  12. Driver core: show "initstate" of module

    kaysievers authored and gregkh committed Nov 24, 2006
    Show the initialization state(live, coming, going) of the module:
      $ cat /sys/module/usbcore/initstate
      live
    
    Signed-off-by: Kay Sievers <kay.sievers@vrfy.org>
    Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  13. [ARM] Merge AT91 and devel branches

    Russell King Russell King
    Russell King authored and Russell King committed Dec 13, 2006
    Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
  14. [ARM] 4017/1: [Jornada7xx] - Updating Jornada720.c

    Kristoffer Ericson Russell King
    Kristoffer Ericson authored and Russell King committed Dec 13, 2006
    * HP Jornada 720 uses epson 1356 chip for graphics. This chip is compatible with s1d13xxxfb driver.
    
    * HP Jornada 720 uses a Microprocessor Control Unit to talk to various
    hardware. We add it as a platform device in jornada720_init()
    
    * We provide pm_suspend() to avoid unresolved symbols in apm.o. We are
    unable to truly suspend now, hence the stub.
    
    * Speaker/microphone enabling got removed because it will be placed in the alsa driver.
    
    Signed-off-by: Filip Zyzniewski <(address hidden)>
    Signed-off-by: Kristoffer Ericson <(address hidden)>
    Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
  15. [IA64] Move sg_dma_{len,address} from pci.h to scatterlist.h

    Tony Luck
    Tony Luck committed Dec 13, 2006
    IA64 is in a tiny minority providing these defines in pci.h.
    Almost everyone else has them in scatterlist.h
    
    Signed-off-by: Tony Luck <tony.luck@intel.com>
  16. [ARM] 3992/1: i.MX/MX1 CPU Frequency scaling support

    ppisa authored and Russell King committed Dec 6, 2006
    Support to change MX1 CPU frequency at runtime.
    Tested on PiKRON's PiMX1 board and seems to be fully
    stable up to 200 MHz end even as low as 8 MHz.
    
    Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
    Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
  17. [ARM] Provide a method to alter the control register

    Russell King Russell King
    Russell King authored and Russell King committed Dec 13, 2006
    i.MX needs to tweak the control register to support CPU frequency
    scaling.  Rather than have folk blindly try and change the control
    register by writing to it and then wondering why it doesn't work,
    provide a method (which is safe for UP only, and therefore only
    available for UP) to achieve this.
    
    Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
  18. [ARM] 4016/1: prefetch macro is wrong wrt gcc's "delete-null-pointer-…

    Nicolas Pitre Russell King
    Nicolas Pitre authored and Russell King committed Dec 13, 2006
    …checks"
    
     optimization
    
    The gcc manual says:
    
    |`-fdelete-null-pointer-checks'
    |     Use global dataflow analysis to identify and eliminate useless
    |     checks for null pointers.  The compiler assumes that dereferencing
    |     a null pointer would have halted the program.  If a pointer is
    |     checked after it has already been dereferenced, it cannot be null.
    |     Enabled at levels `-O2', `-O3', `-Os'.
    
    Now the problem can be seen with this test case:
    
    #include <linux/prefetch.h>
    extern void bar(char *x);
    void foo(char *x)
    {
    	prefetch(x);
    	if (x)
    		bar(x);
    }
    
    Because the constraint to the inline asm used in the prefetch() macro is
    a memory operand, gcc assumes that the asm code does dereference the
    pointer and the delete-null-pointer-checks optimization kicks in.
    Inspection of generated assembly for the above example shows that bar()
    is indeed called unconditionally without any test on the value of x.
    
    Of course in the prefetch case there is no real dereference and it
    cannot be assumed that a null pointer would have been caught at that
    point. This causes kernel oopses with constructs like
    hlist_for_each_entry() where the list's 'next' content is prefetched
    before the pointer is tested against NULL, and only when gcc feels like
    applying this optimization which doesn't happen all the time with more
    complex code.
    
    It appears that the way to prevent delete-null-pointer-checks
    optimization to occur in this case is to make prefetch() into a static
    inline function instead of a macro. At least this is what is done on
    x86_64 where a similar inline asm memory operand is used (I presume they
    would have seen the same problem if it didn't work) and resulting code
    for the above example confirms that.
    
    An alternative would consist of replacing the memory operand by a
    register operand containing the pointer, and use the addressing mode
    explicitly in the asm template. But that would be less optimal than an
    offsettable memory reference.
    
    Signed-off-by: Nicolas Pitre <nico@cam.org>
    Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
  19. [PATCH] Add missing KORENIX PCI ID's

    Russell King Linus Torvalds
    Russell King authored and Linus Torvalds committed Dec 13, 2006
    Oops, sorry about that.
    
    Signed-off-by: Linus Torvalds <torvalds@osdl.org>
  20. [PATCH] Optimize D-cache alias handling on fork

    ralfbaechle authored and Linus Torvalds committed Dec 12, 2006
    Virtually index, physically tagged cache architectures can get away
    without cache flushing when forking.  This patch adds a new cache
    flushing function flush_cache_dup_mm(struct mm_struct *) which for the
    moment I've implemented to do the same thing on all architectures
    except on MIPS where it's a no-op.
    
    Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
    Signed-off-by: Linus Torvalds <torvalds@osdl.org>