Re: + elf-loader-crash-while-zero-filling-bss.patch added to -mm tree

2008-02-13 Thread Daniel Jacobowitz
r it some of your zero-initialized variables won't be zero initialized at all. In the linked message, set_brk is passed elf_bss so its actual arguments are set_brk (0xa3801, 0x000a4ec8). It should map one page. 0xa3801 should be an already mapped page, and clear_user should succeed in clearing i

Re: + elf-loader-crash-while-zero-filling-bss.patch added to -mm tree

2008-02-13 Thread Daniel Jacobowitz
, set_brk is passed elf_bss so its actual arguments are set_brk (0xa3801, 0x000a4ec8). It should map one page. 0xa3801 should be an already mapped page, and clear_user should succeed in clearing it. -- Daniel Jacobowitz CodeSourcery -- To unsubscribe from this list: send the line unsubscribe linux

Re: PAGE_SIZE Availability Inconsistency

2007-03-08 Thread Daniel Jacobowitz
vax - but don't quote me on that, I had to guess from the configure script. -- Daniel Jacobowitz CodeSourcery - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordom

Re: PAGE_SIZE Availability Inconsistency

2007-03-08 Thread Daniel Jacobowitz
on that, I had to guess from the configure script. -- Daniel Jacobowitz CodeSourcery - To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http

Re: Contents of core dumps

2007-01-03 Thread Daniel Jacobowitz
he kernel is fixed, verify it, and then probably adjust the GDB test to pass on either patched or unpatched kernels. -- Daniel Jacobowitz CodeSourcery - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majo

Re: Contents of core dumps

2007-01-03 Thread Daniel Jacobowitz
is fixed, verify it, and then probably adjust the GDB test to pass on either patched or unpatched kernels. -- Daniel Jacobowitz CodeSourcery - To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to [EMAIL PROTECTED] More majordomo info at http

Contents of core dumps (was: Re: fs/binfmt_elf.c:maydump())

2007-01-02 Thread Daniel Jacobowitz
e->i_nlink == 0; > > - /* If it hasn't been written to, don't write it out */ > - if (!vma->anon_vma) > + /* If it is executable and hasn't been written to, > + * don't write it out. > + */ > + if ((vma->vm_flags & VM_EXEC) && !

[PATCH] Re: [Bug 7210] New: Clone flag CLONE_PARENT_TIDPTR leaves invalid results in memory.

2007-01-02 Thread Daniel Jacobowitz
From: Daniel Jacobowitz <[EMAIL PROTECTED]> Do not implement CLONE_PARENT_SETTID until we know that clone will succeed. If we do it too early NPTL's data structures temporarily reference a non-existant TID. Signed-off-by: Daniel Jacobowitz <[EMAIL PROTECTED]> --- On Tue, Sep 26, 2

[PATCH] Re: [Bug 7210] New: Clone flag CLONE_PARENT_TIDPTR leaves invalid results in memory.

2007-01-02 Thread Daniel Jacobowitz
From: Daniel Jacobowitz [EMAIL PROTECTED] Do not implement CLONE_PARENT_SETTID until we know that clone will succeed. If we do it too early NPTL's data structures temporarily reference a non-existant TID. Signed-off-by: Daniel Jacobowitz [EMAIL PROTECTED] --- On Tue, Sep 26, 2006 at 08:59:15PM

Contents of core dumps (was: Re: fs/binfmt_elf.c:maydump())

2007-01-02 Thread Daniel Jacobowitz
it out */ - if (!vma-anon_vma) + /* If it is executable and hasn't been written to, + * don't write it out. + */ + if ((vma-vm_flags VM_EXEC) !vma-anon_vma) return 0; return 1; -- Daniel Jacobowitz CodeSourcery - To unsubscribe from

Re: 2.6.13 SMP on AMD Athlon64 X2 + FC4: PS/2 keyboard b0rken; taskset/sched_setaffinity() saves the day!

2005-09-06 Thread Daniel Jacobowitz
nd this _seems_ to fix it too: > > taskset -p 1 `ps axo comm,pid|awk '$1=="X"{print $2}'` > > I haven't seen this problem on the console. This is probably the same problem as the earlier one you reported. If you take a look at bugzilla, you'll see that the normal manif

Re: 2.6.13 SMP on AMD Athlon64 X2 + FC4: PS/2 keyboard b0rken; taskset/sched_setaffinity() saves the day!

2005-09-06 Thread Daniel Jacobowitz
haven't seen this problem on the console. This is probably the same problem as the earlier one you reported. If you take a look at bugzilla, you'll see that the normal manifestation is messed up key repeat rates... -- Daniel Jacobowitz CodeSourcery, LLC - To unsubscribe from this list: send

Re: 2.6.13 SMP on Athlon X2: nanosleep returning waay to soon, clock_gettime(CLOCK_REALTIME...) proceeding too fast

2005-09-04 Thread Daniel Jacobowitz
> 15 251 + 0 = 251 > 16 147 + 1 = 148 <== > 17 0 + 252 = 252 Hmm, very interesting. -- Daniel Jacobowitz CodeSourcery, LLC - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAI

Re: 2.6.13 SMP on Athlon X2: nanosleep returning waay to soon, clock_gettime(CLOCK_REALTIME...) proceeding too fast

2005-09-04 Thread Daniel Jacobowitz
Hmm, very interesting. -- Daniel Jacobowitz CodeSourcery, LLC - To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http

Fix 32-bit thread debugging on x86_64

2005-07-31 Thread Daniel Jacobowitz
I'd expect, although there are still a handful of kernel-related failures (vsyscall related?). Signed-off-by: Daniel Jacobowitz <[EMAIL PROTECTED]> diff -r -p -u z/linux-2.6.11/arch/x86_64/ia32/ptrace32.c linux-2.6.11/arch/x86_64/ia32/ptrace32.c --- linux-2.6.12.3.orig/arch/x86_64/ia32/ptra

Fix 32-bit thread debugging on x86_64

2005-07-31 Thread Daniel Jacobowitz
I'd expect, although there are still a handful of kernel-related failures (vsyscall related?). Signed-off-by: Daniel Jacobowitz [EMAIL PROTECTED] diff -r -p -u z/linux-2.6.11/arch/x86_64/ia32/ptrace32.c linux-2.6.11/arch/x86_64/ia32/ptrace32.c --- linux-2.6.12.3.orig/arch/x86_64/ia32/ptrace32.c

Re: [PATCH] x86-64: ptrace ia32 BP fix

2005-07-05 Thread Daniel Jacobowitz
done something clever to the value of %ebp. -- Daniel Jacobowitz CodeSourcery, LLC - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

Re: [PATCH] x86-64: ptrace ia32 BP fix

2005-07-05 Thread Daniel Jacobowitz
match that of i386 kernels. Wouldn't this to botch a debugger which supported both backtracing and PTRACE_SYSCALL, when stopped in a syscall? We have unwind information for the VDSO and it's not going to tell us that the kernel has done something clever to the value of %ebp. -- Daniel

Re: strange incremental patch size [2.6.12-rc2 to 2.6.12-rc3]

2005-04-21 Thread Daniel Jacobowitz
37MB worth of patch-code ? I would expect something about > 2MB but 40MB ? Try interdiff -p1? -- Daniel Jacobowitz CodeSourcery, LLC - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at h

Re: strange incremental patch size [2.6.12-rc2 to 2.6.12-rc3]

2005-04-21 Thread Daniel Jacobowitz
? Try interdiff -p1? -- Daniel Jacobowitz CodeSourcery, LLC - To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

Re: [PATCH x86_64] Live Patching Function on 2.6.11.7

2005-04-17 Thread Daniel Jacobowitz
> *word* size... While true, this is easily fixable. There is even an interface precedent on OpenBSD (and possibly other platforms as well). -- Daniel Jacobowitz CodeSourcery, LLC - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to

Re: [PATCH] i386 & x86_64: Live Patching Funcion on 2.6.11.7

2005-04-17 Thread Daniel Jacobowitz
Even with hundreds of kilobytes of patch, I have trouble imagining this takes a substantial amount of time. -- Daniel Jacobowitz CodeSourcery, LLC - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http

Re: [PATCH] i386 & x86_64: Live Patching Funcion on 2.6.11.7

2005-04-17 Thread Daniel Jacobowitz
mprotect in a debugged process, also. -- Daniel Jacobowitz CodeSourcery, LLC - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

Re: [PATCH] i386 x86_64: Live Patching Funcion on 2.6.11.7

2005-04-17 Thread Daniel Jacobowitz
. -- Daniel Jacobowitz CodeSourcery, LLC - To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

Re: [PATCH] i386 x86_64: Live Patching Funcion on 2.6.11.7

2005-04-17 Thread Daniel Jacobowitz
of patch, I have trouble imagining this takes a substantial amount of time. -- Daniel Jacobowitz CodeSourcery, LLC - To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [PATCH x86_64] Live Patching Function on 2.6.11.7

2005-04-17 Thread Daniel Jacobowitz
... While true, this is easily fixable. There is even an interface precedent on OpenBSD (and possibly other platforms as well). -- Daniel Jacobowitz CodeSourcery, LLC - To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to [EMAIL PROTECTED] More

Re: [RFC] FUSE permission modell (Was: fuse review bits)

2005-04-11 Thread Daniel Jacobowitz
emon is running) makes no > sense, does it? That argument doesn't make much sense to me. But we're at the end of my useful contributions to this discussion; I'm going to be quiet now and hope some folks who know more about filesystems have more useful responses. -- Daniel Jacobowitz CodeSourcery, LLC - To

