# git rev-parse -q --verify cc3a7bfe62b947b423fcb2cfe89fcba92bf48fa3^{commit} cc3a7bfe62b947b423fcb2cfe89fcba92bf48fa3 already have revision, skipping fetch # git checkout -q -f -B kisskb cc3a7bfe62b947b423fcb2cfe89fcba92bf48fa3 # git clean -qxdf # < git log -1 # commit cc3a7bfe62b947b423fcb2cfe89fcba92bf48fa3 # Author: Eric Sandeen # Date: Wed Oct 2 16:17:54 2019 -0500 # # vfs: Fix EOVERFLOW testing in put_compat_statfs64 # # Today, put_compat_statfs64() disallows nearly any field value over # 2^32 if f_bsize is only 32 bits, but that makes no sense. # compat_statfs64 is there for the explicit purpose of providing 64-bit # fields for f_files, f_ffree, etc. And f_bsize is always only 32 bits. # # As a result, 32-bit userspace gets -EOVERFLOW for i.e. large file # counts even with -D_FILE_OFFSET_BITS=64 set. # # In reality, only f_bsize and f_frsize can legitimately overflow # (fields like f_type and f_namelen should never be large), so test # only those fields. # # This bug was discussed at length some time ago, and this is the proposal # Al suggested at https://lkml.org/lkml/2018/8/6/640. It seemed to get # dropped amid the discussion of other related changes, but this # part seems obviously correct on its own, so I've picked it up and # sent it, for expediency. # # Fixes: 64d2ab32efe3 ("vfs: fix put_compat_statfs64() does not handle errors") # Signed-off-by: Eric Sandeen # Signed-off-by: Linus Torvalds # < /opt/cross/kisskb/gcc-4.6.3-nolibc/arm-unknown-linux-gnueabi/bin/arm-unknown-linux-gnueabi-gcc --version # < /opt/cross/kisskb/gcc-4.6.3-nolibc/arm-unknown-linux-gnueabi/bin/arm-unknown-linux-gnueabi-ld --version # < git log --format=%s --max-count=1 cc3a7bfe62b947b423fcb2cfe89fcba92bf48fa3 # < make -s -j 48 ARCH=arm O=/kisskb/build/linus_mmp2_defconfig_arm CROSS_COMPILE=/opt/cross/kisskb/gcc-4.6.3-nolibc/arm-unknown-linux-gnueabi/bin/arm-unknown-linux-gnueabi- mmp2_defconfig # make -s -j 48 ARCH=arm O=/kisskb/build/linus_mmp2_defconfig_arm CROSS_COMPILE=/opt/cross/kisskb/gcc-4.6.3-nolibc/arm-unknown-linux-gnueabi/bin/arm-unknown-linux-gnueabi- /kisskb/src/kernel/printk/printk.c: In function 'devkmsg_sysctl_set_loglvl': /kisskb/src/kernel/printk/printk.c:204:16: warning: 'old' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/kernel/rcu/srcutree.c: In function 'init_srcu_struct_fields': /kisskb/src/kernel/rcu/srcutree.c:121:34: warning: 'levelspread[]' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/kernel/rcu/srcutree.c:88:6: note: 'levelspread[]' was declared here /kisskb/src/drivers/base/regmap/regmap.c: In function 'regmap_raw_read': /kisskb/src/drivers/base/regmap/regmap.c:2591:6: warning: 'ret' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/drivers/base/regmap/regmap.c: In function '_regmap_raw_write': /kisskb/src/drivers/base/regmap/regmap.c:1852:6: warning: 'ret' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/fs/proc/inode.c: In function 'proc_reg_open': /kisskb/src/include/linux/list.h:65:12: warning: 'pdeo' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/fs/proc/inode.c:338:21: note: 'pdeo' was declared here WARNING: vmlinux.o(.text.unlikely+0x7ac): Section mismatch in reference from the function mmp2_add_uart() to the function .init.text:pxa_register_device() The function mmp2_add_uart() references the function __init pxa_register_device(). This is often because mmp2_add_uart lacks a __init annotation or the annotation of pxa_register_device is wrong. WARNING: vmlinux.o(.text.unlikely+0x7b8): Section mismatch in reference from the function mmp2_add_uart() to the variable .init.data:mmp2_device_uart1 The function mmp2_add_uart() references the variable __initdata mmp2_device_uart1. This is often because mmp2_add_uart lacks a __initdata annotation or the annotation of mmp2_device_uart1 is wrong. WARNING: vmlinux.o(.text.unlikely+0x7bc): Section mismatch in reference from the function mmp2_add_uart() to the variable .init.data:mmp2_device_uart3 The function mmp2_add_uart() references the variable __initdata mmp2_device_uart3. This is often because mmp2_add_uart lacks a __initdata annotation or the annotation of mmp2_device_uart3 is wrong. WARNING: vmlinux.o(.text.unlikely+0x7c0): Section mismatch in reference from the function mmp2_add_uart() to the variable .init.data:mmp2_device_uart4 The function mmp2_add_uart() references the variable __initdata mmp2_device_uart4. This is often because mmp2_add_uart lacks a __initdata annotation or the annotation of mmp2_device_uart4 is wrong. WARNING: vmlinux.o(.text.unlikely+0x7c4): Section mismatch in reference from the function mmp2_add_uart() to the variable .init.data:mmp2_device_uart2 The function mmp2_add_uart() references the variable __initdata mmp2_device_uart2. This is often because mmp2_add_uart lacks a __initdata annotation or the annotation of mmp2_device_uart2 is wrong. WARNING: vmlinux.o(.text.unlikely+0x804): Section mismatch in reference from the function mmp2_add_sdhost() to the function .init.text:pxa_register_device() The function mmp2_add_sdhost() references the function __init pxa_register_device(). This is often because mmp2_add_sdhost lacks a __init annotation or the annotation of pxa_register_device is wrong. WARNING: vmlinux.o(.text.unlikely+0x810): Section mismatch in reference from the function mmp2_add_sdhost() to the variable .init.data:mmp2_device_sdh0 The function mmp2_add_sdhost() references the variable __initdata mmp2_device_sdh0. This is often because mmp2_add_sdhost lacks a __initdata annotation or the annotation of mmp2_device_sdh0 is wrong. WARNING: vmlinux.o(.text.unlikely+0x814): Section mismatch in reference from the function mmp2_add_sdhost() to the variable .init.data:mmp2_device_sdh2 The function mmp2_add_sdhost() references the variable __initdata mmp2_device_sdh2. This is often because mmp2_add_sdhost lacks a __initdata annotation or the annotation of mmp2_device_sdh2 is wrong. WARNING: vmlinux.o(.text.unlikely+0x818): Section mismatch in reference from the function mmp2_add_sdhost() to the variable .init.data:mmp2_device_sdh3 The function mmp2_add_sdhost() references the variable __initdata mmp2_device_sdh3. This is often because mmp2_add_sdhost lacks a __initdata annotation or the annotation of mmp2_device_sdh3 is wrong. WARNING: vmlinux.o(.text.unlikely+0x81c): Section mismatch in reference from the function mmp2_add_sdhost() to the variable .init.data:mmp2_device_sdh1 The function mmp2_add_sdhost() references the variable __initdata mmp2_device_sdh1. This is often because mmp2_add_sdhost lacks a __initdata annotation or the annotation of mmp2_device_sdh1 is wrong. WARNING: vmlinux.o(.text.unlikely+0x864): Section mismatch in reference from the function mmp2_add_uart() to the function .init.text:pxa_register_device() The function mmp2_add_uart() references the function __init pxa_register_device(). This is often because mmp2_add_uart lacks a __init annotation or the annotation of pxa_register_device is wrong. WARNING: vmlinux.o(.text.unlikely+0x870): Section mismatch in reference from the function mmp2_add_uart() to the variable .init.data:mmp2_device_uart1 The function mmp2_add_uart() references the variable __initdata mmp2_device_uart1. This is often because mmp2_add_uart lacks a __initdata annotation or the annotation of mmp2_device_uart1 is wrong. WARNING: vmlinux.o(.text.unlikely+0x874): Section mismatch in reference from the function mmp2_add_uart() to the variable .init.data:mmp2_device_uart3 The function mmp2_add_uart() references the variable __initdata mmp2_device_uart3. This is often because mmp2_add_uart lacks a __initdata annotation or the annotation of mmp2_device_uart3 is wrong. WARNING: vmlinux.o(.text.unlikely+0x878): Section mismatch in reference from the function mmp2_add_uart() to the variable .init.data:mmp2_device_uart4 The function mmp2_add_uart() references the variable __initdata mmp2_device_uart4. This is often because mmp2_add_uart lacks a __initdata annotation or the annotation of mmp2_device_uart4 is wrong. WARNING: vmlinux.o(.text.unlikely+0x87c): Section mismatch in reference from the function mmp2_add_uart() to the variable .init.data:mmp2_device_uart2 The function mmp2_add_uart() references the variable __initdata mmp2_device_uart2. This is often because mmp2_add_uart lacks a __initdata annotation or the annotation of mmp2_device_uart2 is wrong. WARNING: vmlinux.o(.text.unlikely+0x8c4): Section mismatch in reference from the function mmp2_add_uart() to the function .init.text:pxa_register_device() The function mmp2_add_uart() references the function __init pxa_register_device(). This is often because mmp2_add_uart lacks a __init annotation or the annotation of pxa_register_device is wrong. WARNING: vmlinux.o(.text.unlikely+0x8d0): Section mismatch in reference from the function mmp2_add_uart() to the variable .init.data:mmp2_device_uart1 The function mmp2_add_uart() references the variable __initdata mmp2_device_uart1. This is often because mmp2_add_uart lacks a __initdata annotation or the annotation of mmp2_device_uart1 is wrong. WARNING: vmlinux.o(.text.unlikely+0x8d4): Section mismatch in reference from the function mmp2_add_uart() to the variable .init.data:mmp2_device_uart3 The function mmp2_add_uart() references the variable __initdata mmp2_device_uart3. This is often because mmp2_add_uart lacks a __initdata annotation or the annotation of mmp2_device_uart3 is wrong. WARNING: vmlinux.o(.text.unlikely+0x8d8): Section mismatch in reference from the function mmp2_add_uart() to the variable .init.data:mmp2_device_uart4 The function mmp2_add_uart() references the variable __initdata mmp2_device_uart4. This is often because mmp2_add_uart lacks a __initdata annotation or the annotation of mmp2_device_uart4 is wrong. WARNING: vmlinux.o(.text.unlikely+0x8dc): Section mismatch in reference from the function mmp2_add_uart() to the variable .init.data:mmp2_device_uart2 The function mmp2_add_uart() references the variable __initdata mmp2_device_uart2. This is often because mmp2_add_uart lacks a __initdata annotation or the annotation of mmp2_device_uart2 is wrong. WARNING: "return_address" [vmlinux] is a static EXPORT_SYMBOL_GPL WARNING: "return_address" [vmlinux] is a static EXPORT_SYMBOL_GPL Completed OK # rm -rf /kisskb/build/linus_mmp2_defconfig_arm # Build took: 0:00:47.664162