Buildresult: linus/generic-64bit_defconfig/parisc64-gcc11 built on Mar 1 2023, 02:44
kisskb
Revisions
|
Branches
|
Compilers
|
Configs
|
Build Results
|
Build Failures
|
Status:
OK
Date/Time:
Mar 1 2023, 02:44
Duration:
0:00:59.523588
Builder:
alpine3
Revision:
vc_screen: don't clobber return value in vcs_read (
ae3419fbac845b4d3f3a9fae4cc80c68d82cdf6e)
Target:
linus/generic-64bit_defconfig/parisc64-gcc11
Branch:
linus
Compiler:
parisc64-gcc11
(hppa64-linux-gcc (GCC) 11.3.0 / GNU ld (GNU Binutils) 2.38)
Config:
generic-64bit_defconfig
(
download
)
Log:
Download original
Possible warnings (2)
fs/btrfs/send.c:1909:27: warning: 'right_gen' may be used uninitialized in this function [-Wmaybe-uninitialized] include/linux/list.h:74:19: warning: 'seed_devices' may be used uninitialized in this function [-Wmaybe-uninitialized]
Full Log
# git rev-parse -q --verify ae3419fbac845b4d3f3a9fae4cc80c68d82cdf6e^{commit} ae3419fbac845b4d3f3a9fae4cc80c68d82cdf6e already have revision, skipping fetch # git checkout -q -f -B kisskb ae3419fbac845b4d3f3a9fae4cc80c68d82cdf6e # git clean -qxdf # < git log -1 # commit ae3419fbac845b4d3f3a9fae4cc80c68d82cdf6e # Author: Thomas Weißschuh <linux@weissschuh.net> # Date: Mon Feb 20 06:46:12 2023 +0000 # # vc_screen: don't clobber return value in vcs_read # # Commit 226fae124b2d ("vc_screen: move load of struct vc_data pointer in # vcs_read() to avoid UAF") moved the call to vcs_vc() into the loop. # # While doing this it also moved the unconditional assignment of # # ret = -ENXIO; # # This unconditional assignment was valid outside the loop but within it # it clobbers the actual value of ret. # # To avoid this only assign "ret = -ENXIO" when actually needed. # # [ Also, the 'goto unlock_out" needs to be just a "break", so that it # does the right thing when it exits on later iterations when partial # success has happened - Linus ] # # Reported-by: Storm Dragon <stormdragon2976@gmail.com> # Link: https://lore.kernel.org/lkml/Y%2FKS6vdql2pIsCiI@hotmail.com/ # Fixes: 226fae124b2d ("vc_screen: move load of struct vc_data pointer in vcs_read() to avoid UAF") # Signed-off-by: Thomas Weißschuh <linux@weissschuh.net> # Link: https://lore.kernel.org/lkml/64981d94-d00c-4b31-9063-43ad0a384bde@t-8ch.de/ # Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org> # < /opt/cross/kisskb/korg/gcc-11.3.0-nolibc/hppa-linux/bin/hppa64-linux-gcc --version # < /opt/cross/kisskb/korg/gcc-11.3.0-nolibc/hppa-linux/bin/hppa64-linux-ld --version # < git log --format=%s --max-count=1 ae3419fbac845b4d3f3a9fae4cc80c68d82cdf6e # < make -s -j 160 ARCH=parisc64 O=/kisskb/build/linus_generic-64bit_defconfig_parisc64-gcc11 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-11.3.0-nolibc/hppa-linux/bin/hppa64-linux- generic-64bit_defconfig # < make -s -j 160 ARCH=parisc64 O=/kisskb/build/linus_generic-64bit_defconfig_parisc64-gcc11 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-11.3.0-nolibc/hppa-linux/bin/hppa64-linux- help # make -s -j 160 ARCH=parisc64 O=/kisskb/build/linus_generic-64bit_defconfig_parisc64-gcc11 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-11.3.0-nolibc/hppa-linux/bin/hppa64-linux- olddefconfig # make -s -j 160 ARCH=parisc64 O=/kisskb/build/linus_generic-64bit_defconfig_parisc64-gcc11 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-11.3.0-nolibc/hppa-linux/bin/hppa64-linux- /kisskb/src/fs/btrfs/send.c: In function 'get_cur_inode_state': /kisskb/src/fs/btrfs/send.c:1909:27: warning: 'right_gen' may be used uninitialized in this function [-Wmaybe-uninitialized] 1909 | } else if (right_gen == gen) { | ^ In file included from /kisskb/src/include/linux/rculist.h:10, from /kisskb/src/include/linux/pid.h:5, from /kisskb/src/include/linux/sched.h:14, from /kisskb/src/fs/btrfs/volumes.c:6: /kisskb/src/fs/btrfs/volumes.c: In function 'btrfs_init_new_device': /kisskb/src/include/linux/list.h:74:19: warning: 'seed_devices' may be used uninitialized in this function [-Wmaybe-uninitialized] 74 | new->prev = prev; | ~~~~~~~~~~^~~~~~ /kisskb/src/fs/btrfs/volumes.c:2612:34: note: 'seed_devices' was declared here 2612 | struct btrfs_fs_devices *seed_devices; | ^~~~~~~~~~~~ Completed OK # rm -rf /kisskb/build/linus_generic-64bit_defconfig_parisc64-gcc11 # Build took: 0:00:59.523588
© Michael Ellerman 2006-2018.