Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1281574 > unrolled thread
| Started by | Yury Norov <ynorov@caviumnetworks.com> |
|---|---|
| First post | 2015-12-02 11:10 +0100 |
| Last post | 2015-12-02 12:10 +0100 |
| Articles | 2 — 2 participants |
Back to article view | Back to linux.kernel
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: [PATCH v6 14/19] arm64:ilp32: add sys_ilp32.c and a separate table (in entry.S) to use it Yury Norov <ynorov@caviumnetworks.com> - 2015-12-02 11:10 +0100
Re: [PATCH v6 14/19] arm64:ilp32: add sys_ilp32.c and a separate table (in entry.S) to use it Arnd Bergmann <arnd@arndb.de> - 2015-12-02 12:10 +0100
| From | Yury Norov <ynorov@caviumnetworks.com> |
|---|---|
| Date | 2015-12-02 11:10 +0100 |
| Subject | Re: [PATCH v6 14/19] arm64:ilp32: add sys_ilp32.c and a separate table (in entry.S) to use it |
| Message-ID | <qBcwh-5Mp-11@gated-at.bofh.it> |
On Tue, Nov 17, 2015 at 10:57:52PM +0100, Arnd Bergmann wrote: It looks, all them are needed. > > +asmlinkage long compat_sys_mmap2_wrapper(void); > > +#define sys_mmap2 compat_sys_mmap2_wrapper This wrapper checks alignement of pgoff, if page sise is greater than 4K > > +asmlinkage long compat_sys_fstatfs64_wrapper(void); > > +#define compat_sys_fstatfs64 compat_sys_fstatfs64_wrapper > > +asmlinkage long compat_sys_statfs64_wrapper(void); > > +#define compat_sys_statfs64 compat_sys_statfs64_wrapper This two hacks fix an alignment issue. I didn't check all details but it looks like sizeof(compat_statfs64) is different in kernel and library. And this size is passed as 2nd argument to compat syscalls. We can handle it in userspace but I don't see any advantage. All this handlers are shared between ilp32 and aarch32. This is best we came up, as it doesn't add new hacks, but reuses old ones... -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
[toc] | [next] | [standalone]
| From | Arnd Bergmann <arnd@arndb.de> |
|---|---|
| Date | 2015-12-02 12:10 +0100 |
| Subject | Re: [PATCH v6 14/19] arm64:ilp32: add sys_ilp32.c and a separate table (in entry.S) to use it |
| Message-ID | <qBdsn-6oc-33@gated-at.bofh.it> |
| In reply to | #1281574 |
On Wednesday 02 December 2015 13:01:53 Yury Norov wrote: > On Tue, Nov 17, 2015 at 10:57:52PM +0100, Arnd Bergmann wrote: > > It looks, all them are needed. > > > > +asmlinkage long compat_sys_mmap2_wrapper(void); > > > +#define sys_mmap2 compat_sys_mmap2_wrapper > > This wrapper checks alignement of pgoff, if page sise is greater than > 4K Ok. > > > +asmlinkage long compat_sys_fstatfs64_wrapper(void); > > > +#define compat_sys_fstatfs64 compat_sys_fstatfs64_wrapper > > > +asmlinkage long compat_sys_statfs64_wrapper(void); > > > +#define compat_sys_statfs64 compat_sys_statfs64_wrapper > > This two hacks fix an alignment issue. I didn't check all details but > it looks like sizeof(compat_statfs64) is different in kernel and library. > And this size is passed as 2nd argument to compat syscalls. We can > handle it in userspace but I don't see any advantage. Ah, so it's a hack for OABI compatibility. I wonder if we can just drop the wrapper and the ARCH_PACK_COMPAT_STATFS64 definition on arm64 as we don't handle OABI user space anyway. Maybe it's too risky, when there is someone that added the packing in user space on EABI after all. > All this handlers are shared between ilp32 and aarch32. > This is best we came up, as it doesn't add new hacks, but reuses old > ones... Ok. Arnd -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web