Skip to contentSkip to conversation

direct p{ud,md,te}_val users

MODERATED Michal Hocko 2 participants 3 messages Aug 13, 2018 – Aug 14, 2018

lore
Share & tools
lore
#0 lore raw

Hi,
I have been chasing different issues today after our kernel got to QA finally. Long story short some of them were missing pieces or misbackports but one thing still stands out. My head is close to explode after the whole day so I might be easily missing something but pmd_large and p{md,ud}_trans_huge and potentially other users of p{ud,md,te}_val() checks correct? We are looking at pmd_val() directly without unmangling prot_none values.

I really hope I am missing something really here!

Signature · 2 lines
Michal Hocko
SUSE Labs
#1 lore raw

On Mon 13-08-18 18:02:00, speck for Michal Hocko wrote:
[...]

Quoted 1 line

I really hope I am missing something really here!

Yes I am. I completely forgot we have _[H]PAGE_CHG_MASK so we do not lose PSE and other interesting bits. This all is quite fragile though. I hope we never check for any of the bits we do not mask.

Signature · 2 lines
Michal Hocko
SUSE Labs
#2 lore raw
Quoted 6 lines · speck for Michal Hocko

On Mon 13-08-18 18:02:00, speck for Michal Hocko wrote:
[...]

Quoted 1 line

I really hope I am missing something really here!

Yes I am. I completely forgot we have _[H]PAGE_CHG_MASK so we do not lose PSE and other interesting bits.

I was indeed confused yesterday. I do not want to add more to the noise but just to not confuse more people, the above is not really relevant. It is PHYSICAL_PMD_PAGE_MASK that keeps flags intact.

Again sorry for all the noise.

Signature · 2 lines
Michal Hocko
SUSE Labs