aboutsummaryrefslogtreecommitdiffstats
path: root/net/core/sock.c
AgeCommit message (Expand)AuthorFilesLines
2024-03-25net: mark racy access on sk->sk_rcvbuflinke li1-2/+2
2024-03-05sock: Use unsafe_memcpy() for sock_copy()Kees Cook1-2/+3
2024-02-28net: make SK_MEMORY_PCPU_RESERV tunableAdam Li1-0/+1
2024-02-22Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/netJakub Kicinski1-12/+11
2024-02-21net: implement lockless setsockopt(SO_PEEK_OFF)Eric Dumazet1-12/+11
2024-02-20net: reorganize "struct sock" fieldsEric Dumazet1-0/+62
2024-01-26Merge tag 'for-netdev' of https://git.kernel.org/pub/scm/linux/kernel/git/bpf...Jakub Kicinski1-2/+12
2024-01-23bpf: tcp: Support arbitrary SYN Cookie.Kuniyuki Iwashima1-2/+12
2024-01-21udp: fix busy pollingEric Dumazet1-2/+9
2024-01-04Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/netJakub Kicinski1-2/+10
2024-01-04net: Implement missing SO_TIMESTAMPING_NEW cmsg supportThomas Lange1-0/+1
2024-01-02net: Implement missing getsockopt(SO_TIMESTAMPING_NEW)Jörn-Thorben Hinz1-2/+9
2023-12-15net: Namespace-ify sysctl_optmem_maxEric Dumazet1-8/+2
2023-12-15net: increase optmem_max default valueEric Dumazet1-2/+4
2023-11-01Merge tag 'for-6.7/io_uring-sockopt-2023-10-30' of git://git.kernel.dk/linuxLinus Torvalds1-8/+0
2023-10-24sock: Ignore memcg pressure heuristics when raising allocatedAbel Wu1-2/+12
2023-10-24sock: Doc behaviors for pressure heurisiticsAbel Wu1-1/+13
2023-10-24sock: Code cleanup on __sk_mem_raise_allocated()Abel Wu1-10/+12
2023-10-19net/socket: Break down __sys_getsockoptBreno Leitao1-8/+0
2023-10-01net: annotate data-races around sk->sk_dst_pending_confirmEric Dumazet1-1/+1
2023-10-01net: lockless implementation of SO_TXREHASHEric Dumazet1-13/+10
2023-10-01net: implement lockless SO_MAX_PACING_RATEEric Dumazet1-19/+21
2023-10-01net: lockless implementation of SO_BUSY_POLL, SO_PREFER_BUSY_POLL, SO_BUSY_PO...Eric Dumazet1-24/+20
2023-10-01net: lockless SO_{TYPE|PROTOCOL|DOMAIN|ERROR } setsockopt()Eric Dumazet1-6/+5
2023-10-01net: lockless SO_PASSCRED, SO_PASSPIDFD and SO_PASSSECEric Dumazet1-11/+9
2023-10-01net: implement lockless SO_PRIORITYEric Dumazet1-11/+12
2023-09-16net: use indirect call helpers for sk->sk_prot->release_cb()Eric Dumazet1-2/+5
2023-09-15ipv6: lockless IPV6_MULTICAST_LOOP implementationEric Dumazet1-2/+2
2023-09-12net: call prot->release_cb() when processing backlogEric Dumazet1-0/+3
2023-09-12tcp: no longer release socket ownership in tcp_release_cb()Eric Dumazet1-3/+0
2023-09-04af_unix: Fix data race around sk->sk_err.Kuniyuki Iwashima1-1/+1
2023-09-04af_unix: Fix data-races around sk->sk_shutdown.Kuniyuki Iwashima1-2/+2
2023-09-01net: annotate data-races around sk->sk_bind_phcEric Dumazet1-2/+2
2023-09-01net: annotate data-races around sk->sk_tsflagsEric Dumazet1-2/+2
2023-09-01net: annotate data-races around sk->sk_forward_allocEric Dumazet1-4/+4
2023-09-01net: use sk_forward_alloc_get() in sk_get_meminfo()Eric Dumazet1-1/+1
2023-08-31net: read sk->sk_family once in sk_mc_loop()Eric Dumazet1-1/+2
2023-08-21net: annotate data-races around sk->sk_lingertimeEric Dumazet1-9/+9
2023-08-18Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/netJakub Kicinski1-1/+1
2023-08-17sock: Fix misuse of sk_under_memory_pressure()Abel Wu1-1/+1
2023-08-16inet: move inet->mc_loop to inet->inet_fragsEric Dumazet1-1/+1
2023-08-10Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/netJakub Kicinski1-1/+1
2023-08-09net: annotate data-races around sock->opsEric Dumazet1-7/+17
2023-08-08net/unix: use consistent error code in SO_PEERPIDFDDavid Rheinsberg1-1/+1
2023-08-03Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/netJakub Kicinski1-29/+40
2023-07-31net: Use sockaddr_storage for getsockopt(SO_PEERNAME).Kuniyuki Iwashima1-3/+3
2023-07-29net: annotate data-races around sk->sk_priorityEric Dumazet1-3/+3
2023-07-29net: add missing data-race annotation for sk_ll_usecEric Dumazet1-1/+1
2023-07-29net: add missing data-race annotations around sk->sk_peek_offEric Dumazet1-2/+2
2023-07-29net: annotate data-races around sk->sk_markEric Dumazet1-2/+2
2023-07-29net: add missing READ_ONCE(sk->sk_rcvbuf) annotationEric Dumazet1-1/+1
2023-07-29net: add missing READ_ONCE(sk->sk_sndbuf) annotationEric Dumazet1-1/+1
2023-07-29net: annotate data-races around sk->sk_{rcv|snd}timeoEric Dumazet1-10/+14
2023-07-29net: add missing READ_ONCE(sk->sk_rcvlowat) annotationEric Dumazet1-1/+1
2023-07-29net: annotate data-races around sk->sk_max_pacing_rateEric Dumazet1-3/+6
2023-07-29net: annotate data-race around sk->sk_txrehashEric Dumazet1-2/+5
2023-07-29net: annotate data-races around sk->sk_reserved_memEric Dumazet1-3/+4
2023-07-11net/core: Make use of assign_bit() APIAndy Shevchenko1-12/+3
2023-06-27Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/netJakub Kicinski1-3/+14
2023-06-27netlink: Add __sock_i_ino() for __netlink_diag_dump().Kuniyuki Iwashima1-3/+14
2023-06-24sock: Remove ->sendpage*() in favour of sendmsg(MSG_SPLICE_PAGES)David Howells1-33/+2
2023-06-22Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/netJakub Kicinski1-6/+0
2023-06-22revert "net: align SO_RCVMARK required privileges with SO_MARK"Maciej Żenczykowski1-6/+0
2023-06-20net: remove sk_is_ipmr() and sk_is_icmpv6() helpersEric Dumazet1-2/+2
2023-06-15net: ioctl: Use kernel memory on protocol ioctl callbacksBreno Leitao1-0/+64
2023-06-12net: core: add getsockopt SO_PEERPIDFDAlexander Mikhalitsyn1-0/+33
2023-06-12scm: add SO_PASSPIDFD and SCM_PIDFDAlexander Mikhalitsyn1-0/+11
2023-05-31udp6: Fix race condition in udp6_sendmsg & connectVladislav Efanov1-1/+1
2023-04-07net: make SO_BUSY_POLL available to all usersEric Dumazet1-9/+4
2023-03-02net: use indirect calls helpers for sk_exit_memory_pressure()Brian Vazquez1-1/+2
2023-02-15net: no longer support SOCK_REFCNT_DEBUG featureJason Xing1-13/+0
2023-02-09Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/netJakub Kicinski1-1/+2
2023-02-08txhash: fix sk->sk_txrehash defaultKevin Yang1-1/+2
2023-02-06net: add sock_init_data_uid()Pietro Borrello1-3/+12
2023-02-01net: add support for ipv4 big tcpXin Long1-12/+14
2023-01-23net/sock: Introduce trace_sk_data_ready()Peilin Ye1-0/+2
2022-12-19net: Introduce sk_use_task_frag in struct sock.Guillaume Nault1-0/+1
2022-12-13Merge tag 'net-next-6.2' of git://git.kernel.org/pub/scm/linux/kernel/git/net...Linus Torvalds1-4/+25
2022-12-08net_tstamp: add SOF_TIMESTAMPING_OPT_ID_TCPWillem de Bruijn1-1/+8
2022-11-04lsm: make security_socket_getpeersec_stream() sockptr_t safePaul Moore1-1/+2
2022-10-25soreuseport: Fix socket selection for SO_INCOMING_CPU.Kuniyuki Iwashima1-1/+1
2022-10-24net: remove useless parameter of __sock_cmsg_sendxu xin1-2/+2
2022-10-24net: add a refcount tracker for kernel socketsEric Dumazet1-0/+14
2022-10-12ipv6: Fix data races around sk->sk_prot.Kuniyuki Iwashima1-2/+4
2022-09-06Merge https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-nextPaolo Abeni1-40/+94
2022-09-02bpf: Change bpf_getsockopt(SOL_SOCKET) to reuse sk_getsockopt()Martin KaFai Lau1-2/+2
2022-09-02bpf: net: Change sk_getsockopt() to take the sockptr_t argumentMartin KaFai Lau1-19/+24
2022-09-02net: Change sock_getsockopt() to take the sk ptr instead of the sock ptrMartin KaFai Lau1-3/+9
2022-08-24net: Fix a data-race around sysctl_net_busy_read.Kuniyuki Iwashima1-1/+1
2022-08-24net: Fix data-races around sysctl_optmem_max.Kuniyuki Iwashima1-3/+5
2022-08-24net: Fix data-races around sysctl_[rw]mem_(max|default).Kuniyuki Iwashima1-4/+4
2022-08-18bpf: Change bpf_setsockopt(SOL_SOCKET) to reuse sk_setsockopt()Martin KaFai Lau1-3/+3
2022-08-18bpf: net: Consider has_current_bpf_ctx() when testing capable() in sk_setsock...Martin KaFai Lau1-13/+25
2022-08-18bpf: net: Avoid sk_setsockopt() taking sk lock when called from bpfMartin KaFai Lau1-3/+27
2022-08-18net: Add sk_setsockopt() to take the sk ptr instead of the sock ptrMartin KaFai Lau1-3/+10
2022-07-06tls: rx: periodically flush socket backlogJakub Kicinski1-0/+1
2022-06-13tcp: sk_forced_mem_schedule() optimizationEric Dumazet1-3/+6
2022-06-10net: unexport __sk_mem_{raise|reduce}_allocatedEric Dumazet1-2/+0
2022-06-10net: add per_cpu_fw_alloc field to struct protoEric Dumazet1-0/+4
2022-06-10net: remove SK_MEM_QUANTUM and SK_MEM_QUANTUM_SHIFTEric Dumazet1-8/+8
2022-06-09net: use DEBUG_NET_WARN_ON_ONCE() in __release_sock()Eric Dumazet1-1/+1
2022-05-16net: core: add READ_ONCE/WRITE_ONCE annotations for sk->sk_bound_dev_ifEric Dumazet1-4/+7
2022-05-16net: allow gso_max_size to exceed 65536Alexander Duyck1-0/+14
2022-05-05net: align SO_RCVMARK required privileges with SO_MARKEyal Birger1-0/+6
2022-05-01sock: optimise sock_def_write_space barriersPavel Begunkov1-1/+25
2022-05-01sock: optimise UDP sock_wfree() refcountingPavel Begunkov1-0/+14
2022-05-01sock: dedup sock_def_write_space wmem_alloc checksPavel Begunkov1-3/+2
2022-04-30net: inline sock_alloc_send_skbPavel Begunkov1-7/+0
2022-04-28net: SO_RCVMARK socket option for SO_MARK with recvmsg()Erin MacNeil1-0/+7
2022-04-26net: generalize skb freeing deferral to per-cpu listsEric Dumazet1-3/+0
2022-04-12net: remove noblock parameter from recvmsg() entitiesOliver Hartkopp1-2/+1
2022-04-11net: sock: introduce sock_queue_rcv_skb_reason()Menglong Dong1-6/+24
2022-04-07net: extract a few internals from netdevice.hJakub Kicinski1-0/+2
2022-03-08SO_ZEROCOPY should return -EOPNOTSUPP rather than -ENOTSUPPSamuel Thibault1-2/+2
2022-02-24Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/netJakub Kicinski1-2/+2
2022-02-18net-timestamp: convert sk->sk_tskey to atomic_tEric Dumazet1-2/+2
2022-02-17net: add sanity check in proto_register()Eric Dumazet1-0/+4
2022-02-01net: allow SO_MARK with CAP_NET_RAW via cmsgJakub Kicinski1-1/+2
2022-01-31tcp: Change SYN ACK retransmit behaviour to account for rehashAkhmat Karakotov1-1/+2
2022-01-31txhash: Add socket option to control TX hash rethink behaviorAkhmat Karakotov1-0/+13
2022-01-25net: Adjust sk_gso_max_size once when setDavid Ahern1-0/+1
2022-01-17net: Flush deferred skb free on socket destroyGal Pressman1-0/+3
2022-01-12net: fix sock_timestamping_bind_phc() to release deviceMiroslav Lichvar1-0/+2
2021-12-10sock: Use sock_owned_by_user_nocheck() instead of sk_lock.owned.Kuniyuki Iwashima1-2/+2
2021-12-10net: add netns refcount tracker to struct sockEric Dumazet1-3/+3
2021-11-24net: allow SO_MARK with CAP_NET_RAWMaciej Żenczykowski1-1/+2
2021-11-24net: allow CAP_NET_RAW to setsockopt SO_PRIORITYMaciej Żenczykowski1-0/+1
2021-11-22net: annotate accesses to dev->gso_max_segsEric Dumazet1-1/+2
2021-11-22net: annotate accesses to dev->gso_max_sizeEric Dumazet1-1/+2
2021-11-18Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/netJakub Kicinski1-3/+3
2021-11-16net: merge net->core.prot_inuse and net->core.sock_inuseEric Dumazet1-11/+1
2021-11-16net: make sock_inuse_add() availableEric Dumazet1-10/+0
2021-11-16net: inline sock_prot_inuse_add()Eric Dumazet1-11/+0
2021-11-16tcp: add RETPOLINE mitigation to sk_backlog_rcvEric Dumazet1-1/+4
2021-11-16net: remove sk_route_nocapsEric Dumazet1-1/+2
2021-11-16net: remove sk_route_forced_capsEric Dumazet1-1/+3
2021-11-16net: use sk_is_tcp() in more placesEric Dumazet1-4/+2
2021-11-15sock: fix /proc/net/sockstat underflow in sk_clone_lock()Tetsuo Handa1-3/+3
2021-11-04net: fix possible NULL deref in sock_reserve_memoryEric Dumazet1-1/+1
2021-10-08vsock: Enable y2038 safe timeval for timeoutRichard Palethorpe1-11/+24
2021-09-30Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/netJakub Kicinski1-24/+28
2021-09-30af_unix: fix races in sk_peer_pid and sk_peer_cred accessesEric Dumazet1-6/+26
2021-09-30net: add new socket option SO_RESERVE_MEMWei Wang1-0/+69
2021-09-30net: introduce and use lock_sock_fast_nested()Paolo Abeni1-18/+2
2021-09-19net: core: Correct the sock::sk_lock.owned lockdep annotationsThomas Gleixner1-14/+23
2021-08-26sock: remove one redundant SKB_FRAG_PAGE_ORDER macroYunsheng Lin1-1/+0
2021-08-18net-memcg: pass in gfp_t mask to mem_cgroup_charge_skmem()Wei Wang1-4/+12
2021-08-04sock: allow reading and changing sk_userlocks with setsockoptPavel Tikhomirov1-0/+13
2021-07-29mctp: Add MCTP baseJeremy Kerr1-0/+1
2021-07-07sock: unlock on error in sock_setsockopt()Dan Carpenter1-2/+4
2021-07-02sock: fix error in sock_setsockopt()Eric Dumazet1-1/+1
2021-07-01net: sock: extend SO_TIMESTAMPING for PHC bindingYangbo Lu1-3/+62
2021-07-01net: annotate data race around sk_ll_usecEric Dumazet1-1/+1
2021-06-29net: sock: add trace for socket errorsAlexander Aring1-0/+10
2021-06-29net: sock: introduce sk_error_reportAlexander Aring1-0/+6
2021-06-24net: retrieve netns cookie via getsocketoptMartynas Pumputis1-0/+7
2021-06-07Merge ra.kernel.org:/pub/scm/linux/kernel/git/netdev/netDavid S. Miller1-4/+12
2021-06-04sock: expose so_timestamping options for mptcpFlorian Westphal1-35/+36
2021-06-04sock: expose so_timestamp options for mptcpFlorian Westphal1-7/+19
2021-06-01net: sock: fix in-kernel mark settingAlexander Aring1-4/+12
2021-05-12net: really orphan skbs tied to closing skPaolo Abeni1-4/+4
2021-04-23net: sock: remove the unnecessary check in proto_registerTonghao Zhang1-1/+1
2021-03-30net: let skb_orphan_partial wake-up waiters.Paolo Abeni1-9/+3
2021-03-11net: sock: simplify tw proto registrationTonghao Zhang1-16/+28
2021-02-03net: indirect call helpers for ipv4/ipv6 dst_check functionsBrian Vazquez1-2/+10
2021-01-29net: Remove redundant calls of sk_tx_queue_clear().Kuniyuki Iwashima1-1/+10
2021-01-28net: reduce indentation level in sk_clone_lock()Eric Dumazet1-96/+93
2020-12-04net: Remove the err argument from sock_from_fileFlorent Revest1-7/+1
2020-12-04Merge https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-nextJakub Kicinski1-0/+19
2020-11-30mptcp: open code mptcp variant for lock_sockPaolo Abeni1-1/+1
2020-12-01net: Add SO_BUSY_POLL_BUDGET socket optionBjörn Töpel1-0/+10
2020-12-01net: Introduce preferred busy-pollingBjörn Töpel1-0/+9
2020-11-20net: add annotation for sock_{lock,unlock}_fastPaolo Abeni1-1/+2
2020-10-22net: Properly typecast int values to set sk_max_pacing_rateKe Li1-1/+1
2020-10-15Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/netJakub Kicinski1-8/+3
2020-10-13socket: don't clear SOCK_TSTAMP_NEW when SO_TIMESTAMPNS is disabledChristian Eggers1-1/+0
2020-10-13socket: fix option SO_TIMESTAMPING_NEWChristian Eggers1-7/+3
2020-09-24mptcp: add sk_stop_timer_sync helperGeliang Tang1-0/+7
2020-09-04Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/netJakub Kicinski1-2/+2
2020-09-03Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/netLinus Torvalds1-1/+1
2020-08-27net: Fix some commentsMiaohe Lin1-1/+1
2020-08-23treewide: Use fallthrough pseudo-keywordGustavo A. R. Silva1-1/+1
2020-08-19net: Stop warning about SO_BSDCOMPAT usageMiaohe Lin1-14/+0
2020-08-13Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/netLinus Torvalds1-10/+15
2020-08-11net: Fix potential memory leak in proto_register()Miaohe Lin1-10/+15
2020-08-07Merge branch 'akpm' (patches from Andrew)Linus Torvalds1-1/+1
2020-08-07mm, treewide: rename kzfree() to kfree_sensitive()Waiman Long1-1/+1
2020-08-06Merge tag 'dlm-5.9' of git://git.kernel.org/pub/scm/linux/kernel/git/teigland...Linus Torvalds1-0/+8
2020-08-06net: sock: add sock_set_markAlexander Aring1-0/+8
2020-08-05Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net-nextLinus Torvalds1-88/+31
2020-08-04Merge tag 'seccomp-v5.9-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git...Linus Torvalds1-0/+21
2020-07-31Merge branch 'for-mingo' of git://git.kernel.org/pub/scm/linux/kernel/git/pau...Ingo Molnar1-2/+2
2020-07-24net: pass a sockptr_t into ->setsockoptChristoph Hellwig1-1/+1
2020-07-24net: switch sock_set_timeout to sockptr_tChristoph Hellwig1-14/+12
2020-07-24net: switch sock_set_timeout to sockptr_tChristoph Hellwig1-6/+9
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