[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <cc3ce5e484f041948cb008f7508c968b@AcuMS.aculab.com>
Date: Sun, 17 Jan 2021 18:31:36 +0000
From: David Laight <David.Laight@...LAB.COM>
To: 'Christoph Hellwig' <hch@....de>, Andy Lutomirski <luto@...nel.org>
CC: Arnd Bergmann <arnd@...nel.org>,
Ryan Houdek <sonicadvance1@...il.com>,
Catalin Marinas <catalin.marinas@....com>,
Will Deacon <will@...nel.org>,
Alexander Viro <viro@...iv.linux.org.uk>,
Arnd Bergmann <arnd@...db.de>,
Christian Brauner <christian.brauner@...ntu.com>,
Andrew Morton <akpm@...ux-foundation.org>,
Minchan Kim <minchan@...nel.org>,
Aleksa Sarai <cyphar@...har.com>,
Sargun Dhillon <sargun@...gun.me>,
Miklos Szeredi <mszeredi@...hat.com>,
Vincenzo Frascino <vincenzo.frascino@....com>,
Amanieu d'Antras <amanieu@...il.com>,
Willem de Bruijn <willemb@...gle.com>,
YueHaibing <yuehaibing@...wei.com>,
Xiaoming Ni <nixiaoming@...wei.com>,
Heiko Carstens <hca@...ux.ibm.com>,
"Eric W. Biederman" <ebiederm@...ssion.com>,
Joe Perches <joe@...ches.com>, Jan Kara <jack@...e.cz>,
David Rientjes <rientjes@...gle.com>,
"Arnaldo Carvalho de Melo" <acme@...hat.com>,
"David S. Miller" <davem@...emloft.net>,
Linux ARM <linux-arm-kernel@...ts.infradead.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
Linux FS-devel Mailing List <linux-fsdevel@...r.kernel.org>,
Linux API <linux-api@...r.kernel.org>,
linux-arch <linux-arch@...r.kernel.org>
Subject: RE: [PATCH] Adds a new ioctl32 syscall for backwards compatibility
layers
From: Christoph Hellwig
> Sent: 16 January 2021 09:07
...
> > I personally would like to see in_compat_syscall() go away,
> > but some other people (Hi, Christoph!) disagree, and usage seems to be
> > increasing, not decreasing.
>
> I'm absolutely against it going away. in_compat_syscall helped to
> remove so much crap compared to the explicit compat syscalls.
The only other real option is to pass the 'syscall type' explicitly
through all the layers into every piece of code that might need it.
So passing it as a 'parameter' that is (probably) current->syscall_type
does make sense.
It might even make sense have separate bits for the required emulations.
So you'd have separate bits for '32bit pointers' and '64bit items 32bit
aligned' (etc).
David
-
Registered Address Lakeside, Bramley Road, Mount Farm, Milton Keynes, MK1 1PT, UK
Registration No: 1397386 (Wales)
Powered by blists - more mailing lists