All of lore.kernel.org
 help / color / mirror / Atom feed
* arm64: copy_from_user access the last page of ddr has problem on 4.14 kernel
@ 2019-01-16  3:25 Kassey
  2019-01-16 16:48   ` Will Deacon
  0 siblings, 1 reply; 10+ messages in thread
From: Kassey @ 2019-01-16  3:25 UTC (permalink / raw)
  To: linux-kernel, willy, will.deacon; +Cc: kassey

Hi, Will and team:

   we met a issue when copy_from_user to access the last page of DDR
on 4.14 kenrel, below is the detail steps,
   can you help to suggest if there is know fix or debug something ?

1. we mmap ( in userspace)  a region of  phy address that is not
continous  but include the last page of ddr

  for example our ddr end is 0x200000000
  the last page is fall in below addr:
  0x1fffff000  to  0x200000000

2. we using copy_from_user to copy these mmap address to kernel buffer

3. and we find everytime when trying to copy_from_user  the last page
in phy of ddr,
    the dst kernel buffer is looks overwrite by some same patten start
with "mmap" in this last page ,but the src in the last page of ddr is
still correct.

is there any know issue for copy_from_user to accces the last page of
phy ddr mmaped by userspace  ?



-- 
Best regards
Kassey

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

end of thread, other threads:[~2019-02-11 11:35 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-01-16  3:25 arm64: copy_from_user access the last page of ddr has problem on 4.14 kernel Kassey
2019-01-16 16:48 ` Will Deacon
2019-01-16 16:48   ` Will Deacon
2019-01-17  1:57   ` Kassey
2019-01-17  1:57     ` Kassey
2019-01-20  2:08     ` Will Deacon
2019-01-20  2:08       ` Will Deacon
2019-02-01  9:46       ` kassey
2019-02-11 11:34         ` Will Deacon
2019-02-11 11:34           ` Will Deacon

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.