|
Bugzilla – Full Text Bug Listing |
| Summary: | [torque-3.0.4] pbs_mom buffer overflow / segfaults when using --enable-nvidia-gpus [with BUG FIX] | ||
|---|---|---|---|
| Product: | TORQUE | Reporter: | Nicolas Pinto <nicolas.pinto> |
| Component: | pbs_mom | Assignee: | Ken Nielson <knielson> |
| Status: | NEW | ||
| Severity: | critical | CC: | dbeer, rea+maui, torquedev |
| Priority: | P5 | ||
| Version: | 3.0.x | ||
| Hardware: | PC | ||
| OS: | Linux | ||
Not that easy: in reality, gpus() must be fixed to respect the passed buffer_size. Or, better, it should do memory allocation/reallocation by itself and return the dynamic buffer to the caller to avoid problems with incompletely captured output from NVidia SMI tools.
Agreed. What you suggest would be the correct way to handle this. I just hacked something in a way that is "compatible" with the current implementation.
Any update on this front? Is 4.0.0 vulnerable to this bug?
This hasn't been re-written to use the dynamic string struct yet, but it should happen soon.