Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1595587
| From | "Dmitry V. Levin" <ldv@altlinux.org> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: Compat 32-bit syscall entry from 64-bit task!? |
| Date | 2017-03-09 01:00 +0100 |
| Message-ID | <tiTER-5f2-1@gated-at.bofh.it> (permalink) |
| References | (1 earlier) <inkBA-8L-25@gated-at.bofh.it> <inlHj-1X5-11@gated-at.bofh.it> <inmal-2Rz-3@gated-at.bofh.it> <inovv-6H7-9@gated-at.bofh.it> <inBVL-4wm-5@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
[Multipart message — attachments visible in raw view] - view raw
Hi, On Thu, Jan 26, 2012 at 07:03:43PM +0100, Denys Vlasenko wrote: > Hi Linus, > > On Thu, Jan 26, 2012 at 4:47 AM, Linus Torvalds > <torvalds@linux-foundation.org> wrote: > >> Please look at strace source, get_scno() function, where > >> it reads syscall no and parameters. Let's see.... > >> - POWERPC: has 32-bit and 64-bit mode > >> - X86_64: has 32-bit and 64-bit mode > >> - IA64: has i386-compat mode > >> - ARM: has more than one ABI > >> - SPARC: has 32-bit and 64-bit mode > >> > >> Do you want to re-invent a different arch-specific way to report > >> syscall type for each of these arches? > > > > I think an arch-specific one is better than trying to make some > > generic one that is messy. > > > > As you say, many architectures have multiple system call ABIs. > > > > But they tend to be very *different* issues. They can be about > > multiple ABI's, as you mention, and even when they *look* similar > > (32-bit vs 64-bit ABI's) they are actually totally different issues. > > [skip] > > I don't have a particular attachment to my solution, > and I think we already talk about this problem for > far too long. > > Looks like nobody is _strongly_ opposed to your patch > which uses a few bits in eflags to report bitness > of the x86 syscall. > > Lets just do that already. If you commit it to kernel git, > I will immediately change strace accordingly. Is there any progress with this (or any alternative) solution? I see the kernel side has changed a bit, and the strace part is in a better shape than 5 years ago (although I'm biased of course), but I don't see any kernel interface that would allow strace to reliably recognize this 0x80 case. -- ldv
Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread
Re: Compat 32-bit syscall entry from 64-bit task!? "Dmitry V. Levin" <ldv@altlinux.org> - 2017-03-09 01:00 +0100 Re: Compat 32-bit syscall entry from 64-bit task!? Andrew Lutomirski <luto@mit.edu> - 2017-03-09 05:50 +0100
csiph-web