public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
* [Bug tapsets/19069] New: task_euid() doesn't compile on aarch64
@ 2015-10-05 20:48 mcermak at redhat dot com
  2015-10-06 12:33 ` [Bug tapsets/19069] " mcermak at redhat dot com
  0 siblings, 1 reply; 2+ messages in thread
From: mcermak at redhat dot com @ 2015-10-05 20:48 UTC (permalink / raw)
  To: systemtap

https://sourceware.org/bugzilla/show_bug.cgi?id=19069

            Bug ID: 19069
           Summary: task_euid() doesn't compile on aarch64
           Product: systemtap
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: tapsets
          Assignee: systemtap at sourceware dot org
          Reporter: mcermak at redhat dot com
  Target Milestone: ---

Created attachment 8682
  --> https://sourceware.org/bugzilla/attachment.cgi?id=8682&action=edit
proposed patch

The task_euid() fails to compile on aarch64:

=======
S aarch64 # stap -ge 'probe oneshot {println(task_euid(0))}'
In file included from
/root/mcermak-systemtap/systemtap-build/share/systemtap/runtime/linux/runtime.h:202:0,
                 from
/root/mcermak-systemtap/systemtap-build/share/systemtap/runtime/runtime.h:24,
                 from
/tmp/stapebySbl/stap_2743b3ed18883ca134e63feb36e2bc0e_2431_src.c:25:
/tmp/stapebySbl/stap_2743b3ed18883ca134e63feb36e2bc0e_2431_src.c: In function
‘function_task_euid’:
/tmp/stapebySbl/stap_2743b3ed18883ca134e63feb36e2bc0e_2431_src.c:231:47: error:
invalid application of ‘sizeof’ to incomplete type ‘struct user_namespace’
     (void)kderef_buffer(NULL, user_ns, sizeof(struct user_namespace));
                                               ^
/root/mcermak-systemtap/systemtap-build/share/systemtap/runtime/linux/loc2c-runtime.h:909:18:
note: in definition of macro ‘kderef_buffer’
     for (_len = (maxbytes), _addr = (uintptr_t)(addr);         \
                  ^
make[1]: *** [/tmp/stapebySbl/stap_2743b3ed18883ca134e63feb36e2bc0e_2431_src.o]
Error 1
make: *** [_module_/tmp/stapebySbl] Error 2
WARNING: kbuild exited with status: 2
Pass 4: compilation failed.  [man error::pass4]
S aarch64 #
=======

On aarch64 struct user_namespace is defined within
include/linux/user_namespace.h which got added in kernel commit
acce292c82d4d82d35553b928df2b0597c3a9c78. The `git describe --contains
acce292c82d4d82d35553b928df2b0597c3a9c78` points to 'v2.6.23-rc1~870'. Attached
patch fixes the issue for me on aarch64 and seems not to break other supported
environments.

-- 
You are receiving this mail because:
You are the assignee for the bug.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Bug tapsets/19069] task_euid() doesn't compile on aarch64
  2015-10-05 20:48 [Bug tapsets/19069] New: task_euid() doesn't compile on aarch64 mcermak at redhat dot com
@ 2015-10-06 12:33 ` mcermak at redhat dot com
  0 siblings, 0 replies; 2+ messages in thread
From: mcermak at redhat dot com @ 2015-10-06 12:33 UTC (permalink / raw)
  To: systemtap

https://sourceware.org/bugzilla/show_bug.cgi?id=19069

Martin Cermak <mcermak at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #1 from Martin Cermak <mcermak at redhat dot com> ---
Fixed in commit f84a1d0022f1e19bf865ff5f5e688334ca6d2186

-- 
You are receiving this mail because:
You are the assignee for the bug.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-10-06 12:33 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-10-05 20:48 [Bug tapsets/19069] New: task_euid() doesn't compile on aarch64 mcermak at redhat dot com
2015-10-06 12:33 ` [Bug tapsets/19069] " mcermak at redhat dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).