lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  PHC 
Open Source and information security mailing list archives
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Date:   Fri, 17 Feb 2017 14:21:32 -0800
From:   lex000luthor <>
Subject: Userspace mmap to PCI is failing


I am trying to mmap a PCI device, but it fails with EINVAL.

fd = open("/dev/mem", O_RDWR | O_SYNC);
rv = mmap64(0, size, PROT_READ, MAP_SHARED, fd, pci_addr);

The pci_addr is the address obtained from lspci output which is a 64 bit
The pci_addr has a value of 0x121ffb000000, is that weird?

Kernel is 3.4.10 64 bit and User space is 32 bit.


Powered by blists - more mailing lists