Skip to content
Commits on Dec 14, 2006
  1. Linux v2.6.20-rc1

    .. and so the stabilization phase starts.
    
    Signed-off-by: Linus Torvalds <torvalds@osdl.org>
    Linus Torvalds committed Dec 13, 2006
  2. @kaber @davem330

    [NETFILTER]: bridge-netfilter: remove deferred hooks

    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>
    kaber committed with davem330 Dec 13, 2006
  3. @kinordlu

    [IPV6]: Make fib6_node subtree depend on IPV6_SUBTREES

    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>
    kinordlu committed with David S. Miller Dec 13, 2006
  4. [SCTP]: Add support for SCTP_CONTEXT socket option.

    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>
    Ivan Skytte Jorgensen committed with David S. Miller Dec 13, 2006
  5. [SCTP]: Enable auto loading of SCTP when creating an ipv6 SCTP socket.

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

    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>
    Sridhar Samudrala committed with David S. Miller Dec 13, 2006
  7. [TCP]: Fix oops caused by __tcp_put_md5sig_pool()

    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>
    David S. Miller committed Dec 13, 2006
  8. [IPV6]: Fix IPV6_UNICAST_HOPS getsockopt().

    > 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>
    Brian Haley committed with David S. Miller Dec 12, 2006
  9. @imcdnzl

    [DCCP] ccid3: return value in ccid3_hc_rx_calc_first_li

    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>
    imcdnzl committed with David S. Miller Dec 12, 2006
  10. [NETFILTER]: {ip,ip6,arp}_tables: fix exponential worst-case search f…

    …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>
    Al Viro committed with David S. Miller Dec 12, 2006
  11. [NETFILTER]: ip_tables: ipt and ipt_compat checks unification

    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>
    Dmitry Mishin committed with David S. Miller Dec 12, 2006
  12. [NETFILTER]: x_tables: add missing try to load conntrack from match/t…

    …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>
    Yasuyuki Kozakai committed with David S. Miller Dec 12, 2006
  13. [NETFILTER]: x_tables: error if ip_conntrack is asked to handle IPv6 …

    …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>
    Yasuyuki Kozakai committed with David S. Miller Dec 12, 2006
  14. [NETFILTER]: nf_nat: fix NF_NAT dependency

    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>
    Yasuyuki Kozakai committed with David S. Miller Dec 12, 2006
  15. @kaber

    [NETFILTER]: Fix INET=n linking error

    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>
    kaber committed with David S. Miller Dec 12, 2006
Commits on Dec 13, 2006
  1. Merge branch 'for-linus' of master.kernel.org:/home/rmk/linux-2.6-arm

    * '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
    Linus Torvalds committed Dec 13, 2006
  2. Merge branch 'release' of master.kernel.org:/home/ftp/pub/scm/linux/k…

    …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
    Linus Torvalds committed Dec 13, 2006
  3. @gregkh

    Driver core: deprecate PM_LEGACY, default it to N

    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>
    David Brownell committed with gregkh Dec 5, 2006
  4. @gregkh

    Driver core: Make platform_device_add_data accept a const pointer

    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>
    Scott Wood committed with gregkh Dec 4, 2006
  5. @gregkh

    Driver core: "platform_driver_probe() can save codespace": save codes…

    …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>
    Andrew Morton committed with gregkh Dec 4, 2006
  6. @gregkh

    DebugFS : file/directory removal fix

    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>
    Mathieu Desnoyers committed with gregkh Nov 24, 2006
  7. @gregkh

    DebugFS : more file/directory creation error handling

    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>
    Mathieu Desnoyers committed with gregkh Nov 24, 2006
  8. @gregkh

    DebugFS : file/directory creation error handling

    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>
    Mathieu Desnoyers committed with gregkh Nov 24, 2006
  9. @gregkh

    DebugFS : coding style fixes

    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>
    Mathieu Desnoyers committed with gregkh Nov 24, 2006
  10. @gregkh

    DebugFS : inotify create/mkdir support

    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>
    Mathieu Desnoyers committed with gregkh Nov 24, 2006
  11. @mita @gregkh

    driver core: delete virtual directory on class_unregister()

    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>
    mita committed with gregkh Nov 21, 2006
  12. @kaysievers @gregkh

    Driver core: show "initstate" of module

    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>
    kaysievers committed with gregkh Nov 24, 2006
  13. [ARM] Merge AT91 and devel branches

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

    * 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>
    Kristoffer Ericson committed with Russell King Dec 13, 2006
  15. [IA64] Move sg_dma_{len,address} from pci.h to scatterlist.h

    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>
    Tony Luck committed Dec 13, 2006
  16. [ARM] 3992/1: i.MX/MX1 CPU Frequency scaling support

    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>
    Pavel Pisa committed with Russell King Dec 6, 2006
  17. [ARM] Provide a method to alter the control register

    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>
    Russell King committed with Russell King Dec 13, 2006
  18. [ARM] 4016/1: prefetch macro is wrong wrt gcc's "delete-null-pointer-…

    …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>
    Nicolas Pitre committed with Russell King Dec 13, 2006
  19. [PATCH] Add missing KORENIX PCI ID's

    Oops, sorry about that.
    
    Signed-off-by: Linus Torvalds <torvalds@osdl.org>
    Russell King committed with Linus Torvalds Dec 13, 2006
  20. @ralfbaechle

    [PATCH] Optimize D-cache alias handling on fork

    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>
    ralfbaechle committed with Linus Torvalds Dec 12, 2006
Something went wrong with that request. Please try again.