Namespace file descriptors for 2.6.40
Subsystems (2)
Please pull the namespace file descriptor git tree from:
git://git.kernel.org/pub/scm/linux/kernel/git/ebiederm/linux-2.6-nsfd.git
In a hopeless quest to avoid conflicts when merging a new system call and wiring it up I have pulled in bits of net-next and the parisc tree. You have already pulled the net-next bits. The parisc bits in my tree are:
James Bottomley (4):
[PARISC] wire up fanotify syscalls
[PARISC] wire up clock_adjtime syscall
[PARISC] wire up the fhandle syscalls
[PARISC] wire up syncfs syscall
Meelis Roos (1):
[PARISC] fix pacache .size with new binutils
Since then I have gained conflicts in alpha and m68k. For alpha all that is needed is a simple incrementing of the syscall number in my tree and adding of my syscall to the end of the list.
For m68k please just delete all of the syscall entries the conflict will add to arch/m68k/kernel/entry_mm.S. The m68k tree has consolidated everything in arch/m68k/kernel/syscalltable.S
This tree adds the files /proc/<pid>/ns/net, /proc/<pid>/ns/ipc, /proc/<pid>/ns/uts that can be opened to refer to the namespaces of a process at the time those files are opened, and can be bind mounted to keep the specified namespace alive without a process.
This tree adds the setns system call that can be used to change the specified namespace of a process to the namespace specified by a system call.
This tree adds a new rtnetlink attribute that allows for moving a network device into a network namespace specified by a file descriptor.
Support for the other namespaces is planned but is not ready for 2.6.40.
These changes dramatically simplify what a userspace process has to do to keep a namespace alive, and to execute system calls in it.
The shortlog:
Stephen Rothwell (1):
net: fix get_net_ns_by_fd for !CONFIG_NET_NS
Eric W. Biederman (11):
ns: proc files for namespace naming policy.
ns: Introduce the setns syscall
ns proc: Add support for the network namespace.
ns proc: Add support for the uts namespace
ns proc: Add support for the ipc namespace
net: Allow setting the network namespace by fd
Merge commit '2e7bad5f34b5beed47542490c760ed26574e38ba' into HEAD Merge commit '7143b7d41218d4fc2ea33e6056c73609527ae687' into HEAD
ns: Wire up the setns system call
ns: Declare sys_setns in syscalls.h
ns proc: Return -ENOENT for a nonexistent /proc/self/ns/ entry.
The diffstat:
arch/alpha/include/asm/unistd.h | 3 +- arch/alpha/kernel/systbls.S | 1 + arch/arm/include/asm/unistd.h | 1 + arch/arm/kernel/calls.S | 1 + arch/avr32/include/asm/unistd.h | 3 +- arch/avr32/kernel/syscall_table.S | 1 + arch/blackfin/include/asm/unistd.h | 3 +- arch/blackfin/mach-common/entry.S | 1 + arch/cris/arch-v10/kernel/entry.S | 1 + arch/cris/arch-v32/kernel/entry.S | 1 + arch/cris/include/asm/unistd.h | 3 +- arch/frv/include/asm/unistd.h | 3 +- arch/frv/kernel/entry.S | 1 + arch/h8300/include/asm/unistd.h | 3 +- arch/h8300/kernel/syscalls.S | 1 + arch/ia64/include/asm/unistd.h | 3 +- arch/ia64/kernel/entry.S | 1 + arch/m32r/include/asm/unistd.h | 3 +- arch/m32r/kernel/syscall_table.S | 1 + arch/m68k/include/asm/unistd.h | 3 +- arch/m68k/kernel/syscalltable.S | 1 + arch/microblaze/include/asm/unistd.h | 3 +- arch/microblaze/kernel/syscall_table.S | 1 + arch/mips/include/asm/unistd.h | 15 ++- arch/mips/kernel/scall32-o32.S | 1 + arch/mips/kernel/scall64-64.S | 1 + arch/mips/kernel/scall64-n32.S | 1 + arch/mips/kernel/scall64-o32.S | 1 + arch/mn10300/include/asm/unistd.h | 3 +- arch/mn10300/kernel/entry.S | 1 + arch/parisc/include/asm/unistd.h | 10 ++- arch/parisc/kernel/pacache.S | 6 +- arch/parisc/kernel/sys_parisc32.c | 8 ++ arch/parisc/kernel/syscall_table.S | 7 + arch/powerpc/include/asm/systbl.h | 1 + arch/powerpc/include/asm/unistd.h | 3 +- arch/s390/include/asm/unistd.h | 3 +- arch/s390/kernel/syscalls.S | 1 + arch/sh/include/asm/unistd_32.h | 3 +- arch/sh/include/asm/unistd_64.h | 3 +- arch/sh/kernel/syscalls_32.S | 1 + arch/sh/kernel/syscalls_64.S | 1 + arch/sparc/include/asm/unistd.h | 3 +- arch/sparc/kernel/systbls_32.S | 2 +- arch/sparc/kernel/systbls_64.S | 4 +- arch/x86/ia32/ia32entry.S | 1 + arch/x86/include/asm/unistd_32.h | 3 +- arch/x86/include/asm/unistd_64.h | 2 + arch/x86/kernel/syscall_table_32.S | 1 + arch/xtensa/include/asm/unistd.h | 4 +- fs/proc/Makefile | 1 + fs/proc/base.c | 20 ++-- fs/proc/inode.c | 7 + fs/proc/internal.h | 18 +++ fs/proc/namespaces.c | 198 ++++++++++++++++++++++++++++++++ include/asm-generic/unistd.h | 4 +- include/linux/if_link.h | 1 + include/linux/proc_fs.h | 21 ++++ include/linux/syscalls.h | 1 + include/net/net_namespace.h | 1 + ipc/namespace.c | 37 ++++++ kernel/nsproxy.c | 42 +++++++ kernel/utsname.c | 39 ++++++ net/core/net_namespace.c | 65 +++++++++++ net/core/rtnetlink.c | 5 +- 65 files changed, 547 insertions(+), 46 deletions(-)
Thanks,
Eric
Quoted 5 lines · Eric W. Biederman
In a hopeless quest to avoid conflicts when merging a new system call and wiring it up I have pulled in bits of net-next and the parisc tree. You have already pulled the net-next bits. The parisc bits in my tree are:
Ok, this just means that I won't pull from you.
It's that simple. We don't do this. Ever.
Why the hell did you even worry about wiring up parisc system calls? That's not your job.
Linus
Quoted 9 lines · Linus Torvalds
Quoted 5 lines · Eric W. Biederman
In a hopeless quest to avoid conflicts when merging a new system call and wiring it up I have pulled in bits of net-next and the parisc tree. You have already pulled the net-next bits. The parisc bits in my tree are:
Ok, this just means that I won't pull from you.
Sure. I will try to be a little more patient and resend the pull request after James has sent the pull request for the parisc tree. At which point the only unique changes in my tree will be mine.
Quoted 1 line
It's that simple. We don't do this. Ever.
Hah. I seem to remember bits of pulling from non-rebasing trees being ok in well defined contexts. This seems like one. Especially when you have checked with the maintainers.
Plus all of the parisc bits in addition to being in the linux-next are trivially correct.
Quoted 2 lines
Why the hell did you even worry about wiring up parisc system calls? That's not your job.
Because in general it is the job of he who changes something to fix up every possible place.
Now maybe I went a little too far in trying to resolve the conflicts, but I did check with the David Miller and James Bottomley and they knew what I was doing.
Quite honestly adding system calls is a mess that know one seems to know how to do right. So I flipped a coin and took a stab at it.
Eric
Quoted 10 lines · Eric W. Biederman
Quoted 8 lines · Linus Torvalds
Quoted 5 lines · Eric W. Biederman
In a hopeless quest to avoid conflicts when merging a new system call and wiring it up I have pulled in bits of net-next and the parisc tree. You have already pulled the net-next bits. The parisc bits in my tree are:
Quoted 5 lines
Quoted 1 line
Ok, this just means that I won't pull from you.
Sure. I will try to be a little more patient and resend the pull request after James has sent the pull request for the parisc tree. At which point the only unique changes in my tree will be mine.
Right ... effectively you're running a postmerge tree, since you now depend on bits I have in the parisc tree.
Traditionally, the arch trees tend to go a bit later because they wait to see if there's any fallout from x86; but this time, I think it looks OK, so I've sent the pull request:
http://marc.info/?l=linux-parisc&m=130604805417277
As soon as that's in, you should be good to go.
James
Quoted 15 lines
Quoted 1 line
It's that simple. We don't do this. Ever.
Hah. I seem to remember bits of pulling from non-rebasing trees being ok in well defined contexts. This seems like one. Especially when you have checked with the maintainers.
Plus all of the parisc bits in addition to being in the linux-next are trivially correct.
Quoted 2 lines
Why the hell did you even worry about wiring up parisc system calls? That's not your job.
Because in general it is the job of he who changes something to fix up every possible place.
Quoted 6 lines
Now maybe I went a little too far in trying to resolve the conflicts, but I did check with the David Miller and James Bottomley and they knew what I was doing.
Quite honestly adding system calls is a mess that know one seems to know how to do right. So I flipped a coin and took a stab at it.
Right, the solution is reasonable and means linux-next doesn't have to carry a conflict resolution patch for this. It also means we agree on the syscall numbering ...
The only real mistake was not waiting for the merge sequence: the base trees have to go first before you can push a postmerge tree.
James
Quoted 2 lines · James Bottomley
Traditionally, the arch trees tend to go a bit later because they wait to see if there's any fallout from x86; [...]
Not really - most of the arch trees 'traditionally' went late even when the x86 tree itself was monolithic and was itself sent late in the merge window (with the notable exception of the powerpc tree).
Quoted 1 line
[...] but this time, I think it looks OK, [...]
That's not really a surprise, there hasn't been a serious 'problem' with the x86 tree for a long time, roughly since we switched to the finegrained Git topical split-up maintenance model about two years ago.
[ That split-up also means that there is no 'x86 tree' anymore as such: if you
check lkml we send roughly 20-30 independent trees in the merge window and have done that for the past ~10 kernel cycles. ]
In fact exactly *because* there's few problems with the x86 topic trees can we push them so soon: if problems were frequent then 1) we would not be able to be ready on time and 2) i suspect we'd be pulled in later in the window as well as a maintainer generally wants to pull low risk items first, high risk items last, to maximize the utilization of testing capacity.
I agree with Linus's notion in this thread though, a core kernel change should generally not worry about hooking up rare-arch system calls (concentrate on the architectures that get tested most) - those are better enabled gradually anyway.
Also, system call table conflicts are trivial to resolve. Merging in net-next to avoid such a conflict is like cracking a nut with a sledgehammer.
Thanks,
Ingo
Quoted 4 lines · Ingo Molnar
I agree with Linus's notion in this thread though, a core kernel change should generally not worry about hooking up rare-arch system calls (concentrate on the architectures that get tested most) - those are better enabled gradually anyway.
The way I read it he was complaining about my having parisc bits and asking for my branch to be merged before the parisc bits had been merged. Which I credit as a fair complaint. If I am going to depend on other peoples trees I should wait.
At the same time when I am busy looking for every possible source of trouble and putting code into net-next to detect pending conflicts, and when maintainers complain when I ask for review that my patches conflict with their patches. Being a contentious developer I am inclined to do something.
Now that the reality has sunk in that it means waiting for other peoples code to be merged before I request for my changes to be merged I don't think I will structure a tree that way again while I remember.
Quoted 2 lines
Also, system call table conflicts are trivial to resolve. Merging in net-next to avoid such a conflict is like cracking a nut with a sledgehammer.
Well I still have trauma from how nasty it was to test with syscall numbers continuing to change when I was working on the kexec_load system call.
As far as I can tell any one system call conflict on any one architecture is easy to resolve. Resolving a conflict on all architectures would amount to at least 50 files that need to be resolved that feels a bit more than trivial.
My gut feel says we should really implement an include/asm-generic/unistd-common.h to include all new system calls.
That way there would be only one file to touch instead of 50. Certainly it works for include/asm-generic/unistd.h for the architectures that use it. And all we really need is just a little abstraction on that concept.
Eric
Quoted 11 lines · Eric W. Biederman
Quoted 3 lines
Also, system call table conflicts are trivial to resolve. Merging in net-next to avoid such a conflict is like cracking a nut with a sledgehammer.
Well I still have trauma from how nasty it was to test with syscall numbers continuing to change when I was working on the
kexec_loadsystem call.As far as I can tell any one system call conflict on any one architecture is easy to resolve. Resolving a conflict on all architectures would amount to at least 50 files that need to be resolved that feels a bit more than trivial.
Of course - and the straightforward solution is to not do it but concentrate on the 2-3 archs you find to be the primary target of your patches. How many parisc systems are there on the planet, which in the future will be upgraded to both kernel and user-space running your new syscall for real? Less than 10? How many ARM and x86 systems?
Quoted 6 lines
My gut feel says we should really implement an
include/asm-generic/unistd-common.hto include all new system calls.That way there would be only one file to touch instead of 50. Certainly it works for
include/asm-generic/unistd.hfor the architectures that use it. And all we really need is just a little abstraction on that concept.
I suppose that could be tried, although in practice it would probably be somewhat complex due to the various compat syscall handling differences. So i guess this is one of the 'lets see how ugly/fragile it becomes' patches.
Thanks,
Ingo
Quoted 10 lines · Ingo Molnar
Quoted 6 lines · Eric W. Biederman
My gut feel says we should really implement an
include/asm-generic/unistd-common.hto include all new system calls.That way there would be only one file to touch instead of 50. Certainly it works for
include/asm-generic/unistd.hfor the architectures that use it. And all we really need is just a little abstraction on that concept.I suppose that could be tried, although in practice it would probably be somewhat complex due to the various compat syscall handling differences.
Can somebody fill us newcomers in on the arch-aeology of why some syscalls have different numbers on different archs? I know it's partially because some simply didn't implement some syscalls so there were numbering mismatches, but would it have been *that* hard to wire all of those skipped syscalls up to one stub 'return -ENOSYS'?
Quoted 9 lines · * [email protected] <[email protected]> wrote:
Quoted 8 lines · Ingo Molnar
Quoted 6 lines · Eric W. Biederman
My gut feel says we should really implement an
include/asm-generic/unistd-common.hto include all new system calls.That way there would be only one file to touch instead of 50. Certainly it works for
include/asm-generic/unistd.hfor the architectures that use it. And all we really need is just a little abstraction on that concept.
Quoted 8 lines
Quoted 2 lines
I suppose that could be tried, although in practice it would probably be somewhat complex due to the various compat syscall handling differences.
Can somebody fill us newcomers in on the arch-aeology of why some syscalls have different numbers on different archs? I know it's partially because some simply didn't implement some syscalls so there were numbering mismatches, but would it have been *that* hard to wire all of those skipped syscalls up to one stub 'return
-ENOSYS'?
It was done so for hysterical raisons mostly, and once a bad ABI is done it's very hard to undo it: beyond pushing the 'good ABI' you'd also still have to deal with the bad ABI for a decade or more.
So the background is that most architectures start out as quick concept prototypes, doing:
cp -a arch/existingarch arch/newarch
where 'existingarch' used to be arch/i386/ in the early days. Now i386 had a fair amount of x86 specific syscalls that were naturally removed from 'newarch'. Those created 'holes' in the numbers, which were then filled in with new syscalls - a nice idea in itself!
Also sometimes 'newarch' did a 'clean', compressed list of syscall numbers straight away, reordering syscalls. Once the 'quick prototype' hack starts working on real hardware, once the syscall numbers get into the C library and binutils it's very hard to ever transition away: you'd break the world!
An added source of noise that architectures tend to add new syscalls in a different order: some are more interesting to them - some less.
So these syscall table hacks done very early during an arch's lifetime stick around and create wild numbering noise in 20+ syscall tables:
[ slightly edited for readability ]
arch/alpha/include/asm/unistd.h: #define __NR_perf_event_open 493 arch/arm/include/asm/unistd.h: #define __NR_perf_event_open 364 arch/blackfin/include/asm/unistd.h: #define __NR_perf_event_open 369 arch/frv/include/asm/unistd.h: #define __NR_perf_event_open 336 arch/m68k/include/asm/unistd.h: #define __NR_perf_event_open 332 arch/microblaze/include/asm/unistd.h: #define __NR_perf_event_open 366 arch/mips/include/asm/unistd.h: #define __NR_perf_event_open 333 arch/mips/include/asm/unistd.h: #define __NR_perf_event_open 292 arch/mips/include/asm/unistd.h: #define __NR_perf_event_open 296 arch/mn10300/include/asm/unistd.h: #define __NR_perf_event_open 337 arch/parisc/include/asm/unistd.h: #define __NR_perf_event_open 318 arch/powerpc/include/asm/unistd.h: #define __NR_perf_event_open 319 arch/s390/include/asm/unistd.h: #define __NR_perf_event_open 331 arch/sh/include/asm/unistd_32.h: #define __NR_perf_event_open 336 arch/sh/include/asm/unistd_64.h: #define __NR_perf_event_open 364 arch/sparc/include/asm/unistd.h: #define __NR_perf_event_open 327 arch/x86/include/asm/unistd_32.h: #define __NR_perf_event_open 336 arch/x86/include/asm/unistd_64.h: #define __NR_perf_event_open 298
To fix this we'd create a new, clean offset defined by each architecture, and a generic enumeration of new syscalls.
This would make it much easier to add new, generic syscalls to all architectures indeed.
It would still leave compat syscall wrappers unaddressed though: those are often numbered differently and sometimes need arch specific wrapper entry functions, which then call the real generic syscall.
But at least the primary, 'native' syscall table of every arch could be kept rather fresh via generic enumeration.
Thanks,
Ingo
Quoted 72 lines · Ingo Molnar
Quoted 9 lines · * [email protected] <[email protected]> wrote:
Quoted 8 lines · Ingo Molnar
Quoted 6 lines · Eric W. Biederman
My gut feel says we should really implement an
include/asm-generic/unistd-common.hto include all new system calls.That way there would be only one file to touch instead of 50. Certainly it works for
include/asm-generic/unistd.hfor the architectures that use it. And all we really need is just a little abstraction on that concept.Quoted 8 lines
Quoted 2 lines
I suppose that could be tried, although in practice it would probably be somewhat complex due to the various compat syscall handling differences.
Can somebody fill us newcomers in on the arch-aeology of why some syscalls have different numbers on different archs? I know it's partially because some simply didn't implement some syscalls so there were numbering mismatches, but would it have been *that* hard to wire all of those skipped syscalls up to one stub 'return
-ENOSYS'?It was done so for hysterical raisons mostly, and once a bad ABI is done it's very hard to undo it: beyond pushing the 'good ABI' you'd also still have to deal with the bad ABI for a decade or more.
So the background is that most architectures start out as quick concept prototypes, doing:
cp -a
arch/existingarcharch/newarchwhere 'existingarch' used to be
arch/i386/in the early days. Now i386 had a fair amount of x86 specific syscalls that were naturally removed from 'newarch'. Those created 'holes' in the numbers, which were then filled in with new syscalls - a nice idea in itself!Also sometimes 'newarch' did a 'clean', compressed list of syscall numbers straight away, reordering syscalls. Once the 'quick prototype' hack starts working on real hardware, once the syscall numbers get into the C library and binutils it's very hard to ever transition away: you'd break the world!
An added source of noise that architectures tend to add new syscalls in a different order: some are more interesting to them - some less.
So these syscall table hacks done very early during an arch's lifetime stick around and create wild numbering noise in 20+ syscall tables:
[ slightly edited for readability ]
arch/alpha/include/asm/unistd.h: #define
__NR_perf_event_open493arch/arm/include/asm/unistd.h: #define__NR_perf_event_open364arch/blackfin/include/asm/unistd.h: #define__NR_perf_event_open369arch/frv/include/asm/unistd.h: #define__NR_perf_event_open336arch/m68k/include/asm/unistd.h: #define__NR_perf_event_open332arch/microblaze/include/asm/unistd.h: #define__NR_perf_event_open366arch/mips/include/asm/unistd.h: #define__NR_perf_event_open333arch/mips/include/asm/unistd.h: #define__NR_perf_event_open292arch/mips/include/asm/unistd.h: #define__NR_perf_event_open296arch/mn10300/include/asm/unistd.h: #define__NR_perf_event_open337arch/parisc/include/asm/unistd.h: #define__NR_perf_event_open318arch/powerpc/include/asm/unistd.h: #define__NR_perf_event_open319arch/s390/include/asm/unistd.h: #define__NR_perf_event_open331arch/sh/include/asm/unistd_32.h: #define__NR_perf_event_open336arch/sh/include/asm/unistd_64.h: #define__NR_perf_event_open364arch/sparc/include/asm/unistd.h: #define__NR_perf_event_open327arch/x86/include/asm/unistd_32.h: #define__NR_perf_event_open336arch/x86/include/asm/unistd_64.h: #define__NR_perf_event_open298To fix this we'd create a new, clean offset defined by each architecture, and a generic enumeration of new syscalls.
This would make it much easier to add new, generic syscalls to all architectures indeed.
Quoted 6 lines
It would still leave compat syscall wrappers unaddressed though: those are often numbered differently and sometimes need arch specific wrapper entry functions, which then call the real generic syscall.
But at least the primary, 'native' syscall table of every arch could be kept rather fresh via generic enumeration.
So we can start all over at offset 501 (alpha just started using 500) with a unified,
clean, and compressed list of syscalls? Or do we have some more other-os-compat syscalls around in this range?
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]
In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds
Quoted 6 lines · Geert Uytterhoeven
Quoted 2 lines
But at least the primary, 'native' syscall table of every arch could be kept rather fresh via generic enumeration.
So we can start all over at offset 501 (alpha just started using
500) with a unified, clean, and compressed list of syscalls? Or do we have some more other-os-compat syscalls around in this range?
No, that would leave a big hole in the syscall table of most architectures.
So what would be needed is for each architecture to define a 'generic syscall table base index', ARCH_SYSCALL_BASE or so, and the generic syscalls would be added for that.
Alpha would have 501, the others lower numbers.
The only general assumption we can rely on is that there's a range of not yet used syscall numbers starting at the end of the current syscall table.
Thanks,
Ingo
Quoted 11 lines · Ingo Molnar
Quoted 6 lines · Geert Uytterhoeven
Quoted 2 lines
But at least the primary, 'native' syscall table of every arch could be kept rather fresh via generic enumeration.
So we can start all over at offset 501 (alpha just started using
500) with a unified, clean, and compressed list of syscalls? Or do we have some more other-os-compat syscalls around in this range?No, that would leave a big hole in the syscall table of most architectures.
Sure, but we could (a) optimize for the case where the syscall number is larger than 500 and/or (b) drop support for syscall numbers smaller than 501, depending on a config option.
Quoted 9 lines
So what would be needed is for each architecture to define a 'generic syscall table base index',
ARCH_SYSCALL_BASEor so, and the generic syscalls would be added for that.Alpha would have 501, the others lower numbers.
The only general assumption we can rely on is that there's a range of not yet used syscall numbers starting at the end of the current syscall table.
Yep, that would work too.
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]
In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds
Quoted 10 lines · Geert Uytterhoeven
Quoted 9 lines · Ingo Molnar
Quoted 6 lines · Geert Uytterhoeven
Quoted 2 lines
But at least the primary, 'native' syscall table of every arch could be kept rather fresh via generic enumeration.
So we can start all over at offset 501 (alpha just started using
500) with a unified, clean, and compressed list of syscalls? Or do we have some more other-os-compat syscalls around in this range?
Quoted 6 lines
Quoted 2 lines
No, that would leave a big hole in the syscall table of most architectures.
Sure, but we could (a) optimize for the case where the syscall number is larger than 500 and/or (b) drop support for syscall numbers smaller than 501, depending on a config option.
Dunno why there is so much desire to complicate and break well-working ABIs while we have a 14+ MLOC kernel with so much code in it that is in dire need to be improved! :-)
Yes, we can reduce the syscall addition pain via the ARCH_SYSCALLS_BASE trick, but we should really forget about *removing* (or reordering) syscall numbers as the advantages are marginal at best while the disadvantages are huge.
Messy syscall tables are irreversibly ingrained in tens of millions of systems and there's nothing we can do about that. We can improve the future shape of syscall tables and we can try not to make new mistakes, and that's a large enough job in itself ;-)
Thanks,
Ingo
Quoted 14 lines · Ingo Molnar
Quoted 13 lines · Geert Uytterhoeven
Quoted 11 lines · Ingo Molnar
Quoted 6 lines · Geert Uytterhoeven
Quoted 2 lines
But at least the primary, 'native' syscall table of every arch could be kept rather fresh via generic enumeration.
So we can start all over at offset 501 (alpha just started using
500) with a unified, clean, and compressed list of syscalls? Or do we have some more other-os-compat syscalls around in this range?No, that would leave a big hole in the syscall table of most architectures.
Quoted 7 lines
Quoted 3 lines
Sure, but we could (a) optimize for the case where the syscall number is larger than 500 and/or (b) drop support for syscall numbers smaller than 501, depending on a config option.
Dunno why there is so much desire to complicate and break well-working ABIs while we have a 14+ MLOC kernel with so much code in it that is in dire need to be improved! :-)
Because we (think we) need less active brain cells to write emails that to code. So when we're not "active" enough to hack, we tend to respond to long winding getting off-topic email threads...
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]
In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds
Quoted 12 lines · Eric W. Biederman
Quoted 4 lines · Ingo Molnar
I agree with Linus's notion in this thread though, a core kernel change should generally not worry about hooking up rare-arch system calls (concentrate on the architectures that get tested most) - those are better enabled gradually anyway.
The way I read it he was complaining about my having parisc bits and asking for my branch to be merged before the parisc bits had been merged. Which I credit as a fair complaint. If I am going to depend on other peoples trees I should wait.
Quoted 5 lines
At the same time when I am busy looking for every possible source of trouble and putting code into net-next to detect pending conflicts, and when maintainers complain when I ask for review that my patches conflict with their patches. Being a contentious developer I am inclined to do something.
Right ... and the problem is that someone has to care, because the conflict will show up in linux-next. I think Stephen Rothwell would appreciate us making his life easier rather than leaving it to him to sort out the problems.
Quoted 3 lines
Now that the reality has sunk in that it means waiting for other peoples code to be merged before I request for my changes to be merged I don't think I will structure a tree that way again while I remember.
Right. This is quite a common occurrence in SCSI (mostly changes
entangled with block or libata). If you don't feel comfortable running a postmerge tree, just send me the bits and I'll do it (after all it works either way around: I can pull in the syscalls and depend on your tree rather than vice versa).
James
Quoted 13 lines · James Bottomley
Quoted 12 lines · Eric W. Biederman
Quoted 4 lines · Ingo Molnar
I agree with Linus's notion in this thread though, a core kernel change should generally not worry about hooking up rare-arch system calls (concentrate on the architectures that get tested most) - those are better enabled gradually anyway.
The way I read it he was complaining about my having parisc bits and asking for my branch to be merged before the parisc bits had been merged. Which I credit as a fair complaint. If I am going to depend on other peoples trees I should wait.
Quoted 4 lines
Quoted 4 lines
At the same time when I am busy looking for every possible source of trouble and putting code into net-next to detect pending conflicts, and when maintainers complain when I ask for review that my patches conflict with their patches. Being a contentious developer I am
^^^^^^^^^^^ conscientious
I didn't realize it was possible to make that typo.
Quoted 11 lines
Quoted 1 line
inclined to do something.
Right ... and the problem is that someone has to care, because the conflict will show up in linux-next. I think Stephen Rothwell would appreciate us making his life easier rather than leaving it to him to sort out the problems.
Quoted 3 lines
Now that the reality has sunk in that it means waiting for other peoples code to be merged before I request for my changes to be merged I don't think I will structure a tree that way again while I remember.
Quoted 5 lines
Right. This is quite a common occurrence in SCSI (mostly changes
entangled with block or libata). If you don't feel comfortable running a postmerge tree, just send me the bits and I'll do it (after all it works either way around: I can pull in the syscalls and depend on your tree rather than vice versa).
Well for the moment I don't see too many problems. I sent another pull request to Linus earlier today now that your changes are in. So I am hoping either Linus will pull my tree or someone will educate me on what he will Linus will accept.
Right now my tree is tested and in a good state. Heck I'm running it to send this email. So I am reluctant to change anything without clear feedback.
James when you refer to a postmerge tree what are the dynamics/semantics usually associated with that? Is this a tree that gets pulled a couple of times? Once with the non-conflicting bits. Another time when the bits it depends on have been merged? Or is this a tree that gets pulled after the merge window entirely?
Eric