public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Out-of-bounds access in vread_hpet()
@ 2014-06-10  6:36 Richard Weinberger
  2014-06-10 16:13 ` Andy Lutomirski
  0 siblings, 1 reply; 2+ messages in thread
From: Richard Weinberger @ 2014-06-10  6:36 UTC (permalink / raw)
  To: Andy Lutomirski
  Cc: the arch/x86 maintainers, Peter Zijlstra,
	linux-kernel@vger.kernel.org

FYI:
________________________________________________________________________________________________________
*** CID 1222081:  Out-of-bounds access  (ARRAY_VS_SINGLETON)
/arch/x86/vdso/vclock_gettime.c: 38 in vread_hpet()
32     #ifdef CONFIG_HPET_TIMER
33     extern u8 hpet_page
34     	__attribute__((visibility("hidden")));
35
36     static notrace cycle_t vread_hpet(void)
37     {
>>>     CID 1222081:  Out-of-bounds access  (ARRAY_VS_SINGLETON)
>>>     Using "&hpet_page" as an array.  This might corrupt or misinterpret adjacent memory locations.
38     	return *(const volatile u32 *)(&hpet_page + HPET_COUNTER);
39     }
40     #endif
41
42     #ifndef BUILD_VDSO32
43

Thanks,
//richard

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

end of thread, other threads:[~2014-06-10 16:14 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-06-10  6:36 Out-of-bounds access in vread_hpet() Richard Weinberger
2014-06-10 16:13 ` Andy Lutomirski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox