Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Kill Tracee incase of a leak #81

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

killtracee

42a5198
Select commit
Loading
Failed to load commit list.
Open

Kill Tracee incase of a leak #81

killtracee
42a5198
Select commit
Loading
Failed to load commit list.
Cirrus CI / Go Lint completed Oct 12, 2024 in 35s

Task Summary

Instruction lint failed in 00:28

Details

⚠️ Not enough compute credits to prioritize tasks!

✅ 00:00 clone
✅ 00:04 fetch
❌ 00:28 lint

golangci-lint run --enable-all --disable exhaustivestruct,exhaustruct,gochecknoglobals,gochecknoinits,interfacebloat,nosnakecase $GOLANGCI_ARGS -v --out-format json > lint-report.json
level=info msg="golangci-lint has version 1.61.0 built with go1.23.1 from a1d6c560 on 2024-09-09T17:44:42Z"
level=info msg="[config_reader] Config search paths: [./ /tmp/cirrus-ci-build /tmp / /root]"
level=warning msg="[lintersdb] The linter \"exhaustivestruct\" is deprecated (step 2) and deactivated. It should be removed from the list of disabled linters. https://golangci-lint.run/product/roadmap/#linter-deprecation-cycle"
level=warning msg="[lintersdb] The linter \"nosnakecase\" is deprecated (step 2) and deactivated. It should be removed from the list of disabled linters. https://golangci-lint.run/product/roadmap/#linter-deprecation-cycle"
level=warning msg="The linter 'exportloopref' is deprecated (since v1.60.2) due to: Since Go1.22 (loopvar) this linter is no longer relevant. Replaced by copyloopvar."
level=warning msg="The linter 'gomnd' is deprecated (since v1.58.0) due to: The linter has been renamed. Replaced by mnd."
level=warning msg="The linter 'execinquery' is deprecated (since v1.58.0) due to: The repository of the linter has been archived by the owner. "
level=info msg="[lintersdb] Active 104 linters: [asasalint asciicheck bidichk bodyclose canonicalheader containedctx contextcheck copyloopvar cyclop decorder depguard dogsled dupl dupword durationcheck err113 errcheck errchkjson errname errorlint execinquery exhaustive exportloopref fatcontext forbidigo forcetypeassert funlen gci ginkgolinter gocheckcompilerdirectives gochecksumtype gocognit goconst gocritic gocyclo godot godox gofmt gofumpt goheader goimports gomnd gomoddirectives gomodguard goprintffuncname gosec gosimple gosmopolitan govet grouper importas inamedparam ineffassign intrange ireturn lll loggercheck maintidx makezero mirror misspell mnd musttag nakedret nestif nilerr nilnil nlreturn noctx nolintlint nonamedreturns nosprintfhostport paralleltest perfsprint prealloc predeclared promlinter protogetter reassign revive rowserrcheck sloglint spancheck sqlclosecheck staticcheck stylecheck tagalign tagliatelle tenv testableexamples testifylint testpackage thelper tparallel unconvert unparam unused usestdlibvars varnamelen wastedassign whitespace wrapcheck wsl zerologlint]"
level=info msg="[loader] Go packages loading at mode 575 (compiled_files|deps|imports|types_sizes|exports_file|files|name) took 18.465149559s"
level=info msg="[runner/filename_unadjuster] Pre-built 0 adjustments in 1.36251ms"
level=info msg="[linters_context] importas settings found, but no aliases listed. List aliases under alias: key."
level=info msg="[linters_context/goanalysis] analyzers took 1m5.880019252s with top 10 stages: buildir: 27.867559256s, buildssa: 11.002725345s, exhaustive: 3.711903288s, the_only_name: 3.544204977s, inspect: 1.556882064s, fact_deprecated: 1.277255503s, fact_purity: 1.273991608s, printf: 1.26943693s, ctrlflow: 1.20334954s, SA5012: 935.180547ms"
level=info msg="[runner/max_same_issues] 1/4 issues with text \"S1039: unnecessary use of fmt.Sprintf\" were hidden, use --max-same-issues"
level=info msg="[runner] Issues before processing: 182, after processing: 45"
level=info msg="[runner] Processors filtering stat (in/out): autogenerated_exclude: 116/116, identifier_marker: 116/116, uniq_by_line: 60/46, max_from_linter: 45/45, path_prettifier: 116/116, exclude-rules: 116/86, severity-rules: 45/45, max_per_file_from_linter: 46/46, cgo: 182/116, filename_unadjuster: 116/116, invalid_issue: 116/116, skip_dirs: 116/116, exclude: 116/116, nolint: 86/60, diff: 46/46, path_shortener: 45/45, fixer: 45/45, path_prefixer: 45/45, sort_results: 45/45, skip_files: 116/116, max_same_issues: 46/45, source_code: 45/45"
level=info msg="[runner] processing took 6.143022ms with stages: exclude-rules: 2.8724ms, identifier_marker: 1.71982ms, nolint: 1.22013ms, autogenerated_exclude: 80.939µs, path_prettifier: 65.381µs, source_code: 62.69µs, max_same_issues: 34.87µs, skip_dirs: 31.621µs, uniq_by_line: 10.61µs, cgo: 10.21µs, invalid_issue: 9.02µs, max_from_linter: 8.14µs, path_shortener: 7.33µs, filename_unadjuster: 5.5µs, max_per_file_from_linter: 2.84µs, fixer: 290ns, exclude: 280ns, skip_files: 251ns, sort_results: 240ns, path_prefixer: 200ns, diff: 150ns, severity-rules: 110ns"
level=info msg="[runner] linters took 9.47404314s with stages: goanalysis_metalinter: 9.467835349s"
level=info msg="File cache stats: 6 entries of total size 42.4KiB"
level=info msg="Memory: 279 samples, avg is 149.3MB, max is 548.1MB"
level=info msg="Execution took 27.94648245s"
������������

