On 4/27/20 2:10 PM, Christoph Hellwig wrote: > On Mon, Apr 27, 2020 at 02:08:25PM -0600, Jens Axboe wrote: >> Possibly... Totally untested, maybe I forgot to mention that :-) >> I'll check. >> >> The question was more "in principle" if this was a viable approach. The >> whole cmsg_type and cmsg_level is really a mess. > > FYI, I have a series in the works to sort out the set_fs and > casting to/from __user mess around msg_control. It needs a little > more work, but hopefully I can find some time the next days. That'd be great - looking at it right now, I'd need to refactor ____sys_sendmsg (and ditto receive side) to poke at cmsg before allowing us to proceed. I'll wait for you to post your series and base it on top of that, if appropriate. -- Jens Axboe