aboutsummaryrefslogtreecommitdiffstats
path: root/net/netlink/af_netlink.c
AgeCommit message (Expand)AuthorFilesLines
2025-08-28net: add sk_drops_read(), sk_drops_inc() and sk_drops_reset() helpersEric Dumazet1-2/+2
2025-07-30netlink: avoid infinite retry looping in netlink_unicast()Fedor Pchelkin1-1/+1
2025-07-30Merge tag 'bpf-next-6.17' of git://git.kernel.org/pub/scm/linux/kernel/git/bp...Linus Torvalds1-2/+1
2025-07-18Merge git://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf after rc6Alexei Starovoitov1-32/+50
2025-07-16bpf: Clean up individual BTF_ID codeFeng Yang1-2/+1
2025-07-11Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/netJakub Kicinski1-3/+4
2025-07-11netlink: make sure we allow at least one dump skbJakub Kicinski1-2/+3
2025-07-11netlink: Fix rmem check in netlink_broadcast_deliver().Kuniyuki Iwashima1-1/+1
2025-07-10Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/netJakub Kicinski1-32/+49
2025-07-08netlink: spelling: fix appened -> appended in a commentFaisal Bukhari1-1/+1
2025-07-07netlink: Fix wraparounds of sk->sk_rmem_alloc.Kuniyuki Iwashima1-32/+49
2025-02-27Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/netJakub Kicinski1-10/+0
2025-02-21net: better track kernel sockets lifetimeEric Dumazet1-10/+0
2025-02-18netlink: Unset cb_running when terminating dump on releaseSiddh Raman Pant1-0/+1
2024-12-19net: netlink: catch attempts to send empty messagesJakub Kicinski1-0/+1
2024-11-24netlink: fix false positive warning in extack during dumpsJakub Kicinski1-10/+11
2024-11-21Merge tag 'net-next-6.13' of git://git.kernel.org/pub/scm/linux/kernel/git/ne...Linus Torvalds1-7/+3
2024-11-18Merge tag 'pull-fd' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfsLinus Torvalds1-2/+7
2024-11-15net/netlink: Correct the comment on netlink message max capDmitry Safonov1-2/+2
2024-11-14Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/netJakub Kicinski1-23/+8
2024-11-07netlink: terminate outstanding dump on socket closeJakub Kicinski1-23/+8
2024-11-03switch netlink_getsockbyfilp() to taking descriptorAl Viro1-2/+7
2024-10-31netlink: Remove the dead code in netlink_proto_init()Jinjie Ruan1-5/+1
2024-10-04net: Fix an unsafe loop on the listAnastasia Kovaleva1-1/+2
2024-06-10net: netlink: remove the cb_mutex "injection" from netlink coreJakub Kicinski1-15/+3
2024-06-10rtnetlink: move rtnl_lock handling out of af_netlinkJakub Kicinski1-2/+0
2024-04-23netlink: support all extack types in dumpsJakub Kicinski1-5/+10
2024-04-23netlink: move extack writing helpersJakub Kicinski1-63/+63
2024-04-01netlink: create a new header for internal genetlink symbolsJakub Kicinski1-1/+1
2024-03-11net/netlink: Add getsockopt support for NETLINK_LISTEN_ALL_NSIDJuntong Deng1-0/+3
2024-03-06netlink: handle EMSGSIZE errors in the coreJakub Kicinski1-0/+9
2024-02-29Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/netJakub Kicinski1-1/+1
2024-02-27netlink: use kvmalloc() in netlink_alloc_large_skb()Eric Dumazet1-10/+8
2024-02-26rtnetlink: add RTNL_FLAG_DUMP_UNLOCKED flagEric Dumazet1-0/+3
2024-02-26rtnetlink: change nlk->cb_mutex roleEric Dumazet1-14/+18
2024-02-26netlink: hold nlk->cb_mutex longer in __netlink_dump_start()Eric Dumazet1-7/+6
2024-02-22netlink: Fix kernel-infoleak-after-free in __skb_datagram_iterRyosuke Yasuoka1-1/+1
2024-01-23netlink: fix potential sleeping issue in mqueue_flush_fileZhengchao Shao1-1/+1
2023-12-19netlink: introduce typedef for filter functionJiri Pirko1-2/+1
2023-11-18rtnetlink: introduce nlmsg_new_large and use it in rtnl_getlinkLi RongQing1-2/+1
2023-10-04netlink: annotate data-races around sk->sk_errEric Dumazet1-4/+4
2023-08-13netlink: convert nlk->flags to atomic flagsEric Dumazet1-60/+30
2023-07-23netlink: Add new netlink_release functionAnjali Kulkarni1-0/+6
2023-07-23netlink: Reverse the patch which removed filteringAnjali Kulkarni1-2/+25
2023-07-11netlink: Make use of __assign_bit() APIAndy Shevchenko1-4/+1
2023-06-27Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/netJakub Kicinski1-2/+3
2023-06-24sock: Remove ->sendpage*() in favour of sendmsg(MSG_SPLICE_PAGES)David Howells1-1/+0
2023-06-22netlink: fix potential deadlock in netlink_set_err()Eric Dumazet1-2/+3
2023-06-12netlink: support extack in dump ->start()Jakub Kicinski1-0/+2
2023-05-31net/netlink: fix NETLINK_LIST_MEMBERSHIPS length reportPedro Tammela1-1/+1
2023-05-10netlink: annotate accesses to nlk->cb_runningEric Dumazet1-4/+4
2023-04-26Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/netPaolo Abeni1-52/+23
2023-04-24netlink: Use copy_to_user() for optval in netlink_getsockopt().Kuniyuki Iwashima1-52/+23
2023-04-06Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/netJakub Kicinski1-6/+9
2023-04-04netlink: annotate lockless accesses to nlk->max_recvmsg_lenEric Dumazet1-6/+9
2023-03-09netlink: remove unused 'compare' functionFlorian Westphal1-2/+0
2023-01-23netlink: annotate data races around sk_stateEric Dumazet1-4/+6
2023-01-23netlink: annotate data races around dst_portid and dst_groupEric Dumazet1-9/+14
2023-01-23netlink: annotate data races around nlk->portidEric Dumazet1-2/+5
2022-12-13Merge tag 'net-next-6.2' of git://git.kernel.org/pub/scm/linux/kernel/git/net...Linus Torvalds1-9/+33
2022-11-18netlink: remove the flex array from struct nlmsghdrJakub Kicinski1-1/+1
2022-11-18treewide: use get_random_u32_below() instead of deprecated functionJason A. Donenfeld1-1/+1
2022-11-07netlink: Fix potential skb memleak in netlink_ackTao Chen1-1/+3
2022-10-31netlink: split up copies in the ack constructionJakub Kicinski1-9/+20
2022-10-24net: add a refcount tracker for kernel socketsEric Dumazet1-0/+11
2022-09-05netlink: Bounds-check struct nlmsgerr creationKees Cook1-3/+5
2022-08-30netlink: add support for ext_ack missing attributesJakub Kicinski1-0/+12
2022-08-30netlink: factor out extack compositionJakub Kicinski1-30/+55
2022-05-12Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/netJakub Kicinski1-1/+0
2022-05-06netlink: do not reset transport header in netlink_recvmsg()Eric Dumazet1-1/+0
2022-04-22Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/netPaolo Abeni1-0/+7
2022-04-19netlink: reset network and mac headers in netlink_dump()Eric Dumazet1-0/+7
2022-04-06net: remove noblock parameter from skb_recv_datagram()Oliver Hartkopp1-2/+1
2022-03-18af_netlink: Fix shift out of bounds in group mask calculationPetr Machata1-0/+2
2021-12-29net: Don't include filter.h from net/sock.hJakub Kicinski1-0/+2
2021-12-02Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/netJakub Kicinski1-0/+5
2021-11-30net: netlink: af_netlink: Prevent empty skb by adding a check on len.Harshit Mogalapalli1-0/+5
2021-11-16net: drop nopreempt requirement on sock_prot_inuse_add()Eric Dumazet1-4/+0
2021-10-07Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/netJakub Kicinski1-4/+10
2021-10-05netlink: annotate data races around nlk->boundEric Dumazet1-4/+10
2021-10-05netlink: remove netlink_broadcast_filteredFlorian Westphal1-21/+2
2021-07-20netlink: Deal with ESRCH error in nlmsg_notify()Yajun Deng1-1/+3
2021-07-13net: Use nlmsg_unicast() instead of netlink_unicast()Yajun Deng1-1/+1
2021-06-29net: sock: introduce sk_error_reportAlexander Aring1-4/+4
2021-05-17netlink: disable IRQs for netlink_lock_table()Johannes Berg1-2/+4
2021-04-16netlink: don't call ->netlink_bind with table lock heldFlorian Westphal1-2/+2
2021-02-04netlink: add tracepoint at NL_SET_ERR_MSGMarcelo Ricardo Leitner1-0/+8
2020-10-09netlink: export policy in extended ACKJohannes Berg1-0/+5
2020-10-02Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/klasse...David S. Miller1-14/+33
2020-09-24netlink/compat: Append NLMSG_DONE/extack to frag_listDmitry Safonov1-14/+33
2020-09-17netlink: add spaces around '&' in netlink_recv/sendmsg()Yang Yingliang1-4/+4
2020-09-04Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/netJakub Kicinski1-1/+1
2020-08-28netlink: fix a data race in netlink_rcv_wake()zhudi1-1/+1
2020-08-24net: netlink: delete repeated wordsRandy Dunlap1-4/+4
2020-07-25bpf: Refactor bpf_iter_reg to have separate seq_info memberYonghong Song1-2/+6
2020-07-24net: pass a sockptr_t into ->setsockoptChristoph Hellwig1-2/+2
2020-07-21bpf: net: Use precomputed btf_id for bpf iteratorsYonghong Song1-1/+6
2020-05-13bpf: Enable bpf_iter targets registering ctx argument typesYonghong Song1-0/+5
2020-05-13bpf: net: Refactor bpf_iter target registrationYonghong Song1-9/+9
2020-05-09net: bpf: Add netlink and ipv6_route bpf_iter targetsYonghong Song1-2/+85
2020-03-25Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/netDavid S. Miller1-26/+17
2020-03-16netlink: allow extack cookie also for error messagesMichal Kubecek1-26/+17
2020-03-12Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/netDavid S. Miller1-1/+1
2020-03-11net: Add missing annotation for *netlink_seq_start()Jules Irenge1-0/+1
2020-02-29netlink: Use netlink header as base to calculate bad attribute offsetPablo Neira Ayuso1-1/+1
2020-02-21Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/netDavid S. Miller1-2/+3
2020-02-20net: netlink: cap max groups which will be considered in netlink_bind()Nikolay Aleksandrov1-2/+3
2020-02-17net: netlink: Replace zero-length array with flexible-array memberGustavo A. R. Silva1-1/+1
2019-12-09treewide: Use sizeof_field() macroPankaj Bharadiya1-1/+1
2019-06-14net: remove empty netlink_tap_exit_netLi RongQing1-5/+0
2019-06-11net: netlink: make netlink_walk_start() void return typeTaehee Yoo1-12/+3
2019-05-30treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 152Thomas Gleixner1-5/+1
2019-05-19net: Treat sock->sk_drops as an unsigned int when printingPatrick Talbert1-1/+1
2019-04-12net: netlink: Check address length before reading groups fieldTetsuo Handa1-1/+2
2019-02-22rhashtable: Remove obsolete rhashtable_walk_init functionHerbert Xu1-9/+1
2019-01-19net: netlink: add helper to retrieve NETLINK_F_STRICT_CHKJakub Kicinski1-0/+8
2018-12-14net: netlink: rename NETLINK_DUMP_STRICT_CHK -> NETLINK_GET_STRICT_CHKJakub Kicinski1-2/+2
2018-10-16netlink: Add answer_flags to netlink_callbackDavid Ahern1-1/+2
2018-10-08netlink: Add new socket option to enable strict checking on dumpsDavid Ahern1-1/+20
2018-10-08netlink: Pass extack to dump handlersDavid Ahern1-1/+11
2018-09-12netlink: remove hash::nelems check in netlink_insertLi RongQing1-5/+0
2018-09-05netlink: Make groups check less stupid in netlink_bind()Dmitry Safonov1-4/+2
2018-08-05Merge ra.kernel.org:/pub/scm/linux/kernel/git/davem/netDavid S. Miller1-2/+2
2018-08-04netlink: Don't shift on 64 for ngroupsDmitry Safonov1-2/+2
2018-08-02Merge ra.kernel.org:/pub/scm/linux/kernel/git/davem/netDavid S. Miller1-0/+7
2018-08-01netlink: Fix spectre v1 gadget in netlink_create()Jeremy Cline1-0/+2
2018-07-30netlink: Don't shift with UB on nlk->ngroupsDmitry Safonov1-1/+5
2018-07-29netlink: Do not subscribe to non-existent groupsDmitry Safonov1-0/+1
2018-07-24netlink: do not store start function in netlink_cbFlorian Westphal1-3/+2
2018-06-28Revert changes to convert to ->poll_mask() and aio IOCB_CMD_POLLLinus Torvalds1-1/+1
2018-06-04Merge branch 'work.aio-1' of git://git.kernel.org/pub/scm/linux/kernel/git/vi...Linus Torvalds1-1/+1
2018-05-26net: convert datagram_poll users tp ->poll_maskChristoph Hellwig1-1/+1
2018-05-16proc: introduce proc_create_net{,_data}Christoph Hellwig1-16/+2
2018-05-04net/netlink: make sure the headers line up actual value outputYU Bo1-3/+3
2018-04-07netlink: fix uninit-value in netlink_sendmsgEric Dumazet1-0/+2
2018-04-01Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/netDavid S. Miller1-0/+3
2018-03-27net: Drop pernet_operations::asyncKirill Tkhai1-2/+0
2018-03-25netlink: make sure nladdr has correct size in netlink_connect()Alexander Potapenko1-0/+3
2018-02-24Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/netDavid S. Miller1-1/+3
2018-02-22netlink: put module reference if dump start failsJason A. Donenfeld1-1/+3
2018-02-13net: Convert netlink_tap_net_opsKirill Tkhai1-0/+1
2018-02-13net: Convert netlink_net_opsKirill Tkhai1-0/+1
2018-02-12net: make getname() functions return length rather than use int* parameterDenys Vlasenko1-3/+2
2018-01-19Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/netDavid S. Miller1-1/+1
2018-01-18netlink: reset extack earlier in netlink_rcv_skbXin Long1-1/+1
2018-01-17Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/netDavid S. Miller1-1/+2
2018-01-16net: delete /proc THIS_MODULE referencesAlexey Dobriyan1-1/+0
2018-01-15netlink: extack needs to be reset each time through loopDavid Ahern1-1/+2
2017-12-16Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/netDavid S. Miller1-0/+3
2017-12-11netlink: Add netns check on tapsKevin Cernekee1-0/+3
2017-12-11netlink: convert netlink tap spinlock to mutexCong Wang1-6/+6
2017-12-11netlink: make netlink tap per netnsCong Wang1-17/+49
2017-12-11rhashtable: Change rhashtable_walk_start to return voidTom Herbert1-2/+3
2017-11-14netlink: remove unnecessary forward declarationJohannes Berg1-1/+0
2017-11-13af_netlink: ensure that NLMSG_DONE never fails in dumpsJason A. Donenfeld1-6/+11
2017-11-01netlink: Allow ext_ack to carry non-error messagesDavid Ahern1-9/+9
2017-10-22Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/netDavid S. Miller1-4/+4
2017-10-18netlink: fix netlink_ack() extack raceJohannes Berg1-4/+4
2017-10-18netlink: use NETLINK_CB(in_skb).sk instead of looking it upJohannes Berg1-10/+2
2017-10-09netlink: do not set cb_running if dump's start() errsJason A. Donenfeld1-6/+7
2017-09-30netlink: do not proceed if dump's start() errsJason A. Donenfeld1-2/+5
2017-09-06netlink: access nlk groups safely in netlink bind and getnameXin Long1-4/+12
2017-09-06netlink: fix an use-after-free issue for nlk groupsXin Long1-3/+3
2017-07-01net: convert sock.sk_refcnt from atomic_t to refcount_tReshetova, Elena1-3/+3
2017-07-01net: convert sock.sk_wmem_alloc from atomic_t to refcount_tReshetova, Elena1-1/+1
2017-07-01net: convert sk_buff.users from atomic_t to refcount_tReshetova, Elena1-3/+3
2017-06-16networking: make skb_put & friends return void pointersJohannes Berg1-1/+1
2017-06-16networking: introduce and use skb_put_data()Johannes Berg1-1/+1
2017-06-01netlink: don't send unknown nsidNicolas Dichtel1-1/+3
2017-04-13netlink: allow sending extended ACK with cookie on successJohannes Berg1-11/+22
2017-04-13netlink: extended ACK reportingJohannes Berg1-9/+62
2017-04-05netlink/diag: report flags for netlink socketsAndrey Vagin1-8/+0
2017-03-21crypto: deadlock between crypto_alg_sem/rtnl_mutex/genl_mutexHerbert Xu1-0/+41
2017-01-27net: adjust skb->truesize in pskb_expand_head()Eric Dumazet1-5/+3
2017-01-16netlink: do not enter direct reclaim from netlink_trim()Eric Dumazet1-1/+3
2016-12-24Replace <asm/uaccess.h> with <linux/uaccess.h> globallyLinus Torvalds1-1/+1
2016-12-10netlink: use blocking notifierWANG Cong1-4/+4
2016-12-05netlink: Do not schedule work from sk_destructHerbert Xu1-17/+15
2016-11-29netlink: Call cb->done from a worker threadHerbert Xu1-4/+23
2016-10-06netlink: do not enter direct reclaim from netlink_dump()Eric Dumazet1-3/+4
2016-05-16netlink: Fix dump skb leak/double freeHerbert Xu1-2/+5
2016-04-23Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/netDavid S. Miller1-1/+1
2016-04-10netlink: don't send NETLINK_URELEASE for unbound socketsDmitry Ivanov1-1/+1
2016-04-05rhashtable: accept GFP flags in rhashtable_walk_initBob Copeland1-1/+2
2016-03-22netlink: add support for NIC driver ioctlsDavid Decotigny1-1/+9
2016-02-18nfnetlink: Revert "nfnetlink: add support for memory mapped netlink"Florian Westphal1-16/+4
2016-02-18netlink: remove mmapped netlink supportFlorian Westphal1-745/+9
2016-01-29netlink: not trim skb for mmaped socket when dumpKen-ichirou MATSUZAWA1-1/+2
2015-12-15netlink: add a start callback for starting a netlink dumpTom Herbert1-0/+4
2015-11-06mm, page_alloc: distinguish between being unable to sleep, unwilling to sleep...Mel Gorman1-1/+1
2015-10-22netlink: fix locking around NETLINK_LIST_MEMBERSHIPSDavid Herrmann1-2/+2
2015-10-18netlink: Trim skb to alloc size to avoid MSG_TRUNCArad, Ronen1-12/+22
2015-09-24netlink: Replace rhash_portid with boundHerbert Xu1-11/+28
2015-09-20netlink: Fix autobind race condition that leads to zero port IDHerbert Xu1-5/+7
2015-09-11netlink, mmap: transform mmap skb into full skb on tapsDaniel Borkmann1-7/+23
2015-09-09netlink, mmap: fix edge-case leakages in nf queue zero-copyDaniel Borkmann1-6/+12
2015-09-09netlink, mmap: don't walk rx ring on poll if receive queue non-emptyDaniel Borkmann1-5/+12
2015-08-30netlink: rx mmap: fix POLLIN conditionKen-ichirou MATSUZAWA1-12/+16
2015-08-28netlink: mmap: fix lookup frame positionKen-ichirou MATSUZAWA1-2/+2
2015-08-28netlink: add NETLINK_CAP_ACK socket optionChristophe Ricard1-3/+24