trace-cmd report buffer overflow detected
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
trace-cmd (Ubuntu) |
Fix Released
|
Medium
|
Ioanna Alifieraki | ||
Bionic |
Won't Fix
|
Medium
|
Ioanna Alifieraki |
Bug Description
[IMPACT]
When running trace-cmd report on Bionic it crashes with
*** buffer overflow detected ***: trace-cmd terminated
Aborted (core dumped)
[TEST CASE]
Prepare a simple script to trace e.g. :
#!/usr/bin/python
import socket
s = socket.
s.close()
then
$ sudo trace-cmd record -a -p function_graph -g __fput -g sock_close -g tcp_close python2 ./close.py
$ sudo trace-cmd report
The latter will fail with buffer overflow detected
[WHERE THINGS COULD GO WRONG]
The fixing commit changes the size of a buffer from 20 to 24 in arg_eval() function
to avoid buffer overflow.
Any potential regression would occur in that function.
[OTHER]
Only Bionic is affected, it is fixed in newer releases.
Fix upstream commit 1375d98d8017e37
Changed in trace-cmd (Ubuntu): | |
status: | New → In Progress |
importance: | Undecided → Medium |
assignee: | nobody → Ioanna Alifieraki (joalif) |
Changed in trace-cmd (Ubuntu Bionic): | |
status: | New → In Progress |
importance: | Undecided → Medium |
assignee: | nobody → Ioanna Alifieraki (joalif) |
tags: | added: sts-sponsor-halves |
Changed in trace-cmd (Ubuntu): | |
status: | In Progress → Fix Released |
tags: |
added: se-sponsor-halves removed: sts-sponsor-halves |
Debdiff for Bionic