linux-m68k.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] fix missing handling of __user in nommu's uaccess()
@ 2020-05-28 20:25 Luc Van Oostenryck
  2020-05-28 20:25 ` [PATCH 1/2] m68k,nommu: add missing __user in uaccess' __ptr() macro Luc Van Oostenryck
  2020-05-28 20:25 ` [PATCH 2/2] m68k,nommu: fix implicit cast from __user in __{get,put}_user_asm() Luc Van Oostenryck
  0 siblings, 2 replies; 4+ messages in thread
From: Luc Van Oostenryck @ 2020-05-28 20:25 UTC (permalink / raw)
  To: Geert Uytterhoeven, Greg Ungerer
  Cc: linux-m68k, linux-kernel, Luc Van Oostenryck

I received a bug report for an unrelated patch when used with m68k-nommu.
It appears that the origin of the problem is that __get_user() and
__put_user() doesn't handle correctly __user. These 2 patches fix this.

Note: this is only minimaly tested but is quite straightforward and
      since this only change __user annotation it will not change the
      generated code.

Luc Van Oostenryck (2):
  m68k,nommu: add missing __user in uaccess' __ptr() macro
  m68k,nommu: fix implicit cast from __user in __{get,put}_user_asm()

 arch/m68k/include/asm/uaccess_no.h | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

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

end of thread, other threads:[~2020-05-29 13:21 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-28 20:25 [PATCH 0/2] fix missing handling of __user in nommu's uaccess() Luc Van Oostenryck
2020-05-28 20:25 ` [PATCH 1/2] m68k,nommu: add missing __user in uaccess' __ptr() macro Luc Van Oostenryck
2020-05-28 20:25 ` [PATCH 2/2] m68k,nommu: fix implicit cast from __user in __{get,put}_user_asm() Luc Van Oostenryck
2020-05-29 13:21   ` Greg Ungerer

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).