Re: Error reading /dev/mem

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

 



Hello Paddie,

On Wed, Sep 28, 2016 at 1:19 AM, Paddie O'Brien <paddieobrien@xxxxxxxxx> wrote:
> Hi,
>
> I have a system call that maps virtual to physical addresses. I have
> disabled CONFIG_STRICT_DEVMEM and am reading from /dev/mem to verify
> that the contents of the syscall-returned physical address match the
> contents of the virtual address. It works fine up to a point. Reading
> beyond byte 935321597 in /dev/mem throws a "bad address" error. Not
> sure it's relevant but I'm running on virtual box and specifying 1GB
> of RAM. Tried with 2GB of RAM and hit the same problem.
>
> Any idea why I can't read beyond the above point?

Can you send the output to cat /proc/iomem?

>
> Thanks.
>
> _______________________________________________
> Kernelnewbies mailing list
> Kernelnewbies@xxxxxxxxxxxxxxxxx
> https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies



[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux