x86: user_regset_view table fix for ia32 on 64-bit

The user_regset_view table for the 32-bit regsets on the 64-bit build had
the wrong sizes for the FP regsets. This bug had no user-visible effect
(just on kernel modules using the user_regset interfaces and the like).
But the fix is trivial and risk-free.

Signed-off-by: Roland McGrath <roland@redhat.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>

authored by Roland McGrath and committed by Ingo Molnar 1f465f4e afc85343

+5 -2
+5 -2
arch/x86/kernel/ptrace.c
··· 1303 #define genregs32_get genregs_get 1304 #define genregs32_set genregs_set 1305 1306 #endif /* CONFIG_X86_64 */ 1307 1308 #if defined CONFIG_X86_32 || defined CONFIG_IA32_EMULATION ··· 1318 }, 1319 [REGSET_FP] = { 1320 .core_note_type = NT_PRFPREG, 1321 - .n = sizeof(struct user_i387_struct) / sizeof(u32), 1322 .size = sizeof(u32), .align = sizeof(u32), 1323 .active = fpregs_active, .get = fpregs_get, .set = fpregs_set 1324 }, 1325 [REGSET_XFP] = { 1326 .core_note_type = NT_PRXFPREG, 1327 - .n = sizeof(struct user_i387_struct) / sizeof(u32), 1328 .size = sizeof(u32), .align = sizeof(u32), 1329 .active = xfpregs_active, .get = xfpregs_get, .set = xfpregs_set 1330 },
··· 1303 #define genregs32_get genregs_get 1304 #define genregs32_set genregs_set 1305 1306 + #define user_i387_ia32_struct user_i387_struct 1307 + #define user32_fxsr_struct user_fxsr_struct 1308 + 1309 #endif /* CONFIG_X86_64 */ 1310 1311 #if defined CONFIG_X86_32 || defined CONFIG_IA32_EMULATION ··· 1315 }, 1316 [REGSET_FP] = { 1317 .core_note_type = NT_PRFPREG, 1318 + .n = sizeof(struct user_i387_ia32_struct) / sizeof(u32), 1319 .size = sizeof(u32), .align = sizeof(u32), 1320 .active = fpregs_active, .get = fpregs_get, .set = fpregs_set 1321 }, 1322 [REGSET_XFP] = { 1323 .core_note_type = NT_PRXFPREG, 1324 + .n = sizeof(struct user32_fxsr_struct) / sizeof(u32), 1325 .size = sizeof(u32), .align = sizeof(u32), 1326 .active = xfpregs_active, .get = xfpregs_get, .set = xfpregs_set 1327 },