# git rev-parse -q --verify 2abd839aa7e615f2bbc50c8ba7deb9e40d186768^{commit} 2abd839aa7e615f2bbc50c8ba7deb9e40d186768 already have revision, skipping fetch # git checkout -q -f -B kisskb 2abd839aa7e615f2bbc50c8ba7deb9e40d186768 # git clean -qxdf # < git log -1 # commit 2abd839aa7e615f2bbc50c8ba7deb9e40d186768 # Author: Catalin Marinas # Date: Fri Oct 4 14:46:24 2019 +0100 # # kmemleak: Do not corrupt the object_list during clean-up # # In case of an error (e.g. memory pool too small), kmemleak disables # itself and cleans up the already allocated metadata objects. However, if # this happens early before the RCU callback mechanism is available, # put_object() skips call_rcu() and frees the object directly. This is not # safe with the RCU list traversal in __kmemleak_do_cleanup(). # # Change the list traversal in __kmemleak_do_cleanup() to # list_for_each_entry_safe() and remove the rcu_read_{lock,unlock} since # the kmemleak is already disabled at this point. In addition, avoid an # unnecessary metadata object rb-tree look-up since it already has the # struct kmemleak_object pointer. # # Fixes: c5665868183f ("mm: kmemleak: use the memory pool for early allocations") # Reported-by: Alexey Kardashevskiy # Reported-by: Marc Dionne # Reported-by: Ted Ts'o # Cc: Andrew Morton # Signed-off-by: Catalin Marinas # Signed-off-by: Linus Torvalds # < /opt/cross/kisskb/gcc-4.6.3-nolibc/sh4-linux/bin/sh4-linux-gcc --version # < /opt/cross/kisskb/gcc-4.6.3-nolibc/sh4-linux/bin/sh4-linux-ld --version # < git log --format=%s --max-count=1 2abd839aa7e615f2bbc50c8ba7deb9e40d186768 # < make -s -j 120 ARCH=sh O=/kisskb/build/linus_ap325rxa_defconfig_sh4 CROSS_COMPILE=/opt/cross/kisskb/gcc-4.6.3-nolibc/sh4-linux/bin/sh4-linux- ap325rxa_defconfig # make -s -j 120 ARCH=sh O=/kisskb/build/linus_ap325rxa_defconfig_sh4 CROSS_COMPILE=/opt/cross/kisskb/gcc-4.6.3-nolibc/sh4-linux/bin/sh4-linux- Generating include/generated/machtypes.h :1511:2: warning: #warning syscall clone3 not implemented [-Wcpp] /kisskb/src/arch/sh/kernel/cpu/sh4/../sh3/../../entry-common.S: Assembler messages: /kisskb/src/arch/sh/kernel/cpu/sh4/../sh3/../../entry-common.S:385: Warning: overflow in branch to syscall_exit_work; converted into longer instruction sequence /kisskb/src/arch/sh/kernel/cpu/sh4/../sh3/../../entry-common.S:388: Warning: overflow in branch to syscall_exit_work; converted into longer instruction sequence /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/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/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/i2c/busses/i2c-sh_mobile.c: In function 'sh_mobile_i2c_isr': /kisskb/src/drivers/i2c/busses/i2c-sh_mobile.c:399:26: warning: 'data' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/drivers/i2c/busses/i2c-sh_mobile.c:372:16: note: 'data' was declared here /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 /kisskb/src/drivers/sh/clk/cpg.c: In function 'r8': /kisskb/src/drivers/sh/clk/cpg.c:41:2: warning: passing argument 1 of 'ioread8' discards 'const' qualifier from pointer target type [enabled by default] /kisskb/src/include/asm-generic/iomap.h:29:21: note: expected 'void *' but argument is of type 'const void *' /kisskb/src/drivers/sh/clk/cpg.c: In function 'r16': /kisskb/src/drivers/sh/clk/cpg.c:46:2: warning: passing argument 1 of 'ioread16' discards 'const' qualifier from pointer target type [enabled by default] /kisskb/src/include/asm-generic/iomap.h:30:21: note: expected 'void *' but argument is of type 'const void *' /kisskb/src/drivers/sh/clk/cpg.c: In function 'r32': /kisskb/src/drivers/sh/clk/cpg.c:51:2: warning: passing argument 1 of 'ioread32' discards 'const' qualifier from pointer target type [enabled by default] /kisskb/src/include/asm-generic/iomap.h:32:21: note: expected 'void *' but argument is of type 'const void *' Image Name: Linux-5.4.0-rc3+ Created: Tue Oct 15 05:10:16 2019 Image Type: SuperH Linux Kernel Image (gzip compressed) Data Size: 3235413 Bytes = 3159.58 KiB = 3.09 MiB Load Address: 88001000 Entry Point: 88002000 Image arch/sh/boot/uImage is ready Completed OK # rm -rf /kisskb/build/linus_ap325rxa_defconfig_sh4 # Build took: 0:00:22.445078