Nicholas Piggin
66f93c5a02
powerpc/64: Fix kernel stack 16-byte alignment
...
Commit 4c2de74cc8 ("powerpc/64: Interrupts save PPR on stack rather
than thread_struct") changed sizeof(struct pt_regs) % 16 from 0 to 8,
which causes the interrupt frame allocation on kernel entry to put the
kernel stack out of alignment.
Quadword (16-byte) alignment for the stack is required by both the
64-bit v1 ABI (v1.9 § 3.2.2) and the 64-bit v2 ABI (v1.1 § 2.2.2.1).
Add a pad field to fix alignment, and add a BUILD_BUG_ON to catch this
in future.
Fixes: 4c2de74cc8 ("powerpc/64: Interrupts save PPR on stack rather than thread_struct")
Signed-off-by: Nicholas Piggin <npiggin@gmail.com >
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au >
2018-11-15 14:48:43 +11:00
..
2018-10-28 11:35:40 -07:00
2018-10-28 11:35:40 -07:00
2018-10-20 13:26:47 +11:00
2018-07-30 22:48:13 +10:00
2018-07-30 22:48:16 +10:00
2018-07-30 22:48:16 +10:00
2018-10-26 14:36:21 -07:00
2018-08-17 11:32:50 -07:00
2018-08-08 00:32:24 +10:00
2018-07-30 22:48:13 +10:00
2018-09-21 15:52:43 +02:00
2018-06-04 00:39:19 +10:00
2018-07-30 22:47:54 +10:00
2018-06-04 00:39:19 +10:00
2018-07-30 22:48:16 +10:00
2018-08-08 00:32:25 +10:00
2018-10-26 21:58:58 +11:00
2018-08-29 15:42:20 +02:00
2018-08-17 16:20:28 -07:00
2018-07-31 19:56:44 +10:00
2018-07-30 22:48:17 +10:00
2018-10-13 22:21:25 +11:00
2018-10-20 13:26:47 +11:00
2018-07-30 22:48:17 +10:00
2018-07-30 22:48:17 +10:00
2018-07-30 22:48:18 +10:00
2018-09-19 22:08:12 +10:00
2018-07-30 22:48:17 +10:00
2018-10-13 22:21:25 +11:00
2018-10-20 13:26:43 +11:00
2018-10-14 18:04:09 +11:00
2018-08-10 22:12:34 +10:00
2018-07-30 22:48:16 +10:00
2018-10-19 00:56:17 +11:00
2018-10-14 18:04:09 +11:00
2018-06-03 20:32:02 +10:00
2018-07-30 22:48:16 +10:00
2018-06-07 10:23:33 -07:00
2018-08-07 21:49:38 +10:00
2018-07-30 22:48:20 +10:00
2018-10-26 16:26:34 -07:00
2018-10-26 14:36:21 -07:00
2018-08-17 11:32:50 -07:00
2018-07-24 22:03:14 +10:00
2018-06-03 20:43:37 +10:00
2018-11-12 13:22:10 +11:00
2018-10-20 20:47:02 +11:00
2018-07-30 22:48:16 +10:00
2018-10-20 13:26:47 +11:00
2018-06-21 12:33:15 +02:00
2018-10-09 16:04:27 +11:00
2018-10-09 16:04:27 +11:00
2018-10-09 16:04:27 +11:00
2018-10-09 16:04:27 +11:00
2018-07-30 22:48:17 +10:00
2018-10-09 16:04:27 +11:00
2018-10-09 16:04:27 +11:00
2018-10-09 16:14:47 +11:00
2018-10-14 18:04:09 +11:00
2018-09-19 21:59:22 +10:00
2018-10-26 14:36:21 -07:00
2018-10-26 21:58:58 +11:00
2018-07-30 22:48:20 +10:00
2018-10-14 18:04:09 +11:00
2018-06-11 09:16:29 +09:00
2018-10-21 19:32:07 +11:00
2018-06-19 23:03:50 +10:00
2018-10-03 15:39:45 +10:00
2018-08-20 20:19:54 +10:00
2018-10-14 18:04:09 +11:00
2018-07-30 22:48:16 +10:00
2018-07-30 22:48:16 +10:00
2018-10-19 00:56:17 +11:00
2018-07-24 21:43:24 +10:00
2018-06-03 20:40:25 +10:00
2018-06-03 20:40:32 +10:00
2018-09-18 17:52:15 -05:00
2018-07-30 22:48:17 +10:00
2018-11-06 19:29:52 +11:00
2018-10-13 22:21:25 +11:00
2018-10-31 08:54:12 -07:00
2018-11-15 14:48:43 +11:00
2018-07-30 22:48:16 +10:00
2018-07-30 22:48:17 +10:00
2018-10-26 14:36:21 -07:00
2018-10-26 21:58:58 +11:00
2018-08-08 00:32:26 +10:00
2018-09-18 22:42:54 +10:00
2018-10-14 18:04:09 +11:00
2018-10-13 22:21:25 +11:00
2018-10-14 18:04:09 +11:00
2018-07-30 22:48:16 +10:00
2018-06-03 21:19:40 +10:00
2018-10-03 15:40:03 +10:00
2018-08-08 00:32:30 +10:00
2018-08-07 21:49:30 +10:00
2018-06-03 20:40:31 +10:00
2018-07-30 22:48:17 +10:00
2018-06-23 21:43:21 +10:00
2018-10-14 18:04:09 +11:00
2018-06-03 20:43:34 +10:00
2018-08-10 22:12:39 +10:00
2018-07-30 22:48:21 +10:00
2018-08-21 16:01:59 +10:00
2018-10-20 13:26:47 +11:00
2018-09-19 22:08:12 +10:00
2018-08-29 15:42:23 +02:00
2018-10-19 15:09:04 +11:00
2018-06-03 20:43:35 +10:00
2018-08-07 21:49:28 +10:00