Re: [RFC] FUSE permission modell (Was: fuse review bits)

2005-04-11 Thread Daniel Jacobowitz
group/other? Sure, it makes your tarfs a little less mapped onto the tar file. But that's one of the recurring objections to implementing archivers as filesystems: the ownership in the archive is _not_ relevant to the mounted copy. -- Daniel Jacobowitz CodeSourcery, LLC - To unsubscribe from th

Re: [RFC] FUSE permission modell (Was: fuse review bits)

2005-04-11 Thread Daniel Jacobowitz
eems not unreasonable - provided the > administrator can delete the directory (which is possible with > detachable mount points). Because then they could mount over /tmp. "and (is not sticky || is owned by the user)" may be more appropriate. -- Daniel Jacobowitz CodeSourcery, LLC

Re: [RFC] FUSE permission modell (Was: fuse review bits)

2005-04-11 Thread Daniel Jacobowitz
l need to know anything about this? Why can't the userspace library present the permissions appropriately to the kernel? I'm going to be pretty confused if I see a mode 666 file that I can't even read. So will various programs. Except for the allow_root bits, I think that having userspace handle

Re: [RFC] FUSE permission modell (Was: fuse review bits)

2005-04-11 Thread Daniel Jacobowitz
n think of plenty of uses for this. > 4) Access should not be further restricted for the owner of the > mount, even if permission bits, uid or gid would suggest > otherwise Similar questions. -- Daniel Jacobowitz CodeSourcery, LLC - To unsubscribe from this list: send the line &quo

Re: [RFC] FUSE permission modell (Was: fuse review bits)

2005-04-11 Thread Daniel Jacobowitz
for this. 4) Access should not be further restricted for the owner of the mount, even if permission bits, uid or gid would suggest otherwise Similar questions. -- Daniel Jacobowitz CodeSourcery, LLC - To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message

Re: [RFC] FUSE permission modell (Was: fuse review bits)

2005-04-11 Thread Daniel Jacobowitz
would cover both objections. Does this answer your questions? More or less. -- Daniel Jacobowitz CodeSourcery, LLC - To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo

Re: [RFC] FUSE permission modell (Was: fuse review bits)

2005-04-11 Thread Daniel Jacobowitz
the administrator can delete the directory (which is possible with detachable mount points). Because then they could mount over /tmp. and (is not sticky || is owned by the user) may be more appropriate. -- Daniel Jacobowitz CodeSourcery, LLC - To unsubscribe from this list: send the line

