aboutsummaryrefslogtreecommitdiffstats
path: root/net/core/net_namespace.c
AgeCommit message (Expand)AuthorFilesLines
10 daysMerge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/netJakub Kicinski1-3/+10
13 daysnet: fix out-of-bounds access in ops_initThadeu Lima de Souza Cascardo1-3/+10
2024-04-17netns: no longer hold RTNL in rtnl_net_dumpid()Eric Dumazet1-2/+3
2024-02-12net: use synchronize_rcu_expedited in cleanup_net()Eric Dumazet1-1/+1
2024-02-07net: add exit_batch_rtnl() methodEric Dumazet1-1/+30
2023-12-15net: Namespace-ify sysctl_optmem_maxEric Dumazet1-0/+4
2023-12-02netns-ipv4: reorganize netns_ipv4 fast path variablesCoco Li1-0/+45
2023-06-05lib/ref_tracker: improve printing statsAndrzej Hajda1-2/+2
2023-04-20kill the last remaining user of proc_ns_fget()Al Viro1-12/+11
2023-02-09net: initialize net->notrefcnt_tracker earlierEric Dumazet1-1/+9
2023-01-20net: fix UaF in netns ops registration error pathPaolo Abeni1-1/+1
2022-10-24Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/netJakub Kicinski1-0/+7
2022-10-24net: fix UAF issue in nfqnl_nf_hook_drop() when ops_init() failedZhengchao Shao1-0/+7
2022-10-24net: add a refcount tracker for kernel socketsEric Dumazet1-0/+5
2022-09-28Revert "net: set proper memcg for net_init hooks allocations"Shakeel Butt1-7/+0
2022-06-16net: set proper memcg for net_init hooks allocationsVasily Averin1-0/+7
2022-02-06net: initialize init_net earlierEric Dumazet1-12/+5
2022-01-31txhash: Make rethinking txhash behavior configurable via sysctlAkhmat Karakotov1-0/+2
2022-01-24Merge https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-nextJakub Kicinski1-0/+1
2022-01-18net/netfilter: Add unstable CT lookup helpers for XDP and TC-BPFKumar Kartikeya Dwivedi1-0/+1
2022-01-18netns: add schedule point in ops_exit_list()Eric Dumazet1-1/+3
2021-12-10net: add networking namespace refcount trackerEric Dumazet1-0/+3
2021-09-19net: net_namespace: Fix undefined member in key_remove_domain()Yajun Deng1-0/+4
2021-08-18net: net_namespace: Optimize the codeYajun Deng1-28/+24
2021-06-15net: inline function get_net_ns_by_fd if NET_NS is disabledChangbin Du1-7/+1
2021-06-12net: make get_net_ns return error if NET_NS is disabledChangbin Du1-0/+12
2021-02-11net: initialize net->net_cookie at netns setupEric Dumazet1-16/+3
2020-12-14Merge tag 'fixes-v5.11' of git://git.kernel.org/pub/scm/linux/kernel/git/brau...Linus Torvalds1-3/+3
2020-09-30bpf, net: Rework cookie generator as per-cpu oneDaniel Borkmann1-4/+8
2020-09-07Revert "netns: don't disable BHs when locking "nsid_lock""Taehee Yoo1-11/+11
2020-08-19net: Use generic ns_common::countChristian Brauner1-3/+3
2020-05-09nsproxy: add struct nssetChristian Brauner1-2/+3
2020-03-27bpf: Add netns cookie and enable it for bpf cgroup hooksDaniel Borkmann1-0/+15
2020-01-17netns: Constify exported functionsGuillaume Nault1-3/+3
2020-01-14netns: don't disable BHs when locking "nsid_lock"Guillaume Nault1-11/+11
2020-01-14netns: protect netns ID lookups with RCUGuillaume Nault1-15/+7
2020-01-14netns: Remove __peernet2id_alloc()Guillaume Nault1-32/+23
2019-10-25netns: fix GFP flags in rtnl_net_notifyid()Guillaume Nault1-8/+9
2019-10-24keys: Fix memory leak in copy_net_nsTakeshi Misawa1-0/+1
2019-10-09netns: fix NLM_F_ECHO mechanism for RTM_NEWNSIDNicolas Dichtel1-6/+11
2019-07-11Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-nextLinus Torvalds1-0/+28
2019-07-08Merge tag 'keys-namespace-20190627' of git://git.kernel.org/pub/scm/linux/ker...Linus Torvalds1-0/+20
2019-06-26keys: Network namespace domain tagDavid Howells1-0/+20
2019-06-22netns: restore ops before calling ops_exit_listLi RongQing1-1/+1
2019-06-19netns: add pre_exit method to struct pernet_operationsEric Dumazet1-0/+28
2019-05-21treewide: Add SPDX license identifier for missed filesThomas Gleixner1-0/+1
2019-04-27netlink: make validation more configurable for future strictnessJohannes Berg1-8/+11
2019-04-11netns: read NETNSA_NSID as s32 attribute in rtnl_net_getid()Guillaume Nault1-1/+1
2019-03-28netns: provide pure entropy for net_hash_mix()Eric Dumazet1-0/+1
2019-01-19net: namespace: perform strict checks also for doit handlersJakub Kicinski1-2/+36
2018-12-24Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/netDavid S. Miller1-1/+2
2018-12-24net/net_namespace: Check the return value of register_pernet_subsys()Aditya Pakki1-1/+2
2018-11-27netns: enable to dump full nsid translation tableNicolas Dichtel1-6/+26
2018-11-27netns: enable to specify a nsid for a get requestNicolas Dichtel1-0/+5
2018-11-27netns: add support of NETNSA_TARGET_NSIDNicolas Dichtel1-11/+75
2018-11-27netns: introduce 'struct net_fill_args'Nicolas Dichtel1-14/+34
2018-11-27netns: remove net arg from rtnl_net_fill()Nicolas Dichtel1-6/+4
2018-10-08net/namespace: Update rtnl_net_dumpid for strict data checkingDavid Ahern1-0/+6
2018-08-26Merge branch 'ida-4.19' of git://git.infradead.org/users/willy/linux-daxLinus Torvalds1-10/+6
2018-08-21Convert net_namespace to new IDA APIMatthew Wilcox1-10/+6
2018-07-20net: create reusable function for getting ownership info of sysfs inodesTyler Hicks1-0/+28
2018-03-31net: Do not take net_rwsem in __rtnl_link_unregister()Kirill Tkhai1-0/+1
2018-03-29net: Introduce net_rwsem to protect net_namespace_listKirill Tkhai1-5/+13
2018-03-27net: Add more commentsKirill Tkhai1-0/+2
2018-03-27net: Rename net_sem to pernet_ops_rwsemKirill Tkhai1-20/+20
2018-03-27net: Drop pernet_operations::asyncKirill Tkhai1-2/+0
2018-03-27net: Reflect all pernet_operations are convertedKirill Tkhai1-37/+6
2018-03-22net: Replace ip_ra_lock with per-net mutexKirill Tkhai1-0/+1
2018-03-07net: Make account struct net to memcgKirill Tkhai1-1/+1
2018-02-26net: make kmem caches as __ro_after_initAlexey Dobriyan1-1/+1
2018-02-20net: Queue net_cleanup_work only if there is first net addedKirill Tkhai1-2/+2
2018-02-20net: Make cleanup_list and net::cleanup_list of llist typeKirill Tkhai1-14/+6
2018-02-20net: Kill net_mutexKirill Tkhai1-21/+32
2018-02-13net: Convert net_defaults_opsKirill Tkhai1-0/+1
2018-02-13net: Convert net_ns_ops methodsKirill Tkhai1-0/+1
2018-02-13net: Allow pernet_operations to be executed in parallelKirill Tkhai1-10/+20
2018-02-13net: Move mutex_unlock() in cleanup_net() upKirill Tkhai1-1/+2
2018-02-13net: Introduce net_sem for protection of pernet_listKirill Tkhai1-13/+26
2018-02-13net: Cleanup in copy_net_ns()Kirill Tkhai1-11/+9
2018-02-13net: Assign net to net_namespace_list in setup_net()Kirill Tkhai1-10/+3
2018-01-25net: Move net:netns_ids destruction out of rtnl_lock() and document locking s...Kirill Tkhai1-18/+44
2018-01-17net: Remove spinlock from get_net_ns_by_id()Kirill Tkhai1-2/+0
2018-01-17net: Fix possible race in peernet2id_alloc()Kirill Tkhai1-2/+11
2018-01-15net: Convert atomic_t net::count to refcount_tKirill Tkhai1-4/+4
2017-12-20net: Fix double free and memory corruption in get_net_ns_by_id()Eric W. Biederman1-1/+1
2017-11-05net: export peernet2id_allocJiri Benc1-0/+1
2017-08-09net: call newid/getid without rtnl mutex heldFlorian Westphal1-2/+3
2017-08-09rtnetlink: make rtnl_register accept a flags parameterFlorian Westphal1-2/+2
2017-07-01net: convert net.passive from atomic_t to refcount_tReshetova, Elena1-2/+2
2017-06-30Merge git://git.kernel.org/pub/scm/linux/kernel/git/pablo/nf-nextDavid S. Miller1-0/+17
2017-06-19netns: add and use net_ns_barrierFlorian Westphal1-0/+17
2017-06-10netns: fix error code when the nsid is already usedNicolas Dichtel1-0/+1
2017-06-10netns: define extack error msg for nsis cmdsNicolas Dichtel1-9/+33
2017-05-25net: move somaxconn init from sysctl codeRoman Kapl1-0/+19
2017-04-30net: Initialise init_net.count to 1David Howells1-1/+2
2017-04-17net: rtnetlink: plumb extended ack to doit functionDavid Ahern1-4/+6
2017-04-13netlink: pass extended ACK struct to parsing functionsJohannes Berg1-2/+2
2017-03-02sched/headers: Prepare to move the task_lock()/unlock() APIs to <linux/sched/...Ingo Molnar1-0/+2
2016-12-14Merge branch 'stable-4.10' of git://git.infradead.org/users/pcmoore/auditLinus Torvalds1-20/+15
2016-12-14netns: avoid disabling irq for netns idPaul Moore1-20/+15
2016-12-03netns: fix net_generic() "id - 1" bloatAlexey Dobriyan1-8/+12
2016-12-03netns: add dummy struct inside "struct net_generic"Alexey Dobriyan1-4/+4
2016-12-03netns: publish net_generic correctlyAlexey Dobriyan1-5/+5
2016-11-22Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/netDavid S. Miller1-0/+2
2016-11-18netns: make struct pernet_operations::id unsigned intAlexey Dobriyan1-4/+3
2016-11-17net: check dead netns for peernet2id_alloc()WANG Cong1-0/+2
2016-10-30Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/netDavid S. Miller1-15/+20
2016-10-23net: allow to kill a task which waits net_mutex in copy_new_nsAndrey Vagin1-1/+8
2016-10-22netns: revert "netns: avoid disabling irq for netns id"Paul Moore1-15/+20
2016-10-06Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/ebi...Linus Torvalds1-1/+27
2016-09-23netns: move {inc,dec}_net_namespaces into #ifdefArnd Bergmann1-10/+10
2016-09-22Merge branch 'nsfs-ioctls' into HEADEric W. Biederman1-0/+6
2016-09-22kernel: add a helper to get an owning user namespace for a namespaceAndrey Vagin1-0/+6
2016-09-22userns: When the per user per user namespace limit is reached return ENOSPCEric W. Biederman1-1/+1
2016-09-04netns: avoid disabling irq for netns idWANG Cong1-20/+15
2016-09-04vxlan: call peernet2id() in fdb notificationWANG Cong1-1/+1
2016-09-01netns: make nla_policy conststephen hemminger1-1/+1
2016-08-14netns: do not call pernet ops for not yet set up init_net namespaceDmitry Torokhov1-4/+17
2016-08-08netns: Add a limit on the number of net namespacesEric W. Biederman1-1/+21
2015-05-17netns: make nsid_lock per netWANG Cong1-16/+16
2015-05-14netns: fix unbalanced spin_lock on errorNicolas Dichtel1-0/+1
2015-05-13Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/netDavid S. Miller1-1/+1
2015-05-12netns: return RTM_NEWNSID instead of RTM_GETNSID on a getNicolas Dichtel1-1/+1
2015-05-09netlink: allow to listen "all" netnsNicolas Dichtel1-1/+9
2015-05-09netns: use a spin_lock to protect nsid managementNicolas Dichtel1-13/+44
2015-05-09netns: notify new nsid outside __peernet2id()Nicolas Dichtel1-14/+27
2015-05-09netns: rename peernet2id() to peernet2id_alloc()Nicolas Dichtel1-2/+2
2015-05-09netns: always provide the id to rtnl_net_fill()Nicolas Dichtel1-20/+11
2015-05-09netns: returns always an id in __peernet2id()Nicolas Dichtel1-11/+8
2015-04-16netns: remove duplicated include from net_namespace.cWei Yongjun1-1/+0
2015-04-07netns: allow to dump netns idsNicolas Dichtel1-1/+48
2015-04-07netns: notify netns id eventsNicolas Dichtel1-8/+44
2015-04-07netns: minor cleanup in rtnl_net_getid()Nicolas Dichtel1-1/+1
2015-04-06Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/netDavid S. Miller1-16/+12
2015-04-03netns: don't allocate an id for dead netnsNicolas Dichtel1-1/+3
2015-04-03Revert "netns: don't clear nsid too early on removal"Nicolas Dichtel1-15/+9
2015-04-02Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/netDavid S. Miller1-9/+15
2015-03-29netns: don't clear nsid too early on removalNicolas Dichtel1-9/+15
2015-03-12net: Kill hold_net release_netEric W. Biederman1-11/+0
2015-02-04Merge tag 'mac80211-next-for-davem-2015-02-03' of git://git.kernel.org/pub/sc...David S. Miller1-0/+1
2015-01-23vxlan: advertise netns of vxlan dev in fdb msgNicolas Dichtel1-0/+1
2015-01-23nl80211: Allow set network namespace by fdVadim Kochan1-0/+1
2015-01-19netns: add rtnl cmd to add and get peer netns idsNicolas Dichtel1-0/+211
2014-12-04bury struct proc_ns in fs/procAl Viro1-3/+1
2014-12-04copy address of proc_ns_ops into ns_commonAl Viro1-2/+7
2014-12-04new helpers: ns_alloc_inum/ns_free_inumAl Viro1-2/+2
2014-12-04make proc_ns_operations work with struct ns_common * instead of void *Al Viro1-9/+3
2014-12-04netns: switch ->get()/->put()/->install()/->inum() to working with &net->nsAl Viro1-6/+10
2014-12-04common object embedded into various struct ....nsAl Viro1-3/+3
2014-09-09netns: remove one sparse warningEric Dumazet1-1/+1
2014-07-29namespaces: Use task_lock and not rcu to protect nsproxyEric W. Biederman1-4/+6
2014-05-24Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/netDavid S. Miller1-1/+1
2014-05-15rtnetlink: wait for unregistering devices in rtnl_link_unregister()Cong Wang1-1/+1
2014-04-26net_namespace: trivial cleanupxiao jin1-1/+1
2013-08-30userns: Kill nsown_capable it makes the wrong thing easyEric W. Biederman1-1/+1
2013-05-01proc: Split the namespace stuff out into linux/proc_ns.hDavid Howells1-3/+4
2013-02-22new helper: file_inode(file)Al Viro1-1/+1
2012-12-14userns: Require CAP_SYS_ADMIN for most uses of setns.Eric W. Biederman1-1/+2
2012-11-20proc: Usable inode numbers for the namespace file descriptors.Eric W. Biederman1-0/+24
2012-11-20userns: Allow unprivileged use of setns.Eric W. Biederman1-1/+6
2012-11-18userns: make each net (net_ns) belong to a user_nsEric W. Biederman1-4/+12
2012-11-18netns: Deduplicate and fix copy_net_ns when !CONFIG_NET_NSEric W. Biederman1-7/+0
2012-07-18net: Statically initialize init_net.dev_base_headRustad, Mark D1-1/+3
2012-05-17net: core: Use pr_<level>Joe Perches1-2/+4
2012-04-18netns: do not leak net_generic data on failed initJulian Anastasov1-15/+18
2012-01-26netns: fix net_alloc_generic()Eric Dumazet1-15/+16
2011-10-31net: Add export.h for EXPORT_SYMBOL/THIS_MODULE to non-modulesPaul Gortmaker1-0/+1
2011-07-01rtnl: provide link dump consistency infoThomas Graf1-0/+1
2011-06-16Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/vir...Linus Torvalds1-2/+10
2011-06-12Delay struct net freeing while there's a sysfs instance refering to itAl Viro1-2/+10
2011-06-05get_net_ns_by_fd() oopses if proc_ns_fget() returns an errorAl Viro1-9/+7
2011-05-25Merge git://git.kernel.org/pub/scm/linux/kernel/git/ebiederm/linux-2.6-nsfdLinus Torvalds1-0/+65
2011-05-24net: fix get_net_ns_by_fd for !CONFIG_NET_NSStephen Rothwell1-22/+27
2011-05-20Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next-2.6Linus Torvalds1-8/+4
2011-05-10net: Allow setting the network namespace by fdEric W. Biederman1-2/+31
2011-05-10ns proc: Add support for the network namespace.Eric W. Biederman1-0/+31
2011-05-07net,rcu: convert call_rcu(net_generic_release) to kfree_rcu()Lai Jiangshan1-9/+1
2011-04-15net: minor cleanup to net_namespace.c.Rob Landley1-8/+4
2010-10-25net_ns: add __rcu annotationsEric Dumazet1-1/+3
2010-04-27net: disallow to use net_assign_generic externallyJiri Pirko1-46/+45
2010-04-25netns: rename unregister_pernet_subsys parameterJiri Pirko1-2/+2
2009-12-03netns: Add an explicit rcu_barrier to unregister_pernet_{device|subsys}Eric W. Biederman1-2/+6
2009-12-03net: Move network device exit batchingEric W. Biederman1-24/+0
2009-12-03net: Add support for batching network namespace cleanupsEric W. Biederman1-61/+61
2009-12-01net: Automatically allocate per namespace data.Eric W. Biederman1-86/+102
2009-12-01net: Batch network namespace destruction.Eric W. Biederman1-8/+58
2009-11-25net: use net_eq to compare netsOctavian Purdila1-1/+1
2009-08-12Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/ne...David S. Miller1-1/+1
2009-08-02net: net_assign_generic() fixEric Dumazet1-1/+1
2009-07-12net: move and export get_net_ns_by_pidJohannes Berg1-0/+21
2009-07-12net: make namespace iteration possible under RCUJohannes Berg1-3/+11
2009-05-21netns: simplify net_ns_initStephen Hemminger1-4/+2
2009-05-21netns: remove leftover debugging messageStephen Hemminger1-1/+0
2009-05-04netns 2/2: extract net_create()Alexey Dobriyan1-24/+20
2009-05-04netns 1/2: don't get/put old netns on CLONE_NEWNETAlexey Dobriyan1-4/+1
2009-03-03netns: Remove net_aliveEric W. Biederman1-3/+0
2009-02-23netns: build fix for net_alloc_genericClemens Noss1-4/+4
2009-02-22netns: fix double free at netns creationDaniel Lezcano1-31/+55
2009-01-20NET: net_namespace, fix lock imbalanceJiri Slaby1-1/+1
2008-10-31Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/ne...David S. Miller1-0/+32