Bug 173177 - [x86_64] WARNING: unhandled syscall: 125/126/179 (capget/capset/quotactl)
Summary: [x86_64] WARNING: unhandled syscall: 125/126/179 (capget/capset/quotactl)
Status: RESOLVED FIXED
Alias: None
Product: valgrind
Classification: Developer tools
Component: general (show other bugs)
Version: 3.3.1
Platform: Debian testing Linux
: NOR normal
Target Milestone: ---
Assignee: Julian Seward
URL:
Keywords:
: 154268 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-10-20 06:06 UTC by Kyle Moffett
Modified: 2009-06-29 09:09 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kyle Moffett 2008-10-20 06:06:59 UTC
While attempting to use valgrind on my x86_64 samba binary, I get the following unhandled syscall warnings:

--00:06:17:34.954 4224-- WARNING: unhandled syscall: 125
==00:06:17:34.954 4224==    at 0x7C79C27: capget (in /usr/lib/debug/libc-2.7.so)
==00:06:17:34.954 4224==    by 0x4031241: cap_get_proc (in /lib/libcap.so.1.10)
==00:06:17:34.954 4224==    by 0x59DEB7: set_process_capability (in /usr/sbin/smbd)
==00:06:17:34.954 4224==    by 0x59E06D: set_effective_capability (in /usr/sbin/smbd)
==00:06:17:34.954 4224==    by 0x5DCFA3: linux_setlease (in /usr/sbin/smbd)
==00:06:17:34.954 4224==    by 0x4AFC5C: vfswrap_linux_setlease (in /usr/sbin/smbd)
==00:06:17:34.954 4224==    by 0x5DCD50: linux_set_kernel_oplock (in /usr/sbin/smbd)
==00:06:17:34.954 4224==    by 0x5DA586: set_file_oplock (in /usr/sbin/smbd)
==00:06:17:34.954 4224==    by 0x4907CA: open_file_ntcreate (in /usr/sbin/smbd)
==00:06:17:34.954 4224==    by 0x491529: create_file_unixpath (in /usr/sbin/smbd)
==00:06:17:34.954 4224==    by 0x491D7F: create_file (in /usr/sbin/smbd)
==00:06:17:34.954 4224==    by 0x783622: reply_ntcreate_and_X (in /usr/sbin/smbd)
==00:06:17:34.954 4224==    by 0x4A264D: switch_message (in /usr/sbin/smbd)
==00:06:17:34.954 4224==    by 0x4A40F7: smbd_process (in /usr/sbin/smbd)
==00:06:17:34.954 4224==    by 0x471842: main (in /usr/sbin/smbd)
--00:06:17:34.954 4224-- You may be able to write your own handler.
--00:06:17:34.954 4224-- Read the file README_MISSING_SYSCALL_OR_IOCTL.
--00:06:17:34.954 4224-- Nevertheless we consider this a bug.  Please report
--00:06:17:34.954 4224-- it at http://valgrind.org/support/bug_reports.html.

--00:06:17:34.963 4224-- WARNING: unhandled syscall: 126
==00:06:17:34.963 4224==    at 0x7C79C57: capset (in /usr/lib/debug/libc-2.7.so)
==00:06:17:34.963 4224==    by 0x403129D: cap_set_proc (in /lib/libcap.so.1.10)
==00:06:17:34.963 4224==    by 0x59E03E: set_process_capability (in /usr/sbin/smbd)
==00:06:17:34.963 4224==    by 0x59E06D: set_effective_capability (in /usr/sbin/smbd)
==00:06:17:34.963 4224==    by 0x5DCFA3: linux_setlease (in /usr/sbin/smbd)
==00:06:17:34.963 4224==    by 0x4AFC5C: vfswrap_linux_setlease (in /usr/sbin/smbd)
==00:06:17:34.963 4224==    by 0x5DCD50: linux_set_kernel_oplock (in /usr/sbin/smbd)
==00:06:17:34.964 4224==    by 0x5DA586: set_file_oplock (in /usr/sbin/smbd)
==00:06:17:34.964 4224==    by 0x4907CA: open_file_ntcreate (in /usr/sbin/smbd)
==00:06:17:34.964 4224==    by 0x491529: create_file_unixpath (in /usr/sbin/smbd)
==00:06:17:34.964 4224==    by 0x491D7F: create_file (in /usr/sbin/smbd)
==00:06:17:34.964 4224==    by 0x783622: reply_ntcreate_and_X (in /usr/sbin/smbd)
==00:06:17:34.964 4224==    by 0x4A264D: switch_message (in /usr/sbin/smbd)
==00:06:17:34.964 4224==    by 0x4A40F7: smbd_process (in /usr/sbin/smbd)
==00:06:17:34.964 4224==    by 0x471842: main (in /usr/sbin/smbd)
--00:06:17:34.964 4224-- You may be able to write your own handler.
--00:06:17:34.964 4224-- Read the file README_MISSING_SYSCALL_OR_IOCTL.
--00:06:17:34.964 4224-- Nevertheless we consider this a bug.  Please report
--00:06:17:34.964 4224-- it at http://valgrind.org/support/bug_reports.html.

--00:06:17:53.031 4224-- WARNING: unhandled syscall: 179
==00:06:17:53.031 4224==    at 0x7C7A04A: quotactl (in /usr/lib/debug/libc-2.7.so)
==00:06:17:53.031 4224==    by 0x7B2B3B: sys_get_linux_gen_quota (in /usr/sbin/smbd)
==00:06:17:53.031 4224==    by 0x7B3480: sys_get_vfs_quota (in /usr/sbin/smbd)
==00:06:17:53.031 4224==    by 0x7B1FE5: sys_get_quota (in /usr/sbin/smbd)
==00:06:17:53.031 4224==    by 0x7B3EC6: disk_quotas (in /usr/sbin/smbd)
==00:06:17:53.031 4224==    by 0x7744CF: sys_disk_free (in /usr/sbin/smbd)
==00:06:17:53.031 4224==    by 0x4B076D: vfswrap_disk_free (in /usr/sbin/smbd)
==00:06:17:53.031 4224==    by 0x773FD4: get_dfree_info (in /usr/sbin/smbd)
==00:06:17:53.031 4224==    by 0x79DE48: call_trans2qfsinfo (in /usr/sbin/smbd)
==00:06:17:53.031 4224==    by 0x7ABF39: handle_trans2 (in /usr/sbin/smbd)
==00:06:17:53.032 4224==    by 0x7ADA47: reply_trans2 (in /usr/sbin/smbd)
==00:06:17:53.032 4224==    by 0x4A264D: switch_message (in /usr/sbin/smbd)
==00:06:17:53.032 4224==    by 0x4A40F7: smbd_process (in /usr/sbin/smbd)
==00:06:17:53.032 4224==    by 0x471842: main (in /usr/sbin/smbd)
--00:06:17:53.032 4224-- You may be able to write your own handler.
--00:06:17:53.032 4224-- Read the file README_MISSING_SYSCALL_OR_IOCTL.
--00:06:17:53.032 4224-- Nevertheless we consider this a bug.  Please report
--00:06:17:53.032 4224-- it at http://valgrind.org/support/bug_reports.html.
Comment 1 Julian Seward 2008-10-26 18:01:03 UTC
sys_capget and sys_capset are already supported in the svn trunk on
amd64-linux (although not in 3.3.1).  That just leaves sys_quotactl.

Could you check out the trunk as described at
http://www.valgrind.org/downloads/repository.html, apply the
patch below, build, and let me know if it works correctly?

Index: coregrind/m_syswrap/syswrap-amd64-linux.c
===================================================================
--- coregrind/m_syswrap/syswrap-amd64-linux.c   (revision 8708)
+++ coregrind/m_syswrap/syswrap-amd64-linux.c   (working copy)
@@ -1229,7 +1229,7 @@
    LINX_(__NR_delete_module,     sys_delete_module),  // 176
    //   (__NR_get_kernel_syms,   sys_ni_syscall),     // 177
    //   (__NR_query_module,      sys_ni_syscall),     // 178
-   //LINX_(__NR_quotactl,          sys_quotactl),       // 179
+   LINX_(__NR_quotactl,          sys_quotactl),       // 179

    //   (__NR_nfsservctl,        sys_nfsservctl),     // 180
    //   (__NR_getpmsg,           sys_ni_syscall),     // 181
Comment 2 Julian Seward 2008-10-30 14:13:46 UTC
Closing this in the absence of further feedback.  Patch above
committed as r8720.  If you do get an opportunity to test it,
I'd appreciate hearing the results.
Comment 3 Nicholas Nethercote 2009-06-29 09:09:20 UTC
*** Bug 154268 has been marked as a duplicate of this bug. ***