Re: [uml-devel] [PATCH] um: Add mark_rodata_ro support.

From: Richard Weinberger
Date: Mon May 22 2017 - 15:37:29 EST


Thomas,

Am 22.05.2017 um 21:18 schrieb Thomas Meyer:
>
>> Am 22.05.2017 um 20:34 schrieb Richard Weinberger <richard@xxxxxx>:
>>
>> Thomas,
>>
>>> Am 22.05.2017 um 20:14 schrieb Thomas Meyer:
>>> It's purely cosmetic; to get rid of the boot message: "This architecture does not have kernel memory protection." in init/main.c
>>>
>>> Which isn't true for UML as all read only stuff should end up in a read only ELF section. Shouldn't it?
>>
>> Hmm, reading /proc/<pid of uml>/maps tells a different story on my host.
>> Did you check?
>
> No... I may should have done so...
>
> Okay, but it should be possible to mprotect those regions ?

Yes, it should.
Can you give it a try?

Thanks,
//richard