Re: [RFC] FUSE permission modell (Was: fuse review bits)

2005-04-11 Thread Daniel Jacobowitz
: the ownership in the archive is _not_ relevant to the mounted copy. -- Daniel Jacobowitz CodeSourcery, LLC - To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [RFC] FUSE permission modell (Was: fuse review bits)

2005-04-11 Thread Daniel Jacobowitz
doesn't make much sense to me. But we're at the end of my useful contributions to this discussion; I'm going to be quiet now and hope some folks who know more about filesystems have more useful responses. -- Daniel Jacobowitz CodeSourcery, LLC - To unsubscribe from this list: send the line

Re: Linux-2.6.11 can't disable CAD

2005-04-08 Thread Daniel Jacobowitz
_REBOOT_CMD_RESTART. LINUX_REBOOT_CMD_CAD_OFF (RB_DISABLE_CAD, 0). CAD is disabled. This means that the CAD keystroke will cause a SIGINT signal to be sent to init (process 1), whereupon this process may decide upon a proper action

Re: [Fwd: Re: connector is missing in 2.6.12-rc2-mm1]

2005-04-08 Thread Daniel Jacobowitz
My impression is that the MIPS story isn't so simple, because the architecture only offers very weak coherency guarantees. Most of the SMP implementations offer strong coherency in practice, but at least one (RM9000) doesn't. -- Daniel Jacobowitz CodeSourcery, LLC - To unsubscribe from this list: sen

Re: [Fwd: Re: connector is missing in 2.6.12-rc2-mm1]

2005-04-08 Thread Daniel Jacobowitz
, but at least one (RM9000) doesn't. -- Daniel Jacobowitz CodeSourcery, LLC - To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org

Re: Linux-2.6.11 can't disable CAD

2005-04-08 Thread Daniel Jacobowitz
keystroke will cause a SIGINT signal to be sent to init (process 1), whereupon this process may decide upon a proper action (maybe: kill all processes, sync, reboot). -- Daniel Jacobowitz CodeSourcery, LLC - To unsubscribe from this list: send the line unsubscribe

Re: Do not misuse Coverity please (Was: sound/oss/cs46xx.c: fix a check after use)

2005-03-29 Thread Daniel Jacobowitz
the "if (!card)" can not be reached without passing through "card->amplifier", and a pointer which is dereferenced can not be NULL in a valid program. -- Daniel Jacobowitz CodeSourcery, LLC - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

Re: Do not misuse Coverity please (Was: sound/oss/cs46xx.c: fix a check after use)

2005-03-29 Thread Daniel Jacobowitz
with -O0, it will oops. The thing GCC is most likely to do with this code is discard the NULL check entirely and leave only the oops; the if (!card) can not be reached without passing through card-amplifier, and a pointer which is dereferenced can not be NULL in a valid program. -- Daniel

Re: [CHECKER] inconsistent NFS stat cache (NFS on ext3, 2.6.11)

2005-03-13 Thread Daniel Jacobowitz
open. Hmm, server is x86_64 2.6.7, client is 2.6.10 MIPS. I should upgrade them and see if that helps. Unfortunately I haven't found any smaller testcases than installing an entire root FS. -- Daniel Jacobowitz CodeSourcery, LLC - To unsubscribe from this list: send the line "u

Re: [CHECKER] inconsistent NFS stat cache (NFS on ext3, 2.6.11)

2005-03-13 Thread Daniel Jacobowitz
On Sun, Mar 13, 2005 at 03:42:29PM -0500, Trond Myklebust wrote: > su den 13.03.2005 Klokka 15:04 (-0500) skreiv Daniel Jacobowitz: > > > I can't find any documentation about this, but it seems like the same > > problem that has been causing me headaches lately; when I repl

Re: More trouble with i386 EFLAGS and ptrace

2005-03-13 Thread Daniel Jacobowitz
acro, which is called > before the ptrace stop for whatever signal results from whatever kind of > fault in that instruction (or asynchronous signal). With that, the > handle_signal check is still needed only for the case of PTRACE_SINGLESTEP > with a handled signal. > > > T

Re: [CHECKER] inconsistent NFS stat cache (NFS on ext3, 2.6.11)

2005-03-13 Thread Daniel Jacobowitz
erver side of an nfsroot, the client has a couple of variously wrong reads before it sees the new files. If it breaks NFS so badly, why is it the default for the Linux NFS server? -- Daniel Jacobowitz CodeSourcery, LLC - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

Re: [CHECKER] inconsistent NFS stat cache (NFS on ext3, 2.6.11)

2005-03-13 Thread Daniel Jacobowitz
that has been causing me headaches lately; when I replace glibc from the server side of an nfsroot, the client has a couple of variously wrong reads before it sees the new files. If it breaks NFS so badly, why is it the default for the Linux NFS server? -- Daniel Jacobowitz CodeSourcery, LLC

Re: More trouble with i386 EFLAGS and ptrace

2005-03-13 Thread Daniel Jacobowitz
results from whatever kind of fault in that instruction (or asynchronous signal). With that, the handle_signal check is still needed only for the case of PTRACE_SINGLESTEP with a handled signal. Thanks, Roland Thanks, looks right to me! -- Daniel Jacobowitz CodeSourcery, LLC

Re: [CHECKER] inconsistent NFS stat cache (NFS on ext3, 2.6.11)

2005-03-13 Thread Daniel Jacobowitz
On Sun, Mar 13, 2005 at 03:42:29PM -0500, Trond Myklebust wrote: su den 13.03.2005 Klokka 15:04 (-0500) skreiv Daniel Jacobowitz: I can't find any documentation about this, but it seems like the same problem that has been causing me headaches lately; when I replace glibc from the server

Re: [CHECKER] inconsistent NFS stat cache (NFS on ext3, 2.6.11)

2005-03-13 Thread Daniel Jacobowitz
is x86_64 2.6.7, client is 2.6.10 MIPS. I should upgrade them and see if that helps. Unfortunately I haven't found any smaller testcases than installing an entire root FS. -- Daniel Jacobowitz CodeSourcery, LLC - To unsubscribe from this list: send the line unsubscribe linux-kernel in the body

Re: More trouble with i386 EFLAGS and ptrace

2005-03-08 Thread Daniel Jacobowitz
's flavor, but no writing is ever > possible to the fixmap page. Blech. I assume that there is no way to map a normal VMA over top of the fixed page, for a particular process? This makes debugging the vsyscall DSO a real pain. -- Daniel Jacobowitz CodeSourcery, LLC - To unsubscribe fro

Re: More trouble with i386 EFLAGS and ptrace

2005-03-08 Thread Daniel Jacobowitz
that there is no way to map a normal VMA over top of the fixed page, for a particular process? This makes debugging the vsyscall DSO a real pain. -- Daniel Jacobowitz CodeSourcery, LLC - To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to [EMAIL PROTECTED] More

Re: More trouble with i386 EFLAGS and ptrace

2005-03-06 Thread Daniel Jacobowitz
about, but it was KFAIL before the change too. That is an inability to set breakpoints in the vsyscall page. Andrew told me (last May, wow) that he thought this worked in Fedora, but I haven't seen any signs of the code. It would certainly be a Good Thing if it is possible! > -- Da

Re: More trouble with i386 EFLAGS and ptrace

2005-03-06 Thread Daniel Jacobowitz
, it occurs because a bogus TF bit was saved to the signal context. I like keeping solutions close to their problems. But that's just aesthetic. -- Daniel Jacobowitz CodeSourcery, LLC - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

Re: More trouble with i386 EFLAGS and ptrace

2005-03-06 Thread Daniel Jacobowitz
l context. Otherwise, TF will be incorrectly restored by sigreturn. Signed-off-by: Daniel Jacobowitz <[EMAIL PROTECTED]> = arch/i386/kernel/signal.c 1.53 vs edited = --- 1.53/arch/i386/kernel/signal.c 2005-01-31 01:20:14 -05:00 +++ edited/arch/i386/kernel/signal.c2005-03-06

Re: More trouble with i386 EFLAGS and ptrace

