11 Oct, 2007

4 commits

  • Just switch to the consolidated code.

    Signed-off-by: Pavel Emelyanov
    Signed-off-by: David S. Miller

    Pavel Emelyanov
     
  • This patch makes /proc/net per network namespace. It modifies the global
    variables proc_net and proc_net_stat to be per network namespace.
    The proc_net file helpers are modified to take a network namespace argument,
    and all of their callers are fixed to pass &init_net for that argument.
    This ensures that all of the /proc/net files are only visible and
    usable in the initial network namespace until the code behind them
    has been updated to be handle multiple network namespaces.

    Making /proc/net per namespace is necessary as at least some files
    in /proc/net depend upon the set of network devices which is per
    network namespace, and even more files in /proc/net have contents
    that are relevant to a single network namespace.

    Signed-off-by: Eric W. Biederman
    Signed-off-by: David S. Miller

    Eric W. Biederman
     
  • Changes asserts in sunrpc to use sock_owned_by_user() macro instead of
    referencing sock_lock.owner directly.

    Signed-off-by: John Heffner
    Signed-off-by: David S. Miller

    John Heffner
     
  • Hopefully captured all single statement cases under net/. I'm
    not too sure if there is some policy about #includes that are
    "guaranteed" (ie., in the current tree) to be available through
    some other #included header, so I just added linux/kernel.h to
    each changed file that didn't #include it previously.

    Signed-off-by: Ilpo Järvinen
    Signed-off-by: David S. Miller

    Ilpo Järvinen
     

21 Sep, 2007

1 commit

  • we upgraded the kernel of a nfs-server from 2.6.17.11 to 2.6.22.6. Since
    then we get the message

    lockd: too many open TCP sockets, consider increasing the number of nfsd threads
    lockd: last TCP connect from ^\\236^\É^D

    These random characters in the second line are caused by a bug in
    svc_tcp_accept.

    (Note: there are two previous __svc_print_addr(sin, buf, sizeof(buf))
    calls in this function, either of which would initialize buf correctly;
    but both are inside "if"'s and are not necessarily executed. This is
    less obvious in the second case, which is inside a dprintk(), which is a
    macro which expands to an if statement.)

    Signed-off-by: Wolfgang Walter
    Signed-off-by: J. Bruce Fields
    Signed-off-by: Linus Torvalds

    Wolfgang Walter
     

15 Sep, 2007

1 commit

  • Commit aaf68cfbf2241d24d46583423f6bff5c47e088b3 added a bias
    to sk_inuse, so this test for an unused socket now fails. So no
    sockets get closed because they are old (they might get closed
    if the client closed them).

    This bug has existed since 2.6.21-rc1.

    Thanks to Wolfgang Walter for finding and reporting the bug.

    Cc: Wolfgang Walter
    Signed-off-by: Neil Brown
    Signed-off-by: J. Bruce Fields
    Signed-off-by: Linus Torvalds

    Neil Brown
     

14 Aug, 2007

1 commit


08 Aug, 2007

3 commits


27 Jul, 2007

1 commit


25 Jul, 2007

1 commit

  • The handling of the re-registration case is wrong here; the "test" that was
    returned from auth_domain_lookup will not be used again, so that reference
    should be put. And auth_domain_lookup never did anything with "new" in
    this case, so we should just clean it up ourself.

    Thanks to Akinobu Mita for bug report, analysis, and testing.

    Cc: Akinobu Mita
    Signed-off-by: "J. Bruce Fields"
    Cc: Neil Brown
    Cc: Trond Myklebust
    Cc:
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    J. Bruce Fields
     

20 Jul, 2007

4 commits

  • Slab destructors were no longer supported after Christoph's
    c59def9f222d44bb7e2f0a559f2906191a0862d7 change. They've been
    BUGs for both slab and slub, and slob never supported them
    either.

    This rips out support for the dtor pointer from kmem_cache_create()
    completely and fixes up every single callsite in the kernel (there were
    about 224, not including the slab allocator definitions themselves,
    or the documentation references).

    Signed-off-by: Paul Mundt

    Paul Mundt
     
  • Since every invocation of xdr encode or decode functions takes the BKL now,
    there's a lot of redundant lock_kernel/unlock_kernel pairs that we can pull
    out into a common function.

    Signed-off-by: J. Bruce Fields
    Signed-off-by: Trond Myklebust

    J. Bruce Fields
     
  • * 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6: (25 commits)
    [TG3]: Fix msi issue with kexec/kdump.
    [NET] XFRM: Fix whitespace errors.
    [NET] TIPC: Fix whitespace errors.
    [NET] SUNRPC: Fix whitespace errors.
    [NET] SCTP: Fix whitespace errors.
    [NET] RXRPC: Fix whitespace errors.
    [NET] ROSE: Fix whitespace errors.
    [NET] RFKILL: Fix whitespace errors.
    [NET] PACKET: Fix whitespace errors.
    [NET] NETROM: Fix whitespace errors.
    [NET] NETFILTER: Fix whitespace errors.
    [NET] IPV4: Fix whitespace errors.
    [NET] DCCP: Fix whitespace errors.
    [NET] CORE: Fix whitespace errors.
    [NET] BLUETOOTH: Fix whitespace errors.
    [NET] AX25: Fix whitespace errors.
    [PATCH] mac80211: remove rtnl locking in ieee80211_sta.c
    [PATCH] mac80211: fix GCC warning on 64bit platforms
    [GENETLINK]: Dynamic multicast groups.
    [NETLIKN]: Allow removing multicast groups.
    ...

    Linus Torvalds
     
  • use vfs_path_lookup instead of open-coding the necessary functionality.

    Signed-off-by: Josef 'Jeff' Sipek
    Acked-by: Trond Myklebust
    Cc: Al Viro
    Acked-by: Christoph Hellwig
    Cc: Neil Brown
    Cc: Michael Halcrow
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Josef 'Jeff' Sipek
     

