In order to prevent DOS, the size of the request package received from the client should be limited to some configurable maximum.
Limiting the compressed .zip file size is pretty easy; we'd also want to limit the uncompressed size (to reduce the likelihood of a -ENOSPC later). To do the latter, one might need to run "unzip -l" or "zipinfo" on the file and scrape the output for estimating uncompressed sizes.
Fixed by commit c1531f3f48faf5d45949210712ef0e9420297b12 To limit the compressed client request there is the stap-server option --max-compressed-request which takes a size parameter in bytes. The default max compressed request size is 5000 bytes. To limit the uncompressed client request, there is the stap-server option --max-request-size which takes a size parameter in bytes. The default max uncompressed request size is 50000 bytes.