2005-03-06 Thread Daniel Jacobowitz
On Sun, Mar 06, 2005 at 02:38:41PM -0500, Daniel Jacobowitz wrote: > The reason this happens is that when the inferior hits a breakpoint, the > first thing GDB will do is remove the breakpoint, single-step past it, and > reinsert it. So GDB does a PTRACE_SINGLESTEP, and the kerne

More trouble with i386 EFLAGS and ptrace

2005-03-06 Thread Daniel Jacobowitz
ow when we restore the trap bit in sigreturn whether it was set by ptrace or by the application (possibly including by the signal handler). Andrew, serious kudos for GDB's sigstep.exp, which uncovered this problem (through a much more complicated test - I may add the smaller one). -- Daniel

More trouble with i386 EFLAGS and ptrace

2005-03-06 Thread Daniel Jacobowitz
). -- Daniel Jacobowitz CodeSourcery, LLC - To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

Re: More trouble with i386 EFLAGS and ptrace

2005-03-06 Thread Daniel Jacobowitz
On Sun, Mar 06, 2005 at 02:38:41PM -0500, Daniel Jacobowitz wrote: The reason this happens is that when the inferior hits a breakpoint, the first thing GDB will do is remove the breakpoint, single-step past it, and reinsert it. So GDB does a PTRACE_SINGLESTEP, and the kernel invokes

Re: More trouble with i386 EFLAGS and ptrace

2005-03-06 Thread Daniel Jacobowitz
by sigreturn. Signed-off-by: Daniel Jacobowitz [EMAIL PROTECTED] = arch/i386/kernel/signal.c 1.53 vs edited = --- 1.53/arch/i386/kernel/signal.c 2005-01-31 01:20:14 -05:00 +++ edited/arch/i386/kernel/signal.c2005-03-06 15:36:41 -05:00 @@ -277,6 +277,18 @@ { int tmp, err = 0

Re: More trouble with i386 EFLAGS and ptrace

2005-03-06 Thread Daniel Jacobowitz
equivalent to the one I just posted for this testcase. I think mine is more correct; the problem doesn't occur because the debugger cancelled a signal, it occurs because a bogus TF bit was saved to the signal context. I like keeping solutions close to their problems. But that's just aesthetic. -- Daniel

Re: More trouble with i386 EFLAGS and ptrace

2005-03-06 Thread Daniel Jacobowitz
) that he thought this worked in Fedora, but I haven't seen any signs of the code. It would certainly be a Good Thing if it is possible! -- Daniel Jacobowitz CodeSourcery, LLC - To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to [EMAIL PROTECTED

Re: ARM undefined symbols. Again.

2005-02-25 Thread Daniel Jacobowitz
pers who are using tools with this patch applied already. Also, I anticipate the release of binutils 2.16 including the fix in about a month. > And yes, the toolchain peoples point of view is "fix the kernel". Huh? Obviously the kernel isn't broken, unless you're talking abou

Re: ARM undefined symbols. Again.

2005-02-25 Thread Daniel Jacobowitz
a month. And yes, the toolchain peoples point of view is fix the kernel. Huh? Obviously the kernel isn't broken, unless you're talking about the kallsyms checks now. -- Daniel Jacobowitz CodeSourcery, LLC - To unsubscribe from this list: send the line unsubscribe linux-kernel in the body

Re: [PATCH] Consolidate compat_sys_waitid

2005-02-15 Thread Daniel Jacobowitz
t sysn32_waitid. Ralf, I'll let you sort it out :-) -- Daniel Jacobowitz CodeSourcery, LLC - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

Re: [PATCH] Consolidate compat_sys_waitid

2005-02-15 Thread Daniel Jacobowitz
:-) -- Daniel Jacobowitz CodeSourcery, LLC - To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

Blocking behavior changed for pipes in 2.6.11-rc3

2005-02-11 Thread Daniel Jacobowitz
ot;); return 1; } size_t len2 = fpathconf (fds[1], _PC_PIPE_BUF); size_t page_size = sysconf (_SC_PAGESIZE); len2 = (len2 < page_size ? page_size : len2) + 1 + 1; char *mem2 = malloc (len2); pthread_create (, NULL, tf, fds); write (fds[1], mem2, len2); return 0; } [/snip]

