This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug tapsets/12082] New: task_gid and task_egid fail on call to get_task_cred()


On 2.6.34.7-56.fc13.x86_64, testsuite/buildok/task_embedded.stp fails with:

/tmp/stap0Ft9bI/stap_7fc5d91ae7c5d78cf2519dbbd5080888_9774.c: In function
?function_task_egid?:
/tmp/stap0Ft9bI/stap_7fc5d91ae7c5d78cf2519dbbd5080888_9774.c:986: error:
assignment discards qualifiers from pointer target type
/tmp/stap0Ft9bI/stap_7fc5d91ae7c5d78cf2519dbbd5080888_9774.c: In function
?function_task_gid?:
/tmp/stap0Ft9bI/stap_7fc5d91ae7c5d78cf2519dbbd5080888_9774.c:1109: error:
assignment discards qualifiers from pointer target type

Kernel commit de09a977 changes get_task_cred from a macro to a function
returning "const struct cred*".  I tried changing our cred pointer to const,
which solves this warning, but then I get:

WARNING: "get_task_cred"
[/tmp/stapautDvM/stap_63fa3ee7bc5df6a28dccba28240d17b5_9786.ko] undefined!
Error inserting module
'/tmp/stapautDvM/stap_63fa3ee7bc5df6a28dccba28240d17b5_9786.ko': Unknown symbol
in module
[dmesg] stap_63fa3ee7bc5df6a28dccba28240d17b5_9786: Unknown symbol get_task_cred

There is no EXPORT_SYMBOL in the kernel for get_task_cred()...

-- 
           Summary: task_gid and task_egid fail on call to get_task_cred()
           Product: systemtap
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: tapsets
        AssignedTo: systemtap at sources dot redhat dot com
        ReportedBy: jistone at redhat dot com


http://sourceware.org/bugzilla/show_bug.cgi?id=12082

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]