Christophe Leroy 8b8a8f0ab3 powerpc/code-patching: Improve verification of patchability
Today, patch_instruction() assumes that it is called exclusively on
valid addresses, and only checks that it is not called on an init
address after init section has been freed.

Improve verification by calling kernel_text_address() instead.

kernel_text_address() already includes a verification of
initmem release.

Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/bc683d499a411730504b132a924de0ccc2ef1f79.1636971137.git.christophe.leroy@csgroup.eu
2021-11-25 11:25:32 +11:00
..
2021-11-05 08:15:46 -07:00
2021-09-08 15:32:35 -07:00
2021-04-08 21:17:42 +10:00
2020-08-11 14:13:24 -07:00
2021-08-10 23:14:55 +10:00
2020-10-07 22:34:47 +11:00
2020-12-05 21:49:52 +11:00
2021-03-24 14:09:29 +11:00
2021-03-24 14:09:30 +11:00
2020-06-05 12:39:30 -07:00
2021-07-01 11:06:03 -07:00
2021-07-02 12:54:34 -07:00
2021-02-09 01:09:44 +11:00
2019-07-13 16:08:36 -07:00
2019-07-13 16:08:36 -07:00
2021-09-03 22:54:12 +10:00
2018-05-25 12:04:43 +10:00
2020-07-27 00:01:32 +10:00
2021-07-08 11:48:23 -07:00
2018-07-30 22:48:21 +10:00
2019-05-01 16:45:05 +10:00
2021-08-23 19:28:20 +10:00
2020-12-04 01:01:19 +11:00
2021-02-09 00:10:50 +11:00