Annotations

Check failure on line 209 in main.go

See this annotation in the file changed.

@cirrus-ci cirrus-ci / Go Lint

main.go#L209

Error return value is not checked (errcheck)

Check failure on line 227 in main.go

See this annotation in the file changed.

@cirrus-ci cirrus-ci / Go Lint

main.go#L227

main.go:227: Line contains TODO/BUG/FIXME: "TODO: handle invalid flag" (godox)

Check failure on line 48 in httpproxy/httpproxy.go

See this annotation in the file changed.

@cirrus-ci cirrus-ci / Go Lint

httpproxy/httpproxy.go#L48

File is not `gofumpt`-ed (gofumpt)

Check failure on line 493 in main.go

See this annotation in the file changed.

@cirrus-ci cirrus-ci / Go Lint

main.go#L493

unused-parameter: parameter 'args' seems to be unused, consider removing or renaming it as _ (revive)

Check failure on line 77 in main.go

See this annotation in the file changed.

@cirrus-ci cirrus-ci / Go Lint

main.go#L77

tag is not aligned, should be: default:"false"           usage:"Kill the Program in case of a Proxy Leak (bool)" (tagalign)

Check failure on line 78 in main.go

See this annotation in the file changed.

@cirrus-ci cirrus-ci / Go Lint

main.go#L78

tag is not aligned, should be: default:"false"           usage:"Kill only the specific tracee causing the leak (bool)" (tagalign)

Check failure on line 79 in main.go

See this annotation in the file changed.

@cirrus-ci cirrus-ci / Go Lint

main.go#L79

tag is not aligned, should be: default:"false"           usage:"Allow Proxy Leaks but Log any that Occur (bool)" (tagalign)

Check failure on line 80 in main.go

See this annotation in the file changed.

@cirrus-ci cirrus-ci / Go Lint

main.go#L80

tag is not aligned, should be: default:"true"            usage:"Use the Environment Vars TOR_SOCKS_HOST and TOR_SOCKS_PORT (bool)" (tagalign)

Check failure on line 81 in main.go

See this annotation in the file changed.

@cirrus-ci cirrus-ci / Go Lint

main.go#L81

