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

vbpf / prevail / 22272173442

22 Feb 2026 06:40AM UTC coverage: 88.53% (+0.02%) from 88.51%
22272173442

push

github

elazarg
Reject null pointer with non-zero access size

When a helper accepts PTR_TO_MEM_OR_NULL paired with
CONST_SIZE_OR_ZERO, the ValidAccess checker verified that a null
pointer has svalue==0 but did not verify the corresponding access
width is also zero. This allowed passing NULL with an arbitrary
non-zero size to helpers like csum_diff.

The fix requires that when the pointer is null (T_NUM with or_null),
the access width must also be zero — matching the Linux kernel's
check_mem_access semantics.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Signed-off-by: Elazar Gershuni <elazarg@gmail.com>

3 of 5 new or added lines in 1 file covered. (60.0%)

87 existing lines in 5 files now uncovered.

13144 of 14847 relevant lines covered (88.53%)

4619186.78 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

56.03
/src/linux/kfunc.cpp


Source Not Available

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