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