mirror of
https://github.com/torvalds/linux.git
synced 2026-09-23 22:14:03 +02:00
s390/mm: Add __context_unsafe() attribute to do_secure_storage_access()
Compiling do_secure_storage_access() with context analysis enabled results in this warning: arch/s390/mm/fault.c:472:3: warning: releasing spinlock 'fw.ptl' that was not held 472 | folio_walk_end(&fw, vma); Problem is that folio_walk_end() comes without the required context analysis attribute. Also the proper attribute cannot be added easily, since folio_walk_end() is a macro, and not a function. For the time being disable context analysis only for do_secure_storage_access() until this is resolved. Signed-off-by: Heiko Carstens <hca@linux.ibm.com> Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
This commit is contained in:
parent
1f45a8663a
commit
46a8c8d142
|
|
@ -406,6 +406,7 @@ NOKPROBE_SYMBOL(do_dat_exception);
|
|||
#if IS_ENABLED(CONFIG_KVM)
|
||||
|
||||
void do_secure_storage_access(struct pt_regs *regs)
|
||||
__context_unsafe(/* folio_walk_end() not instrumented */)
|
||||
{
|
||||
union teid teid = { .val = regs->int_parm_long };
|
||||
unsigned long addr = get_fault_address(regs);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user