bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] gnumach - Restrict pci io cfg ports to one process


From: Damien Zammit
Subject: Re: [PATCH] gnumach - Restrict pci io cfg ports to one process
Date: Sun, 11 Nov 2018 13:24:00 +1100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1

On 11/11/18 12:51, Samuel Thibault wrote:
> Damien Zammit, le dim. 11 nov. 2018 12:43:07 +1100, a ecrit:
>> +#define IS_IN_PROTECTED_RANGE(from, to) \
>> +  ( ( ( from <= PCI_CFG1_START ) && ( to >= PCI_CFG1_END ) ) || \
> 
> That should be from <= END && to >= BEGIN, shouldn't it?

Well, in my mind I was only thinking about whole overlaps.
Your idea handles partial overlap too, so yes!

See attached, thanks.

Damien

Attachment: 0001-gnumach-restrict-access-to-PCI-cfg.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]