[coreboot] Patch merged into coreboot/master: 05cbce6 cbmem utility: Use mmap instead of fseek/fread

gerrit at coreboot.org gerrit at coreboot.org
Fri Jan 4 06:38:02 CET 2013


the following patch was just integrated into master:
commit 05cbce672e4a41bc55fc09b65aacd0872a756a5b
Author: Stefan Reinauer <stefan.reinauer at coreboot.org>
Date:   Thu Jan 3 14:30:33 2013 -0800

    cbmem utility: Use mmap instead of fseek/fread
    
    The kernel on Ubuntu 12.04LTS does not allow to use
    fseek/fread to read the coreboot table at the end of
    memory but will instead abort cbmem with a "Bad Address"
    error.
    
    Whether that is a security feature (some variation of
    CONFIG_STRICT_DEVMEM) or a kernel bug is not  yet clear,
    however using mmap works nicely.
    
    Change-Id: I796b4cd2096fcdcc65c1361ba990cd467f13877e
    Signed-off-by: Stefan Reinauer <reinauer at google.com>
    Reviewed-on: http://review.coreboot.org/2097
    Reviewed-by: Ronald G. Minnich <rminnich at gmail.com>
    Tested-by: build bot (Jenkins)

Build-Tested: build bot (Jenkins) at Thu Jan  3 23:55:16 2013, giving +1
Reviewed-By: Ronald G. Minnich <rminnich at gmail.com> at Thu Jan  3 23:53:35 2013, giving +2
See http://review.coreboot.org/2097 for details.

-gerrit



More information about the coreboot mailing list