Re: [leaf-user] ntpd segfaulting (copied to leaf-devel)

Erich Titl <[email protected]> Wed, 3 May 2017 21:55:14 +0200
Newsgroups gmane.linux.leaf.devel,gmane.linux.leaf.user
Message-ID <[email protected]>
Hi Bob

(copying this to leaf-devel)

Am 03.05.2017 um 20:03 schrieb Robert K Coffman Jr. -Info From Data Corp.:
> Eric,
>
> IRC user ddrown confirmed the x64 patch I mentioned earlier seems to fix
> the issue on i386 as well.  I'm not really sure what to do with that
> information.  Is it possible to patch Leaf with it?
>
> https://gist.github.com/ddrown/15e943b8fe1da398320b0c0518c95554

I don't know. It looks like the RESTORE2 macro is extended with a nop 
operator in this patch. This looks like assembly code.

The thing that puzzles me most is that the current code looks like the 
following.

#define RESTORE(name, syscall) RESTORE2(name, syscall)
#define RESTORE2(name, syscall) \
__asm__ (                                               \
         "nop\n"                                         \
         ".text\n"                                       \
         "__" #name ":\n"                                \
         "       movq    $" #syscall ", %rax\n"          \
         "       syscall\n"                              \
);

So it looks like the patch has already been applied. Very definitely 
ddrown has not started from the same codebase, so I would be very 
reluctant to follow this path.

cheers

ET

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot


_______________________________________________
leaf-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/leaf-devel
smime.p7s (application/pkcs7-signature, 1.9 KB) - not displayed