lkml.org 
[lkml]   [2014]   [Jun]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectOut-of-bounds access in vread_hpet()
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


\
 
 \ /
  Last update: 2014-06-10 09:01    [W:0.048 / U:0.036 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site