# git rev-parse -q --verify 716f4aaa7b48a55c73d632d0657b35342b1fefd7^{commit} 716f4aaa7b48a55c73d632d0657b35342b1fefd7 already have revision, skipping fetch # git checkout -q -f -B kisskb 716f4aaa7b48a55c73d632d0657b35342b1fefd7 # git clean -qxdf # < git log -1 # commit 716f4aaa7b48a55c73d632d0657b35342b1fefd7 # Merge: 841c35169323 46f5ab762d04 # Author: Linus Torvalds # Date: Mon Feb 12 07:15:45 2024 -0800 # # Merge tag 'vfs-6.8-rc5.fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/vfs/vfs # # Pull vfs fixes from Christian Brauner: # # - Fix performance regression introduced by moving the security # permission hook out of do_clone_file_range() and into its caller # vfs_clone_file_range(). # # This causes the security hook to be called in situation were it # wasn't called before as the fast permission checks were left in # do_clone_file_range(). # # Fix this by merging the two implementations back together and # restoring the old ordering: fast permission checks first, expensive # ones later. # # - Tweak mount_setattr() permission checking so that mount properties on # the real rootfs can be changed. # # When we added mount_setattr() we added additional checks compared to # legacy mount(2). If the mount had a parent then verify that the # caller and the mount namespace the mount is attached to match and if # not make sure that it's an anonymous mount. # # But the real rootfs falls into neither category. It is neither an # anoymous mount because it is obviously attached to the initial mount # namespace but it also obviously doesn't have a parent mount. So that # means legacy mount(2) allows changing mount properties on the real # rootfs but mount_setattr(2) blocks this. This causes regressions (See # the commit for details). # # Fix this by relaxing the check. If the mount has a parent or if it # isn't a detached mount, verify that the mount namespaces of the # caller and the mount are the same. Technically, we could probably # write this even simpler and check that the mount namespaces match if # it isn't a detached mount. But the slightly longer check makes it # clearer what conditions one needs to think about. # # * tag 'vfs-6.8-rc5.fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/vfs/vfs: # fs: relax mount_setattr() permission checks # remap_range: merge do_clone_file_range() into vfs_clone_file_range() # < /opt/cross/kisskb/korg/gcc-11.3.0-nolibc/sh4-linux/bin/sh4-linux-gcc --version # < /opt/cross/kisskb/korg/gcc-11.3.0-nolibc/sh4-linux/bin/sh4-linux-ld --version # < git log --format=%s --max-count=1 716f4aaa7b48a55c73d632d0657b35342b1fefd7 # make -s -j 40 ARCH=sh O=/kisskb/build/linus_se7619_defconfig_sh4-gcc11 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-11.3.0-nolibc/sh4-linux/bin/sh4-linux- se7619_defconfig # < make -s -j 40 ARCH=sh O=/kisskb/build/linus_se7619_defconfig_sh4-gcc11 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-11.3.0-nolibc/sh4-linux/bin/sh4-linux- help # make -s -j 40 ARCH=sh O=/kisskb/build/linus_se7619_defconfig_sh4-gcc11 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-11.3.0-nolibc/sh4-linux/bin/sh4-linux- olddefconfig # make -s -j 40 ARCH=sh O=/kisskb/build/linus_se7619_defconfig_sh4-gcc11 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-11.3.0-nolibc/sh4-linux/bin/sh4-linux- Generating include/generated/machtypes.h :1519:2: warning: #warning syscall clone3 not implemented [-Wcpp] /kisskb/src/arch/sh/mm/cache-sh2.c:85:13: warning: no previous prototype for 'sh2_cache_init' [-Wmissing-prototypes] 85 | void __init sh2_cache_init(void) | ^~~~~~~~~~~~~~ /kisskb/src/arch/sh/mm/nommu.c:76:13: warning: no previous prototype for 'kmap_coherent_init' [-Wmissing-prototypes] 76 | void __init kmap_coherent_init(void) | ^~~~~~~~~~~~~~~~~~ /kisskb/src/arch/sh/mm/nommu.c:80:7: warning: no previous prototype for 'kmap_coherent' [-Wmissing-prototypes] 80 | void *kmap_coherent(struct page *page, unsigned long addr) | ^~~~~~~~~~~~~ /kisskb/src/arch/sh/mm/nommu.c:86:6: warning: no previous prototype for 'kunmap_coherent' [-Wmissing-prototypes] 86 | void kunmap_coherent(void *kvaddr) | ^~~~~~~~~~~~~~~ /kisskb/src/arch/sh/kernel/cpu/init.c:99:29: warning: no previous prototype for 'l2_cache_init' [-Wmissing-prototypes] 99 | void __attribute__ ((weak)) l2_cache_init(void) | ^~~~~~~~~~~~~ /kisskb/src/arch/sh/kernel/return_address.c:49:7: warning: no previous prototype for 'return_address' [-Wmissing-prototypes] 49 | void *return_address(unsigned int depth) | ^~~~~~~~~~~~~~ /kisskb/src/arch/sh/kernel/sys_sh.c:58:16: warning: no previous prototype for 'sys_cacheflush' [-Wmissing-prototypes] 58 | asmlinkage int sys_cacheflush(unsigned long addr, unsigned long len, int op) | ^~~~~~~~~~~~~~ /kisskb/src/arch/sh/kernel/traps_32.c:735:6: warning: no previous prototype for 'per_cpu_trap_init' [-Wmissing-prototypes] 735 | void per_cpu_trap_init(void) | ^~~~~~~~~~~~~~~~~ /kisskb/src/arch/sh/kernel/hw_breakpoint.c:135:5: warning: no previous prototype for 'arch_bp_generic_fields' [-Wmissing-prototypes] 135 | int arch_bp_generic_fields(int sh_len, int sh_type, | ^~~~~~~~~~~~~~~~~~~~~~ Completed OK # rm -rf /kisskb/build/linus_se7619_defconfig_sh4-gcc11 # Build took: 0:00:21.298047