Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge tag 'arm64-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux

Pull arm64 fix from Catalin Marinas:
"arm64/ptrace fix to use the correct SVE layout based on the saved
floating point state rather than the TIF_SVE flag. The latter may be
left on during syscalls even if the SVE state is discarded"

* tag 'arm64-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux:
arm64/ptrace: Use saved floating point state type to determine SVE layout

+1 -4
+1 -4
arch/arm64/kernel/ptrace.c
··· 761 761 { 762 762 unsigned int vq; 763 763 bool active; 764 - bool fpsimd_only; 765 764 enum vec_type task_type; 766 765 767 766 memset(header, 0, sizeof(*header)); ··· 776 777 case ARM64_VEC_SVE: 777 778 if (test_tsk_thread_flag(target, TIF_SVE_VL_INHERIT)) 778 779 header->flags |= SVE_PT_VL_INHERIT; 779 - fpsimd_only = !test_tsk_thread_flag(target, TIF_SVE); 780 780 break; 781 781 case ARM64_VEC_SME: 782 782 if (test_tsk_thread_flag(target, TIF_SME_VL_INHERIT)) 783 783 header->flags |= SVE_PT_VL_INHERIT; 784 - fpsimd_only = false; 785 784 break; 786 785 default: 787 786 WARN_ON_ONCE(1); ··· 787 790 } 788 791 789 792 if (active) { 790 - if (fpsimd_only) { 793 + if (target->thread.fp_type == FP_STATE_FPSIMD) { 791 794 header->flags |= SVE_PT_REGS_FPSIMD; 792 795 } else { 793 796 header->flags |= SVE_PT_REGS_SVE;