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

Stephen Rothwell <[email protected]> Wed, 13 Aug 2025 16:12:58 +1000
Newsgroups dev.linux.lists.kernelci,dev.linux.lists.regressions,org.kernel.vger.linux-next
Message-ID <[email protected]>
Hi all,

On Wed, 13 Aug 2025 04:59:04 -0000 KernelCI bot <[email protected]> wrote:
>
> 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 protected]>
> 
> --
> This is an experimental report format. Please send feedback in!
> Talk to us at [email protected]
> 
> Made with love by the KernelCI team - https://kernelci.org
> 

This is caused by commit

  eacecdbf2789 ("iov_iter: iterate_folioq: fix handling of offset >= folio size")

in the mm-hotfixes-unstable branch of the mm-hotfixes tree.

This is now commit

  b8da3ae0ae53 ("iov_iter: iterate_folioq: fix handling of offset >= folio size")

-- 
Cheers,
Stephen Rothwell
signature.asc (application/pgp-signature, 488 B)
-----BEGIN PGP SIGNATURE-----

iQEzBAEBCAAdFiEENIC96giZ81tWdLgKAVBC80lX0GwFAmicLOoACgkQAVBC80lX
0Gy1+Qf8C/PHElFrT+Rpi3gZlFVtsREeuOH+grAsgqS+YB7xk1mjzx0ZGnbUs5YN
JYyjWNFLlddQSgtWyJ3pFhQdGjzGJZglx96YZ1U2OLvrhpdPeOK4Wpe+1UJ+qeZ4
X0wkjBDzpP0RzfGJ3p1SIOS1NOeYk3BghGSO5+OF6Iiy9aoKcpPo5Ys6GIWfGbW+
ykhXQMm+dZ/SVqJZO6/SCtNR5nu34qXSU142PVxQt6w3vUSI/aV6TWTz+Ui5A52W
JDWZ7TauQ1YsXITWiNj81ZH8Qjgf+Lhx7IXV0Tca9FsoKA5JRsBhzHZb9g7UhSHA
41llClX/pqZXLPgDcAICbjmZr0dtIg==
=Plwf
-----END PGP SIGNATURE-----