Skip to content
Snippets Groups Projects
Commit 7cbdfd4c authored by NeilBrown's avatar NeilBrown Committed by Yongqiang Liu
Browse files

SUNRPC: use _bh spinlocking on ->transport_lock

stable inclusion
from stable-v4.19.258
commit bcab4d551a3d15bdf8efaac7b61420219bd154b6
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I5UQH4


CVE: NA

--------------------------------

Prior to Linux 5.3, ->transport_lock in sunrpc required the _bh style
spinlocks (when not called from a bottom-half handler).

When upstream 3848e96edf4788f772d83990022fa7023a233d83 was backported to
stable kernels, the spin_lock/unlock calls should have been changed to
the _bh version, but this wasn't noted in the patch and didn't happen.

So convert these lock/unlock calls to the _bh versions.

This patch is required for any stable kernel prior to 5.3 to which the
above mentioned patch was backported.  Namely 4.9.y, 4.14.y, 4.19.y.

Signed-off-by: default avatarNeilBrown <neilb@suse.de>
Reported-by: default avatarEugeniu Rosca <erosca@de.adit-jv.com>
Reviewed-by: default avatarEugeniu Rosca <erosca@de.adit-jv.com>
Tested-by: default avatarEugeniu Rosca <erosca@de.adit-jv.com>
Signed-off-by: default avatarYongqiang Liu <liuyongqiang13@huawei.com>
parent d2189b9e
No related branches found
No related tags found
No related merge requests found
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment