[Devel] [PATCH vz10 0/4] gcov: use atomic GCOV counters to prevent crash in inflate_fast

Konstantin Khorenko khorenko at virtuozzo.com
Wed Apr 22 17:21:20 MSK 2026


Switch to mainstream patches to fix that issue:
not only use -fprofile-update=atomic CCFLAGS for lib/zlib_*,
but compile the whole kernel with that profile in order to prevent other
possible similar issues.

https://virtuozzo.atlassian.net/browse/VSTOR-127788
https://virtuozzo.atlassian.net/browse/VSTOR-128012

Konstantin Khorenko (4):
  Revert "lib/zlib: use atomic GCOV counters to prevent crash in
    inflate_fast"
  ms/net: fix skb_ext_total_length() BUILD_BUG_ON with
    CONFIG_GCOV_PROFILE_ALL
  ms/net: add noinline __init __no_profile to skb_extensions_init() for
    GCOV compatibility
  gcov: use atomic counter updates to fix concurrent access crashes

 Makefile                  | 2 +-
 lib/zlib_deflate/Makefile | 6 ------
 lib/zlib_dfltcc/Makefile  | 6 ------
 lib/zlib_inflate/Makefile | 7 -------
 net/core/skbuff.c         | 6 ++----
 5 files changed, 3 insertions(+), 24 deletions(-)

-- 
2.47.1



More information about the Devel mailing list