public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/2] Synchronize user layer access with system PM ops and error handling
@ 2021-01-01  5:44 Can Guo
  2021-01-01  5:44 ` [PATCH v2 1/2] scsi: ufs: Fix a possible NULL pointer issue Can Guo
  2021-01-01  5:44 ` [PATCH v2 2/2] scsi: ufs: Protect PM ops and err_handler from user access through sysfs Can Guo
  0 siblings, 2 replies; 8+ messages in thread
From: Can Guo @ 2021-01-01  5:44 UTC (permalink / raw)
  To: asutoshd, nguyenb, hongwus, ziqichen, rnayak, linux-scsi,
	kernel-team, saravanak, salyzyn, cang

This series contains two changes and it is based on 5.11/scsi-queue
The 1st change is just a minor fix.
The 2nd change is to synchronize user layer access through UFS sysfs nodes, so that system PM ops (suspend, resume and shutdown), error handling and async probe won't be disturbed by user layer access. The protection is only added to some sysfs nodes, not all of them.

Change since v1:
- Slightly updated the 2nd change, added a dedicated inline func to check hba->shutting_down in ufshcd.h. This inline func can be updated to add more rules for sysfs passage in future.

Can Guo (2):
  scsi: ufs: Fix a possible NULL pointer issue
  scsi: ufs: Protect PM ops and err_handler from user access through
    sysfs

 drivers/scsi/ufs/ufs-sysfs.c | 104 ++++++++++++++++++++++++++++++++++++-------
 drivers/scsi/ufs/ufshcd.c    |  49 ++++++++++++--------
 drivers/scsi/ufs/ufshcd.h    |  10 ++++-
 3 files changed, 128 insertions(+), 35 deletions(-)

-- 
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project.


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2021-01-16 17:28 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-01-01  5:44 [PATCH v2 0/2] Synchronize user layer access with system PM ops and error handling Can Guo
2021-01-01  5:44 ` [PATCH v2 1/2] scsi: ufs: Fix a possible NULL pointer issue Can Guo
2021-01-01 16:05   ` Bart Van Assche
2021-01-02 12:29     ` Can Guo
2021-01-02 13:10       ` Can Guo
2021-01-15 13:07         ` Adrian Hunter
2021-01-16 13:27           ` Can Guo
2021-01-01  5:44 ` [PATCH v2 2/2] scsi: ufs: Protect PM ops and err_handler from user access through sysfs Can Guo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox