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:
Heiko Carstens 2026-08-03 19:21:42 +02:00 committed by Vasily Gorbik
parent 1f45a8663a
commit 46a8c8d142

View File

@ -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);