aboutsummaryrefslogtreecommitdiffstats
path: root/net/bluetooth/l2cap_sock.c
AgeCommit message (Expand)AuthorFilesLines
2025-11-04net: Convert proto_ops connect() callbacks to use sockaddr_unsizedKees Cook1-1/+1
2025-11-04net: Convert proto_ops bind() callbacks to use sockaddr_unsizedKees Cook1-1/+1
2025-08-29Bluetooth: Fix use-after-free in l2cap_sock_cleanup_listen()Kuniyuki Iwashima1-0/+3
2025-07-17Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/netJakub Kicinski1-0/+3
2025-07-16Bluetooth: Fix null-ptr-deref in l2cap_sock_resume_cb()Kuniyuki Iwashima1-0/+3
2025-06-23net: make sk->sk_sndtimeo locklessEric Dumazet1-2/+2
2025-03-25Bluetooth: L2CAP: add TX timestampingPauli Virtanen1-1/+14
2025-02-13Bluetooth: L2CAP: Fix corrupted list in hci_chan_delLuiz Augusto von Dentz1-8/+7
2025-01-29Bluetooth: L2CAP: accept zero as a special value for MTU auto-selectionFedor Pchelkin1-2/+2
2025-01-15Bluetooth: L2CAP: handle NULL sock pointer in l2cap_sock_allocFedor Pchelkin1-1/+2
2024-12-11Bluetooth: Improve setsockopt() handling of malformed user inputMichal Luczaj1-9/+11
2024-10-15Bluetooth: L2CAP: do not leave dangling sk pointer on error in l2cap_sock_cre...Ignat Korchagin1-0/+1
2024-06-28Bluetooth: L2CAP: Fix deadlockLuiz Augusto von Dentz1-12/+1
2024-06-28bluetooth/l2cap: sync sock recv cb and releaseEdward Adam Davis1-3/+22
2024-05-18Merge tag 'net-accept-more-20240515' of git://git.kernel.dk/linuxLinus Torvalds1-2/+2
2024-05-14Bluetooth: compute LE flow credits based on recvbuf spaceSebastian Urban1-18/+73
2024-05-13net: change proto and proto_ops accept typeJens Axboe1-2/+2
2024-04-24Bluetooth: Fix type of len in {l2cap,sco}_sock_getsockopt_old()Nathan Chancellor1-3/+4
2024-04-10Bluetooth: L2CAP: Fix not validating setsockopt user inputLuiz Augusto von Dentz1-32/+20
2024-03-06Bluetooth: hci_conn: Always use sk_timeo as conn_timeoutLuiz Augusto von Dentz1-1/+2
2024-03-06Bluetooth: Remove BT_HSLuiz Augusto von Dentz1-17/+1
2023-10-01net: implement lockless SO_PRIORITYEric Dumazet1-1/+1
2023-08-11Bluetooth: Init sk_peer_* on bt_sock_allocLuiz Augusto von Dentz1-19/+0
2023-08-11Bluetooth: Consolidate code around sk_alloc into a helper functionLuiz Augusto von Dentz1-9/+1
2023-06-29Bluetooth: L2CAP: Fix use-after-free in l2cap_sock_ready_cbSungwoo Kim1-0/+2
2023-02-09Bluetooth: L2CAP: Fix potential user-after-freeLuiz Augusto von Dentz1-0/+8
2022-01-07Bluetooth: L2CAP: uninitialized variables in l2cap_sock_setsockopt()Dan Carpenter1-6/+8
2021-12-31Merge git://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-nextDavid S. Miller1-0/+1
2021-12-29net: Don't include filter.h from net/sock.hJakub Kicinski1-0/+1
2021-12-21Bluetooth: L2CAP: Fix using wrong modeLuiz Augusto von Dentz1-2/+10
2021-10-12Bluetooth: L2CAP: Fix not initializing sk_peer_pidLuiz Augusto von Dentz1-0/+19
2021-09-01Bluetooth: fix use-after-free error in lock_sock_nested()Wang ShaoBo1-1/+9
2021-03-23Bluetooth: check for zapped sk before connectingArchie Pusaka1-0/+8
2020-09-25Bluetooth: L2CAP: Fix calling sk_filter on non-socket based channelLuiz Augusto von Dentz1-0/+14
2020-09-13Bluetooth: Only mark socket zapped after unlockingAbhishek Pandit-Subedi1-3/+4
2020-07-31Merge branch 'for-upstream' of git://git.kernel.org/pub/scm/linux/kernel/git/...David S. Miller1-2/+2
2020-07-24net: pass a sockptr_t into ->setsockoptChristoph Hellwig1-11/+11
2020-07-10Bluetooth: core: Use fallthrough pseudo-keywordGustavo A. R. Silva1-2/+2
2020-05-13Bluetooth: L2CAP: add support for waiting disconnection respArchie Pusaka1-7/+23
2020-04-02Bluetooth: Add BT_MODE socket optionLuiz Augusto von Dentz1-1/+112
2020-04-02Bluetooth: L2CAP: Fix handling LE modes by L2CAP_OPTIONSLuiz Augusto von Dentz1-4/+21
2020-03-24Bluetooth: L2CAP: Add get_peer_pid callbackLuiz Augusto von Dentz1-0/+8
2020-03-12Bluetooth: L2CAP: Fix a condition in l2cap_sock_recvmsg()Dan Carpenter1-1/+1
2020-03-08Bluetooth: L2CAP: Add module option to enable ECRED modeLuiz Augusto von Dentz1-0/+5
2020-03-08Bluetooth: L2CAP: Add initial code for Enhanced Credit Based ModeLuiz Augusto von Dentz1-4/+19
2020-02-18Bluetooth: Fix crash when using new BT_PHY optionLuiz Augusto von Dentz1-1/+1
2020-02-14Bluetooth: Add BT_PHY socket optionLuiz Augusto von Dentz1-0/+13
2020-02-05Bluetooth: prefetch channel before killing sockHillf Danton1-4/+6
2020-01-29Bluetooth: Fix refcount use-after-free issueManish Mandlik1-3/+13
2019-04-23Bluetooth: Add return check for L2CAP security level setFugang Duan1-2/+5
2019-04-19net: rework SIOCGSTAMP ioctl handlingArnd Bergmann1-0/+1
2019-01-22Bluetooth: Fix locking in bt_accept_enqueue() for BH contextMatthias Kaehlcke1-1/+1
2018-06-28Revert changes to convert to ->poll_mask() and aio IOCB_CMD_POLLLinus Torvalds1-1/+1
2018-05-26net/bluetooth: convert to ->poll_maskChristoph Hellwig1-1/+1
2018-02-12net: make getname() functions return length rather than use int* parameterDenys Vlasenko1-3/+2
2017-06-29Bluetooth: Add sockaddr length checks before accessing sa_family in bind and ...Mateusz Jurczyk1-2/+3
2017-03-09net: Work around lockdep limitation in sockets that use socketsDavid Howells1-1/+1
2017-03-02sched/headers: Prepare to move signal wakeup & sigpending methods from <linux...Ingo Molnar1-0/+1
2016-08-24Bluetooth: split sk_filter in l2cap_sock_recv_cbDaniel Borkmann1-2/+12
2016-07-17Bluetooth: Fix l2cap_sock_setsockopt() with optname BT_RCVMTUAmadeusz Sławiński1-1/+1
2016-04-08Bluetooth: Allow setting BT_SECURITY_FIPS with setsockoptPatrik Flykt1-1/+1
2016-01-29Bluetooth: L2CAP: Fix setting chan src info before adding PSM/CIDJohan Hedberg1-3/+3
2016-01-29Bluetooth: L2CAP: Introduce proper defines for PSM rangesJohan Hedberg1-3/+3
2015-10-21Bluetooth: l2cap_disconnection_req priority over shutdownDean Jenkins1-1/+10
2015-10-21Bluetooth: Reorganize mutex lock in l2cap_sock_shutdown()Dean Jenkins1-17/+27
2015-10-21Bluetooth: Unwind l2cap_sock_shutdown()Dean Jenkins1-14/+18
2015-07-23Bluetooth: __l2cap_wait_ack() add defensive timeoutDean Jenkins1-1/+10
2015-07-23Bluetooth: __l2cap_wait_ack() use msecs_to_jiffies()Dean Jenkins1-2/+2
2015-07-23Bluetooth: Add BT_DBG to l2cap_sock_shutdown()Dean Jenkins1-0/+4
2015-07-23Bluetooth: Make __l2cap_wait_ack more efficientDean Jenkins1-6/+10
2015-07-23Bluetooth: L2CAP ERTM shutdown protect sk and chanDean Jenkins1-0/+8
2015-05-11net: Pass kern from net_proto_family.create to sk_allocEric W. Biederman1-5/+5
2015-03-30Bluetooth: Refactor L2CAP variables into l2cap_ctrlJohan Hedberg1-3/+3
2015-03-02net: Remove iocb argument from sendmsg and recvmsgYing Xue1-6/+6
2015-01-23Bluetooth: Fix nested sleepsPeter Hurley1-5/+4
2015-01-12Bluetooth: Add BUILD_BUG_ON for size of struct sockaddr_l2Marcel Holtmann1-0/+2
2014-12-09first fruits - kill l2cap ->memcpy_fromiovec()Al Viro1-8/+0
2014-12-09switch l2cap ->memcpy_fromiovec() to msghdrAl Viro1-2/+2
2014-11-15Bluetooth: Add debug logs to help track locking issuesJohan Hedberg1-1/+9
2014-11-13Bluetooth: Fix L2CAP nesting level initialization locationJohan Hedberg1-3/+0
2014-11-13Bluetooth: Fix L2CAP socket lock nesting levelJohan Hedberg1-3/+10
2014-11-13Bluetooth: Use proper nesting annotation for l2cap_chan lockJohan Hedberg1-0/+9
2014-11-12Bluetooth: Fix l2cap_sock_teardown_cb lockdep warningJohan Hedberg1-1/+1
2014-09-08Bluetooth: Fix hci_conn reference counting for fixed channelsJohan Hedberg1-0/+8
2014-08-14Bluetooth: Move parts of fixed channel initialization to l2cap_add_scidJohan Hedberg1-9/+0
2014-08-14Bluetooth: Resume BT_CONNECTED state after LE security elevationJohan Hedberg1-0/+6
2014-07-18Bluetooth: Use EOPNOTSUPP instead of ENOTSUPPJohan Hedberg1-1/+1
2014-07-17Bluetooth: Pass initiator/acceptor information to hci_conn_security()Johan Hedberg1-1/+1
2014-07-17Bluetooth: never linger on process exitVladimir Davydov1-1/+2
2014-07-03Bluetooth: Allow L2CAP getpeername() for BT_CONFIG stateJohan Hedberg1-1/+2
2014-07-03Bluetooth: Provide L2CAP ops callback for memcpy_fromiovecJukka Rissanen1-13/+21
2014-07-03Bluetooth: Use explicit header and body length for L2CAP SKB allocationMarcel Holtmann1-1/+2
2014-07-03Bluetooth: Assign L2CAP socket priority when allocating SKBMarcel Holtmann1-1/+3
2014-07-03Bluetooth: Use const for struct l2cap_ops fieldMarcel Holtmann1-1/+1
2014-06-13Bluetooth: Allow change security level on ATT_CID in slave roleMarcin Kraglak1-5/+0
2014-06-05Merge branch 'for-upstream' of git://git.kernel.org/pub/scm/linux/kernel/git/...John W. Linville1-1/+4
2014-06-02Bluetooth: Fix L2CAP deadlockJukka Taimisto1-1/+4
2014-04-11net: Fix use after free by removing length arg from sk_data_ready callbacks.David S. Miller1-3/+3
2014-03-26Bluetooth: Fix returning peer address in pending connect stateJohan Hedberg1-1/+2
2014-03-12Bluetooth: Convert uses of __constant_<foo> to <foo>Joe Perches1-3/+3
2014-02-14Bluetooth: Enable LE L2CAP CoC support by defaultJohan Hedberg1-29/+0
2014-02-13Bluetooth: Always use l2cap_chan->psm for returning PSM to user spaceJohan Hedberg1-2/+2
2014-02-13Bluetooth: Refuse peer L2CAP address reading when not connectedJohan Hedberg1-0/+3
2014-02-13Bluetooth: Fix CID initialization for fixed channelsJohan Hedberg1-0/+5
2014-02-13Bluetooth: Fix BT_SECURITY socket option for fixed channels (ATT)Johan Hedberg1-0/+2
2014-02-13Bluetooth: Switch ATT channels to use L2CAP_CHAN_FIXEDJohan Hedberg1-0/+9
2014-02-13Bluetooth: Handle security level 4 for L2CAP connectionsMarcel Holtmann1-0/+10
2014-01-18net: add build-time checks for msg->msg_name sizeSteffen Hurrle1-1/+1
2014-01-06Bluetooth: Default to no security with L2CAP RAW socketsJohan Hedberg1-0/+3
2013-12-05Bluetooth: Simplify l2cap_chan initialization for LE CoCJohan Hedberg1-2/+2
2013-12-05Bluetooth: Fix validating LE PSM valuesJohan Hedberg1-9/+31
2013-12-05Bluetooth: Introduce L2CAP channel callback for suspendingJohan Hedberg1-0/+9
2013-12-05Bluetooth: Add new BT_SNDMTU and BT_RCVMTU socket optionsJohan Hedberg1-0/+76
2013-12-05Bluetooth: Limit L2CAP_OPTIONS socket option usage with LEJohan Hedberg1-0/+15
2013-12-05Bluetooth: Track LE L2CAP credits in l2cap_chanJohan Hedberg1-0/+2
2013-12-05Bluetooth: Add LE L2CAP flow control modeJohan Hedberg1-3/+18
2013-12-05Bluetooth: Add module parameter to enable LE CoC supportJohan Hedberg1-6/+12
2013-10-21Bluetooth: Remove sk member from struct l2cap_chanGustavo Padovan1-2/+0
2013-10-21Bluetooth: Add L2CAP channel to skb private dataGustavo Padovan1-0/+2
2013-10-21Bluetooth: Remove parent socket usage from l2cap_core.cGustavo Padovan1-0/+4
2013-10-21Bluetooth: Hold socket in defer callback in L2CAP socketGustavo Padovan1-2/+6
2013-10-21Bluetooth: Do not access chan->sk directlyGustavo Padovan1-1/+2
2013-10-18Bluetooth: Fix ATT socket backwards compatibility with user spaceJohan Hedberg1-2/+25
2013-10-16Bluetooth: Socket address parameter for CID is in little endianMarcel Holtmann1-2/+2
2013-10-16Bluetooth: Reintroduce socket restrictions for LE socketsJohan Hedberg1-0/+18
2013-10-15Bluetooth: Move l2cap_wait_ack() to l2cap_sock.cGustavo Padovan1-0/+32
2013-10-15Bluetooth: Add chan->ops->set_shutdown()Gustavo Padovan1-0/+10
2013-10-15Bluetooth: Access sk_sndtimeo indirectly in l2cap_core.cGustavo Padovan1-0/+8
2013-10-15Bluetooth: Extend state_change() call to report errors tooGustavo Padovan1-1/+5
2013-10-14Bluetooth: Check that bind() bdaddr type matches connect()Johan Hedberg1-0/+6
2013-10-14Bluetooth: Reject invalid bdaddr types for socketsJohan Hedberg1-0/+6
2013-10-14Bluetooth: Introduce L2CAP channel callback for resumingMarcel Holtmann1-0/+9
2013-10-14Bluetooth: Introduce L2CAP channel flag for defer setupMarcel Holtmann1-2/+5
2013-10-13Bluetooth: Provide msg_name callback for L2CAP connectionless channelsMarcel Holtmann1-1/+14
2013-10-13Bluetooth: Use l2cap_pi(sk) directly where possibleMarcel Holtmann1-8/+7
2013-10-13Bluetooth: Return the correct address type for L2CAP socketsMarcel Holtmann1-0/+3
2013-10-13Bluetooth: Store address information in L2CAP channel structureMarcel Holtmann1-3/+3
2013-10-12Bluetooth: Allow 3D profile to use security mode 4 level 0Marcel Holtmann1-0/+4
2013-10-12Bluetooth: Limit security mode 4 level 0 to connection oriented channelsMarcel Holtmann1-3/+7
2013-10-11Bluetooth: Move smp.h header file into net/bluetooth/Marcel Holtmann1-1/+2
2013-10-07Bluetooth: Fix variable shadow warningsJohannes Berg1-1/+1
2013-10-02Bluetooth: Provide high speed configuration optionMarcel Holtmann1-10/+0
2013-09-25Bluetooth: Clean up socket locking in l2cap_sock_recvmsgJohan Hedberg1-2/+2
2013-09-18Bluetooth: Fix waiting for clearing of BT_SK_SUSPEND flagJohan Hedberg1-0/+6
2013-06-23Bluetooth: Rename L2CAP_CID_LE_DATA to L2CAP_CID_ATTJohan Hedberg1-2/+2
2013-05-01Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/vir...Linus Torvalds1-1/+1
2013-04-09bluetooth: kill unused 'module' argument of bt_procfs_init()Al Viro1-1/+1
2013-04-05Bluetooth: hidp: verify l2cap socketsDavid Herrmann1-0/+6
2013-03-08Bluetooth: discard bt_sock_unregister() errorsDavid Herrmann1-3/+1
2012-10-24Bluetooth: Start channel move when socket option is changedMat Martineau1-0/+5
2012-10-19Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/blueto...John W. Linville1-31/+58
2012-10-15Bluetooth: Add chan->ops->defer()Gustavo Padovan1-0/+10
2012-10-15Bluetooth: Move bt_accept_enqueue() to l2cap_sock.cGustavo Padovan1-0/+2
2012-10-12Bluetooth: Fix L2CAP coding styleGustavo Padovan1-25/+37
2012-10-11Bluetooth: Allow to set flush timeoutAndrei Emeltchenko1-0/+1
2012-10-09Bluetooth: don't attempt to free a channel that wasn't createdSasha Levin1-1/+2
2012-10-08Bluetooth: Fix dereference after NULL checkAndrei Emeltchenko1-5/+6
2012-09-15Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/netDavid S. Miller1-1/+1
2012-09-07Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linvil...John W. Linville1-2/+2
2012-09-07Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linvil...John W. Linville1-1/+1
2012-08-27Bluetooth: Change signature of smp_conn_security()Vinicius Costa Gomes1-1/+1
2012-08-22Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/netDavid S. Miller1-1/+2
2012-08-15Bluetooth: L2CAP - Fix info leak via getsockname()Mathias Krause1-0/+1
2012-08-06Bluetooth: Fix socket not getting freed if l2cap channel create failsJaganath Kanakkassery1-1/+1
2012-08-06Bluetooth: Added /proc/net/l2cap via bt_procfs_init()Masatake YAMATO1-2/+18
2012-08-06Bluetooth: Free the l2cap channel list only when refcount is zeroJaganath Kanakkassery1-1/+1
2012-06-05Bluetooth: Rename L2CAP_LE_DEFAULT_MTUAndre Guedes1-1/+1
2012-06-05Bluetooth: Check MTU value in l2cap_sock_setsockopt_oldAndre Guedes1-0/+21
2012-06-05Bluetooth: Move check for backlog size to l2cap_sock.cGustavo Padovan1-0/+6
2012-06-05Bluetooth: Add l2cap_chan->ops->ready()Andrei Emeltchenko1-0/+21
2012-06-05Bluetooth: Move clean up code and set of SOCK_ZAPPED to l2cap_sock.cAndrei Emeltchenko1-0/+61
2012-06-05Bluetooth: Use chan as parameters for l2cap chan opsGustavo Padovan1-8/+8
2012-06-05Bluetooth: Define and use PSM identifiersAndrei Emeltchenko1-2/+2
2012-06-05Bluetooth: Remove unnecessary headers includeGustavo Padovan1-1/+0
2012-05-16Bluetooth: Create flags for bt_sk()Gustavo Padovan1-8/+13
2012-05-16Bluetooth: report the right security level in getsockoptGustavo Padovan1-1/+4
2012-05-16Bluetooth: Lock the L2CAP channel when sendingMat Martineau1-6/+6
2012-05-16Merge git://git.kernel.org/pub/scm/linux/kernel/git/bluetooth/bluetoothGustavo Padovan1-4/+8
2012-05-14Bluetooth: notify userspace of security level changeGustavo Padovan1-4/+8
2012-05-09Bluetooth: Make better use of l2cap_chan reference countingMat Martineau1-0/+3
2012-05-09Bluetooth: Use address type info from user-spaceAndre Guedes1-1/+1
2012-05-09Bluetooth: Split error handling for L2CAP listen socketsMarcel Holtmann1-2/+6
2012-05-09Bluetooth: Remove err parameter from alloc_skb()Gustavo Padovan1-4/+8
2012-05-09Bluetooth: Adds set_default function in L2CAP setupAndrei Emeltchenko1-6/+2
2012-05-09Bluetooth: Remove unneeded zero initializationAndrei Emeltchenko1-1/+0
2012-05-09Bluetooth: Remove sk parameter from l2cap_chan_create()Gustavo Padovan1-1/+3
2012-03-28Bluetooth: Fix Endian Bug.Santosh Nayak1-2/+3
2012-03-08Bluetooth: fix conding style issues all over the treeGustavo F. Padovan1-1/+2
2012-03-02Bluetooth: Update L2CAP timeout constants to use msecs_to_jiffiesMarcel Holtmann1-1/+1
2012-02-23Bluetooth: Remove socket lock checkAndrei Emeltchenko1-4/+4
2012-02-23Bluetooth: Change sk lock to chan lock in L2CAP coreAndrei Emeltchenko1-2/+16
2012-02-23Bluetooth: Revert to mutexes from RCU listAndrei Emeltchenko1-0/+10
2012-02-17Bluetooth: Use symbolic names for state in debugAndrei Emeltchenko1-1/+1
2012-02-16Bluetooth: Do not dereference zero skAndrei Emeltchenko1-1/+3
2012-02-13Bluetooth: Add alloc_skb chan operatorAndrei Emeltchenko1-0/+9
2012-02-13Bluetooth: silence lockdep warningOctavian Purdila1-0/+2
2012-02-13Bluetooth: Fix sk_sndtimeo initialization for L2CAP socketAndrzej Kaczmarek1-1/+1
2012-01-03Bluetooth: Keep chan->state and sk->sk_state in syncGustavo F. Padovan1-0/+2
2011-12-19Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/padova...John W. Linville1-58/+4
2011-12-18Bluetooth: Add ProFUSION's copyrightGustavo F. Padovan1-0/+1