Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 2165291

Summary: Kernel panic (list_del corruption): hci_conn_cleanup
Product: Red Hat Enterprise Linux 9 Reporter: Jesse Chan <jc>
Component: kernelAssignee: D. Marlin <dmarlin>
kernel sub component: Bluetooth QA Contact: Vilém Maršík <vmarsik>
Status: CLOSED MIGRATED Docs Contact:
Severity: urgent    
Priority: unspecified CC: jc
Version: 9.1Keywords: MigratedToJIRA
Target Milestone: rcFlags: pm-rhel: mirror+
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-09-01 16:45:03 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Jesse Chan 2023-01-29 07:14:35 UTC
Description of problem:

```
[ 9700.520696] Bluetooth: hci0: Opcode 0x200d failed: -110
[ 9700.520719] Bluetooth: hci0: request failed to create LE connection: err -110
[ 9700.520746] list_del corruption, ffff8e6c04f2e000->prev is LIST_POISON2 (dead000000000122)
[ 9700.520772] ------------[ cut here ]------------
[ 9700.520773] kernel BUG at lib/list_debug.c:48!
[ 9700.520787] invalid opcode: 0000 [#1] PREEMPT SMP NOPTI
[ 9700.520802] CPU: 15 PID: 15736 Comm: kworker/u65:0 Kdump: loaded Tainted: P           OE    --------- ---  5.14.0-162.12.1.el9_1.x86_64 #1
[ 9700.520833] Hardware name: 
[ 9700.520856] Workqueue: hci0 hci_cmd_sync_work [bluetooth]
[ 9700.520894] RIP: 0010:__list_del_entry_valid.cold+0x45/0x47
[ 9700.520912] Code: fe ff 0f 0b 48 89 f2 48 89 fe 48 c7 c7 58 60 19 ad e8 01 f4 fe ff 0f 0b 48 89 fe 4c 89 c2 48 c7 c7 20 60 19 ad e8 ed f3 fe ff <0f> 0b 48 89 ee 48 c7 c7 c0 66 19 ad e8 dc f3 fe ff e9 7a ea ab ff
[ 9700.520957] RSP: 0018:ffffab329f19fd88 EFLAGS: 00010246
[ 9700.520972] RAX: 000000000000004e RBX: ffff8e6c04f2e000 RCX: 0000000000000027
[ 9700.520990] RDX: 0000000000000000 RSI: 0000000000000001 RDI: ffff8e8aaedd9ca0
[ 9700.521008] RBP: ffff8e6c00b20000 R08: 0000000000000000 R09: ffffab329f19fbd0
[ 9700.521026] R10: ffffab329f19fbc8 R11: ffffffffadbe9128 R12: 0000000000000092
[ 9700.521043] R13: ffff8e6c00b20000 R14: ffff8e6c04f2e014 R15: 0000000000000000
[ 9700.521061] FS:  0000000000000000(0000) GS:ffff8e8aaedc0000(0000) knlGS:0000000000000000
[ 9700.521082] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 9700.521097] CR2: 00007ffda571a2b8 CR3: 00000001071d2000 CR4: 0000000000350ee0
[ 9700.521115] Call Trace:
[ 9700.521123]  hci_conn_cleanup+0x33/0x180 [bluetooth]
[ 9700.521154]  hci_conn_del+0xd4/0x1c0 [bluetooth]
[ 9700.521182]  hci_le_conn_failed+0x165/0x200 [bluetooth]
[ 9700.521213]  create_le_conn_complete+0x45/0x70 [bluetooth]
[ 9700.521243]  hci_cmd_sync_work+0xc3/0x150 [bluetooth]
[ 9700.521274]  process_one_work+0x1e5/0x3c0
[ 9700.521287]  worker_thread+0x50/0x3b0
[ 9700.521298]  ? rescuer_thread+0x380/0x380
[ 9700.521310]  kthread+0x146/0x170
[ 9700.521320]  ? set_kthread_struct+0x50/0x50
[ 9700.521332]  ret_from_fork+0x1f/0x30
```


Version-Release number of selected component (if applicable):

5.14.0-162.12.1.el9_1.x86_64

How reproducible:

Repeatedly reconnect a BLE device

Steps to Reproduce:
1. Repeat sudo bluetoothctl connect <mac>

Actual results:

Kernel panic

Expected results:

Not panic

Additional info:

https://github.com/torvalds/linux/commit/9fa6b4cda3b414e990f008f45f9bcecbcb54d4d1 could be the fix.

Comment 1 Doug Ledford 2023-08-31 15:50:59 UTC
This bug is scheduled for migration to Jira.  When that happens, this bugzilla issue will be permanently closed with the status MIGRATED and all future interaction on this issue will need to happen in the Jira issue.  The new issue will be part of the RHEL project (a project for Jira only issues, which will sync once, then close the bugzilla issue and all future updates will happen in Jira), not part of the RHELPLAN project (which is part of the automated bugzilla->Jira mirroring and which allows ongoing updates to the bugzilla bug and syncs those updates over to Jira).

For making sure you have access to Jira in order to continue accessing this issue, follow one of the appropriate knowledge base articles:

KB0016394 - https://redhat.service-now.com/help?id=kb_article_view&sysparm_article=KB0016394
KB0016694 - https://redhat.service-now.com/help?id=kb_article_view&sysparm_article=KB0016694
KB0016774 - https://redhat.service-now.com/help?id=kb_article_view&sysparm_article=KB0016774

For general issues with Jira, open a ticket with rh-issues

Comment 2 RHEL Program Management 2023-09-01 16:43:42 UTC
Issue migration from Bugzilla to Jira is in process at this time. This will be the last message in Jira copied from the Bugzilla bug.

Comment 3 RHEL Program Management 2023-09-01 16:45:03 UTC
This BZ has been automatically migrated to the issues.redhat.com Red Hat Issue Tracker. All future work related to this report will be managed there.

To find the migrated issue, look in the "Links" section for a direct link to the new issue location. The issue key will have an icon of 2 footprints next to it, and begin with "RHEL-" followed by an integer.  You can also find this issue by visiting https://issues.redhat.com/issues/?jql= and searching the "Bugzilla Bug" field for this BZ's number, e.g. a search like:

"Bugzilla Bug" = 1234567

In the event you have trouble locating or viewing this issue, you can file an issue by sending mail to rh-issues.

Users watching this BZ may not be automatically added to the Jira ticket.  Be sure to add yourself to the Watchers field in the Jira issue if you desire to continue following this issue.

Comment 4 Doug Ledford 2023-09-08 17:30:47 UTC
Additional information on creating a Jira account to access the migrated issue can be found here:

https://access.redhat.com/articles/7032570