Bug 173050
Summary: | strace buffer overflow on select | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Dan Hollis <goemon> |
Component: | strace | Assignee: | Roland McGrath <roland> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Brian Brock <bbrock> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 4 | CC: | djuran, ldv |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | x86_64 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | 4.5.15-1 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2007-01-17 03:07:34 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Dan Hollis
2005-11-13 04:16:04 UTC
Tracing of 32-bit processes on 64-bit system is not implemented wrt decoding of data structures with arch-dependent members. For example, all syscalls which operate with "struct timeval" will be decoded incorrectly; select() is just an illustration for the larger problem. Roland, are we going to deal with this (large) issue somehow? should a 32bit strace be able to trace 32bit processes on a 64bit system under 32bit emulation mode? if so, the "obvious" solution would be to provide both 32bit and 64bit strace binaries, and have 64bit strace refuse to trace 32bit processes (and vice versa). Yes, 32bit strace is able to trace 32bit processes on a 64bit system under 32bit emulation mode. This "obvious" solution will "fix" the bug you reported. Unfortunately, there are rare cases when this solution won't help: processes like setarch(8) which call personality(2). Imagine e.g. "strace setarch i386 select32" where select32 is arbitrary 32bit executable which calls select(2). well its completely broken right now :P seems to me there should be an interim solution provided (however flawed it might be). provide 32bit strace on FC4/5 until a "proper" fix can be made? Added upstream biarch support for timeval and timespec structs, should fix select decoding. these bugs are fixed upstream in the coming 4.5.15 release 4.5.15 in rawhide and in updates for fc5 and fc6 fixes this. |