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

Bug#595805: Other problems with devmem2



devmem2 also crashes with a SIGBUS when it's requested to access
unaligned memory on machines that forbid it.  For example, on sparc:

  blackhole ok % sudo ./devmem 0x70000000 w
  /dev/mem opened.
  Memory mapped at address 0xf7fec000.
  Value at address 0x70000000 (0xf7fec000): 0x82106120
  blackhole ok % sudo ./devmem 0x70000001 w
  /dev/mem opened.
  Memory mapped at address 0xf7fc0000.
  zsh: bus error  sudo ./devmem 0x70000001 w

This should not be allowed to occur.  devmem2 should either forbid
unaligned access where the processor forbids it (and that means on
alpha, ia64, and other architectures where PR_SET_UNALIGN is
implemented, unless it's disabled) or perform a fix-up like the kernel
does in such situations.

-- 
brian m. carlson / brian with sandals: Houston, Texas, US
+1 832 623 2791 | http://www.crustytoothpaste.net/~bmc | My opinion only
OpenPGP: RSA v4 4096b: 88AC E9B2 9196 305B A994 7552 F1BA 225C 0223 B187

Attachment: signature.asc
Description: Digital signature


Reply to: