aboutsummaryrefslogtreecommitdiffstats
path: root/net/unix/af_unix.c
AgeCommit message (Expand)AuthorFilesLines
4 daysMerge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/netJakub Kicinski1-1/+1
7 daysaf_unix: Fix data races in unix_release_sock/unix_stream_sendmsgBreno Leitao1-1/+1
2024-04-18Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/netJakub Kicinski1-6/+6
2024-04-16af_unix: Try not to hold unix_gc_lock during accept().Kuniyuki Iwashima1-1/+1
2024-04-12af_unix: Don't peek OOB data without MSG_OOB.Kuniyuki Iwashima1-5/+5
2024-04-12af_unix: Call manage_oob() for every skb in unix_stream_read_generic().Kuniyuki Iwashima1-1/+1
2024-04-11Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/netJakub Kicinski1-1/+3
2024-04-08af_unix: Clear stale u->oob_skb.Kuniyuki Iwashima1-1/+3
2024-04-03af_unix: Remove lock dance in unix_peek_fds().Kuniyuki Iwashima1-42/+0
2024-04-03af_unix: Remove scm_fp_dup() in unix_attach_fds().Kuniyuki Iwashima1-7/+2
2024-03-29net: add sk_wake_async_rcu() helperEric Dumazet1-1/+1
2024-03-29af_unix: Replace garbage collection algorithm.Kuniyuki Iwashima1-12/+0
2024-03-29af_unix: Fix up unix_edge.successor for embryo socket.Kuniyuki Iwashima1-1/+1
2024-03-29af_unix: Save listener for embryo socket.Kuniyuki Iwashima1-1/+4
2024-03-29af_unix: Link struct unix_edge when queuing skb.Kuniyuki Iwashima1-2/+6
2024-03-29af_unix: Allocate struct unix_vertex for each inflight AF_UNIX fd.Kuniyuki Iwashima1-0/+6
2024-02-22Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/netJakub Kicinski1-16/+3
2024-02-21net: implement lockless setsockopt(SO_PEEK_OFF)Eric Dumazet1-16/+3
2024-02-01Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/netJakub Kicinski1-8/+6
2024-01-31af_unix: fix lockdep positive in sk_diag_dump_icons()Eric Dumazet1-8/+6
2024-01-31af_unix: Remove CONFIG_UNIX_SCM.Kuniyuki Iwashima1-2/+61
2024-01-26af_unix: Try to run GC async.Kuniyuki Iwashima1-2/+4
2024-01-26af_unix: Do not use atomic ops for unix_sk(sk)->inflight.Kuniyuki Iwashima1-2/+2
2023-11-30bpf, sockmap: af_unix stream sockets need to hold ref for pair sockJohn Fastabend1-2/+0
2023-11-14af_unix: fix use-after-free in unix_stream_read_actor()Eric Dumazet1-4/+5
2023-10-27af_unix: Remove module remnants.Kuniyuki Iwashima1-19/+4
2023-10-11bpf: Implement cgroup sockaddr hooks for unix socketsDaan De Meyer1-1/+34
2023-09-04af_unix: Fix data-race around unix_tot_inflight.Kuniyuki Iwashima1-1/+1
2023-07-29net: add missing data-race annotations around sk->sk_peek_offEric Dumazet1-1/+1
2023-07-27af_unix: Terminate sun_path when bind()ing pathname socket.Kuniyuki Iwashima1-5/+16
2023-07-25af_unix: Fix fortify_panic() in unix_bind_bsd().Kuniyuki Iwashima1-4/+2
2023-06-27net: scm: introduce and use scm_recv_unix helperAlexander Mikhalitsyn1-2/+2
2023-06-27Revert "af_unix: Call scm_recv() only after scm_set_cred()."Kuniyuki Iwashima1-1/+1
2023-06-24sock: Remove ->sendpage*() in favour of sendmsg(MSG_SPLICE_PAGES)David Howells1-19/+0
2023-06-24af_unix: Call scm_recv() only after scm_set_cred().Kuniyuki Iwashima1-1/+1
2023-06-12net: core: add getsockopt SO_PEERPIDFDAlexander Mikhalitsyn1-0/+16
2023-06-12scm: add SO_PASSPIDFD and SCM_PIDFDAlexander Mikhalitsyn1-5/+13
2023-05-25Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/netJakub Kicinski1-5/+2
2023-05-23unix: Convert unix_stream_sendpage() to use MSG_SPLICE_PAGESDavid Howells1-127/+7
2023-05-23af_unix: Support MSG_SPLICE_PAGESDavid Howells1-16/+33
2023-05-23net: Pass max frags into skb_append_pagefrags()David Howells1-1/+1
2023-05-23bpf, sockmap: Pass skb ownership through read_skbJohn Fastabend1-5/+2
2023-05-10af_unix: Fix data races around sk->sk_shutdown.Kuniyuki Iwashima1-8/+12
2023-05-10af_unix: Fix a data race of sk->sk_receive_queue->qlen.Kuniyuki Iwashima1-1/+1
2023-03-17af_unix: annotate lockless accesses to sk->sk_errEric Dumazet1-4/+5
2023-03-08af_unix: fix struct pid leaks in OOB supportEric Dumazet1-2/+8
2023-02-21Merge tag 'net-next-6.3' of git://git.kernel.org/pub/scm/linux/kernel/git/net...Linus Torvalds1-10/+11
2023-01-27net: add missing includes of linux/splice.hJakub Kicinski1-0/+1
2023-01-18fs: port vfs_*() helpers to struct mnt_idmapChristian Brauner1-4/+4
2023-01-16unix: Improve locking scheme in unix_show_fdinfo()Kirill Tkhai1-10/+10
2022-12-15unix: Fix race in SOCK_SEQPACKET's unix_dgram_sendmsg()Kirill Tkhai1-2/+9
2022-12-12af_unix: call proto_unregister() in the error path in af_unix_init()Yang Yingliang1-0/+1
2022-10-11treewide: use get_random_u32() when possibleJason A. Donenfeld1-1/+1
2022-10-10Merge tag 'sched-core-2022-10-07' of git://git.kernel.org/pub/scm/linux/kerne...Linus Torvalds1-5/+3
2022-10-03Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/netJakub Kicinski1-6/+7
2022-10-03af_unix: Fix memory leaks of the whole sk due to OOB skb.Kuniyuki Iwashima1-6/+7
2022-09-26af_unix: Refactor unix_read_skb()Peilin Ye1-24/+10
2022-09-07freezer,sched: Rewrite core freezer logicPeter Zijlstra1-5/+3
2022-08-22af_unix: Show number of inflight fds for sockets in TCP_LISTEN state tooKirill Tkhai1-3/+33
2022-07-09Merge https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-nextJakub Kicinski1-14/+9
2022-07-07af_unix: Optimise hash table layout.Kuniyuki Iwashima1-6/+12
2022-07-05af_unix: Put pathname sockets in the global hash table.Kuniyuki Iwashima1-10/+37
2022-06-22af_unix: Remove unix_table_locks.Kuniyuki Iwashima1-34/+8
2022-06-22af_unix: Put a socket into a per-netns hash table.Kuniyuki Iwashima1-30/+20
2022-06-22af_unix: Acquire/Release per-netns hash table's locks.Kuniyuki Iwashima1-24/+51
2022-06-22af_unix: Define a per-netns hash table.Kuniyuki Iwashima1-6/+32
2022-06-22af_unix: Include the whole hash table size in UNIX_HASH_SIZE.Kuniyuki Iwashima1-9/+9
2022-06-22af_unix: Clean up some sock_net() uses.Kuniyuki Iwashima1-19/+14
2022-06-20net: Introduce a new proto_ops ->read_skb()Cong Wang1-14/+9
2022-06-09af_unix: use DEBUG_NET_WARN_ON_ONCE()Eric Dumazet1-4/+4
2022-06-07af_unix: Fix a data-race in unix_dgram_peer_wake_me().Kuniyuki Iwashima1-1/+1
2022-05-25Merge tag 'net-next-5.19' of git://git.kernel.org/pub/scm/linux/kernel/git/ne...Linus Torvalds1-6/+5
2022-05-16af_unix: Silence randstruct GCC plugin warningKees Cook1-5/+3
2022-04-12net: remove noblock parameter from recvmsg() entitiesOliver Hartkopp1-4/+2
2022-04-06net: remove noblock parameter from skb_recv_datagram()Oliver Hartkopp1-2/+3
2022-03-23Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/netJakub Kicinski1-7/+9
2022-03-18af_unix: Remove unnecessary brackets around CONFIG_AF_UNIX_OOB.Kuniyuki Iwashima1-3/+3
2022-03-18af_unix: Support POLLPRI for OOB.Kuniyuki Iwashima1-0/+4
2022-03-18af_unix: Fix some data-races around unix_sk(sk)->oob_skb.Kuniyuki Iwashima1-7/+5
2022-01-18bpf: Support bpf_(get|set)sockopt() in bpf unix iter.Kuniyuki Iwashima1-0/+15
2022-01-18bpf: af_unix: Use batching algorithm in bpf unix iter.Kuniyuki Iwashima1-7/+177
2022-01-18af_unix: Refactor unix_next_socket().Kuniyuki Iwashima1-21/+30
2021-12-29net: Don't include filter.h from net/sock.hJakub Kicinski1-0/+1
2021-11-26af_unix: Relax race in unix_autobind().Kuniyuki Iwashima1-10/+12
2021-11-26af_unix: Replace the big lock with small locks.Kuniyuki Iwashima1-38/+60
2021-11-26af_unix: Save hash in sk_hash.Kuniyuki Iwashima1-19/+23
2021-11-26af_unix: Add helpers to calculate hashes.Kuniyuki Iwashima1-29/+35
2021-11-26af_unix: Remove UNIX_ABSTRACT() macro and test sun_path[0] instead.Kuniyuki Iwashima1-4/+2
2021-11-26af_unix: Allocate unix_address in unix_bind_(bsd|abstract)().Kuniyuki Iwashima1-40/+67
2021-11-26af_unix: Remove unix_mkname().Kuniyuki Iwashima1-23/+11
2021-11-26af_unix: Copy unix_mkname() into unix_find_(bsd|abstract)().Kuniyuki Iwashima1-38/+25
2021-11-26af_unix: Cut unix_validate_addr() out of unix_mkname().Kuniyuki Iwashima1-10/+30
2021-11-26af_unix: Return an error as a pointer in unix_find_other().Kuniyuki Iwashima1-18/+22
2021-11-26af_unix: Factorise unix_find_other() based on address types.Kuniyuki Iwashima1-55/+81
2021-11-26af_unix: Pass struct sock to unix_autobind().Kuniyuki Iwashima1-15/+21
2021-11-26af_unix: Use offsetof() instead of sizeof().Kuniyuki Iwashima1-7/+12
2021-11-26Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/netJakub Kicinski1-3/+0
2021-11-20af_unix: fix regression in read after shutdownVincent Whitchurch1-3/+0
2021-11-16net: drop nopreempt requirement on sock_prot_inuse_add()Eric Dumazet1-4/+0
2021-10-26net: Implement ->sock_is_readable() for UDP and AF_UNIXCong Wang1-0/+4
2021-10-12af_unix: Rename UNIX-DGRAM to UNIX to maintain backwards compatabilityStephen Boyd1-1/+1
2021-10-07Merge https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpfJakub Kicinski1-4/+5
2021-10-06unix: Fix an issue in unix_shutdown causing the other end read/write failuresJiang Wang1-4/+5
2021-09-30af_unix: fix races in sk_peer_pid and sk_peer_cred accessesEric Dumazet1-6/+28
2021-09-28af_unix: Return errno instead of NULL in unix_create1().Kuniyuki Iwashima1-17/+32
2021-09-09net/af_unix: fix a data-race in unix_dgram_pollEric Dumazet1-1/+1
2021-08-31af_unix: fix potential NULL deref in unix_dgram_connect()Eric Dumazet1-3/+6
2021-08-30Merge https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-nextJakub Kicinski1-13/+176
2021-08-23af_unix: Fix NULL pointer bug in unix_shutdownJiang Wang1-1/+2
2021-08-16af_unix: Add unix_stream_proto for sockmapJiang Wang1-13/+70
2021-08-16af_unix: Add read_sock for stream socket typesJiang Wang1-0/+12
2021-08-16af_unix: check socket state when queuing OOBRao Shoaib1-2/+9
2021-08-15bpf: af_unix: Implement BPF iterator for UNIX domain socket.Kuniyuki Iwashima1-0/+93
2021-08-13af_unix: fix holding spinlock in oob handlingRao Shoaib1-12/+24
2021-08-04af_unix: Add OOB supportRao Shoaib1-2/+151
2021-07-31Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/netJakub Kicinski1-2/+49
2021-07-28af_unix: fix garbage collect vs MSG_PEEKMiklos Szeredi1-2/+49
2021-07-15af_unix: Implement unix_dgram_bpf_recvmsg()Cong Wang1-3/+16
2021-07-15af_unix: Implement ->psock_update_sk_prot()Cong Wang1-1/+5
2021-07-15af_unix: Add a dummy ->close() for sockmapCong Wang1-0/+9
2021-07-15af_unix: Set TCP_ESTABLISHED for datagram sockets tooCong Wang1-6/+8
2021-07-15af_unix: Implement ->read_sock() for sockmapCong Wang1-0/+37
2021-06-29net: sock: introduce sk_error_reportAlexander Aring1-1/+1
2021-06-21__unix_find_socket_byname(): don't pass hash and type separatelyAl Viro1-13/+10
2021-06-21unix_bind_bsd(): unlink if we fail after successful mknodAl Viro1-13/+16
2021-06-21unix_bind_bsd(): move done_path_create() call after dealing with ->bindlockAl Viro1-15/+11
2021-06-21fold unix_mknod() into unix_bind_bsd()Al Viro1-25/+17
2021-06-21unix_bind(): take BSD and abstract address cases into new helpersAl Viro1-73/+74
2021-06-21unix_bind(): separate BSD and abstract casesAl Viro1-21/+34
2021-06-21unix_bind(): allocate addr earlierAl Viro1-13/+15
2021-06-21af_unix: take address assignment/hash insertion into a new helperAl Viro1-13/+13
2021-06-18Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/netJakub Kicinski1-3/+4
2021-06-16net/af_unix: fix a data-race in unix_dgram_sendmsg / unix_release_sockEric Dumazet1-3/+4
2021-06-10af_unix: remove the repeated word "and"gushengxian1-1/+1
2021-01-24af_unix: handle idmapped mountsChristian Brauner1-2/+2
2021-01-24namei: prepare for idmapped mountsChristian Brauner1-1/+2
2021-01-24fs: add file and path permissions helpersChristian Brauner1-1/+1
2020-10-13net/af_unix: Remove unused old_pid variableOr Cohen1-2/+0
2020-09-21net: unix: remove redundant assignment to variable 'err'Jing Xiangfeng1-1/+0
2020-08-23treewide: Use fallthrough pseudo-keywordGustavo A. R. Silva1-1/+1
2020-07-19net: make ->{get,set}sockopt in proto_ops optionalChristoph Hellwig1-6/+0
2020-02-28net: datagram: drop 'destructor' argument from several helpersPaolo Abeni1-2/+5
2020-02-28unix: uses an atomic type for scm files accountingPaolo Abeni1-15/+6
2020-02-27Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/netDavid S. Miller1-0/+4
2020-02-27unix: It's CONFIG_PROC_FS not CONFIG_PROCFSDavid S. Miller1-1/+1
2020-02-27unix: define and set show_fdinfo only if procfs is enabledTobias Klauser1-0/+4
2020-02-24af_unix: Add missing annotation for unix_wait_for_peer()Jules Irenge1-0/+1
2020-02-06skbuff: fix a data race in skb_queue_len()Qian Cai1-2/+9
2020-01-21Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/klasse...David S. Miller1-3/+4
2019-12-22Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/netDavid S. Miller1-1/+1
2019-12-12unix: Show number of pending scm files of receive queue in fdinfoKirill Tkhai1-5/+51
2019-12-09treewide: Use sizeof_field() macroPankaj Bharadiya1-1/+1
2019-12-09net: add queue argument to __skb_wait_for_more_packets and __skb_{,try_}recv_...Sabrina Dubroca1-3/+4
2019-12-01Merge tag 'compat-ioctl-5.5' of git://git.kernel.org:/pub/scm/linux/kernel/gi...Linus Torvalds1-0/+19
2019-11-02Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/netDavid S. Miller1-3/+3
2019-10-28net: use skb_queue_empty_lockless() in poll() handlersEric Dumazet1-3/+3
2019-10-23af_unix: add compat_ioctl supportArnd Bergmann1-0/+19
2019-10-11af_unix: __unix_find_socket_byname() cleanupVito Caputo1-4/+2
2019-05-30treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 152Thomas Gleixner1-6/+1
2019-04-08datagram: remove rendundant 'peeked' argumentPaolo Abeni1-3/+3
2019-03-08Merge tag 'io_uring-2019-03-06' of git://git.kernel.dk/linux-blockLinus Torvalds1-61/+2
2019-02-28net: split out functions related to registering inflight socket filesJens Axboe1-61/+2
2019-02-20missing barriers in some of unix_sock ->addr and ->path accessesAl Viro1-24/+33
2018-10-23Revert "net: simplify sock_poll_wait"Karsten Graul1-2/+2
2018-10-17net: fix warning in af_unixKyeongdon Kim1-0/+2
2018-08-03af_unix: ensure POLLOUT on remote close() for connected dgram socketJason Baron1-1/+6
2018-07-30net: simplify sock_poll_waitChristoph Hellwig1-2/+2
2018-06-28Revert changes to convert to ->poll_mask() and aio IOCB_CMD_POLLLinus Torvalds1-11/+19
2018-06-04Merge branch 'work.aio-1' of git://git.kernel.org/pub/scm/linux/kernel/git/vi...Linus Torvalds1-19/+11
2018-05-26net/unix: convert to ->poll_maskChristoph Hellwig1-19/+11
2018-05-16proc: introduce proc_create_net{,_data}Christoph Hellwig1-15/+2
2018-04-04af_unix: remove redundant lockdep classCong Wang1-10/+0
2018-03-27net: Drop pernet_operations::asyncKirill Tkhai1-1/+0
2018-02-19Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/netDavid S. Miller1-1/+1
2018-02-13net: af_unix: fix typo in UNIX_SKB_FRAGS_SZ commentTobias Klauser1-1/+1
2018-02-13net: Convert unix_net_opsKirill Tkhai1-0/+1
2018-02-12net: make getname() functions return length rather than use int* parameterDenys Vlasenko1-5/+5
2018-02-11vfs: do bulk POLL* -> EPOLL* replacementLinus Torvalds1-20/+20
2018-01-31Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-nextLinus Torvalds1-1/+0
2018-01-16net: delete /proc THIS_MODULE referencesAlexey Dobriyan1-1/+0
2017-11-27net: annotate ->poll() instancesAl Viro1-6/+7
2017-11-27annotate poll-related wait keysAl Viro1-1/+1
2017-10-22net: af_unix: mark expected switch fall-throughGustavo A. R. Silva1-0/+1
2017-08-21Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/netDavid S. Miller1-4/+1
2017-08-18datagram: When peeking datagrams with offset < 0 don't skip empty skbsMatthew Dawson1-4/+1
2017-07-17net/unix: drop obsolete fd-recursion limitsDavid Herrmann1-23/+1
2017-07-05Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-nextLinus Torvalds1-8/+8
2017-07-01net: convert unix_address.refcnt from atomic_t to refcount_tReshetova, Elena1-4/+4
2017-07-01net: convert sock.sk_refcnt from atomic_t to refcount_tReshetova, Elena1-1/+1
2017-07-01net: convert sock.sk_wmem_alloc from atomic_t to refcount_tReshetova, Elena1-3/+3
2017-06-20sched/wait: Rename wait_queue_t => wait_queue_entry_tIngo Molnar1-2/+2
2017-06-09af_unix: Add sockaddr length checks before accessing sa_family in bind and co...Mateusz Jurczyk1-1/+6
2017-04-06af_unix: Use designated initializersKees Cook1-1/+1
2017-03-09net: Work around lockdep limitation in sockets that use socketsDavid Howells1-2/+3
2017-03-02sched/headers: Prepare for new header dependencies before moving code to <lin...Ingo Molnar1-1/+1
2017-02-02unix: add ioctl to open a unix socket file with O_PATHAndrey Vagin1-0/+41
2017-01-24af_unix: move unix_mknod() out of bindlockWANG Cong1-11/+16
2016-12-24Replace <asm/uaccess.h> with <linux/uaccess.h> globallyLinus Torvalds1-1/+1
2016-12-16Merge branch 'overlayfs-linus' of git://git.kernel.org/pub/scm/linux/kernel/g...Linus Torvalds1-3/+3
2016-12-16Revert "af_unix: fix hard linked sockets on overlay"Miklos Szeredi1-3/+3