tag is not aligned, should be: default:"socks5"          usage:"Incase of leak redirect to the desired proxy(socks5,http,trans)" (tagalign)

Check failure on line 82 in main.go

See this annotation in the file changed.

@cirrus-ci cirrus-ci / Go Lint

main.go#L82

tag is not aligned, should be: default:""                usage:"Proxy username in case of proxy redirection" (tagalign)

Check failure on line 83 in main.go

See this annotation in the file changed.

@cirrus-ci cirrus-ci / Go Lint

main.go#L83

tag is not aligned, should be: default:""                usage:"Proxy password in case of proxy redirection" (tagalign)

Check failure on line 84 in main.go

See this annotation in the file changed.

@cirrus-ci cirrus-ci / Go Lint

main.go#L84

tag is not aligned, should be: default:"false"           usage:"Disable random SOCKS behavior" (tagalign)

Check failure on line 85 in main.go

See this annotation in the file changed.

@cirrus-ci cirrus-ci / Go Lint

main.go#L85

tag is not aligned, should be: default:"false"           usage:"Whitelist outgoing IP connections to loopback addresses (e.g. 127.0.0.1)" (tagalign)

Check failure on line 107 in main.go

See this annotation in the file changed.

@cirrus-ci cirrus-ci / Go Lint

main.go#L107

calculated cyclomatic complexity for function main is 14, max is 10 (cyclop)

Check failure on line 49 in main.go

See this annotation in the file changed.

@cirrus-ci cirrus-ci / Go Lint

main.go#L49

import 'github.com/hlandau/dexlogconfig' is not allowed from list 'Main' (depguard)

Check failure on line 50 in main.go

See this annotation in the file changed.

@cirrus-ci cirrus-ci / Go Lint

main.go#L50

import 'github.com/hlandau/xlog' is not allowed from list 'Main' (depguard)

Check failure on line 51 in main.go

See this annotation in the file changed.

@cirrus-ci cirrus-ci / Go Lint

main.go#L51

import 'github.com/oraoto/go-pidfd' is not allowed from list 'Main' (depguard)

Check failure on line 52 in main.go

See this annotation in the file changed.

@cirrus-ci cirrus-ci / Go Lint

main.go#L52

import 'github.com/robertmin1/heteronculous-horklump/httpproxy' is not allowed from list 'Main' (depguard)

Check failure on line 53 in main.go

See this annotation in the file changed.

@cirrus-ci cirrus-ci / Go Lint

main.go#L53

import 'github.com/robertmin1/socks5/v4' is not allowed from list 'Main' (depguard)

Check failure on line 54 in main.go

See this annotation in the file changed.

@cirrus-ci cirrus-ci / Go Lint

main.go#L54

import 'github.com/u-root/u-root/pkg/strace' is not allowed from list 'Main' (depguard)

Check failure on line 272 in main.go

See this annotation in the file changed.

@cirrus-ci cirrus-ci / Go Lint

main.go#L272

do not define dynamic errors, use wrapped static errors instead: "fmt.Errorf(\"unknown event %#x from record %v\", r.Event, r)" (err113)

Check failure on line 480 in main.go

See this annotation in the file changed.

@cirrus-ci cirrus-ci / Go Lint

main.go#L480

do not define dynamic errors, use wrapped static errors instead: "errors.New(\"invalid ip address\")" (err113)

Check failure on line 69 in httpproxy/httpproxy.go

See this annotation in the file changed.

@cirrus-ci cirrus-ci / Go Lint

httpproxy/httpproxy.go#L69

do not define dynamic errors, use wrapped static errors instead: "fmt.Errorf(\"connect proxy error: %v\", strings.SplitN(resp.Status, \" \", 2)[1])" (err113)

Check failure on line 356 in main.go

See this annotation in the file changed.

@cirrus-ci cirrus-ci / Go Lint

main.go#L356

Magic number: 16, in <argument> detected (gomnd)

Check failure on line 530 in main.go

See this annotation in the file changed.

@cirrus-ci cirrus-ci / Go Lint

main.go#L530

Magic number: 10, in <argument> detected (gomnd)