Generic Linux architectural discussions
 help / color / mirror / Atom feed
* io_uring vs in_compat_syscall()
@ 2020-07-20  6:10 Christoph Hellwig
  2020-07-20  6:10 ` Christoph Hellwig
  2020-07-20 16:36 ` Jens Axboe
  0 siblings, 2 replies; 19+ messages in thread
From: Christoph Hellwig @ 2020-07-20  6:10 UTC (permalink / raw)
  To: Jens Axboe
  Cc: linux-arch-u79uwXL29TY76Z2rM5mHXA,
	linux-api-u79uwXL29TY76Z2rM5mHXA,
	linux-kernel-u79uwXL29TY76Z2rM5mHXA,
	io-uring-u79uwXL29TY76Z2rM5mHXA

Hi Jens,

I just found a (so far theoretical) issue with the io_uring submission
offloading to workqueues or threads.  We have lots of places using
in_compat_syscall() to check if a syscall needs compat treatmenet.
While the biggest users is iocttl(), we also have a fair amount of
places using in_compat_task() in read and write methods, and these
will not do the wrong thing when used with io_uring under certain
conditions.  I'm not sure how to best fix this, except for making sure
in_compat_syscall() returns true one way or another for these cases.

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

end of thread, other threads:[~2020-07-22  8:39 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-07-20  6:10 io_uring vs in_compat_syscall() Christoph Hellwig
2020-07-20  6:10 ` Christoph Hellwig
2020-07-20 16:36 ` Jens Axboe
2020-07-20 16:36   ` Jens Axboe
2020-07-20 16:58   ` Andy Lutomirski
     [not found]     ` <BACE670C-6A65-4D86-BC5F-A7EA267C3140-kltTT9wpgjJwATOyAt5JVQ@public.gmane.org>
2020-07-20 17:02       ` Jens Axboe
2020-07-20 17:02         ` Jens Axboe
2020-07-20 17:28         ` Andy Lutomirski
2020-07-20 17:28           ` Andy Lutomirski
2020-07-21  7:07           ` Christoph Hellwig
     [not found]             ` <20200721070709.GB11432-jcswGhMUV9g@public.gmane.org>
2020-07-21 14:31               ` Andy Lutomirski
2020-07-21 14:31                 ` Andy Lutomirski
     [not found]                 ` <CALCETrXWZBXZuCeRYvYY8AWG51e_P3bOeNeqc8zXPLOTDTHY0g-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2020-07-21 14:34                   ` Christoph Hellwig
2020-07-21 14:34                     ` Christoph Hellwig
     [not found]                     ` <20200721143412.GA8099-jcswGhMUV9g@public.gmane.org>
2020-07-21 17:25                       ` Andy Lutomirski
2020-07-21 17:25                         ` Andy Lutomirski
     [not found]                         ` <CALCETrWMQpKe7jqw2t39yn4HgGhGTSEFGK6MPR4wPs=tBBhjbg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2020-07-22  6:30                           ` Christoph Hellwig
2020-07-22  6:30                             ` Christoph Hellwig
2020-07-22  8:39                             ` David Laight

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