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-20 13:26:47 +11:00
2018-09-14 13:47:31 +10:00
2018-09-14 13:47:31 +10:00
2018-10-26 14:36:21 -07:00
2018-10-14 18:04:09 +11:00
2018-10-13 22:21:25 +11:00
2018-07-30 22:48:17 +10:00
2018-10-09 16:04:27 +11:00
2018-07-19 14:37:57 +10:00
2018-10-14 18:04:09 +11:00
2018-07-30 22:47:53 +10:00
2018-10-19 08:43:46 +02:00
2018-07-30 15:58:01 -05:00
2018-10-31 08:54:15 -07:00
2018-10-13 22:21:25 +11:00
2018-10-13 22:21:25 +11:00
2018-10-13 22:21:25 +11:00
2018-10-13 22:21:25 +11:00
2018-10-03 15:40:01 +10:00
2018-10-14 18:04:09 +11:00
2018-07-30 22:48:17 +10:00
2018-10-14 18:04:09 +11:00
2018-09-19 22:08:12 +10:00
2018-07-30 22:48:17 +10:00
2018-10-26 21:58:58 +11:00
2018-07-30 22:48:17 +10:00
2018-07-30 22:48:13 +10:00
2018-07-30 22:48:17 +10:00
2018-07-30 22:48:17 +10:00
2018-06-26 09:07:55 +02:00
2018-07-30 22:48:17 +10:00
2018-07-24 22:03:14 +10:00
2018-08-13 15:59:06 +10:00
2018-07-30 22:48:17 +10:00
2018-08-14 15:36:02 +10:00
2018-10-14 18:04:09 +11:00
2018-10-26 14:36:21 -07:00
2018-08-07 21:49:24 +10:00
2018-10-14 18:04:09 +11:00
2018-10-20 13:26:47 +11:00
2018-06-21 12:33:19 +02:00
2018-06-21 12:33:19 +02:00
2018-07-30 22:48:16 +10:00
2018-07-30 22:48:17 +10:00
2018-08-10 22:12:36 +10:00
2018-07-30 22:47:53 +10:00
2018-10-19 00:56:17 +11:00
2018-10-04 23:16:53 +10:00
2018-09-19 21:59:22 +10:00
2018-07-30 22:48:17 +10:00
2018-07-30 22:48:17 +10:00
2018-10-20 13:26:47 +11:00
2018-10-20 13:26:47 +11:00
2018-10-31 08:54:16 -07:00
2018-10-31 08:54:16 -07:00
2018-10-14 18:04:09 +11:00
2018-08-17 11:32:50 -07:00
2018-07-30 22:48:16 +10:00
2018-11-02 09:19:35 -07:00
2018-10-19 00:56:17 +11:00
2018-10-19 00:56:17 +11:00
2018-10-31 08:54:15 -07:00
2018-10-14 18:04:09 +11:00
2018-10-13 22:21:25 +11:00
2018-10-19 00:56:17 +11:00
2018-08-08 00:32:26 +10:00
2018-10-31 08:54:15 -07:00
2018-11-15 14:48:43 +11:00
2018-10-31 08:54:16 -07:00
2018-06-25 23:21:13 +09:00
2018-06-25 23:21:13 +09:00
2018-06-22 19:04:22 +02:00
2018-10-21 19:32:00 +11:00
2018-06-19 23:03:50 +10:00
2018-07-30 22:48:17 +10:00
2018-10-14 18:04:09 +11:00
2018-06-25 23:21:13 +09:00
2018-10-20 13:26:47 +11:00
2018-10-09 16:51:05 +11:00
2018-10-26 14:36:21 -07:00
2018-07-30 22:47:54 +10:00
2018-07-30 22:48:16 +10:00
2018-10-26 14:36:21 -07:00
2018-07-24 22:03:14 +10:00