Out of openat flag space

David Legault legault.david at gmail.com
Wed Apr 8 06:30:45 EDT 2015


On Wed, Apr 8, 2015 at 6:06 AM, Kernel Apprentice
<kernelapprentice at gmail.com> wrote:
>> On Wed, Apr 8, 2015 at 4:00 AM, Kernel Apprentice
> [snip]
>>> I guess this should be 0100000000?
>>
>> That value overflows an int of size 4 bytes.
>
> How so? That value equals 16,777,216 and fits perfectly well into a
> variable of type int. Is this something architecture-specific I'm
> missing here?
>
> Same goes for the value quoted below.
>

Yes you are right, I was mislead in thinking there was no room left
(and probably thinking too much in hex compared to octal which I don't
use often), but there is enough for a few more flags before we hit the
limit.



More information about the Kernelnewbies mailing list