# 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/br-sparc64-full-2016.08-613-ge98b4dd/bin/sparc64-linux-gcc --version # < /opt/cross/kisskb/br-sparc64-full-2016.08-613-ge98b4dd/bin/sparc64-linux-ld --version # < git log --format=%s --max-count=1 2abd839aa7e615f2bbc50c8ba7deb9e40d186768 # < make -s -j 48 ARCH=sparc64 O=/kisskb/build/linus_sparc64-allnoconfig_sparc64 CROSS_COMPILE=/opt/cross/kisskb/br-sparc64-full-2016.08-613-ge98b4dd/bin/sparc64-linux- allnoconfig WARNING: unmet direct dependencies detected for COMPAT_BINFMT_ELF Depends on [n]: COMPAT [=y] && BINFMT_ELF [=n] Selected by [y]: - COMPAT [=y] && SPARC64 [=y] # make -s -j 48 ARCH=sparc64 O=/kisskb/build/linus_sparc64-allnoconfig_sparc64 CROSS_COMPILE=/opt/cross/kisskb/br-sparc64-full-2016.08-613-ge98b4dd/bin/sparc64-linux- :1511:2: warning: #warning syscall clone3 not implemented [-Wcpp] kernel: arch/sparc/boot/image is ready kernel: arch/sparc/boot/zImage is ready Completed OK # rm -rf /kisskb/build/linus_sparc64-allnoconfig_sparc64 # Build took: 0:00:12.648897