# git rev-parse -q --verify b08968f196d498b19e9d0841d76a03862258f2d8^{commit} # git fetch -q -n -f git://fs.ozlabs.ibm.com/kernel/linus master # git rev-parse -q --verify b08968f196d498b19e9d0841d76a03862258f2d8^{commit} b08968f196d498b19e9d0841d76a03862258f2d8 # git checkout -q -f -B kisskb b08968f196d498b19e9d0841d76a03862258f2d8 # git clean -qxdf # < git log -1 # commit b08968f196d498b19e9d0841d76a03862258f2d8 # Author: David Howells # Date: Thu Mar 3 13:05:18 2022 +0000 # # cachefiles: Fix incorrect length to fallocate() # # When cachefiles_shorten_object() calls fallocate() to shape the cache # file to match the DIO size, it passes the total file size it wants to # achieve, not the amount of zeros that should be inserted. Since this is # meant to preallocate that amount of storage for the file, it can cause # the cache to fill up the disk and hit ENOSPC. # # Fix this by passing the length actually required to go from the current # EOF to the desired EOF. # # Fixes: 7623ed6772de ("cachefiles: Implement cookie resize for truncate") # Reported-by: Jeffle Xu # Signed-off-by: David Howells # Tested-by: Jeff Layton # Reviewed-by: Jeff Layton # cc: linux-cachefs@redhat.com # Link: https://lore.kernel.org/r/164630854858.3665356.17419701804248490708.stgit@warthog.procyon.org.uk # v1 # Signed-off-by: Linus Torvalds # < /opt/cross/kisskb/korg/gcc-8.1.0-nolibc/x86_64-linux/bin/x86_64-linux-gcc --version # < /opt/cross/kisskb/korg/gcc-8.1.0-nolibc/x86_64-linux/bin/x86_64-linux-ld --version # < git log --format=%s --max-count=1 b08968f196d498b19e9d0841d76a03862258f2d8 # < make -s -j 120 ARCH=x86_64 O=/kisskb/build/linus-rand_x86_64-randconfig_x86_64-gcc8 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-8.1.0-nolibc/x86_64-linux/bin/x86_64-linux- randconfig # Added to kconfig CONFIG_STANDALONE=y # Added to kconfig CONFIG_PREVENT_FIRMWARE_BUILD=y # Added to kconfig CONFIG_CC_STACKPROTECTOR_STRONG=n # Added to kconfig CONFIG_GCC_PLUGINS=n # Added to kconfig CONFIG_GCC_PLUGIN_CYC_COMPLEXITY=n # Added to kconfig CONFIG_GCC_PLUGIN_SANCOV=n # Added to kconfig CONFIG_GCC_PLUGIN_LATENT_ENTROPY=n # Added to kconfig CONFIG_BPF_PRELOAD=n # Added to kconfig # < make -s -j 120 ARCH=x86_64 O=/kisskb/build/linus-rand_x86_64-randconfig_x86_64-gcc8 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-8.1.0-nolibc/x86_64-linux/bin/x86_64-linux- help # make -s -j 120 ARCH=x86_64 O=/kisskb/build/linus-rand_x86_64-randconfig_x86_64-gcc8 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-8.1.0-nolibc/x86_64-linux/bin/x86_64-linux- olddefconfig .config:6263:warning: override: reassigning to symbol STANDALONE .config:6266:warning: override: reassigning to symbol GCC_PLUGINS # make -s -j 120 ARCH=x86_64 O=/kisskb/build/linus-rand_x86_64-randconfig_x86_64-gcc8 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-8.1.0-nolibc/x86_64-linux/bin/x86_64-linux- vmlinux.o: warning: objtool: fixup_bad_iret()+0x7f: call to ftrace_likely_update() leaves .noinstr.text section vmlinux.o: warning: objtool: noist_exc_debug()+0x3c: call to ftrace_likely_update() leaves .noinstr.text section vmlinux.o: warning: objtool: exc_nmi()+0x30: call to ftrace_likely_update() leaves .noinstr.text section vmlinux.o: warning: objtool: poke_int3_handler()+0x43: call to ftrace_likely_update() leaves .noinstr.text section vmlinux.o: warning: objtool: __sev_get_ghcb.isra.8()+0x26: call to ftrace_likely_update() leaves .noinstr.text section vmlinux.o: warning: objtool: __sev_put_ghcb.isra.9()+0x27: call to ftrace_likely_update() leaves .noinstr.text section vmlinux.o: warning: objtool: __sev_es_ist_exit()+0x45: call to ftrace_likely_update() leaves .noinstr.text section vmlinux.o: warning: objtool: kernel_exc_vmm_communication()+0x3d: call to ftrace_likely_update() leaves .noinstr.text section vmlinux.o: warning: objtool: rcu_dynticks_eqs_enter()+0x1a: call to ftrace_likely_update() leaves .noinstr.text section vmlinux.o: warning: objtool: rcu_dynticks_eqs_exit()+0x1a: call to ftrace_likely_update() leaves .noinstr.text section vmlinux.o: warning: objtool: rcu_eqs_exit.constprop.59()+0x31: call to ftrace_likely_update() leaves .noinstr.text section vmlinux.o: warning: objtool: rcu_eqs_enter.constprop.60()+0x43: call to ftrace_likely_update() leaves .noinstr.text section vmlinux.o: warning: objtool: rcu_nmi_enter()+0x35: call to ftrace_likely_update() leaves .noinstr.text section vmlinux.o: warning: objtool: irqentry_nmi_enter()+0x38: call to ftrace_likely_update() leaves .noinstr.text section vmlinux.o: warning: objtool: irqentry_nmi_exit()+0x3b: call to ftrace_likely_update() leaves .noinstr.text section vmlinux.o: warning: objtool: enter_from_user_mode()+0x38: call to ftrace_likely_update() leaves .noinstr.text section vmlinux.o: warning: objtool: syscall_enter_from_user_mode()+0x3d: call to ftrace_likely_update() leaves .noinstr.text section vmlinux.o: warning: objtool: syscall_enter_from_user_mode_prepare()+0x38: call to ftrace_likely_update() leaves .noinstr.text section vmlinux.o: warning: objtool: irqentry_enter_from_user_mode()+0x38: call to ftrace_likely_update() leaves .noinstr.text section vmlinux.o: warning: objtool: context_tracking_recursion_enter()+0x3d: call to ftrace_likely_update() leaves .noinstr.text section vmlinux.o: warning: objtool: __context_tracking_enter()+0x2e: call to ftrace_likely_update() leaves .noinstr.text section vmlinux.o: warning: objtool: check_preemption_disabled()+0x37: call to ftrace_likely_update() leaves .noinstr.text section Completed OK # rm -rf /kisskb/build/linus-rand_x86_64-randconfig_x86_64-gcc8 # Build took: 0:02:01.845323