aboutsummaryrefslogtreecommitdiffstats
path: root/net/core/sock.c
AgeCommit message (Expand)AuthorFilesLines
2020-07-24net: switch sock_setbindtodevice to sockptr_tChristoph Hellwig1-4/+3
2020-07-24net: switch copy_bpf_fprog_from_user to sockptr_tChristoph Hellwig1-2/+4
2020-07-22net: explicitly include <linux/compat.h> in net/core/sock.cChristoph Hellwig1-0/+1
2020-07-19net: make ->{get,set}sockopt in proto_ops optionalChristoph Hellwig1-14/+0
2020-07-19net/ipv6: remove compat_ipv6_{get,set}sockoptChristoph Hellwig1-10/+0
2020-07-19net: remove compat_sock_common_{get,set}sockoptChristoph Hellwig1-24/+6
2020-07-19net: simplify cBPF setsockopt compat handlingChristoph Hellwig1-20/+10
2020-07-13net/compat: Add missing sock updates for SCM_RIGHTSKees Cook1-0/+21
2020-07-11Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/netDavid S. Miller1-1/+1
2020-07-09inet_diag: support for wider protocol numbersPaolo Abeni1-0/+1
2020-07-07cgroup: fix cgroup_sk_alloc() for sk_clone_lock()Cong Wang1-1/+1
2020-07-04Merge git://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-nextDavid S. Miller1-9/+0
2020-06-29docs: RCU: Convert rculist_nulls.txt to ReSTMauro Carvalho Chehab1-2/+2
2020-06-24sock: Move sock_valbool_flag to headerDmitry Yakunin1-9/+0
2020-06-23net: Do not clear the sock TX queue in sk_set_socket()Tariq Toukan1-0/+2
2020-06-18net: increment xmit_recursion level in dev_direct_xmit()Eric Dumazet1-1/+1
2020-06-01net: Make locking in sock_bindtoindex optionalFerenc Fejes1-4/+6
2020-05-29net: add a new bind_add methodChristoph Hellwig1-0/+8
2020-05-28net: add sock_set_reuseportChristoph Hellwig1-0/+8
2020-05-28net: add sock_set_rcvbufChristoph Hellwig1-27/+32
2020-05-28net: add sock_set_keepaliveChristoph Hellwig1-0/+10
2020-05-28net: add sock_enable_timestampsChristoph Hellwig1-18/+29
2020-05-28net: add sock_bindtoindexChristoph Hellwig1-6/+15
2020-05-28net: add sock_set_sndtimeoChristoph Hellwig1-0/+11
2020-05-28net: add sock_set_priorityChristoph Hellwig1-0/+8
2020-05-28net: add sock_no_lingerChristoph Hellwig1-0/+9
2020-05-28net: add sock_set_reuseaddrChristoph Hellwig1-0/+8
2020-05-07net: relax SO_TXTIME CAP_NET_ADMIN checkEric Dumazet1-10/+18
2020-04-25net: remove obsolete commentEric Dumazet1-1/+0
2020-04-09Merge git://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpfDavid S. Miller1-1/+1
2020-04-02net: core: enable SO_BINDTODEVICE for non-root usersVincent Bernat1-1/+1
2020-04-03net, sk_msg: Don't use RCU_INIT_POINTER on sk_user_dataJakub Sitnicki1-1/+1
2020-03-30bpf: Don't refcount LISTEN sockets in sk_assign()Joe Stringer1-1/+2
2020-03-30bpf: Add socket assign supportJoe Stringer1-0/+11
2020-03-12Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/netDavid S. Miller1-1/+4
2020-03-10net: memcg: late association of sock to memcgShakeel Butt1-1/+4
2020-02-21net, sk_msg: Clear sk_user_data pointer on clone if taggedJakub Sitnicki1-0/+6
2020-02-21net, sk_msg: Annotate lockless access to sk_prot on cloneJakub Sitnicki1-3/+5
2020-01-22xsk, net: Make sock_def_readable() have external linkageBjörn Töpel1-1/+1
2019-12-17net: annotate lockless accesses to sk->sk_pacing_shiftEric Dumazet1-1/+1
2019-11-26Merge branch 'locking-core-for-linus' of git://git.kernel.org/pub/scm/linux/k...Linus Torvalds1-1/+1
2019-11-02Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/netDavid S. Miller1-3/+3
2019-10-30net: annotate accesses to sk->sk_incoming_cpuEric Dumazet1-2/+2
2019-10-28sock: remove unneeded semicolonYueHaibing1-1/+1
2019-10-28net: use skb_queue_empty_lockless() in busy poll contextsEric Dumazet1-1/+1
2019-10-20Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/netDavid S. Miller1-14/+18
2019-10-13tcp: annotate sk->sk_wmem_queued lockless readsEric Dumazet1-1/+1
2019-10-13tcp: annotate sk->sk_sndbuf lockless readsEric Dumazet1-6/+9
2019-10-13tcp: annotate sk->sk_rcvbuf lockless readsEric Dumazet1-2/+3
2019-10-11sock_get_timeout: drop unnecessary return variableVito Caputo1-6/+3
2019-10-09net: silence KCSAN warnings about sk->sk_backlog.len readsEric Dumazet1-1/+1
2019-10-09net: annotate sk->sk_rcvlowat lockless readsEric Dumazet1-1/+1
2019-10-09net: silence KCSAN warnings around sk_add_backlog() callsEric Dumazet1-1/+1
2019-10-09net: avoid possible false sharing in sk_leave_memory_pressure()Eric Dumazet1-2/+2
2019-10-09locking/lockdep: Remove unused @nested argument from lock_release()Qian Cai1-1/+1
2019-10-05Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/netDavid S. Miller1-4/+9
2019-10-04net: make sock_prot_memory_pressure() return "const char *"Alexey Dobriyan1-1/+1
2019-10-04net: spread "enum sock_flags"Alexey Dobriyan1-2/+3
2019-09-30net: Unpublish sk from sk_reuseport_cb before call_rcuMartin KaFai Lau1-3/+8
2019-09-06Merge git://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-nextDavid S. Miller1-3/+6
2019-08-24sock: fix potential memory leak in proto_register()zhanglin1-10/+21
2019-08-17bpf: support cloning sk storage on accept()Stanislav Fomichev1-3/+6
2019-08-08net/tls: prevent skb_orphan() from leaking TLS plain text with offloadJakub Kicinski1-5/+14
2019-07-12mm: security: introduce init_on_alloc=1 and init_on_free=1 boot optionsAlexander Potapenko1-1/+1
2019-07-08coallocate socket_wq with socket itselfAl Viro1-1/+1
2019-06-22Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/netDavid S. Miller1-3/+0
2019-06-20Merge git://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-nextDavid S. Miller1-0/+4
2019-06-18net: remove duplicate fetch in sock_getsockoptJingYi Hou1-3/+0
2019-06-15Merge git://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpfDavid S. Miller1-0/+3
2019-06-14net: add high_order_alloc_disable sysctl/static keyEric Dumazet1-1/+3
2019-06-15bpf: net: Add SO_DETACH_REUSEPORT_BPFMartin KaFai Lau1-0/+4
2019-06-12bpf: net: Set sk_bpf_storage back to NULL for cloned skMartin KaFai Lau1-0/+3
2019-05-30treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 152Thomas Gleixner1-7/+1
2019-04-28Merge git://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-nextDavid S. Miller1-0/+5
2019-04-27bpf: Introduce bpf sk local storageMartin KaFai Lau1-0/+5
2019-04-23net: fix sparc64 compilation of sock_gettstampStephen Rothwell1-3/+3
2019-04-19net: rework SIOCGSTAMP ioctl handlingArnd Bergmann1-23/+28
2019-04-16socket: fix compat SO_RCVTIMEO_NEW/SO_SNDTIMEO_NEWArnd Bergmann1-2/+2
2019-03-01net: support 64bit rates for getsockopt(SO_MAX_PACING_RATE)Eric Dumazet1-2/+8
2019-03-01net: support 64bit values for setsockopt(SO_MAX_PACING_RATE)Eric Dumazet1-5/+13
2019-02-24net: Use RCU_INIT_POINTER() to set sk_wqLi RongQing1-3/+3
2019-02-16sock: consistent handling of extreme SO_SNDBUF/SO_RCVBUF valuesGuillaume Nault1-0/+20
2019-02-15Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/netDavid S. Miller1-1/+1
2019-02-13net: fix possible overflow in __sk_mem_raise_allocated()Eric Dumazet1-1/+1
2019-02-03net: Fix fall through warning in y2038 tstamp changes.David S. Miller1-0/+1
2019-02-03sock: Add SO_RCVTIMEO_NEW and SO_SNDTIMEO_NEWDeepa Dinamani1-14/+39
2019-02-03socket: Rename SO_RCVTIMEO/ SO_SNDTIMEO with _OLD suffixesDeepa Dinamani1-2/+2
2019-02-03socket: Add SO_TIMESTAMPING_NEWDeepa Dinamani1-1/+7
2019-02-03socket: Add SO_TIMESTAMP[NS]_NEWDeepa Dinamani1-2/+19
2019-02-03sockopt: Rename SO_TIMESTAMP* to SO_TIMESTAMP*_OLDDeepa Dinamani1-8/+8
2019-02-03socket: move compat timeout handling into sock.cArnd Bergmann1-22/+43
2019-01-19net: sock: do not set sk_cookie in sk_clone_lock()Yafang Shao1-1/+0
2019-01-17net: introduce SO_BINDTOIFINDEX sockoptDavid Herrmann1-10/+36
2019-01-01sock: Make sock->sk_stamp thread-safeDeepa Dinamani1-5/+10
2018-12-07net: call sk_dst_reset when set SO_DONTROUTEyupeng1-0/+1
2018-12-03udp: msg_zerocopyWillem de Bruijn1-1/+4
2018-11-08sock: Reset dst when changing sk_mark via setsockoptDavid Barmann1-2/+4
2018-11-07net: ensure unbound datagram socket to be chosen when not in a VRFMike Manning1-0/+2
2018-11-05sock_diag: fix autoloading of the raw_diag moduleAndrei Vagin1-0/+1
2018-10-15Merge git://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-nextDavid S. Miller1-61/+0
2018-10-15net: extend sk_pacing_rate to unsigned longEric Dumazet1-4/+5
2018-10-15tls: convert to generic sk_msg interfaceDaniel Borkmann1-61/+0
2018-10-02tcp: do not release socket ownership in tcp_close()Eric Dumazet1-1/+1
2018-09-10net: Add and use skb_mark_not_on_list().David S. Miller1-1/+1
2018-08-06net: avoid unnecessary sock_flag() check when enable timestampYafang Shao1-4/+4
2018-08-02net/socket: remove duplicated init codeMatthieu Baerts1-48/+3
2018-07-24Merge ra.kernel.org:/pub/scm/linux/kernel/git/davem/netDavid S. Miller1-3/+3
2018-07-23sock: fix sg page frag coalescing in sk_alloc_sgDaniel Borkmann1-3/+3
2018-07-04net/sched: Make etf report drops on error_queueJesus Sanchez-Palencia1-0/+4
2018-07-04net: Add a new socket option for a future transmit time.Richard Cochran1-0/+35
2018-07-03Merge ra.kernel.org:/pub/scm/linux/kernel/git/davem/netDavid S. Miller1-2/+5
2018-07-02net: expose sk wmem in sock_exceed_buf_limit tracepointYafang Shao1-2/+4
2018-07-02net: Record receive queue number for a connectionAmritha Nambiar1-0/+2
2018-06-29net, mm: account sock objects to kmemcgShakeel Butt1-2/+5
2018-06-12Revert "net: do not allow changing SO_REUSEADDR/SO_REUSEPORT on bound sockets"Bart Van Assche1-14/+1
2018-06-06Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-nextLinus Torvalds1-10/+30
2018-06-04net: do not allow changing SO_REUSEADDR/SO_REUSEPORT on bound socketsMaciej Żenczykowski1-1/+14
2018-06-04Merge branch 'work.aio-1' of git://git.kernel.org/pub/scm/linux/kernel/git/vi...Linus Torvalds1-6/+0
2018-06-04Merge branch 'hch.procfs' of git://git.kernel.org/pub/scm/linux/kernel/git/vi...Linus Torvalds1-14/+2
2018-05-26net: remove sock_no_pollChristoph Hellwig1-6/+0
2018-05-21Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/netDavid S. Miller1-1/+1
2018-05-18sock_diag: fix use-after-free read in __sk_freeEric Dumazet1-1/+1
2018-05-16proc: introduce proc_create_net{,_data}Christoph Hellwig1-14/+2
2018-05-10net/sock: Update memalloc_socks static key to modern apiDavidlohr Bueso1-4/+4
2018-05-03net: initial AF_XDP skeletonBjörn Töpel1-4/+8
2018-04-16tcp: fix SO_RCVLOWAT and RCVBUF autotuningEric Dumazet1-1/+4
2018-03-27net: Drop pernet_operations::asyncKirill Tkhai1-2/+0
2018-03-26net: Use octal not symbolic permissionsJoe Perches1-1/+1
2018-03-23Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/netDavid S. Miller1-0/+21
2018-03-21Merge git://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-nextDavid S. Miller1-0/+61
2018-03-19net: generalize sk_alloc_sg to work with scatterlist ringsJohn Fastabend1-11/+16
2018-03-19sock: make static tls function alloc_sg generic sock helperJohn Fastabend1-0/+56
2018-03-14sock: remove zerocopy sockopt restriction on closed tcp stateWillem de Bruijn1-2/+0
2018-03-12sock_diag: request _diag module only when the family or proto has been regist...Xin Long1-0/+21
2018-03-07sock: Fix SO_ZEROCOPY switch caseJesus Sanchez-Palencia1-1/+2
2018-02-21tcp: switch to GSO being always onEric Dumazet1-1/+1
2018-02-16sock: permit SO_ZEROCOPY on PF_RDS socketSowmini Varadhan1-11/+14
2018-02-13net: Convert proto_net_opsKirill Tkhai1-0/+1
2018-02-13net: Convert net_inuse_opsKirill Tkhai1-0/+1
2018-02-12net: make getname() functions return length rather than use int* parameterDenys Vlasenko1-2/+3
2018-02-11vfs: do bulk POLL* -> EPOLL* replacementLinus Torvalds1-5/+5
2018-02-03Merge tag 'usercopy-v4.16-rc1' of git://git.kernel.org/pub/scm/linux/kernel/g...Linus Torvalds1-1/+3
2018-02-02Revert "defer call to mem_cgroup_sk_alloc()"Roman Gushchin1-4/+1
2018-01-31Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-nextLinus Torvalds1-7/+49
2018-01-16net: delete /proc THIS_MODULE referencesAlexey Dobriyan1-1/+0
2018-01-15net: Restrict unwhitelisted proto caches to size 0Kees Cook1-3/+1
2018-01-15net: Define usercopy region in struct proto slab cacheDavid Windsor1-1/+5
2017-12-19sock: Move the socket inuse to namespace.Tonghao Zhang1-2/+45
2017-12-19sock: Change the netns_core member name.Tonghao Zhang1-5/+5
2017-11-27net: annotate ->poll() instancesAl Viro1-1/+1
2017-11-15Merge branch 'akpm' (patches from Andrew)Linus Torvalds1-2/+0
2017-11-15kmemcheck: remove annotationsLevin, Alexander (Sasha Levin)1-2/+0
2017-11-14tcp: allow drivers to tweak TSQ logicEric Dumazet1-0/+1
2017-11-11sock: Remove the global prot_inuse counter.Tonghao Zhang1-22/+0
2017-11-10net: allow per netns sysctl_rmem and sysctl_wmem for protosEric Dumazet1-4/+6
2017-10-22Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/netDavid S. Miller1-3/+5
2017-10-18net/core: Convert sk_timer users to use timer_setup()Kees Cook1-1/+1
2017-10-18net/core: Collapse redundant sk_timer callback data assignmentsKees Cook1-1/+1
2017-10-10net: call cgroup_sk_alloc() earlier in sk_clone_lock()Eric Dumazet1-2/+1
2017-10-10Revert "net: defer call to cgroup_sk_alloc()"Eric Dumazet1-1/+2
2017-10-09net: defer call to cgroup_sk_alloc()Eric Dumazet1-2/+1
2017-10-09net: memcontrol: defer call to mem_cgroup_sk_alloc()Eric Dumazet1-1/+4
2017-10-02socket, bpf: fix possible use after freeEric Dumazet1-1/+4
2017-09-28net: Set sk_prot_creator when cloning sockets to the right protoChristoph Paasch1-0/+2
2017-08-29neigh: increase queue_len_bytes to match wmem_defaultEric Dumazet1-10/+0
2017-08-23net/sock: allow the user to set negative peek offsetPaolo Abeni1-3/+0
2017-08-21Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/klasse...David S. Miller1-1/+1
2017-08-03sock: add SOCK_ZEROCOPY sockoptWillem de Bruijn1-0/+18
2017-08-03sock: add MSG_ZEROCOPYWillem de Bruijn1-0/+2
2017-08-03sock: allocate skbs from optmemWillem de Bruijn1-0/+27
2017-08-02net: Allow IPsec GSO for local socketsSteffen Klassert1-1/+1
2017-08-01proto_ops: Add locked held versions of sendmsg and sendpageTom Herbert1-0/+22
2017-07-05Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-nextLinus Torvalds1-16/+73
2017-07-03Merge tag 'docs-4.13' of git://git.lwn.net/linuxLinus Torvalds1-2/+5
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-13/+13
2017-06-21net: introduce SO_PEERGROUPS getsockoptDavid Herrmann1-0/+33
2017-06-08tcp: add TCPMemoryPressuresChrono counterEric Dumazet1-0/+20
2017-05-18Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/netDavid S. Miller1-3/+0
2017-05-17net: fix compile error in skb_orphan_partial()Eric Dumazet1-3/+0
2017-05-16tcp: internal implementation for pacingEric Dumazet1-0/+4
2017-05-16net: fix some identation issues at kernel-doc markupsMauro Carvalho Chehab1-2/+5
2017-05-11netem: fix skb_orphan_partial()Eric Dumazet1-12/+8
2017-05-08treewide: convert PF_MEMALLOC manipulations to new helpersVlastimil Babka1-3/+4
2017-05-02Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-nextLinus Torvalds1-14/+140
2017-04-11sched/core: Remove 'task' parameter and rename tsk_restore_flags() to current...NeilBrown1-1/+1
2017-04-08New getsockopt option to get socket cookieChenbo Feng1-0/+8
2017-03-30sock: avoid dirtying sk_stamp, if possiblePaolo Abeni1-1/+1
2017-03-24net: Introduce SO_INCOMING_NAPI_IDSridhar Samudrala1-0/+12
2017-03-24net: Commonize busy polling code to focus on napi_id instead of socketSridhar Samudrala1-0/+11
2017-03-23Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/netDavid S. Miller1-5/+11
2017-03-22socket, bpf: fix sk_filter use after free in sk_clone_lockDaniel Borkmann1-0/+6
2017-03-22sock: introduce SO_MEMINFO getsockoptJosh Hunt1-0/+30
2017-03-15net: properly release sk_frag.pageEric Dumazet1-5/+5
2017-03-15Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/netDavid S. Miller1-48/+61
2017-03-09net: Work around lockdep limitation in sockets that use socketsDavid Howells1-49/+57
2017-03-09net/socket: use per af lockdep classes for sk queuesPaolo Abeni1-18/+78
2017-03-02net: Introduce sk_clone_lock() error path routineArnaldo Carvalho de Melo1-5/+11
2017-02-21net: sock: Use USEC_PER_SEC macro instead of literal 1000000Gao Feng1-3/+3
2017-02-07sock: add sk_dst_pending_confirm flagJulian Anastasov1-0/+2