Bug 66894 - strace pretends not to know modify_ldt
strace pretends not to know modify_ldt
Product: Red Hat Linux
Classification: Retired
Component: strace (Show other bugs)
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Jakub Jelinek
Brian Brock
Depends On:
  Show dependency treegraph
Reported: 2002-06-18 00:45 EDT by John Reiser
Modified: 2007-04-18 12:43 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2002-06-18 00:46:04 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description John Reiser 2002-06-18 00:45:59 EDT
From Bugzilla Helper:
User-Agent: Mozilla/4.77 [en] (X11; U; Linux 2.2.19-6.2.16-KRUD-perfctr2.3.6

Description of problem:
strace-4.4-4.src.rpm has an oversight which inhibits meaningful
output for the modify_ldt() system call.  All the source to fully
decode modify_ldt is in function sys_modify_ldt() in mem.c at
about line 509.  But file linux/dummy.h has
	#define sys_modify_ldt    printargs
in full view, so the output from strace contains only the top-level
3 arguments, instead of the exploded modify_ldt_ldt_s structure.

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. run strace on any i686 pthreaded program
2. look at the output for calls to modify_ldt

Actual Results:  You get, for example
	modify_ldt(1, 0xbffffedc, 0x10) = 0

Expected Results:  You should want, for example
	modify_ldt(1, {entry_number:0, base_address:0x400c1234, limit:1056, ...

Additional info:

Here is the fix [adjust tabbing]:
put the #define for modify_ldt under the #if DONE conditional
[which is 0, hence comments-out things which appear in its scope].
--- dummy.h.orig	Mon Jun 17 21:28:31 2002
+++ dummy.h	Mon Jun 17 21:29:19 2002
@@ -33,7 +33,6 @@
 #define	sys_syslog		printargs
 #define	sys_iopl		printargs
 #define	sys_vm86old		printargs
-#define	sys_modify_ldt		printargs
 #define	sys_get_kernel_syms	printargs
 #define	sys_bdflush		printargs
 #define	sys_sysfs		printargs
@@ -205,4 +204,5 @@
 #define	sys_quotactl		printargs
 #define sys_mlockall		printargs
 #define	sys_reboot		printargs
+#define	sys_modify_ldt		printargs
Comment 1 Jakub Jelinek 2002-08-16 04:29:45 EDT
Should be fixed in strace-4.4-6 in rawhide.

Note You need to log in before you can comment on or make changes to this bug.