Public bug reported:
[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.socket(socket.AF_INET, socket.SOCK_STREAM)
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 1375d98d8017e371776adbef10122a57ce2100e5
** Affects: trace-cmd (Ubuntu)
Importance: Medium
Assignee: Ioanna Alifieraki (joalif)
Status: In Progress
** Affects: trace-cmd (Ubuntu Bionic)
Importance: Medium
Assignee: Ioanna Alifieraki (joalif)
Status: In Progress
** Changed in: trace-cmd (Ubuntu)
Status: New => In Progress
** Changed in: trace-cmd (Ubuntu)
Importance: Undecided => Medium
** Changed in: trace-cmd (Ubuntu)
Assignee: (unassigned) => Ioanna Alifieraki (joalif)
** Also affects: trace-cmd (Ubuntu Bionic)
Importance: Undecided
Status: New
** Changed in: trace-cmd (Ubuntu Bionic)
Status: New => In Progress
** Changed in: trace-cmd (Ubuntu Bionic)
Importance: Undecided => Medium
** Changed in: trace-cmd (Ubuntu Bionic)
Assignee: (unassigned) => Ioanna Alifieraki (joalif)
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1955129
Title:
trace-cmd report buffer overflow detected
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/trace-cmd/+bug/1955129/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs