Thread (7 messages) 7 messages, 3 authors, 2019-08-03

Re: [RFC PATCH v2] powerpc/xmon: restrict when kernel is locked down

From: Daniel Axtens <hidden>
Date: 2019-07-29 07:03:26

Hi Chris,
quoted
quoted
quoted
Remind me again why we need to clear breakpoints in integrity mode?
...
quoted
Integrity mode merely means we are aiming to prevent modifications to 
kernel memory. IMHO leaving existing breakpoints in place is fine as 
long as when we hit the breakpoint xmon is in read-only mode.
...
I think ajd is right. 

I think about it like this. There are 2 transitions:

 - into integrity mode

   Here, we need to go into r/o, but do not need to clear breakpoints.
   You can still insert breakpoints in readonly mode, so clearing them
   just makes things more irritating rather than safer.

 - into confidentiality mode

   Here we need to purge breakpoints and disable xmon completely.
Would you be able to send a v2 with these changes? (that is, not purging
breakpoints when entering integrity mode)

Regards,
Daniel
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help