|
Re: comments on PMP enhancements
I wrote:
Allen Baum:
By the "M & L proposal" I meant Tariq Kurd's proposal, the one I was
speaking of. (On your own cheat sheet from yesterday, the tab for this
proposal is labeled "sep_M&L". But I
I wrote:
Allen Baum:
By the "M & L proposal" I meant Tariq Kurd's proposal, the one I was
speaking of. (On your own cheat sheet from yesterday, the tab for this
proposal is labeled "sep_M&L". But I
|
By
John Hauser
·
#57
·
|
|
Re: comments on PMP enhancements
I wrote:
Allen Baum:
Sorry, I meant that, under the existing standard, locked PMP entries
are intended to deny some or all accesses from M mode to a memory
region. The RISC-V standard says, "In
I wrote:
Allen Baum:
Sorry, I meant that, under the existing standard, locked PMP entries
are intended to deny some or all accesses from M mode to a memory
region. The RISC-V standard says, "In
|
By
John Hauser
·
#56
·
|
|
Re: comments on PMP enhancements
Jonathan Behrens wrote:
Because the PMP table is explicitly searched in order for a match,
locked entries must always be at the head of the table to be truly
effective. When software wants to add a
Jonathan Behrens wrote:
Because the PMP table is explicitly searched in order for a match,
locked entries must always be at the head of the table to be truly
effective. When software wants to add a
|
By
John Hauser
·
#55
·
|
|
Re: [RISC-V] [tech-tee] [RISC-V] [tech-privileged] comments on PMP enhancements
You need to be careful with terminology. I am assuming that
"denying access to Mmode" means
"denying the ability of M-mode to change an entry" , and not
"denying access to the region
You need to be careful with terminology. I am assuming that
"denying access to Mmode" means
"denying the ability of M-mode to change an entry" , and not
"denying access to the region
|
By
Allen Baum
·
#54
·
|
|
Re: comments on PMP enhancements
Remind me, did all the other proposals have a way to prevent the S/U-mode entries from being reconfigured to M-mode ones later? Locking M-mode entries doesn’t do a ton if more can be added later
Remind me, did all the other proposals have a way to prevent the S/U-mode entries from being reconfigured to M-mode ones later? Locking M-mode entries doesn’t do a ton if more can be added later
|
By
Jonathan Behrens <behrensj@...>
·
#53
·
|
|
Re: comments on PMP enhancements
Hello all,
Concerning the proposal from Tariq Kurd (Huawei) with separate M and L
bits in PMP configuration bytes, in my view there are two details
that should disqualify it from consideration, at
Hello all,
Concerning the proposal from Tariq Kurd (Huawei) with separate M and L
bits in PMP configuration bytes, in my view there are two details
that should disqualify it from consideration, at
|
By
John Hauser
·
#52
·
|
|
Re: [RISC-V] [tech-tee] [RISC-V] [tech-privileged] enhanced PMP with four security levels
I'm going to suggest removing the DMC bit and replacing it with "any region locked".
This is a lot less expensive than a configuration bit, and I'd argue it gives you the functionality you need.
I'm going to suggest removing the DMC bit and replacing it with "any region locked".
This is a lot less expensive than a configuration bit, and I'd argue it gives you the functionality you need.
|
By
Allen Baum
·
#51
·
|
|
Re: [RISC-V] [tech-tee] [RISC-V] [tech-privileged] enhanced PMP with four security levels
Thanks Allen and John,
I found John's version easier to read and I have added an extra sheet "permissions" to it showing the effect of the 4 different schemes. I give an idea of how to program the
Thanks Allen and John,
I found John's version easier to read and I have added an extra sheet "permissions" to it showing the effect of the 4 different schemes. I give an idea of how to program the
|
By
Mr Tariq Kurd <tariq.kurd@...>
·
#50
·
|
|
Re: enhanced PMP with four security levels
Allen Baum wrote:
I've attached my own version, somewhat simplified. (I edited Allen's
file with LibreOffice on Linux. Hope it comes through clear for
everyone.)
Since the MML and MSL variables
Allen Baum wrote:
I've attached my own version, somewhat simplified. (I edited Allen's
file with LibreOffice on Linux. Hope it comes through clear for
everyone.)
Since the MML and MSL variables
|
By
John Hauser
·
#49
·
|
|
Re: enhanced PMP with four security levels
Here is my visual cheat sheet showing the 3 proposals
Here is my visual cheat sheet showing the 3 proposals
|
By
Allen Baum
·
#48
·
|
|
Re: enhanced PMP with four security levels
Hello all,
I've created a more convenient PDF document of my proposal to give our
enhanced PMP four security levels, available here:
http://www.jhauser.us/RISCV/Hauser_enhancedPMP-0.2.pdf
The
Hello all,
I've created a more convenient PDF document of my proposal to give our
enhanced PMP four security levels, available here:
http://www.jhauser.us/RISCV/Hauser_enhancedPMP-0.2.pdf
The
|
By
John Hauser
·
#47
·
|
|
Re: [RISC-V] [tech-tee] [RISC-V] [tech-privileged] comments on PMP enhancements
Hi Nick, John,
Here's my proposal for adding two fields to the proposed MSECCFG CSR: DPL and DMC.
This proposal assumes that the programming model for the permissions is sufficient without adding
Hi Nick, John,
Here's my proposal for adding two fields to the proposed MSECCFG CSR: DPL and DMC.
This proposal assumes that the programming model for the permissions is sufficient without adding
|
By
Mr Tariq Kurd <tariq.kurd@...>
·
#46
·
|
|
Re: comments on PMP enhancements
Hello Jonathan,
Page tables aren't vastly easier to modify, we are talking about doing
page table walking, finding the pte you want to modify and then modify
the one used by the hardware and also the
Hello Jonathan,
Page tables aren't vastly easier to modify, we are talking about doing
page table walking, finding the pte you want to modify and then modify
the one used by the hardware and also the
|
By
mick@...
·
#45
·
|
|
Re: comments on PMP enhancements
Hi Allen,
Since it looks like you're responding to me, I'll try to answer.
There are now three proposals that I know of. The original and most
visible is the task group's working proposal, which
Hi Allen,
Since it looks like you're responding to me, I'll try to answer.
There are now three proposals that I know of. The original and most
visible is the task group's working proposal, which
|
By
John Hauser
·
#44
·
|
|
Re: comments on PMP enhancements
I read the proposed changes (some of them at least) as reducing the cost of security, not so much adding security or making it more secure.
E.g. having a default rule costs a single bit rather using
I read the proposed changes (some of them at least) as reducing the cost of security, not so much adding security or making it more secure.
E.g. having a default rule costs a single bit rather using
|
By
Allen Baum
·
#43
·
|
|
Re: comments on PMP enhancements
Coming from an operating systems background, the concern about locking PMP entries being absolutely necessary for security comes across as overblown. I've never heard of a platform that provided
Coming from an operating systems background, the concern about locking PMP entries being absolutely necessary for security comes across as overblown. I've never heard of a platform that provided
|
By
Jonathan Behrens <behrensj@...>
·
#42
·
|
|
Re: comments on PMP enhancements
Hello John,
Στις 2020-02-14 22:56, John Hauser έγραψε:
So does the original PMP spec and the group's proposal.
There are people already using PMP as-is in production, providing TEE and
Hello John,
Στις 2020-02-14 22:56, John Hauser έγραψε:
So does the original PMP spec and the group's proposal.
There are people already using PMP as-is in production, providing TEE and
|
By
mick@...
·
#41
·
|
|
Re: [RISC-V] [tech-tee] comments on PMP enhancements
Hello Tariq,
Στις 2020-02-17 11:02, Mr Tariq Kurd έγραψε:
I'm referring to your original proposal of a bit that when set allows for locked rules to be removed / edited (DPL) temporarily. I
Hello Tariq,
Στις 2020-02-17 11:02, Mr Tariq Kurd έγραψε:
I'm referring to your original proposal of a bit that when set allows for locked rules to be removed / edited (DPL) temporarily. I
|
By
mick@...
·
#40
·
|
|
Re: comments on PMP enhancements
Two quick comments:
- I am assuming that this is a proposal to replace the existing "enhanced" PMP proposal, rather than an "enhanced-enhanced" PMP proposal.
- do we ever need to allow Write_Only
Two quick comments:
- I am assuming that this is a proposal to replace the existing "enhanced" PMP proposal, rather than an "enhanced-enhanced" PMP proposal.
- do we ever need to allow Write_Only
|
By
Allen Baum
·
#39
·
|
|
Re: [RISC-V] [tech-tee] comments on PMP enhancements
Hi Nick,
Thanks for the feedback, and I understand your arguments.
When you say "It" above are you talking about:
1. my original proposal (DMC and DPL)
2. my updated proposal (M-bit in each PMP
Hi Nick,
Thanks for the feedback, and I understand your arguments.
When you say "It" above are you talking about:
1. my original proposal (DMC and DPL)
2. my updated proposal (M-bit in each PMP
|
By
Mr Tariq Kurd <tariq.kurd@...>
·
#38
·
|