Blocking behavior changed for pipes in 2.6.11-rc3

2005-02-11 Thread Daniel Jacobowitz
); return 0; } [/snip] -- Daniel Jacobowitz CodeSourcery, LLC - To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

Re: 2.6.11-rc3: Kylix application no longer works?

2005-02-09 Thread Daniel Jacobowitz
e why this is a problem - the kernel probably assumes that any segment with MemSiz > FileSiz will be writable. Certainly it's a bit weird for the app to request unwritable zeroed pages. clear_user's probably not the right way to provide the extra zeroing. -- Daniel Jacobowitz CodeSourcery, LL

Re: 2.6.11-rc3: Kylix application no longer works?

2005-02-09 Thread Daniel Jacobowitz
that any segment with MemSiz FileSiz will be writable. Certainly it's a bit weird for the app to request unwritable zeroed pages. clear_user's probably not the right way to provide the extra zeroing. -- Daniel Jacobowitz CodeSourcery, LLC - To unsubscribe from this list: send the line

Re: 2.6.11-rc3: Kylix application no longer works?

2005-02-08 Thread Daniel Jacobowitz
clearing the BSS fail? Are the program headers bogus? (readelf -l). -- Daniel Jacobowitz CodeSourcery, LLC - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.ht

Re: 2.6.11-rc3: Kylix application no longer works?

2005-02-08 Thread Daniel Jacobowitz
? Are the program headers bogus? (readelf -l). -- Daniel Jacobowitz CodeSourcery, LLC - To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http

Re: kernel CVS troubles with cvsps

2005-01-25 Thread Daniel Jacobowitz
it fell down like this on a constant basis. You might want to take a look at 'xcvs', by Jun Sun. It's much more reliable and does everything I used to use cvsps for. And generally faster too. -- Daniel Jacobowitz - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the

Re: kernel CVS troubles with cvsps

2005-01-25 Thread Daniel Jacobowitz
basis. You might want to take a look at 'xcvs', by Jun Sun. It's much more reliable and does everything I used to use cvsps for. And generally faster too. -- Daniel Jacobowitz - To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to [EMAIL PROTECTED

Re: forestalling GNU incompatibility - proposal for binary relative dynamic linking

2005-01-24 Thread Daniel Jacobowitz
suppose you could change this with chrpath, > but why bother? What if you want to test out two versions of relative > libraries side by side? You might want to take a look at Richard's suggestion again. The string '$ORIGIN' gets hardcoded into the binary and handled by the dynamic link

Re: seccomp for 2.6.11-rc1-bk8

2005-01-24 Thread Daniel Jacobowitz
to ptrace() > that remedies the situation. This has since been done in 2.5.x; see PTRACE_EVENT_FORK. GDB even uses it nowadays. I'm not sure if strace does. -- Daniel Jacobowitz - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

Re: seccomp for 2.6.11-rc1-bk8

2005-01-24 Thread Daniel Jacobowitz
have little confidence in its security to prevent children from escaping a ptrace() jail, so I added a feature to ptrace() that remedies the situation. This has since been done in 2.5.x; see PTRACE_EVENT_FORK. GDB even uses it nowadays. I'm not sure if strace does. -- Daniel Jacobowitz

Re: forestalling GNU incompatibility - proposal for binary relative dynamic linking

2005-01-24 Thread Daniel Jacobowitz
by side? You might want to take a look at Richard's suggestion again. The string '$ORIGIN' gets hardcoded into the binary and handled by the dynamic linker. But really, RPATH is a good solution to almost no problems. -- Daniel Jacobowitz - To unsubscribe from this list: send the line unsubscribe

Re: New topic (PowerPC Linux PCI HELL)

2000-09-13 Thread Daniel Jacobowitz
return; + } + } +#endif if (!(pcicmd & PCI_COMMAND_IO)) { /* is device disabled? */ /* * PnP BIOS was *supposed* to have set this device up for us, Dan /\ /