aboutsummaryrefslogtreecommitdiffstats
path: root/net/bluetooth/hci_sock.c
AgeCommit message (Expand)AuthorFilesLines
5 daysBluetooth: HCI: Remove HCI_AMP supportLuiz Augusto von Dentz1-4/+1
2024-04-10Bluetooth: hci_sock: Fix not validating setsockopt user inputLuiz Augusto von Dentz1-13/+8
2024-03-06Bluetooth: Remove usage of the deprecated ida_simple_xx() APIChristophe JAILLET1-2/+2
2023-10-13Bluetooth: hci_sock: Correctly bounds check and pad HCI_MON_NEW_INDEX nameKees Cook1-1/+2
2023-10-13Bluetooth: hci_sock: fix slab oob read in create_monitor_eventEdward AD1-1/+1
2023-08-11Bluetooth: hci_sock: Forward credentials to monitorLuiz Augusto von Dentz1-2/+65
2023-08-11Bluetooth: Consolidate code around sk_alloc into a helper functionLuiz Augusto von Dentz1-8/+2
2023-04-23bluetooth: Perform careful capability checks in hci_sock_ioctl()Ruihan Li1-1/+8
2023-04-23bluetooth: Add cmd validity checks at the start of hci_sock_ioctl()Ruihan Li1-0/+28
2022-09-28Bluetooth: Prevent double register of suspendAbhishek Pandit-Subedi1-3/+0
2022-09-06Bluetooth: Implement support for MeshBrian Gix1-0/+1
2022-07-21Bluetooth: Unregister suspend with userchannelAbhishek Pandit-Subedi1-0/+3
2022-07-21Bluetooth: Fix index added after unregisterAbhishek Pandit-Subedi1-1/+7
2022-04-06net: remove noblock parameter from skb_recv_datagram()Oliver Hartkopp1-2/+1
2022-01-07Bluetooth: hci_sock: fix endian bug in hci_sock_setsockopt()Dan Carpenter1-2/+3
2021-10-12Bluetooth: hci_sock: purge socket queues in the destruct() callbackNguyen Dinh Phi1-4/+7
2021-10-01Bluetooth: hci_sock: Replace use of memcpy_from_msg with bt_skb_sendmsgLuiz Augusto von Dentz1-63/+37
2021-09-21Bluetooth: hci_sock: Add support for BT_{SND,RCV}BUFLuiz Augusto von Dentz1-11/+91
2021-08-30Bluetooth: reorganize functions from hci_sock_sendmsg()Tetsuo Handa1-29/+21
2021-08-05Bluetooth: defer cleanup of resources in hci_unregister_dev()Tetsuo Handa1-16/+33
2021-06-26Bluetooth: use inclusive language when filtering devicesArchie Pusaka1-6/+6
2021-06-07Merge ra.kernel.org:/pub/scm/linux/kernel/git/netdev/netDavid S. Miller1-2/+2
2021-06-02Bluetooth: Fix spelling mistakesZheng Yongjun1-3/+3
2021-05-31Bluetooth: use correct lock to prevent UAF of hdev objectLin Ma1-2/+2
2020-07-31Merge branch 'for-upstream' of git://git.kernel.org/pub/scm/linux/kernel/git/...David S. Miller1-4/+3
2020-07-24net: pass a sockptr_t into ->setsockoptChristoph Hellwig1-4/+4
2020-07-10Bluetooth: core: Use fallthrough pseudo-keywordGustavo A. R. Silva1-2/+1
2020-06-12Bluetooth: Use only 8 bits for the HCI CMSG state flagsAlain Michaud1-2/+2
2020-05-11Bluetooth: Introduce HCI_MGMT_HDEV_OPTIONAL optionMarcel Holtmann1-5/+7
2020-01-26Bluetooth: Fix race condition in hci_release_sock()Dan Carpenter1-0/+3
2020-01-25Bluetooth: Add missing checks for HCI_ISODATA_PKT packet typeMarcel Holtmann1-4/+8
2020-01-15Bluetooth: monitor: Add support for ISO packetsLuiz Augusto von Dentz1-0/+6
2019-10-23compat_ioctl: move hci_sock handlers into driverArnd Bergmann1-1/+20
2019-02-24Merge branch 'for-upstream' of git://git.kernel.org/pub/scm/linux/kernel/git/...David S. Miller1-2/+1
2019-02-04Bluetooth: Fix decrementing reference count twice in releasing socketMyungho Jung1-2/+1
2019-02-03socket: Use old_timeval types for socket timestampsDeepa Dinamani1-2/+2
2018-06-28Revert changes to convert to ->poll_mask() and aio IOCB_CMD_POLLLinus Torvalds1-1/+1
2018-05-26net: convert datagram_poll users tp ->poll_maskChristoph Hellwig1-1/+1
2018-02-12net: make getname() functions return length rather than use int* parameterDenys Vlasenko1-2/+2
2017-10-30Bluetooth: avoid recursive locking in hci_send_to_channel()Sebastian Andrzej Siewior1-6/+11
2017-09-28Revert "Bluetooth: Add option for disabling legacy ioctl interfaces"Linus Torvalds1-6/+0
2017-08-30Bluetooth: Add option for disabling legacy ioctl interfacesMarcel Holtmann1-0/+6
2017-06-16networking: add and use skb_put_u8()Johannes Berg1-1/+1
2017-06-16networking: make skb_push & __skb_push return void pointersJohannes Berg1-6/+6
2017-06-16networking: make skb_put & friends return void pointersJohannes Berg1-6/+6
2017-06-16networking: introduce and use skb_put_data()Johannes Berg1-4/+4
2017-04-30Bluetooth: Fix user channel for 32bit userspace on 64bit kernelSzymon Janc1-1/+2
2017-02-27scripts/spelling.txt: add "an user" pattern and fix typo instancesMasahiro Yamada1-3/+3
2016-09-19Bluetooth: Send control open and close messages for HCI user channelsMarcel Holtmann1-0/+35
2016-09-19Bluetooth: Handle HCI raw socket transition from unbound to boundMarcel Holtmann1-17/+36
2016-09-19Bluetooth: Send control open and close messages for HCI raw socketsMarcel Holtmann1-0/+48
2016-09-19Bluetooth: Add extra channel checks for control open/close messagesMarcel Holtmann1-5/+19
2016-09-19Bluetooth: Assign the channel early when binding HCI socketsMarcel Holtmann1-5/+11
2016-09-19Bluetooth: Send control open and close only when cookie is presentMarcel Holtmann1-2/+16
2016-09-19Bluetooth: Use numbers for subsystem version stringMarcel Holtmann1-2/+2
2016-09-19Bluetooth: Introduce helper functions for socket cookie handlingMarcel Holtmann1-12/+29
2016-09-19Bluetooth: Use individual flags for certain management eventsMarcel Holtmann1-1/+4
2016-09-19Bluetooth: Add support for sending MGMT commands and events to monitorMarcel Holtmann1-0/+94
2016-09-19Bluetooth: Add support for sending MGMT open and close to monitorMarcel Holtmann1-0/+95
2016-09-19Bluetooth: Store control socket cookie and comm informationMarcel Holtmann1-1/+30
2016-09-19Bluetooth: Check SOL_HCI for raw socket optionsMarcel Holtmann1-0/+6
2016-08-25Bluetooth: Fix hci_sock_recvmsg when MSG_TRUNC is not setLuiz Augusto von Dentz1-1/+1
2016-07-09Bluetooth: Rename HCI_BREDR into HCI_PRIMARYMarcel Holtmann1-1/+1
2016-07-08Bluetooth: Fix hci_sock_recvmsg return valueDenis Kenzior1-0/+5
2016-01-06Bluetooth: avoid rebuilding hci_sock all the timeJohannes Berg1-9/+18
2015-11-19Bluetooth: Add support for controller specific loggingMarcel Holtmann1-0/+102
2015-11-19Bluetooth: Add support for sending system notes to monitor channelMarcel Holtmann1-0/+29
2015-11-19Bluetooth: Fix casting coding style within HCI socketsMarcel Holtmann1-13/+13
2015-11-19Bluetooth: Add missing hci_skb_opcode for raw socket commandsMarcel Holtmann1-0/+5
2015-11-19Bluetooth: Compress the size of struct hci_ctrlJohan Hedberg1-1/+1
2015-11-19Bluetooth: Use new hci_skb_pkt_* wrappers for core packet handlingMarcel Holtmann1-19/+19
2015-10-26Bluetooth: Rename bt_cb()->req into bt_cb()->hciMarcel Holtmann1-1/+1
2015-10-26Bluetooth: Remove unneeded parenthesis around MSG_OOBMarcel Holtmann1-1/+1
2015-10-21Bluetooth: Add support setup stage internal notification eventMarcel Holtmann1-8/+16
2015-10-21Bluetooth: Restrict valid packet types via HCI_CHANNEL_RAWMarcel Holtmann1-0/+11
2015-10-21Bluetooth: Remove quirk for HCI_VENDOR_PKT filter handlingMarcel Holtmann1-4/+1
2015-10-08Bluetooth: Add support for vendor specific diagnostic channelMarcel Holtmann1-0/+3
2015-10-08Bluetooth: Send index information updates to monitor channelMarcel Holtmann1-1/+24
2015-10-05Bluetooth: Send transport open and close monitor eventsMarcel Holtmann1-0/+26
2015-10-05Bluetooth: Limit userspace exposure of stack internal eventsMarcel Holtmann1-7/+9
2015-09-17Bluetooth: close HCI device when user channel socket gets closedSimon Fels1-1/+10
2015-06-08Bluetooth: Fix race condition with user channel and setup stageMarcel Holtmann1-7/+19
2015-06-06Bluetooth: Reorder HCI user channel socket releaseLoic Poulain1-2/+2
2015-05-11net: Pass kern from net_proto_family.create to sk_allocEric W. Biederman1-1/+1
2015-03-30Bluetooth: Refactor HCI request variables into own structJohan Hedberg1-1/+1
2015-03-17Bluetooth: Move generic mgmt command dispatcher to hci_sock.cJohan Hedberg1-1/+115
2015-03-17Bluetooth: Add helper to get HCI channel of a socketJohan Hedberg1-0/+5
2015-03-15Bluetooth: Send global configuration updates to all management usersMarcel Holtmann1-0/+5
2015-03-15Bluetooth: Open management interface for untrusted usersMarcel Holtmann1-9/+6
2015-03-15Bluetooth: Add hci_sock_test_flag helper functionMarcel Holtmann1-1/+6
2015-03-15Bluetooth: Consolidate socket channel sending function back into oneMarcel Holtmann1-36/+9
2015-03-15Bluetooth: Introduce trusted flag for management control socketsMarcel Holtmann1-0/+11
2015-03-15Bluetooth: Use special function to send filter management index eventsMarcel Holtmann1-0/+10
2015-03-15Bluetooth: Provide hci_send_to_flagged_channel helper functionMarcel Holtmann1-0/+33
2015-03-15Bluetooth: Add flags field and setting function for HCI socketsMarcel Holtmann1-0/+11
2015-03-13Bluetooth: Introduce hci_dev_test_and_set_flag helper macroMarcel Holtmann1-1/+1
2015-03-13Bluetooth: Introduce hci_dev_clear_flag helper macroMarcel Holtmann1-2/+2
2015-03-13Bluetooth: Introduce hci_dev_test_flag helper macroMarcel Holtmann1-4/+4
2015-03-06Bluetooth: Convert mgmt to use HCI chan registration APIJohan Hedberg1-18/+1
2015-03-06Bluetooth: Add mgmt HCI channel registration APIJohan Hedberg1-3/+82
2015-03-02Merge branch 'for-upstream' of git://git.kernel.org/pub/scm/linux/kernel/git/...David S. Miller1-36/+9
2015-03-02net: Remove iocb argument from sendmsg and recvmsgYing Xue1-4/+4
2015-03-02net: bluetooth: compact struct bt_skb_cb by converting boolean fields to bit ...Eyal Birger1-1/+1
2015-03-02net: bluetooth: compact struct bt_skb_cb by inlining struct hci_req_ctrlEyal Birger1-1/+1
2015-02-27Bluetooth: make hci_test_bit's addr constJiri Slaby1-2/+2
2015-02-20Bluetooth: Remove unnecessary queue_monitor_skb() functionJohan Hedberg1-30/+2
2015-02-20Bluetooth: Rename hci_send_to_control to hci_send_to_channelJohan Hedberg1-4/+5
2015-01-12Bluetooth: Replace send_monitor_event with queue_monitor_skbMarcel Holtmann1-29/+1
2015-01-12Bluetooth: Create generic queue_monitor_skb helper functionMarcel Holtmann1-22/+29
2015-01-12Bluetooth: Simplify packet copy in hci_send_to_monitor functionMarcel Holtmann1-16/+12
2015-01-12Bluetooth: Add BUILD_BUG_ON for size of struct sockaddr_hciMarcel Holtmann1-0/+2
2014-11-24new helper: memcpy_from_msg()Al Viro1-1/+1
2014-11-10Merge tag 'master-2014-11-04' of git://git.kernel.org/pub/scm/linux/kernel/gi...David S. Miller1-1/+1
2014-11-05net: Add and use skb_copy_datagram_msg() helper.David S. Miller1-1/+1
2014-10-28Bluetooth: spelling fixesStephen Hemminger1-1/+1
2014-07-11Bluetooth: Move struct hci_pinfo into net/bluetooth/hci_sock.cMarcel Holtmann1-0/+11
2014-07-11Bluetooth: Delcare the hci_sec_filter as constMarcel Holtmann1-1/+1
2014-07-11Bluetooth: Move struct hci_sec_filter next to its userMarcel Holtmann1-0/+8
2014-07-09Bluetooth: Unify helpers for bdaddr_list manipulationsJohan Hedberg1-2/+2
2014-07-06Bluetooth: Run controller setup after external configurationMarcel Holtmann1-1/+2
2014-07-03Bluetooth: Add support for Unconfigured Index Added eventsMarcel Holtmann1-6/+3
2014-07-03Bluetooth: Introduce unconfigured controller stateMarcel Holtmann1-4/+4
2014-07-03Bluetooth: Restrict access for raw-only controllersMarcel Holtmann1-4/+10
2014-06-11net: add __pskb_copy_fclone and pskb_copy_for_cloneOctavian Purdila1-3/+3
2014-04-24Bluetooth: Return EOPNOTSUPP for HCISETRAW ioctl commandMarcel Holtmann1-10/+1
2014-03-12Bluetooth: Convert uses of __constant_<foo> to <foo>Joe Perches1-8/+8
2014-02-17Bluetooth: Add missing index added event on user channel failureMarcel Holtmann1-0/+1
2013-12-18Merge branch 'for-upstream' of git://git.kernel.org/pub/scm/linux/kernel/git/...John W. Linville1-10/+16
2013-12-17Bluetooth: Fix HCI User Channel permission check in hci_sock_sendmsgMarcel Holtmann1-10/+16
2013-11-20net: rework recvmsg handler msg_name and msg_namelen logicHannes Frederic Sowa1-2/+0
2013-10-18Bluetooth: Use BDADDR_BREDR type for old blacklist ioctl interfaceMarcel Holtmann1-2/+2
2013-10-11Bluetooth: Move skb->dev assignment for hdev->send into central placeMarcel Holtmann1-2/+0
2013-10-10Bluetooth: Remove hdev->ioctl driver callbackMarcel Holtmann1-4/+1
2013-10-10Bluetooth: AMP contollers do not support the legacy ioctlsMarcel Holtmann1-0/+3
2013-10-02Bluetooth: Require CAP_NET_ADMIN for HCI User Channel operationMarcel Holtmann1-1/+1
2013-09-16Bluetooth: Introduce new HCI socket channel for user operationMarcel Holtmann1-5/+81
2013-09-16Bluetooth: Introduce user channel flag for HCI devicesMarcel Holtmann1-6/+9
2013-09-16Bluetooth: Restrict ioctls to HCI raw channel socketsMarcel Holtmann1-6/+17
2013-09-16Bluetooth: Fix error handling for HCI socket optionsMarcel Holtmann1-2/+2
2013-09-16Bluetooth: Fix handling of getsockname() for HCI socketsMarcel Holtmann1-6/+11
2013-09-16Bluetooth: Fix handling of getpeername() for HCI socketsMarcel Holtmann1-0/+3
2013-09-16Bluetooth: Refactor raw socket filter into more readable codeMarcel Holtmann1-23/+41
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-03-08Bluetooth: Fix stand-alone HCI command handlingJohan Hedberg1-0/+5
2013-03-08Bluetooth: discard bt_sock_unregister() errorsDavid Herrmann1-3/+1
2013-02-27hlist: drop the node parameter from iteratorsSasha Levin1-10/+5
2012-09-28Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/netDavid S. Miller1-8/+8
2012-09-21net: change return values from -EACCES to -EPERMZhao Hongjiang1-8/+8
2012-08-22Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/netDavid S. Miller1-0/+2
2012-08-15Bluetooth: HCI - Fix info leak via getsockname()Mathias Krause1-0/+1
2012-08-15Bluetooth: HCI - Fix info leak in getsockopt(HCI_FILTER)Mathias Krause1-0/+1
2012-08-06Bluetooth: Added /proc/net/hci via bt_procfs_init()Masatake YAMATO1-2/+11
2012-06-05Bluetooth: Remove unnecessary headers includeGustavo Padovan1-19/+1
2012-06-05Bluetooth: Fix coding style in the subsystemGustavo Padovan1-7/+14
2012-06-05Bluetooth: Remove 'register' usage from the subsystemGustavo Padovan1-1/+1
2012-06-05Bluetooth: Remove most of the inline usageGustavo Padovan1-2/+4
2012-06-05Bluetooth: Fix coding style in hci_sock.cGustavo Padovan1-4/+6
2012-03-29Merge branch 'x86-x32-for-linus' of git://git.kernel.org/pub/scm/linux/kernel...Linus Torvalds1-1/+2
2012-03-28Remove all #inclusions of asm/system.hDavid Howells1-1/+0
2012-03-03Bluetooth: Remove HCI_PI_MGMT_INIT flag for socketsJohan Hedberg1-1/+0
2012-02-23Bluetooth: Enable timestamps for control channelMarcel Holtmann1-0/+1
2012-02-20Bluetooth: Always enable management interfaceMarcel Holtmann1-6/+1
2012-02-20Bluetooth: Restrict access to management interfaceMarcel Holtmann1-0/+5
2012-02-20Bluetooth: Add support for HCI monitor channelMarcel Holtmann1-0/+207
2012-02-20compat: Use COMPAT_USE_64BIT_TIME in the Bluetooth subsystemH. J. Lu1-1/+2
2012-02-20Bluetooth: Remove HCI notifier handlingMarcel Holtmann1-44/+61
2012-02-20Bluetooth: Fix issue with shared SKB between HCI raw socket and driverMarcel Holtmann1-4/+14
2012-02-20Bluetooth: Simplify HCI socket bind handlingMarcel Holtmann1-16/+31
2012-02-20Bluetooth: Add HCI CMSG details only to raw socketsMarcel Holtmann1-1/+5
2012-02-20Bluetooth: Lock socket when reading HCI socket optionsMarcel Holtmann1-6/+17
2012-02-20Bluetooth: Limit HCI raw socket options to actual raw socketsMarcel Holtmann1-0/+6
2012-02-20Bluetooth: Split sending for HCI raw and control socketsMarcel Holtmann1-12/+39
2012-02-13Bluetooth: Add address type to mgmt blacklist messagesJohan Hedberg1-2/+2
2012-01-10Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/padova...John W. Linville1-2/+0
2012-01-03Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linvil...John W. Linville1-9/+12
2012-01-02Bluetooth: Remove local_bh_disable() from hci_sock.cGustavo F. Padovan1-2/+0
2011-12-19module_param: make bool parameters really bool (net & drivers/net)Rusty Russell1-1/+1
2011-12-18Bluetooth: Remove mgmt_set_service_cacheJohan Hedberg1-2/+5
2011-12-18Bluetooth: convert tx_task to workqueueGustavo F. Padovan1-2/+2
2011-12-18Bluetooth: Move command task to workqueueGustavo F. Padovan1-1/+1
2011-12-18Bluetooth: Replace spin_lock by mutex in hci_devGustavo F. Padovan1-4/+4
2011-09-21Bluetooth: Add mgmt events for blacklistingAntti Julku1-2/+16
2011-06-16Bluetooth: Move blacklisting functions to hci_coreAntti Julku1-64/+6
2011-02-22Bluetooth: fix build break on hci_sock.cAnand Gadiyar1-1/+1
2011-02-08Bluetooth: Add support for set_powered management commandJohan Hedberg1-1/+5
2010-12-22Bluetooth: Improve handling of HCI control channel in bindGustavo F. Padovan1-1/+4
2010-12-07Bluetooth: Make hci_send_to_sock usable for management control socketsJohan Hedberg1-1/+9
2010-12-07Bluetooth: Add initial Bluetooth Management interface callbacksJohan Hedberg1-6/+33
2010-12-01Bluetooth: clean up hci codeAndrei Emeltchenko1-6/+11
2010-07-31Bluetooth: Use list_head for HCI blacklist headDavid Miller1-5/+3
2010-07-21Bluetooth: Add blacklist support for incoming connectionsJohan Hedberg1-0/+90
2010-02-28Bluetooth: Fix out of scope variable access in hci_sock_cmsg()Johann Felix Soden1-1/+3
2009-12-03Bluetooth: Unobfuscate tasklet_schedule usageMarcel Holtmann1-3/+3
2009-12-03Bluetooth: Return ENETDOWN when interface is downMarcel Holtmann1-0/+5
2009-11-05net: pass kern to net_proto_family create functionEric Paris1-1/+2
2009-10-07net: mark net_proto_ops as constStephen Hemminger1-1/+1
2009-09-30net: Make setsockopt() optlen be unsigned.David S. Miller1-1/+1
2008-11-30Bluetooth: Enable per-module dynamic debug messagesMarcel Holtmann1-5/+0
2008-07-14[Bluetooth] Export details about authentication requirementsMarcel Holtmann1-13/+5