19 Jul, 2007

1 commit


18 Jul, 2007

5 commits

  • We could return some sort of error in the case where someone asks for secinfo
    on an export without the secinfo= option set--that'd be no worse than what
    we've been doing. But it's not really correct. So, hack up an approximate
    secinfo response in that case--it may not be complete, but it'll tell the
    client at least one acceptable security flavor.

    Signed-off-by: "J. Bruce Fields"
    Signed-off-by: Neil Brown
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    J. Bruce Fields
     
  • Adds oid values to the gss_api mechanism structures. On the NFSV4 server
    side, these are required as part of the security triple (oid,qop,service)
    information being sent in the response of the SECINFO operation.

    Signed-off-by: Usha Ketineni
    Signed-off-by: "J. Bruce Fields"
    Signed-off-by: Neil Brown
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Usha Ketineni
     
  • We want it to be possible for users to restrict exports both by IP address and
    by pseudoflavor. The pseudoflavor information has previously been passed
    using special auth_domains stored in the rq_client field. After the preceding
    patch that stored the pseudoflavor in rq_pflavor, that's now superfluous; so
    now we use rq_client for the ip information, as auth_null and auth_unix do.

    However, we keep around the special auth_domain in the rq_gssclient field for
    backwards compatibility purposes, so we can still do upcalls using the old
    "gss/pseudoflavor" auth_domain if upcalls using the unix domain to give us an
    appropriate export. This allows us to continue supporting old mountd.

    In fact, for this first patch, we always use the "gss/pseudoflavor"
    auth_domain (and only it) if it is available; thus rq_client is ignored in the
    auth_gss case, and this patch on its own makes no change in behavior; that
    will be left to later patches.

    Note on idmap: I'm almost tempted to just replace the auth_domain in the idmap
    upcall by a dummy value--no version of idmapd has ever used it, and it's
    unlikely anyone really wants to perform idmapping differently depending on the
    where the client is (they may want to perform *credential* mapping
    differently, but that's a different matter--the idmapper just handles id's
    used in getattr and setattr). But I'm updating the idmapd code anyway, just
    out of general backwards-compatibility paranoia.

    Signed-off-by: "J. Bruce Fields"
    Signed-off-by: Neil Brown
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    J. Bruce Fields
     
  • Add a new field to the svc_rqst structure to record the pseudoflavor that the
    request was made with. For now we record the pseudoflavor but don't use it
    for anything.

    Signed-off-by: Andy Adamson
    Signed-off-by: "J. Bruce Fields"
    Signed-off-by: Neil Brown
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Andy Adamson
     
  • I can never remember what the function to register to receive VM pressure
    is called. I have to trace down from __alloc_pages() to find it.

    It's called "set_shrinker()", and it needs Your Help.

    1) Don't hide struct shrinker. It contains no magic.
    2) Don't allocate "struct shrinker". It's not helpful.
    3) Call them "register_shrinker" and "unregister_shrinker".
    4) Call the function "shrink" not "shrinker".
    5) Reduce the 17 lines of waffly comments to 13, but document it properly.

    Signed-off-by: Rusty Russell
    Cc: David Chinner
    Cc: Trond Myklebust
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Rusty Russell
     

17 Jul, 2007

1 commit

  • Recent breakage..

    net/sunrpc/auth_gss/auth_gss.c:1002: warning: implicit declaration of function 'lock_kernel'
    net/sunrpc/auth_gss/auth_gss.c:1004: warning: implicit declaration of function 'unlock_kernel'

    Cc: Trond Myklebust
    Cc: "J. Bruce Fields"
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Andrew Morton
     

14 Jul, 2007

1 commit

  • * git://git.linux-nfs.org/pub/linux/nfs-2.6: (122 commits)
    sunrpc: drop BKL around wrap and unwrap
    NFSv4: Make sure unlock is really an unlock when cancelling a lock
    NLM: fix source address of callback to client
    SUNRPC client: add interface for binding to a local address
    SUNRPC server: record the destination address of a request
    SUNRPC: cleanup transport creation argument passing
    NFSv4: Make the NFS state model work with the nosharedcache mount option
    NFS: Error when mounting the same filesystem with different options
    NFS: Add the mount option "nosharecache"
    NFS: Add support for mounting NFSv4 file systems with string options
    NFS: Add final pieces to support in-kernel mount option parsing
    NFS: Introduce generic mount client API
    NFS: Add enums and match tables for mount option parsing
    NFS: Improve debugging output in NFS in-kernel mount client
    NFS: Clean up in-kernel NFS mount
    NFS: Remake nfsroot_mount as a permanent part of NFS client
    SUNRPC: Add a convenient default for the hostname when calling rpc_create()
    SUNRPC: Rename rpcb_getport to be consistent with new rpcb_getport_sync name
    SUNRPC: Rename rpcb_getport_external routine
    SUNRPC: Allow rpcbind requests to be interrupted by a signal.
    ...

    Linus Torvalds
     

11 Jul, 2007

16 commits