Bluetooth: HCI: Add initial support for Short Connection Interval feature
Subsystems (2)
Luiz Augusto von Dentz
maintainerPATCH v2 1/2 Bluetooth: HCI: Add initial support for Short Connection Interval feature
From: Luiz Augusto von Dentz <[email protected]>
This adds initial support for SCI related commands, command bits, event event mask bit and feature bits:
Events:
HCI_LE_Connection_Rate_Change(0x37)
Commands:
HCI_LE_Connection_Rate_Request(0x20a1) HCI_LE_Set_Default_Rate_Parameters(0x20a2) HCI_LE_Read_Minimum_Supported_Connection_Interval(0x20a3)
Also update the init sequence to incorporte support for reading SCI groups and then setting the Default Rate
--- include/net/bluetooth/hci.h | 52 +++++++++++++++++++ include/net/bluetooth/hci_core.h | 15 ++++++ net/bluetooth/hci_core.c | 14 ++++- net/bluetooth/hci_event.c | 62 ++++++++++++++++++++++ net/bluetooth/hci_sync.c | 88 +++++++++++++++++++++++++++++++- 5 files changed, 229 insertions(+), 2 deletions(-)
include/net/bluetooth/hci.h +52 -0
@@ -656,6 +656,7 @@ enum {#define HCI_LE_LL_EXT_FEATURE 0x80#define HCI_LE_CS 0x40#define HCI_LE_CS_HOST 0x80 +#define HCI_LE_SCI 0x01/* Connection modes */ #define HCI_CM_ACTIVE 0x0000
@@ -2486,6 +2487,46 @@ struct hci_rp_le_cs_test {#define HCI_OP_LE_CS_TEST_END 0x2096 +#define HCI_OP_LE_CONN_RATE 0x20a1 +struct hci_cp_le_conn_rate { +__le16 handle; +__le16 interval_min; +__le16 interval_max; +__le16 subrate_min; +__le16 subrate_max; +__le16 max_latency; +__le16 cont_num; +__le16 supv_timeout; +__le16 min_ce_len; +__le16 max_ce_len; +} __packed; + +#define HCI_OP_LE_SET_DEF_RATE 0x20a2 +struct hci_cp_le_set_def_rate { +__le16 interval_min; +__le16 interval_max; +__le16 subrate_min; +__le16 subrate_max; +__le16 max_latency; +__le16 cont_num; +__le16 supv_timeout; +__le16 min_ce_len; +__le16 max_ce_len; +} __packed; + +#define HCI_OP_LE_READ_CONN_INTERVAL 0x20a3 +struct hci_le_conn_interval_group { +__le16 min; +__le16 max; +__le16 stride; +} __packed; + +struct hci_rp_le_read_conn_interval { +__u8 status; +__u8 num_grps; + struct hci_le_conn_interval_group grps[] __counted_by(num_grps); +} __packed; +/* ---- HCI Events ---- */ struct hci_ev_status {__u8 status;
@@ -3300,6 +3341,17 @@ struct hci_evt_le_cs_test_end_complete {__u8 status; } __packed; +#define HCI_EVT_LE_CONN_RATE_CHANGE 0x37 +struct hci_evt_le_conn_rate_change { +__u8 status; +__le16 handle; +__le16 interval; +__le16 subrate; +__le16 latency; +__le16 cont_number; +__le16 supv_timeout; +} __packed; +#define HCI_EV_VENDOR 0xff/* Internal events generated by Bluetooth stack */
include/net/bluetooth/hci_core.h +15 -0
@@ -333,6 +333,14 @@ struct adv_monitor {#define HCI_ADV_MONITOR_EXT_NONE 1#define HCI_ADV_MONITOR_EXT_MSFT 2 + +struct sci_group { +struct list_head list; +__u16 min; +__u16 max; +__u16 stride; +}; +#define HCI_MAX_SHORT_NAME_LENGTH 10#define HCI_CONN_HANDLE_MAX 0x0eff
@@ -572,6 +580,7 @@ struct hci_dev {struct list_head pend_le_reports;struct list_head blocked_keys;struct list_head local_codecs; +struct list_head sci_groups;struct hci_dev_stats stat;
@@ -2082,6 +2091,12 @@ void hci_conn_del_sysfs(struct hci_conn *conn);#define mws_transport_config_capable (dev) (((dev)->commands[30] & 0x08) && \ (!hci_test_quirk((dev), HCI_QUIRK_BROKEN_MWS_TRANSPORT_CONFIG))) +/* Shorter Connection Intervals support */ +#define le_sci_capable (dev) \ + ((dev)->le_features[9] & HCI_LE_SCI) + +void hci_sci_groups_clear (struct hci_dev *hdev); +/* ----- HCI protocols ----- */ #define HCI_PROTO_DEFER 0x01
net/bluetooth/hci_core.c +13 -1
@@ -2543,8 +2543,9 @@ struct hci_dev *hci_alloc_dev_priv(int sizeof_priv)INIT_LIST_HEAD (&hdev->adv_instances);INIT_LIST_HEAD (&hdev->blocked_keys);INIT_LIST_HEAD (&hdev->monitored_devices); -INIT_LIST_HEAD (&hdev->local_codecs); +INIT_LIST_HEAD (&hdev->sci_groups); +INIT_WORK (&hdev->rx_work, hci_rx_work);INIT_WORK (&hdev->cmd_work, hci_cmd_work);INIT_WORK (&hdev->tx_work, hci_tx_work);
@@ -2740,6 +2741,16 @@ void hci_unregister_dev(struct hci_dev *hdev) }EXPORT_SYMBOL (hci_unregister_dev); +void hci_sci_groups_clear (struct hci_dev *hdev) +{ +struct sci_group *grp, *tmp; + +list_for_each_entry_safe (grp, tmp, &hdev->sci_groups, list) { +list_del (&grp->list); +kfree (grp); + } +} +/* Release HCI device */ void hci_release_dev (struct hci_dev *hdev) {
@@ -2766,6 +2777,7 @@ void hci_release_dev(struct hci_dev *hdev)hci_discovery_filter_clear (hdev);hci_blocked_keys_clear (hdev);hci_codec_list_clear (&hdev->local_codecs); +hci_sci_groups_clear (hdev);msft_release (hdev);hci_dev_unlock (hdev);
net/bluetooth/hci_event.c +62 -0
86 lines not on this page · raw message
net/bluetooth/hci_sync.c +87 -1
113 lines not on this page · raw message
Signature · 1 line
2.53.0
Luiz Augusto von Dentz
maintainerPATCH v2 2/2 Bluetooth: MGMT: Add SCI setting bit(25)
From: Luiz Augusto von Dentz <[email protected]>
This adds MGMT_SETTING_SCI(25) which indicates that the controller is support SCI feature.
--- include/net/bluetooth/hci_core.h | 2 ++ include/net/bluetooth/mgmt.h | 1 + net/bluetooth/mgmt.c | 6 ++++++ 3 files changed, 9 insertions(+)
include/net/bluetooth/hci_core.h +2 -0
@@ -2094,6 +2094,8 @@ void hci_conn_del_sysfs(struct hci_conn *conn);/* Shorter Connection Intervals support */ #define le_sci_capable (dev) \ ((dev)->le_features[9] & HCI_LE_SCI) +#define le_sci_enabled (dev) \ + (le_enabled(dev) && le_sci_capable(dev))void hci_sci_groups_clear (struct hci_dev *hdev);
include/net/bluetooth/mgmt.h +1 -0
@@ -121,6 +121,7 @@ struct mgmt_rp_read_index_list {#define MGMT_SETTING_LL_PRIVACY BIT(22)#define MGMT_SETTING_PAST_SENDER BIT(23)#define MGMT_SETTING_PAST_RECEIVER BIT(24) +#define MGMT_SETTING_SCI BIT(25)#define MGMT_OP_READ_INFO 0x0004#define MGMT_READ_INFO_SIZE 0
net/bluetooth/mgmt.c +6 -0
@@ -864,6 +864,9 @@ static u32 get_supported_settings(struct hci_dev *hdev)if (past_receiver_capable (hdev)) settings |=MGMT_SETTING_PAST_RECEIVER ; +if (le_sci_capable (hdev)) + settings |=MGMT_SETTING_SCI ; + settings |=MGMT_SETTING_PHY_CONFIGURATION ;return settings;
@@ -955,6 +958,9 @@ static u32 get_current_settings(struct hci_dev *hdev)if (past_receiver_enabled (hdev)) settings |=MGMT_SETTING_PAST_RECEIVER ; +if (le_sci_enabled (hdev)) + settings |=MGMT_SETTING_SCI ; +return settings; }
Signature · 1 line
2.53.0
kernel test robot
build botRe: [PATCH v2 2/2] Bluetooth: MGMT: Add SCI setting bit(25)
kernel test robot noticed the following build warnings:
Hi Luiz,
kernel test robot noticed the following build warnings:
[auto build test WARNING on bluetooth-next/master]
[also build test WARNING on bluetooth/master linus/master v7.1-rc3 next-20260508] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]
url: https://github.com/intel-lab-lkp/linux/commits/Luiz-Augusto-von-Dentz/Bluetooth-MGMT-Add-SCI-setting-bit-25/20260515-083218 base: https://git.kernel.org/pub/scm/linux/kernel/git/bluetooth/bluetooth-next.git master patch link: https://lore.kernel.org/r/20260506160651.1585012-2-luiz.dentz%40gmail.com patch subject: [PATCH v2 2/2] Bluetooth: MGMT: Add SCI setting bit(25) config: x86_64-rhel-9.4-rust (https://download.01.org/0day-ci/archive/20260515/[email protected]/config) compiler: clang version 20.1.8 (https://github.com/llvm/llvm-project 87f0227cb60147a26a1eeb4fb06e3b505e9c7261) rustc: rustc 1.88.0 (6b00bc388 2025-06-23) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260515/[email protected]/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/
All warnings (new ones prefixed by >>):
>> net/bluetooth/hci_sync.c:4942:7: warning: logical not is only applied to the left hand side of this comparison [-Wlogical-not-parentheses]
4942 | if (!min == 0 || grp->min < min)
| ^ ~~
net/bluetooth/hci_sync.c:4942:7: note: add parentheses after the '!' to evaluate the comparison first
4942 | if (!min == 0 || grp->min < min)
| ^
| ( )
net/bluetooth/hci_sync.c:4942:7: note: add parentheses around left hand side expression to silence this warning
4942 | if (!min == 0 || grp->min < min)
| ^
| ( )
net/bluetooth/hci_sync.c:4945:7: warning: logical not is only applied to the left hand side of this comparison [-Wlogical-not-parentheses]
4945 | if (!max == 0 || grp->max > max)
| ^ ~~
net/bluetooth/hci_sync.c:4945:7: note: add parentheses after the '!' to evaluate the comparison first
4945 | if (!max == 0 || grp->max > max)
| ^
| ( )
net/bluetooth/hci_sync.c:4945:7: note: add parentheses around left hand side expression to silence this warning
4945 | if (!max == 0 || grp->max > max)
| ^
| ( )2 warnings generated.
vim +4942 net/bluetooth/hci_sync.c
4921
4922 /* Set Default Connection Rate Parameters if command is supported, SCI feature
4923 * bit is marked as supported and at least one of the supported SCI groups
4924 * exists.
4925 */
4926 static int hci_le_set_def_rate_sync(struct hci_dev *hdev)
4927 {
4928 struct hci_cp_le_set_def_rate cp;
4929 struct sci_group *grp, *tmp;
4930 __u16 min = 0, max = 0;
4931
4932 if (!(hdev->commands[48] & BIT(6)) || !le_sci_capable(hdev) ||
4933 list_empty(&hdev->sci_groups))
4934 return 0;
4935
4936 memset(&cp, 0, sizeof(cp));
4937
4938 /* Iterate over the SCI groups and find the widest supported connection
4939 * interval range to maximize compatibility with peer devices.
4940 */
4941 list_for_each_entry_safe(grp, tmp, &hdev->sci_groups, list) {
> 4942 if (!min == 0 || grp->min < min)
4943 min = grp->min;
4944
4945 if (!max == 0 || grp->max > max)
4946 max = grp->max;
4947 }
4948
4949 cp.interval_min = cpu_to_le16(min);
4950 cp.interval_max = cpu_to_le16(max);
4951
4952 /* HOG 1.2 Table 7.4. Modes with recommended parameter values suggests
4953 * subrate 1-4 for all modes so use that as default.
4954 */
4955 cp.subrate_min = cpu_to_le16(0x0001);
4956 cp.subrate_max = cpu_to_le16(0x0004);
4957
4958 /* HIP 1.2 Table 7.5. Modes with recommended parameter values suggests
4959 * max latency of 0 for all modes expect low power.
4960 */
4961 cp.max_latency = 0x0000;
4962
4963 /* HIP 1.2 Table 7.5. Modes with recommended parameter values suggests
4964 * continuation number 1 for full range.
4965 */
4966 cp.cont_num = cpu_to_le16(0x0001);
4967
4968 /* HOG 1.2 Table 7.4. Modes with recommended parameter values states
4969 * that link supervision timeout should be: Greater than or equal to
4970 * (1 + Peripheral Latency) x Subrate max x Connection Interval max x 2.
4971 */
4972 cp.supv_timeout = cpu_to_le16((1 + 0) * 0x0004 * max * 2 / 10);
4973
4974 cp.min_ce_len = cpu_to_le16(min);
4975 cp.max_ce_len = cpu_to_le16(max);
4976
4977 return __hci_cmd_sync_status(hdev, HCI_OP_LE_SET_DEF_RATE,
4978 sizeof(cp), &cp, HCI_CMD_TIMEOUT);
4979 }
4980
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
This is automated email and please do not reply to this email!
Dear submitter,
Thank you for submitting the patches to the linux bluetooth mailing list. This is a CI test results with your patch series:
PW Link:https://patchwork.kernel.org/project/bluetooth/list/?series=1090572
---Test result---
Test Summary:
CheckPatch FAIL 2.47 seconds GitLint FAIL 1.12 seconds SubjectPrefix PASS 0.14 seconds BuildKernel PASS 26.59 seconds CheckAllWarning PASS 28.99 seconds CheckSparse PASS 27.43 seconds BuildKernel32 PASS 25.44 seconds TestRunnerSetup PASS 577.31 seconds TestRunner_l2cap-tester FAIL 18.84 seconds TestRunner_iso-tester PASS 311.35 seconds TestRunner_bnep-tester FAIL 18.23 seconds TestRunner_mgmt-tester FAIL 23.63 seconds TestRunner_rfcomm-tester PASS 40.63 seconds TestRunner_sco-tester PASS 79.85 seconds TestRunner_ioctl-tester FAIL 49.58 seconds TestRunner_mesh-tester PASS 38.97 seconds TestRunner_smp-tester PASS 17.68 seconds TestRunner_userchan-tester FAIL 18.28 seconds TestRunner_6lowpan-tester PASS 34.60 seconds IncrementalBuild PASS 42.57 seconds
Details
##############################
Test: CheckPatch - FAIL
Desc: Run checkpatch.pl script
Output:
[v2,1/2] Bluetooth: HCI: Add initial support for Short Connection Interval feature
WARNING: Possible unnecessary 'out of memory' message
#317: FILE: net/bluetooth/hci_event.c:3989:
+ if (!sgrp) {
+ bt_dev_err(hdev, "can't allocate memory for SCI group");
total: 0 errors, 1 warnings, 0 checks, 335 lines checked
NOTE: For some of the reported defects, checkpatch may be able to
mechanically convert to the typical style using --fix or --fix-inplace.
/github/workspace/src/patch/14557669.patch has style problems, please review.
NOTE: Ignored message types: UNKNOWN_COMMIT_ID
NOTE: If any of the errors are false positives, please report
them to the maintainer, see CHECKPATCH in MAINTAINERS.
##############################
Test: GitLint - FAIL
Desc: Run gitlint
Output:
[v2,1/2] Bluetooth: HCI: Add initial support for Short Connection Interval feature
WARNING: I3 - ignore-body-lines: gitlint will be switching from using Python regex 'match' (match beginning) to 'search' (match anywhere) semantics. Please review your ignore-body-lines.regex option accordingly. To remove this warning, set general.regex-style-search=True. More details: https://jorisroovers.github.io/gitlint/configuration/#regex-style-search
1: T1 Title exceeds max length (82>80): "[v2,1/2] Bluetooth: HCI: Add initial support for Short Connection Interval feature"
##############################
Test: TestRunner_l2cap-tester - FAIL
Desc: Run l2cap-tester with test-runner
Output:
Crash detected:
==34== by 0x13350F: tester_run (tester.c:1085)
==34== by 0x1142AD: main (l2cap-tester.c:3295)
==34== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==34==
==34==
==34== Process terminating with default action of signal 11 (SIGSEGV)
==34== Access not within mapped region at address 0x0
==34== at 0x483FF54: __strcmp_sse2 (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) ==34== by 0x115C46: read_info_callback (l2cap-tester.c:156) ==34== by 0x12E860: request_complete (mgmt.c:320) ==34== by 0x12F2F5: can_read_data (mgmt.c:408) ==34== by 0x131D68: watch_callback (io-glib.c:173) ==34== by 0x48A304D: g_main_context_dispatch (in /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0.6400.6) ==34== by 0x48A33FF: ??? (in /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0.6400.6) ==34== by 0x48A36F2: g_main_loop_run (in /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0.6400.6) ==34== by 0x133B18: mainloop_run (mainloop-glib.c:65) ==34== by 0x133F4F: mainloop_run_with_signal (mainloop-notify.c:196) ==34== by 0x13350F: tester_run (tester.c:1085) ==34== by 0x1142AD: main (l2cap-tester.c:3295) ==34== If you believe this happened as a result of a stack ==34== overflow in your program's main thread (unlikely but ==34== possible), you can try to increase the size of the ==34== main thread stack using the --main-stacksize= flag. ==34== The main thread stack size used in this run was 8388608. ==34== Valgrind errors: ==34== by 0x115C46: read_info_callback (l2cap-tester.c:156) ==34== by 0x12E860: request_complete (mgmt.c:320) ==34== by 0x12F2F5: can_read_data (mgmt.c:408) ==34== by 0x131D68: watch_callback (io-glib.c:173) ==34== by 0x48A304D: g_main_context_dispatch (in /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0.6400.6) ==34== by 0x48A33FF: ??? (in /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0.6400.6) ==34== by 0x48A36F2: g_main_loop_run (in /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0.6400.6) ==34== by 0x133B18: mainloop_run (mainloop-glib.c:65) ==34== by 0x133F4F: mainloop_run_with_signal (mainloop-notify.c:196) ==34== by 0x13350F: tester_run (tester.c:1085) ==34== by 0x1142AD: main (l2cap-tester.c:3295) ==34== If you believe this happened as a result of a stack ==34== overflow in your program's main thread (unlikely but ==34== possible), you can try to increase the size of the ==34== main thread stack using the --main-stacksize= flag. ==34== The main thread stack size used in this run was 8388608.
==34==
==34== HEAP SUMMARY:
==34== in use at exit: 66,009 bytes in 462 blocks
==34== total heap usage: 592 allocs, 130 frees, 79,004 bytes allocated
==34==
==34== LEAK SUMMARY:
==34== definitely lost: 0 bytes in 0 blocks
==34== indirectly lost: 0 bytes in 0 blocks
==34== possibly lost: 0 bytes in 0 blocks
==34== still reachable: 66,009 bytes in 462 blocks
==34== suppressed: 0 bytes in 0 blocks
==34== Rerun with --leak-check=full to see details of leaked memory ==34==
==34== For lists of detected and suppressed errors, rerun with: -s ==34== ERROR SUMMARY: 51 errors from 3 contexts (suppressed: 0 from 0) Crash detected:
==34== suppressed: 0 bytes in 0 blocks
==34== Rerun with --leak-check=full to see details of leaked memory ==34==
==34== For lists of detected and suppressed errors, rerun with: -s ==34== ERROR SUMMARY: 51 errors from 3 contexts (suppressed: 0 from 0) Segmentation fault
Process 33 exited with status 139
reboot: Restarting system
reboot: machine restart
No test result found
##############################
Test: TestRunner_bnep-tester - FAIL
Desc: Run bnep-tester with test-runner
Output:
Crash detected:
==34== by 0x12CC4F: tester_run (tester.c:1085)
==34== by 0x111CB3: main (bnep-tester.c:298)
==34== Address 0x0 is not stack'd, malloc'd or (recently) free'd ==34==
==34==
==34== Process terminating with default action of signal 11 (SIGSEGV) ==34== Access not within mapped region at address 0x0
==34== at 0x483FF54: __strcmp_sse2 (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) ==34== by 0x112206: read_info_callback (bnep-tester.c:101) ==34== by 0x1281B0: request_complete (mgmt.c:320) ==34== by 0x128B65: can_read_data (mgmt.c:408) ==34== by 0x12B5D8: watch_callback (io-glib.c:173) ==34== by 0x48A304D: g_main_context_dispatch (in /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0.6400.6) ==34== by 0x48A33FF: ??? (in /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0.6400.6) ==34== by 0x48A36F2: g_main_loop_run (in /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0.6400.6) ==34== by 0x12D258: mainloop_run (mainloop-glib.c:65) ==34== by 0x12D68F: mainloop_run_with_signal (mainloop-notify.c:196) ==34== by 0x12CC4F: tester_run (tester.c:1085) ==34== by 0x111CB3: main (bnep-tester.c:298) ==34== If you believe this happened as a result of a stack ==34== overflow in your program's main thread (unlikely but ==34== possible), you can try to increase the size of the ==34== main thread stack using the --main-stacksize= flag. ==34== The main thread stack size used in this run was 8388608. ==34== Valgrind errors: ==34== by 0x112206: read_info_callback (bnep-tester.c:101) ==34== by 0x1281B0: request_complete (mgmt.c:320) ==34== by 0x128B65: can_read_data (mgmt.c:408) ==34== by 0x12B5D8: watch_callback (io-glib.c:173) ==34== by 0x48A304D: g_main_context_dispatch (in /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0.6400.6) ==34== by 0x48A33FF: ??? (in /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0.6400.6) ==34== by 0x48A36F2: g_main_loop_run (in /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0.6400.6) ==34== by 0x12D258: mainloop_run (mainloop-glib.c:65) ==34== by 0x12D68F: mainloop_run_with_signal (mainloop-notify.c:196) ==34== by 0x12CC4F: tester_run (tester.c:1085) ==34== by 0x111CB3: main (bnep-tester.c:298) ==34== If you believe this happened as a result of a stack ==34== overflow in your program's main thread (unlikely but ==34== possible), you can try to increase the size of the ==34== main thread stack using the --main-stacksize= flag. ==34== The main thread stack size used in this run was 8388608.
==34==
==34== HEAP SUMMARY:
==34== in use at exit: 25,264 bytes in 82 blocks
==34== total heap usage: 212 allocs, 130 frees, 38,256 bytes allocated
==34==
==34== LEAK SUMMARY:
==34== definitely lost: 0 bytes in 0 blocks
==34== indirectly lost: 0 bytes in 0 blocks
==34== possibly lost: 0 bytes in 0 blocks
==34== still reachable: 25,264 bytes in 82 blocks
==34== suppressed: 0 bytes in 0 blocks
==34== Rerun with --leak-check=full to see details of leaked memory ==34==
==34== For lists of detected and suppressed errors, rerun with: -s ==34== ERROR SUMMARY: 51 errors from 3 contexts (suppressed: 0 from 0) Crash detected:
==34== suppressed: 0 bytes in 0 blocks
==34== Rerun with --leak-check=full to see details of leaked memory ==34==
==34== For lists of detected and suppressed errors, rerun with: -s ==34== ERROR SUMMARY: 51 errors from 3 contexts (suppressed: 0 from 0) Segmentation fault
Process 33 exited with status 139
reboot: Restarting system
reboot: machine restart
No test result found
##############################
Test: TestRunner_mgmt-tester - FAIL
Desc: Run mgmt-tester with test-runner
Output:
Crash detected:
==34== by 0x14F4FF: tester_run (tester.c:1085)
==34== by 0x12B999: main (mgmt-tester.c:15134)
==34== Address 0x0 is not stack'd, malloc'd or (recently) free'd ==34==
==34==
==34== Process terminating with default action of signal 11 (SIGSEGV) ==34== Access not within mapped region at address 0x0
==34== at 0x483FF54: __strcmp_sse2 (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) ==34== by 0x12F8E8: read_info_callback (mgmt-tester.c:181) ==34== by 0x14A740: request_complete (mgmt.c:320) ==34== by 0x14B2F5: can_read_data (mgmt.c:408) ==34== by 0x14DD68: watch_callback (io-glib.c:173) ==34== by 0x48A304D: g_main_context_dispatch (in /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0.6400.6) ==34== by 0x48A33FF: ??? (in /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0.6400.6) ==34== by 0x48A36F2: g_main_loop_run (in /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0.6400.6) ==34== by 0x14FB08: mainloop_run (mainloop-glib.c:65) ==34== by 0x14FF3F: mainloop_run_with_signal (mainloop-notify.c:196) ==34== by 0x14F4FF: tester_run (tester.c:1085) ==34== by 0x12B999: main (mgmt-tester.c:15134) ==34== If you believe this happened as a result of a stack ==34== overflow in your program's main thread (unlikely but ==34== possible), you can try to increase the size of the ==34== main thread stack using the --main-stacksize= flag. ==34== The main thread stack size used in this run was 8388608. ==34== Valgrind errors: ==34== by 0x12F8E8: read_info_callback (mgmt-tester.c:181) ==34== by 0x14A740: request_complete (mgmt.c:320) ==34== by 0x14B2F5: can_read_data (mgmt.c:408) ==34== by 0x14DD68: watch_callback (io-glib.c:173) ==34== by 0x48A304D: g_main_context_dispatch (in /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0.6400.6) ==34== by 0x48A33FF: ??? (in /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0.6400.6) ==34== by 0x48A36F2: g_main_loop_run (in /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0.6400.6) ==34== by 0x14FB08: mainloop_run (mainloop-glib.c:65) ==34== by 0x14FF3F: mainloop_run_with_signal (mainloop-notify.c:196) ==34== by 0x14F4FF: tester_run (tester.c:1085) ==34== by 0x12B999: main (mgmt-tester.c:15134) ==34== If you believe this happened as a result of a stack ==34== overflow in your program's main thread (unlikely but ==34== possible), you can try to increase the size of the ==34== main thread stack using the --main-stacksize= flag. ==34== The main thread stack size used in this run was 8388608.
==34==
==34== HEAP SUMMARY:
==34== in use at exit: 182,263 bytes in 2,112 blocks
==34== total heap usage: 2,389 allocs, 277 frees, 204,641 bytes allocated
==34==
==34== LEAK SUMMARY:
==34== definitely lost: 0 bytes in 0 blocks
==34== indirectly lost: 0 bytes in 0 blocks
==34== possibly lost: 0 bytes in 0 blocks
==34== still reachable: 182,263 bytes in 2,112 blocks
==34== suppressed: 0 bytes in 0 blocks
==34== Rerun with --leak-check=full to see details of leaked memory ==34==
==34== For lists of detected and suppressed errors, rerun with: -s ==34== ERROR SUMMARY: 51 errors from 3 contexts (suppressed: 0 from 0) Crash detected:
==34== suppressed: 0 bytes in 0 blocks
==34== Rerun with --leak-check=full to see details of leaked memory ==34==
==34== For lists of detected and suppressed errors, rerun with: -s ==34== ERROR SUMMARY: 51 errors from 3 contexts (suppressed: 0 from 0) Segmentation fault
Process 33 exited with status 139
reboot: Restarting system
reboot: machine restart
No test result found
##############################
Test: TestRunner_ioctl-tester - FAIL
Desc: Run ioctl-tester with test-runner
Output:
Total: 28, Passed: 0 (0.0%), Failed: 11, Not Run: 17
Failed Test Cases
Device List Timed out -31.728 seconds Device Info Timed out -6.907 seconds Reset Stat Timed out -6.913 seconds Set Link Mode - ACCEPT Timed out -6.919 seconds Set Pkt Type - DM Timed out -15.160 seconds Set Pkt Type - DH Timed out -15.166 seconds Set Pkt Type - HV Timed out -15.172 seconds Set Pkt Type - 2-DH Timed out -15.179 seconds Set Pkt Type - 2-DH Timed out -15.185 seconds Set Pkt Type - ALL Timed out -15.191 seconds Set ACL MTU - 1 Timed out -15.197 seconds
##############################
Test: TestRunner_userchan-tester - FAIL
Desc: Run userchan-tester with test-runner
Output:
Crash detected:
==34== by 0x12D77F: tester_run (tester.c:1085)
==34== by 0x111DFB: main (userchan-tester.c:392)
==34== Address 0x0 is not stack'd, malloc'd or (recently) free'd ==34==
==34==
==34== Process terminating with default action of signal 11 (SIGSEGV) ==34== Access not within mapped region at address 0x0
==34== at 0x483FF54: __strcmp_sse2 (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) ==34== by 0x11250B: read_info_callback (userchan-tester.c:88) ==34== by 0x128450: request_complete (mgmt.c:320) ==34== by 0x128E95: can_read_data (mgmt.c:408) ==34== by 0x12C108: watch_callback (io-glib.c:173) ==34== by 0x48A304D: g_main_context_dispatch (in /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0.6400.6) ==34== by 0x48A33FF: ??? (in /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0.6400.6) ==34== by 0x48A36F2: g_main_loop_run (in /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0.6400.6) ==34== by 0x12DD88: mainloop_run (mainloop-glib.c:65) ==34== by 0x12E1BF: mainloop_run_with_signal (mainloop-notify.c:196) ==34== by 0x12D77F: tester_run (tester.c:1085) ==34== by 0x111DFB: main (userchan-tester.c:392) ==34== If you believe this happened as a result of a stack ==34== overflow in your program's main thread (unlikely but ==34== possible), you can try to increase the size of the ==34== main thread stack using the --main-stacksize= flag. ==34== The main thread stack size used in this run was 8388608. ==34== Valgrind errors: ==34== by 0x11250B: read_info_callback (userchan-tester.c:88) ==34== by 0x128450: request_complete (mgmt.c:320) ==34== by 0x128E95: can_read_data (mgmt.c:408) ==34== by 0x12C108: watch_callback (io-glib.c:173) ==34== by 0x48A304D: g_main_context_dispatch (in /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0.6400.6) ==34== by 0x48A33FF: ??? (in /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0.6400.6) ==34== by 0x48A36F2: g_main_loop_run (in /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0.6400.6) ==34== by 0x12DD88: mainloop_run (mainloop-glib.c:65) ==34== by 0x12E1BF: mainloop_run_with_signal (mainloop-notify.c:196) ==34== by 0x12D77F: tester_run (tester.c:1085) ==34== by 0x111DFB: main (userchan-tester.c:392) ==34== If you believe this happened as a result of a stack ==34== overflow in your program's main thread (unlikely but ==34== possible), you can try to increase the size of the ==34== main thread stack using the --main-stacksize= flag. ==34== The main thread stack size used in this run was 8388608.
==34==
==34== HEAP SUMMARY:
==34== in use at exit: 26,001 bytes in 92 blocks
==34== total heap usage: 222 allocs, 130 frees, 38,997 bytes allocated
==34==
==34== LEAK SUMMARY:
==34== definitely lost: 0 bytes in 0 blocks
==34== indirectly lost: 0 bytes in 0 blocks
==34== possibly lost: 0 bytes in 0 blocks
==34== still reachable: 26,001 bytes in 92 blocks
==34== suppressed: 0 bytes in 0 blocks
==34== Rerun with --leak-check=full to see details of leaked memory ==34==
==34== For lists of detected and suppressed errors, rerun with: -s ==34== ERROR SUMMARY: 51 errors from 3 contexts (suppressed: 0 from 0) Crash detected:
==34== suppressed: 0 bytes in 0 blocks
==34== Rerun with --leak-check=full to see details of leaked memory ==34==
==34== For lists of detected and suppressed errors, rerun with: -s ==34== ERROR SUMMARY: 51 errors from 3 contexts (suppressed: 0 from 0) Segmentation fault
Process 33 exited with status 139
reboot: Restarting system
reboot: machine restart
No test result found
https://github.com/bluez/bluetooth-next/pull/150
---
Regards,
Linux Bluetooth