Subject: [REGRESSION] next/pending-fixes: (build) ./include/linux/iov_iter.h:171:7: error: variable 'remain' is used...

From: KernelCI bot <[email-masked]>
Date: Wed, 13 Aug 2025 04:59:04 -0000

Hello,

New build issue found on next/pending-fixes:

---
 ./include/linux/iov_iter.h:171:7: error: variable 'remain' is used uninitialized whenever 'if' condition is true [-Werror,-Wsometimes-uninitialized] in net/core/skbuff.o (net/core/skbuff.c) [logspec:kbuild,kbuild.compiler.error]
---

- dashboard: https://d.kernelci.org/i/maestro:e3e604796d8d054968bf2b979c7940708d16e0ee
- giturl: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
- commit HEAD:  1b07edbd37d5ab410613ebe09b0641d0f4fe717b

Log excerpt:
=====================================================
In file included from net/core/skbuff.c:66:
./include/linux/iov_iter.h:171:7: error: variable 'remain' is used uninitialized whenever 'if' condition is true [-Werror,-Wsometimes-uninitialized]
  171 |                 if (skip >= fsize)
      |                     ^~~~~~~~~~~~~
./include/linux/iov_iter.h:190:7: note: uninitialized use occurs here
  190 |                 if (remain)
      |                     ^~~~~~
./include/linux/iov_iter.h:171:3: note: remove the 'if' if its condition is always false
  171 |                 if (skip >= fsize)
      |                 ^~~~~~~~~~~~~~~~~~
  172 |                         goto next;
      |                         ~~~~~~~~~
./include/linux/iov_iter.h:163:22: note: initialize the variable 'remain' to silence this warning
  163 |                 size_t part, remain, consumed;
      |                                    ^
      |                                     = 0
  CC      drivers/pci/search.o
  CC      sound/core/seq/seq_dummy.o
  CC      lib/ctype.o
  CC      lib/dec_and_lock.o
  AR      sound/i2c/other/built-in.a
  AR      sound/i2c/built-in.a
  CC      kernel/fork.o
1 error generated.

=====================================================

# Builds where the incident occurred:

## x86_64_defconfig on (x86_64):
- compiler: clang-17
- dashboard: https://d.kernelci.org/build/maestro:689c1610233e484a3f9165be

## x86_64_defconfig+kselftest+x86-board on (x86_64):
- compiler: clang-17
- dashboard: https://d.kernelci.org/build/maestro:689c1617233e484a3f9165c4

#kernelci issue maestro:e3e604796d8d054968bf2b979c7940708d16e0ee

Reported-by: kernelci.org bot <[email-masked]>

--
This is an experimental report format. Please send feedback in!
Talk to us at [email-masked]

Made with love by the KernelCI team - https://kernelci.org