Skip to contentSkip to conversation

Please apply commit 0828137e8f16 ("powerpc/64s: Don't init FSCR_DSCR in __init_FSCR()") to v4.14.y, v4.19.y, v5.4.y, v5.7.y

DISCUSSION Thadeu Lima de Souza Cascardo 3 participants 3 messages Aug 25, 2020 – Aug 26, 2020 Stable branch

lore
Share & tools
lore
#0 lore raw

After commit 912c0a7f2b5daa3cbb2bc10f303981e493de73bd ("powerpc/64s: Save FSCR to init_task.thread.fscr after feature init"), which has been applied to the referred branches, when userspace sets the user DSCR MSR, it won't be inherited or restored during context switch, because the facility unavailable interrupt won't trigger.

Applying 0828137e8f16721842468e33df0460044a0c588b ("powerpc/64s: Don't init FSCR_DSCR in __init_FSCR()") will fix it.

Cascardo.

maintainer
#1 lore raw
Quoted 8 lines · Thadeu Lima de Souza Cascardo

After commit 912c0a7f2b5daa3cbb2bc10f303981e493de73bd ("powerpc/64s: Save FSCR to init_task.thread.fscr after feature init"), which has been applied to the referred branches, when userspace sets the user DSCR MSR, it won't be inherited or restored during context switch, because the facility unavailable interrupt won't trigger.

Applying 0828137e8f16721842468e33df0460044a0c588b ("powerpc/64s: Don't init FSCR_DSCR in __init_FSCR()") will fix it.

Now queued up, thanks.

greg k-h

#2 lore raw
Quoted 9 lines · Greg KH
Quoted 8 lines · Thadeu Lima de Souza Cascardo

After commit 912c0a7f2b5daa3cbb2bc10f303981e493de73bd ("powerpc/64s: Save FSCR to init_task.thread.fscr after feature init"), which has been applied to the referred branches, when userspace sets the user DSCR MSR, it won't be inherited or restored during context switch, because the facility unavailable interrupt won't trigger.

Applying 0828137e8f16721842468e33df0460044a0c588b ("powerpc/64s: Don't init FSCR_DSCR in __init_FSCR()") will fix it.

Oops, thanks for catching it.

Quoted 1 line

Now queued up, thanks.

Thanks.

cheers