Re: BUG: memcmp(): Accessing invalid memory location

From
Benjamin Herrenschmidt <benh@kernel.crashing.org>
Date
2019-01-25 00:57:29
Reply to
Chandan Rajendra, 2019-01-24
On Thu, 2019-01-24 at 19:48 +0530, Chandan Rajendra wrote:
quoted hunk ↗ jump to hunk
- Here we execute "LD rB,0,r4". In the case of this bug, r4 has an unaligned
  value and hence ends up accessing the "next" double word. The "next" double
  word happens to occur after the last page mapped into the kernel's address
  space and hence this leads to the previously listed oops.
  
This is interesting ... should we mark the last page of any piece of
mapped linear mapping as reserved to avoid that sort of issue ?

Nick ? Aneesh ?

Cheers,
Ben.

Thread (10 messages) 10 messages, 4 authors, last reply 2019-02-07
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help