qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH 0/4] ds1338 I2C RTC+NVRAM: various fixes
@ 2012-09-24 18:33 Peter Maydell
  2012-09-24 18:33 ` [Qemu-devel] [PATCH 1/4] hw/ds1338: Fix mishandling of register pointer Peter Maydell
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Peter Maydell @ 2012-09-24 18:33 UTC (permalink / raw)
  To: qemu-devel; +Cc: patches

Clang's static analyzer drew my attention to the mishandling of the
register pointer in ds1338_send(); one thing led to another and I fixed
a few other things while I was there.

There seems a reasonable chance that the overrun of nvram[] is
guest-exploitable, but I assume nobody treats realview or versatilepb
models as a security boundary...

Peter Maydell (4):
  hw/ds1338: Fix mishandling of register pointer
  hw/ds1338: Recapture current time when register pointer wraps around
  hw/ds1338: Remove 'now' field from state struct
  hw/ds1338: Implement state save/restore

 hw/ds1338.c |  123 +++++++++++++++++++++++++++++++++++++++++------------------
 1 file changed, 86 insertions(+), 37 deletions(-)

-- 
1.7.9.5

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2012-10-04 16:48 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-09-24 18:33 [Qemu-devel] [PATCH 0/4] ds1338 I2C RTC+NVRAM: various fixes Peter Maydell
2012-09-24 18:33 ` [Qemu-devel] [PATCH 1/4] hw/ds1338: Fix mishandling of register pointer Peter Maydell
2012-09-24 18:33 ` [Qemu-devel] [PATCH 2/4] hw/ds1338: Recapture current time when register pointer wraps around Peter Maydell
2012-09-24 18:33 ` [Qemu-devel] [PATCH 3/4] hw/ds1338: Remove 'now' field from state struct Peter Maydell
2012-09-24 18:33 ` [Qemu-devel] [PATCH 4/4] hw/ds1338: Implement state save/restore Peter Maydell
2012-10-04 15:25 ` [Qemu-devel] [PATCH 0/4] ds1338 I2C RTC+NVRAM: various fixes Peter Maydell

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).