| Summary: | support direct socket calls on x86 32bit (new in linux 4.3) | ||
|---|---|---|---|
| Product: | [Developer tools] valgrind | Reporter: | Ron <ronald.wahl> |
| Component: | general | Assignee: | Julian Seward <jseward> |
| Status: | RESOLVED FIXED | ||
| Severity: | grave | CC: | mark, philippe.waroquiers |
| Priority: | NOR | ||
| Version First Reported In: | unspecified | ||
| Target Milestone: | --- | ||
| Platform: | Compiled Sources | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
| Attachments: | Patch that adds the direct socket syscall definitions for x86 | ||
|
Description
Ron
2016-01-15 15:28:32 UTC
Created attachment 96657 [details]
Patch that adds the direct socket syscall definitions for x86
(In reply to Ron from comment #1) > Created attachment 96657 [details] > Patch that adds the direct socket syscall definitions for x86 Thanks for the patch, which seems reasonable (but quick reading only :). Have you run the regression tests with your patch ? The testsuite has a bunch of socket related tests, so if there is a lot of failures without your patch, and a lot less failures with your patch, then that will help to see the patch is correct/needed/.... Maybe also memcheck/tests/x86-linux/scalar.c should/could be modified ? No, I havn't run the testsuite. I just checked if I can run programs via valgrind that use various socket related syscalls. I have no regular 32bit linux here anymore and the system were I need it is a embedded system with uClibc, busybox, no perl. I fear the test suite requires modifications to do so and at the moment my time is limited... To test against glibc I think you will need a very recent patch to enable them: https://sourceware.org/ml/libc-alpha/2015-12/msg00156.html and then a glibc with that patch build against the linux 4.3+ kernel header. It probably won't trigger soon with glibc since it only uses the direct calls if the minimum supported kernel version is 4.3 or higher. But if you do configure glibc with --enable-kernel against the latest kernel headers then it does indeed use the direct calls and the test programs using socket calls do fail with current valgrind (and pass with the patch applied). Pushed patch as valgrind svn r15764 Thanks |