DragonFlyBSD Kernel Audit
DF-2920 / run.fixed.h2.log
← back to finding ↓ download raw
=== DF-2920: beyond-EOF fault behavior on /home/maxx/df2920.h2.bin ===
S0: pread() beyond EOF
  pread @70000 returned 0 (errno 0) -- EOF enforced for read()
S1: fresh mmap created AFTER truncate
  (file size 66767, probe offsets 70000 < in-buffer, 200000 > object)
  read @70000 (page kept for last buffer)    : SIGBUS
  read @200000 (page beyond object size)     : SIGBUS
  read @66800 (past EOF, inside EOF page)    : value 0x00 (zero)
S2: pre-existing mapping across truncate
  read @70000 BEFORE truncate                : value 0x5a (PRE-TRUNCATE PATTERN!)
  read @70000 AFTER truncate                 : SIGBUS
S3: WRITE beyond EOF via fresh mmap after truncate
  write @70000 : SIGBUS
S4: strict race window (6 s): pattern@70000 observed with fstat-verified size < 70000
  cycles=64753 reader_iters=1238868 fstat_small=1 confirm-zero=0 confirm-SIGBUS=1 WINDOW-HITS(pattern twice while small)=0
H2_EXEC_OK