Skip to content

Commit 11ad59a

Browse files
committed
Merge: s390/fpu: Re-add exception handling in load_fpu_state()
MR: https://gitlab.com/redhat/centos-stream/src/kernel/centos-stream-9/-/merge_requests/4937 JIRA: https://issues.redhat.com/browse/RHEL-39346 Fix a crash when running stress-ng --opcode 8 on a s390x system. Signed-off-by: Aristeu Rozanski <arozansk@redhat.com> Approved-by: Waiman Long <longman@redhat.com> Approved-by: Steve Best <sbest@redhat.com> Approved-by: Jay Shin <jaeshin@redhat.com> Approved-by: CKI KWF Bot <cki-ci-bot+kwf-gitlab-com@redhat.com> Merged-by: Lucas Zampieri <lzampier@redhat.com>
2 parents ee1d9d2 + f3bcd82 commit 11ad59a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/s390/kernel/fpu.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ void load_fpu_state(struct fpu *state, int flags)
113113
int mask;
114114

115115
if (flags & KERNEL_FPC)
116-
fpu_lfpc(&state->fpc);
116+
fpu_lfpc_safe(&state->fpc);
117117
if (!cpu_has_vx()) {
118118
if (flags & KERNEL_VXR_V0V7)
119119
load_fp_regs_vx(state->vxrs);

0 commit comments

Comments
 (0)