aboutsummaryrefslogtreecommitdiffstats
path: root/net/unix/af_unix.c
AgeCommit message (Expand)AuthorFilesLines
5 daysaf_unix: Read sk_peek_offset() again after sleeping in unix_stream_read_gener...Kuniyuki Iwashima1-2/+1
2025-09-23VFS: rename kern_path_locked() and related functions.NeilBrown1-3/+3
2025-07-30Merge tag 'net-next-6.17' of git://git.kernel.org/pub/scm/linux/kernel/git/ne...Linus Torvalds1-58/+127
2025-07-28Merge tag 'vfs-6.17-rc1.pidfs' of git://git.kernel.org/pub/scm/linux/kernel/g...Linus Torvalds1-30/+48
2025-07-14don't bother with path_get()/path_put() in unix_open_file()Al Viro1-12/+4
2025-07-08af_unix: Introduce SO_INQ.Kuniyuki Iwashima1-2/+60
2025-07-08af_unix: Cache state->msg in unix_stream_read_generic().Kuniyuki Iwashima1-16/+17
2025-07-08af_unix: Use cached value for SOCK_STREAM in unix_inq_len().Kuniyuki Iwashima1-10/+28
2025-07-08af_unix: Don't use skb_recv_datagram() in unix_stream_read_skb().Kuniyuki Iwashima1-17/+22
2025-07-08af_unix: Don't check SOCK_DEAD in unix_stream_read_skb().Kuniyuki Iwashima1-10/+0
2025-07-08af_unix: Don't hold unix_state_lock() in __unix_dgram_recvmsg().Kuniyuki Iwashima1-3/+1
2025-07-08net: splice: Drop unused @gfpMichal Luczaj1-2/+1
2025-07-04af_unix: stash pidfs dentry when neededAlexander Mikhalitsyn1-1/+10
2025-07-04af_unix/scm: fix whitespace errorsAlexander Mikhalitsyn1-1/+1
2025-07-04af_unix: introduce unix_skb_to_scm helperAlexander Mikhalitsyn1-4/+8
2025-07-04af_unix: rework unix_maybe_add_creds() to allow sleepAlexander Mikhalitsyn1-7/+25
2025-06-26Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/netJakub Kicinski1-8/+23
2025-06-24af_unix: Don't set -ECONNRESET for consumed OOB skb.Kuniyuki Iwashima1-6/+12
2025-06-24af_unix: Don't leave consecutive consumed OOB skbs.Kuniyuki Iwashima1-2/+11
2025-06-23net: remove sock_i_uid()Eric Dumazet1-1/+1
2025-06-19pidfs: remove pidfs_{get,put}_pid()Christian Brauner1-5/+0
2025-06-12af_unix: Allow passing cred for embryo without SO_PASSCRED/SO_PASSPIDFD.Kuniyuki Iwashima1-1/+2
2025-05-28Merge tag 'net-next-6.16' of git://git.kernel.org/pub/scm/linux/kernel/git/ne...Linus Torvalds1-57/+47
2025-05-23af_unix: Introduce SO_PASSRIGHTS.Kuniyuki Iwashima1-2/+20
2025-05-23af_unix: Inherit sk_flags at connect().Kuniyuki Iwashima1-6/+6
2025-05-23af_unix: Move SOCK_PASS{CRED,PIDFD,SEC} to struct sock.Kuniyuki Iwashima1-16/+2
2025-05-23af_unix: Don't pass struct socket to maybe_add_creds().Kuniyuki Iwashima1-11/+12
2025-05-23af_unix: Factorise test_bit() for SOCK_PASSCRED and SOCK_PASSPIDFD.Kuniyuki Iwashima1-22/+15
2025-05-21coredump: add coredump socketChristian Brauner1-13/+41
2025-04-26net, pidfs: prepare for handing out pidfds for reaped sk->sk_peer_pidChristian Brauner1-11/+74
2025-04-10af_unix: Remove unix_unhash()Michal Luczaj1-8/+0
2025-03-25af_unix: Clean up #include under net/unix/.Kuniyuki Iwashima1-10/+2
2025-03-25af_unix: Explicitly include headers for non-pointer struct fields.Kuniyuki Iwashima1-3/+0
2025-03-25af_unix: Move internal definitions to net/unix/.Kuniyuki Iwashima1-0/+2
2025-03-25af_unix: Sort headers.Kuniyuki Iwashima1-31/+31
2025-02-27Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/netJakub Kicinski1-0/+1
2025-02-26af_unix: Fix memory leak in unix_dgram_sendmsg()Adrian Huang1-0/+1
2025-02-20af_unix: Fix undefined 'other' errorPurva Yeshi1-1/+0
2025-01-20af_unix: Use consume_skb() in connect() and sendmsg().Kuniyuki Iwashima1-14/+14
2025-01-20af_unix: Reuse out_pipe label in unix_stream_sendmsg().Kuniyuki Iwashima1-14/+9
2025-01-20af_unix: Set drop reason in unix_dgram_disconnected().Kuniyuki Iwashima1-1/+3
2025-01-20af_unix: Set drop reason in unix_stream_read_skb().Kuniyuki Iwashima1-2/+2
2025-01-20af_unix: Set drop reason in manage_oob().Kuniyuki Iwashima1-1/+1
2025-01-20af_unix: Set drop reason in unix_sock_destructor().Kuniyuki Iwashima1-1/+1
2025-01-20af_unix: Set drop reason in unix_release_sock().Kuniyuki Iwashima1-2/+2
2024-12-17af_unix: Remove unix_our_peer().Kuniyuki Iwashima1-6/+1
2024-12-17af_unix: Clean up error paths in unix_dgram_sendmsg().Kuniyuki Iwashima1-16/+15
2024-12-17af_unix: Clean up SOCK_DEAD error paths in unix_dgram_sendmsg().Kuniyuki Iwashima1-15/+15
2024-12-17af_unix: Defer sock_put() to clean up path in unix_dgram_sendmsg().Kuniyuki Iwashima1-2/+0
2024-12-17af_unix: Split restart label in unix_dgram_sendmsg().Kuniyuki Iwashima1-2/+4
2024-12-17af_unix: Use msg->{msg_name,msg_namelen} in unix_dgram_sendmsg().Kuniyuki Iwashima1-6/+4
2024-12-17af_unix: Move !sunaddr case in unix_dgram_sendmsg().Kuniyuki Iwashima1-5/+3
2024-12-17af_unix: Set error only when needed in unix_dgram_sendmsg().Kuniyuki Iwashima1-13/+19
2024-12-17af_unix: Clean up error paths in unix_stream_sendmsg().Kuniyuki Iwashima1-19/+20
2024-12-17af_unix: Set error only when needed in unix_stream_sendmsg().Kuniyuki Iwashima1-3/+4
2024-12-17af_unix: Clean up error paths in unix_stream_connect().Kuniyuki Iwashima1-16/+13
2024-12-17af_unix: Set error only when needed in unix_stream_connect().Kuniyuki Iwashima1-9/+10
2024-12-11splice: do not checksum AF_UNIX socketsFrederik Deweerdt1-0/+1
2024-09-09af_unix: Don't return OOB skb in manage_oob().Kuniyuki Iwashima1-2/+7
2024-09-09af_unix: Move spin_lock() in manage_oob().Kuniyuki Iwashima1-8/+7
2024-09-09af_unix: Rename unlinked_skb in manage_oob().Kuniyuki Iwashima1-6/+6
2024-09-09af_unix: Remove single nest in manage_oob().Kuniyuki Iwashima1-22/+23
2024-08-20af_unix: Don't call skb_get() for OOB skb.Kuniyuki Iwashima1-22/+5
2024-07-17af_unix: Disable MSG_OOB handling for sockets in sockmap/sockhashMichal Luczaj1-1/+40
2024-06-27Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/netJakub Kicinski1-6/+31
2024-06-27af_unix: Fix wrong ioctl(SIOCATMARK) when consumed OOB skb is at the head.Kuniyuki Iwashima1-2/+13
2024-06-27af_unix: Don't stop recv() at consumed ex-OOB skb.Kuniyuki Iwashima1-1/+1
2024-06-27af_unix: Don't stop recv(MSG_DONTWAIT) if consumed OOB skb is at the head.Kuniyuki Iwashima1-4/+15
2024-06-27af_unix: Stop recv(MSG_PEEK) at consumed OOB skb.Kuniyuki Iwashima1-3/+6
2024-06-25af_unix: Don't use spin_lock_nested() in copy_peercred().Kuniyuki Iwashima1-10/+3
2024-06-25af_unix: Remove put_pid()/put_cred() in copy_peercred().Kuniyuki Iwashima1-8/+1
2024-06-25af_unix: Set sk_peer_pid/sk_peer_cred locklessly for new socket.Kuniyuki Iwashima1-3/+8
2024-06-25af_unix: Define locking order for U_RECVQ_LOCK_EMBRYO in unix_collect_skb().Kuniyuki Iwashima1-0/+21
2024-06-25af_unix: Define locking order for U_LOCK_SECOND in unix_stream_connect().Kuniyuki Iwashima1-1/+36
2024-06-25af_unix: Don't retry after unix_state_lock_nested() in unix_stream_connect().Kuniyuki Iwashima1-25/+9
2024-06-25af_unix: Define locking order for U_LOCK_SECOND in unix_state_double_lock().Kuniyuki Iwashima1-1/+15
2024-06-25af_unix: Define locking order for unix_table_double_lock().Kuniyuki Iwashima1-1/+11
2024-06-13Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/netJakub Kicinski1-9/+9
2024-06-13af_unix: Read with MSG_PEEK loops if the first unread byte is OOBRao Shoaib1-9/+9
2024-06-06Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/netJakub Kicinski1-46/+44
2024-06-06af_unix: Use skb_queue_empty_lockless() in unix_release_sock().Kuniyuki Iwashima1-1/+1
2024-06-06af_unix: Use unix_recvq_full_lockless() in unix_stream_connect().Kuniyuki Iwashima1-8/+2
2024-06-06af_unix: Annotate data-race of net->unx.sysctl_max_dgram_qlen.Kuniyuki Iwashima1-1/+1
2024-06-06af_unix: Annotate data-races around sk->sk_sndbuf.Kuniyuki Iwashima1-3/+3
2024-06-06af_unix: Annotate data-race of sk->sk_state in unix_stream_read_skb().Kuniyuki Iwashima1-1/+1
2024-06-06af_unix: Annotate data-races around sk->sk_state in sendmsg() and recvmsg().Kuniyuki Iwashima1-4/+4
2024-06-06af_unix: Annotate data-race of sk->sk_state in unix_accept().Kuniyuki Iwashima1-1/+1
2024-06-06af_unix: Annotate data-race of sk->sk_state in unix_stream_connect().Kuniyuki Iwashima1-5/+2
2024-06-06af_unix: Annotate data-races around sk->sk_state in unix_write_space() and po...Kuniyuki Iwashima1-13/+12
2024-06-06af_unix: Annotate data-race of sk->sk_state in unix_inq_len().Kuniyuki Iwashima1-1/+1
2024-06-06af_unix: Annodate data-races around sk->sk_state for writers.Kuniyuki Iwashima1-6/+8
2024-06-06af_unix: Set sk->sk_state under unix_state_lock() for truly disconencted peer.Kuniyuki Iwashima1-2/+8
2024-06-01af_unix: Remove dead code in unix_stream_read_generic().Kuniyuki Iwashima1-19/+2
2024-05-27af_unix: Read sk->sk_hash under bindlock during bind().Kuniyuki Iwashima1-3/+6
2024-05-27af_unix: Annotate data-race around unix_sk(sk)->addr.Kuniyuki Iwashima1-4/+6
2024-05-23Merge tag 'net-6.10-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/net...Linus Torvalds1-6/+22
2024-05-21af_unix: Update unix_sk(sk)->oob_skb under sk_receive_queue lock.Kuniyuki Iwashima1-6/+22
2024-05-18Merge tag 'net-accept-more-20240515' of git://git.kernel.dk/linuxLinus Torvalds1-11/+10
2024-05-14Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/netJakub Kicinski1-1/+1
2024-05-13net: change proto and proto_ops accept typeJens Axboe1-11/+10
2024-05-10af_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