Re: [PATCH 05/10] comedi: get rid of compat_alloc_user_space() mess in COMEDI_INSN compat

2020-05-29 Thread Ian Abbott
On 29/05/2020 01:35, Al Viro wrote: From: Al Viro Just take copy_from_user() out of do_insn_ioctl() into the caller and have compat_insn() build a native version and pass it to do_insn_ioctl() directly. One difference from the previous commits is that the helper used to convert 32bit variant

[PATCH 05/10] comedi: get rid of compat_alloc_user_space() mess in COMEDI_INSN compat

2020-05-28 Thread Al Viro
From: Al Viro Just take copy_from_user() out of do_insn_ioctl() into the caller and have compat_insn() build a native version and pass it to do_insn_ioctl() directly. One difference from the previous commits is that the helper used to convert 32bit variant to native has two users -