Bug 7911 - xhci: guard accesses to ep_state in xhci_endpoint_reset()
Summary: xhci: guard accesses to ep_state in xhci_endpoint_reset()
Status: NEW
Alias: None
Product: ANCK 4.19 Dev
Classification: ANCK
Component: X86 (show other bugs) X86
Version: unspecified
Hardware: All Linux
: P3-Medium S3-normal
Target Milestone: ---
Assignee: Artie Ding
QA Contact: shuming
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-01-15 18:36 UTC by LeoLiu-oc
Modified: 2024-06-20 16:11 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description LeoLiu-oc zhaoxin_group 2024-01-15 18:36:19 UTC
Description of problem:
Two read-modify-write cycles on ep->ep_state are not guarded by
xhci->lock. Fix these.
 
Fixes: f524946 ("xhci: Clear the host side toggle manually when endpoint is soft reset")
Cc: stable@vger.kernel.org
Signed-off-by: Jonathan Bell <jonathan@raspberrypi.com>
Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Link: https://lore.kernel.org/r/20211008092547.3996295-2-mathias.nyman@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

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


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:
Comment 1 小龙 admin 2024-01-15 18:39:28 UTC
The PR Link: https://gitee.com/anolis/cloud-kernel/pulls/2602
Comment 2 小龙 admin 2024-06-20 16:11:25 UTC
The PR Link: https://gitee.com/anolis/cloud-kernel/pulls/3378
Comment 3 小龙 admin 2024-06-20 16:11:28 UTC
The PR Link: https://gitee.com/anolis/cloud-kernel/pulls/3378