Buildresult: linus/sh-allyesconfig/sh4-gcc13 built on Dec 22, 14:25
kisskb
Revisions
|
Branches
|
Compilers
|
Configs
|
Build Results
|
Build Failures
|
Status:
Failed
Date/Time:
Dec 22, 14:25
Duration:
0:04:57.806849
Builder:
alpine2
Revision:
afs: Fix use-after-free due to get/remove race in volume tree (
9a6b294ab496650e9f270123730df37030911b55)
Target:
linus/sh-allyesconfig/sh4-gcc13
Branch:
linus
Compiler:
sh4-gcc13
(sh4-linux-gcc (GCC) 13.1.0 / GNU ld (GNU Binutils) 2.40)
Config:
allyesconfig
(
download
)
Log:
Download original
Possible errors
{standard input}:1095: Error: expected symbol name sh4-linux-gcc: internal compiler error: Segmentation fault signal terminated program cc1 make[6]: *** [scripts/Makefile.build:243: drivers/net/pcs/pcs-xpcs.o] Error 4 make[5]: *** [scripts/Makefile.build:480: drivers/net/pcs] Error 2 {standard input}:612: Error: missing operand {standard input}:612: Error: invalid operands for opcode {standard input}: Error: open CFI at the end of file; missing .cfi_endproc directive {standard input}:577: Error: displacement to undefined symbol .L76 overflows 8-bit field {standard input}:586: Error: displacement to undefined symbol .L75 overflows 12-bit field {standard input}:598: Error: displacement to undefined symbol .L134 overflows 8-bit field {standard input}:601: Error: displacement to undefined symbol .L80 overflows 8-bit field {standard input}:604: Error: displacement to undefined symbol .L81 overflows 8-bit field {standard input}:606: Error: displacement to undefined symbol .L75 overflows 12-bit field {standard input}:569: Error: pcrel too far {standard input}:590: Error: pcrel too far {standard input}:596: Error: pcrel too far {standard input}:610: Error: pcrel too far sh4-linux-gcc: internal compiler error: Segmentation fault signal terminated program cc1 make[6]: *** [scripts/Makefile.build:243: drivers/hwmon/pmbus/mp2975.o] Error 4 make[5]: *** [scripts/Makefile.build:480: drivers/hwmon/pmbus] Error 2 make[4]: *** [scripts/Makefile.build:480: drivers/hwmon] Error 2 make[4]: *** [scripts/Makefile.build:480: drivers/net] Error 2 make[3]: *** [scripts/Makefile.build:480: drivers] Error 2 make[2]: *** [Makefile:1911: .] Error 2 make[1]: *** [Makefile:234: __sub-make] Error 2 make: *** [Makefile:234: __sub-make] Error 2
Possible warnings (6)
<stdin>:1519:2: warning: #warning syscall clone3 not implemented [-Wcpp] arch/sh/kernel/cpu/sh2/../../entry-common.S:85: Warning: overflow in branch to __restore_all; converted into longer instruction sequence arch/sh/kernel/cpu/sh2/../../entry-common.S:357: Warning: overflow in branch to syscall_exit_work; converted into longer instruction sequence arch/sh/kernel/cpu/sh2/../../entry-common.S:360: Warning: overflow in branch to syscall_exit_work; converted into longer instruction sequence {standard input}:1094: Warning: end of file not at end of a line; newline inserted {standard input}: Warning: end of file not at end of a line; newline inserted
Full Log
# git rev-parse -q --verify 9a6b294ab496650e9f270123730df37030911b55^{commit} 9a6b294ab496650e9f270123730df37030911b55 already have revision, skipping fetch # git checkout -q -f -B kisskb 9a6b294ab496650e9f270123730df37030911b55 # git clean -qxdf # < git log -1 # commit 9a6b294ab496650e9f270123730df37030911b55 # Author: David Howells <dhowells@redhat.com> # Date: Thu Dec 21 13:57:31 2023 +0000 # # afs: Fix use-after-free due to get/remove race in volume tree # # When an afs_volume struct is put, its refcount is reduced to 0 before # the cell->volume_lock is taken and the volume removed from the # cell->volumes tree. # # Unfortunately, this means that the lookup code can race and see a volume # with a zero ref in the tree, resulting in a use-after-free: # # refcount_t: addition on 0; use-after-free. # WARNING: CPU: 3 PID: 130782 at lib/refcount.c:25 refcount_warn_saturate+0x7a/0xda # ... # RIP: 0010:refcount_warn_saturate+0x7a/0xda # ... # Call Trace: # afs_get_volume+0x3d/0x55 # afs_create_volume+0x126/0x1de # afs_validate_fc+0xfe/0x130 # afs_get_tree+0x20/0x2e5 # vfs_get_tree+0x1d/0xc9 # do_new_mount+0x13b/0x22e # do_mount+0x5d/0x8a # __do_sys_mount+0x100/0x12a # do_syscall_64+0x3a/0x94 # entry_SYSCALL_64_after_hwframe+0x62/0x6a # # Fix this by: # # (1) When putting, use a flag to indicate if the volume has been removed # from the tree and skip the rb_erase if it has. # # (2) When looking up, use a conditional ref increment and if it fails # because the refcount is 0, replace the node in the tree and set the # removal flag. # # Fixes: 20325960f875 ("afs: Reorganise volume and server trees to be rooted on the cell") # Signed-off-by: David Howells <dhowells@redhat.com> # Reviewed-by: Jeffrey Altman <jaltman@auristor.com> # cc: Marc Dionne <marc.dionne@auristor.com> # cc: linux-afs@lists.infradead.org # Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org> # < /opt/cross/kisskb/korg/gcc-13.1.0-nolibc/sh4-linux/bin/sh4-linux-gcc --version # < /opt/cross/kisskb/korg/gcc-13.1.0-nolibc/sh4-linux/bin/sh4-linux-ld --version # < git log --format=%s --max-count=1 9a6b294ab496650e9f270123730df37030911b55 # make -s -j 160 ARCH=sh O=/kisskb/build/linus_allyesconfig_sh4-gcc13 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-13.1.0-nolibc/sh4-linux/bin/sh4-linux- allyesconfig # Added to kconfig CONFIG_BUILD_DOCSRC=n # Added to kconfig CONFIG_MODULE_SIG=n # < make -s -j 160 ARCH=sh O=/kisskb/build/linus_allyesconfig_sh4-gcc13 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-13.1.0-nolibc/sh4-linux/bin/sh4-linux- help # make -s -j 160 ARCH=sh O=/kisskb/build/linus_allyesconfig_sh4-gcc13 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-13.1.0-nolibc/sh4-linux/bin/sh4-linux- olddefconfig # make -s -j 160 ARCH=sh O=/kisskb/build/linus_allyesconfig_sh4-gcc13 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-13.1.0-nolibc/sh4-linux/bin/sh4-linux- Generating include/generated/machtypes.h <stdin>:1519:2: warning: #warning syscall clone3 not implemented [-Wcpp] /kisskb/src/arch/sh/kernel/cpu/sh2/../../entry-common.S: Assembler messages: /kisskb/src/arch/sh/kernel/cpu/sh2/../../entry-common.S:85: Warning: overflow in branch to __restore_all; converted into longer instruction sequence /kisskb/src/arch/sh/kernel/cpu/sh2/../../entry-common.S:357: Warning: overflow in branch to syscall_exit_work; converted into longer instruction sequence /kisskb/src/arch/sh/kernel/cpu/sh2/../../entry-common.S:360: Warning: overflow in branch to syscall_exit_work; converted into longer instruction sequence {standard input}: Assembler messages: {standard input}:1094: Warning: end of file not at end of a line; newline inserted {standard input}:1095: Error: expected symbol name sh4-linux-gcc: internal compiler error: Segmentation fault signal terminated program cc1 Please submit a full bug report, with preprocessed source (by using -freport-bug). See <https://gcc.gnu.org/bugs/> for instructions. make[6]: *** [/kisskb/src/scripts/Makefile.build:243: drivers/net/pcs/pcs-xpcs.o] Error 4 make[6]: *** Waiting for unfinished jobs.... make[5]: *** [/kisskb/src/scripts/Makefile.build:480: drivers/net/pcs] Error 2 make[5]: *** Waiting for unfinished jobs.... {standard input}: Assembler messages: {standard input}: Warning: end of file not at end of a line; newline inserted {standard input}:612: Error: missing operand {standard input}:612: Error: invalid operands for opcode {standard input}: Error: open CFI at the end of file; missing .cfi_endproc directive {standard input}:577: Error: displacement to undefined symbol .L76 overflows 8-bit field {standard input}:586: Error: displacement to undefined symbol .L75 overflows 12-bit field {standard input}:598: Error: displacement to undefined symbol .L134 overflows 8-bit field {standard input}:601: Error: displacement to undefined symbol .L80 overflows 8-bit field {standard input}:604: Error: displacement to undefined symbol .L81 overflows 8-bit field {standard input}:606: Error: displacement to undefined symbol .L75 overflows 12-bit field {standard input}:569: Error: pcrel too far {standard input}:590: Error: pcrel too far {standard input}:596: Error: pcrel too far {standard input}:610: Error: pcrel too far sh4-linux-gcc: internal compiler error: Segmentation fault signal terminated program cc1 Please submit a full bug report, with preprocessed source (by using -freport-bug). See <https://gcc.gnu.org/bugs/> for instructions. make[6]: *** [/kisskb/src/scripts/Makefile.build:243: drivers/hwmon/pmbus/mp2975.o] Error 4 make[5]: *** [/kisskb/src/scripts/Makefile.build:480: drivers/hwmon/pmbus] Error 2 make[4]: *** [/kisskb/src/scripts/Makefile.build:480: drivers/hwmon] Error 2 make[4]: *** Waiting for unfinished jobs.... make[4]: *** [/kisskb/src/scripts/Makefile.build:480: drivers/net] Error 2 make[3]: *** [/kisskb/src/scripts/Makefile.build:480: drivers] Error 2 make[3]: *** Waiting for unfinished jobs.... make[2]: *** [/kisskb/src/Makefile:1911: .] Error 2 make[1]: *** [/kisskb/src/Makefile:234: __sub-make] Error 2 make: *** [Makefile:234: __sub-make] Error 2 Command 'make -s -j 160 ARCH=sh O=/kisskb/build/linus_allyesconfig_sh4-gcc13 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-13.1.0-nolibc/sh4-linux/bin/sh4-linux- ' returned non-zero exit status 2. # rm -rf /kisskb/build/linus_allyesconfig_sh4-gcc13 # Build took: 0:04:57.806849
© Michael Ellerman 2006-2018.