• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

drakenclimber / libcgroup / 23767314410
56%

Build:
DEFAULT BRANCH: main
Ran 30 Mar 2026 08:57PM UTC
Jobs 5
Files 39
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

19 Mar 2026 07:08PM UTC coverage: 56.128% (-0.09%) from 56.221%
23767314410

push

github

drakenclimber
config: pass NULL when probing systemd default cgroup

ASan reported following global-buffer-overflow:

READ of size 1 at 0x7f50dc6b3e9f thread T0
    #0 0x... in cg_concat_path <src>/src/api.c:1769
    #1 0x... in cg_build_path_locked <src>/src/api.c:1889
    #2 0x... in cg_build_path <src>/src/api.c:1910
    #3 0x.. in systemd_default_cgroup_exists <src>/src/config.c:2258
    #4 0x.. in cgroup_set_default_systemd_cgroup <src>/src/config.c:2306
    #5 0x... in main <src>/src/tools/cgdelete.c:193
    #6 0x... in __libc_start_call_main (/lib64/libc.so.6+0x2a60f)
    #7 0x... in __libc_start_main_alias_2 (/lib64/libc.so.6+0x2a6bf)
    #8 0x... in _start (/usr/local/bin/cgdelete+0x402384)

0x... sits one byte to the left of the empty string literal '.LC3' that
systemd_default_cgroup_exists() handed to cg_build_path(). Passing an
empty suffix made cg_concat_path() evaluate suf[-1] while it decided
whether to append a trailing slash, triggering the ASan
global-buffer-overflow.

Fix by passing NULL, instead of "" (empty string) so cg_build_path()
skips the suffix concatenation entirely. The resulting canonical paths
are unchanged, but cgdelete (and any other caller) now runs without
trampling the adjacent literal.

Fixes: https://github.com/libcgroup/libcgroup/issues/526
Signed-off-by: Kamalesh Babulal <kamalesh.babulal@oracle.com>
Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>

1 of 1 new or added line in 1 file covered. (100.0%)

1207 existing lines in 4 files now uncovered.

5633 of 10036 relevant lines covered (56.13%)

584.4 hits per line

Uncovered Existing Lines

Lines Coverage ∆ File
91
77.6
-0.9% src/tools/cgget.c
188
41.15
-1.04% src/tools/cgxget.c
361
35.81
0.28% src/config.c
567
61.65
-0.09% src/api.c
Jobs
ID Job ID Ran Files Coverage
1 Sudo Tests - 23767314410.1 30 Mar 2026 08:58PM UTC 37
31.64
GitHub Action Run
2 Container Tests - 23767314410.2 30 Mar 2026 08:58PM UTC 28
35.52
GitHub Action Run
3 Unit Tests - 23767314410.3 30 Mar 2026 08:57PM UTC 37
11.07
GitHub Action Run
4 No Container Tests - 23767314410.4 30 Mar 2026 08:57PM UTC 37
44.33
GitHub Action Run
5 No systemd Functional Tests - 23767314410.5 30 Mar 2026 08:58PM UTC 28
46.6
GitHub Action Run
Source Files on build 23767314410
  • Tree
  • List 39
  • Changed 8
  • Source Changed 0
  • Coverage Changed 8
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • ba76ddb8 on github
  • Prev Build on main (#20863027504)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc