Re: [RFC] pps: fixing CONFIG_COMPAT issues

2017-01-02 Thread Matt Ranostay
On Fri, Dec 23, 2016 at 7:04 AM, Rodolfo Giometti wrote: > On 12/22/16 21:39, Matt Ranostay wrote: >> >> >> What would be the best way to fix the padding issue without breaking >> userspace applications? Just fixing the alignment with explicit >> padding is of course the clean easy way, but bashin

Re: [RFC] pps: fixing CONFIG_COMPAT issues

2016-12-23 Thread Rodolfo Giometti
On 12/22/16 21:39, Matt Ranostay wrote: What would be the best way to fix the padding issue without breaking userspace applications? Just fixing the alignment with explicit padding is of course the clean easy way, but bashing the data in compat_ioctl would avoid breakage. Hi Matt, I've no exp

[RFC] pps: fixing CONFIG_COMPAT issues

2016-12-22 Thread Matt Ranostay
Rodolfo, I'd like to get some feedback on what would be an upstreamable patch series for correcting some issues with a 64-bit kernel and using a 32-bit userspace. First issue is the compat_ioctl has to be sort of hacked since the IOCTL defines are using pointer sizes in the macro generation (whic