{"id":22878899,"url":"https://github.com/asphaltt/tailcall-issues","last_synced_at":"2026-05-01T15:32:03.706Z","repository":{"id":264468538,"uuid":"893456647","full_name":"Asphaltt/tailcall-issues","owner":"Asphaltt","description":"A tool to detect tailcall issues.","archived":false,"fork":false,"pushed_at":"2025-04-03T15:20:10.000Z","size":601,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-03T16:30:42.998Z","etag":null,"topics":["bpf","ebpf","tailcall","tailcall-issues"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Asphaltt.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-11-24T13:55:10.000Z","updated_at":"2025-04-03T15:20:13.000Z","dependencies_parsed_at":"2025-04-03T16:25:35.564Z","dependency_job_id":"7b2fc1d9-5954-4c20-9457-027d8a8af100","html_url":"https://github.com/Asphaltt/tailcall-issues","commit_stats":null,"previous_names":["asphaltt/tailcall-issues"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/Asphaltt/tailcall-issues","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Asphaltt%2Ftailcall-issues","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Asphaltt%2Ftailcall-issues/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Asphaltt%2Ftailcall-issues/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Asphaltt%2Ftailcall-issues/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Asphaltt","download_url":"https://codeload.github.com/Asphaltt/tailcall-issues/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Asphaltt%2Ftailcall-issues/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32503024,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-30T13:12:12.517Z","status":"online","status_checked_at":"2026-05-01T02:00:05.856Z","response_time":64,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bpf","ebpf","tailcall","tailcall-issues"],"created_at":"2024-12-13T16:35:16.855Z","updated_at":"2026-05-01T15:32:03.664Z","avatar_url":"https://github.com/Asphaltt.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# tailcall-issues: A tool to detect tailcall issues\n\n```bash\ntailcall issues:\n\nISSUE:  invalid tailcallee\nCOMMIT: 1c123c567fb1 (\"bpf: Resolve fext program type when checking map compatibility\")\nURL:    https://github.com/torvalds/linux/commit/1c123c567fb138ebd187480b7fc0610fcb0851f5\nPATCH:  https://lore.kernel.org/all/20221214230254.790066-1-toke@redhat.com/\nRANGE:  v5.6 -\u003e v6.2\n\nISSUE:  invalid loading offset of tail_call_cnt for bpf2bpf\nCOMMIT: ff672c67ee76 (\"bpf, x86: Fix tail call count offset calculation on bpf2bpf call\")\nURL:    https://github.com/torvalds/linux/commit/ff672c67ee7635ca1e28fb13729e8ef0d1f08ce5\nPATCH:  https://lore.kernel.org/bpf/20220616162037.535469-1-jakub@cloudflare.com/\nRANGE:  v5.10 -\u003e v5.19\n\nISSUE:  tailcall infinite loop caused by trampoline\nCOMMIT: 2b5dcb31a19a (\"bpf, x64: Fix tailcall infinite loop\")\nURL:    https://github.com/torvalds/linux/commit/2b5dcb31a19a2e0acd869b12c9db9b2d696ef544\nPATCH:  https://lore.kernel.org/bpf/20230912150442.2009-1-hffilwlqm@gmail.com/\nRANGE:  v5.10 -\u003e v6.7\n\nISSUE:  tailcall hierarchy\nCOMMIT: 116e04ba1459 (\"bpf, x64: Fix tailcall hierarchy\")\nURL:    https://github.com/torvalds/linux/commit/116e04ba1459fc08f80cf27b8c9f9f188be0fcb2\nPATCH:  https://lore.kernel.org/bpf/20240714123902.32305-1-hffilwlqm@gmail.com/\nRANGE:  v5.10 -\u003e v6.12\n\nISSUE:  panic caused by updating attached freplace prog to prog array\nCOMMIT: fdad456cbcca (\"bpf: Fix updating attached freplace prog in prog_array map\")\nURL:    https://github.com/torvalds/linux/commit/fdad456cbcca739bae1849549c7a999857c56f88\nPATCH:  https://lore.kernel.org/bpf/20240728114612.48486-1-leon.hwang@linux.dev/\nRANGE:  v6.2 -\u003e v6.11\n\nISSUE:  tailcall infinite loop caused by freplace\nCOMMIT: d6083f040d5d (\"bpf: Prevent tailcall infinite loop caused by freplace\")\nURL:    https://github.com/torvalds/linux/commit/d6083f040d5d8f8d748462c77e90547097df936e\nPATCH:  https://lore.kernel.org/bpf/20241015150207.70264-1-leon.hwang@linux.dev/\nRANGE:  v6.2 -\u003e v6.13\n```\n\nDetection on Ubuntu 24.04 v6.8 kernel:\n\n```bash\n# uname -r\n6.8.0-35-generic\n\n# ./tailcall-issues\ndetection results:\n\nissue:  invalid tailcallee\nstate:  fixed\n\nissue:  invalid loading offset of tail_call_cnt for bpf2bpf\nstate:  fixed\n\nissue:  tailcall infinite loop caused by trampoline\nstate:  fixed\n\nissue:  tailcall hierarchy\nstate:  not fixed\n\nissue:  panic caused by updating attached freplace prog to prog array\nstate:  cannot detect\n\nissue:  tailcall infinite loop caused by freplace\nstate:  not fixed\n```\n\nDetection on Ubuntu 22.04 v5.15 kernel:\n\n```bash\n# uname -r\n5.15.0-051500-generic\n\n# ./tailcall-issues\ndetection results:\n\nissue:  invalid tailcallee\nstate:  not fixed\n\nissue:  invalid loading offset of tail_call_cnt for bpf2bpf\nstate:  not fixed\n\nissue:  tailcall infinite loop caused by trampoline\nstate:  not fixed\n\nissue:  tailcall hierarchy\nstate:  not fixed\n\nissue:  panic caused by updating attached freplace prog to prog array\nstate:  not exists\n\nissue:  tailcall infinite loop caused by freplace\nstate:  not exists\n```\n\n## Build\n\n`capstone-engine` library is required to build `tailcall-issues` tool. Install it by:\n\n```bash\n# apt install libcapstone-dev\n```\n\nLLVM and Go are also required to build the tool.\n\nThen, build the tool by:\n\n```bash\n# make\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fasphaltt%2Ftailcall-issues","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fasphaltt%2Ftailcall-issues","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fasphaltt%2Ftailcall-issues/lists"}