# git rev-parse -q --verify 4cb682964706deffb4861f0a91329ab3a705039f^{commit} 4cb682964706deffb4861f0a91329ab3a705039f already have revision, skipping fetch # git checkout -q -f -B kisskb 4cb682964706deffb4861f0a91329ab3a705039f # git clean -qxdf # < git log -1 # commit 4cb682964706deffb4861f0a91329ab3a705039f # Author: David Howells # Date: Tue Dec 8 23:52:03 2020 +0000 # # afs: Fix memory leak when mounting with multiple source parameters # # There's a memory leak in afs_parse_source() whereby multiple source= # parameters overwrite fc->source in the fs_context struct without freeing # the previously recorded source. # # Fix this by only permitting a single source parameter and rejecting with # an error all subsequent ones. # # This was caught by syzbot with the kernel memory leak detector, showing # something like the following trace: # # unreferenced object 0xffff888114375440 (size 32): # comm "repro", pid 5168, jiffies 4294923723 (age 569.948s) # backtrace: # slab_post_alloc_hook+0x42/0x79 # __kmalloc_track_caller+0x125/0x16a # kmemdup_nul+0x24/0x3c # vfs_parse_fs_string+0x5a/0xa1 # generic_parse_monolithic+0x9d/0xc5 # do_new_mount+0x10d/0x15a # do_mount+0x5f/0x8e # __do_sys_mount+0xff/0x127 # do_syscall_64+0x2d/0x3a # entry_SYSCALL_64_after_hwframe+0x44/0xa9 # # Fixes: 13fcc6837049 ("afs: Add fs_context support") # Reported-by: syzbot+86dc6632faaca40133ab@syzkaller.appspotmail.com # Signed-off-by: David Howells # cc: Randy Dunlap # Signed-off-by: Linus Torvalds # < /opt/cross/kisskb/korg/gcc-4.9.4-nolibc/powerpc64-linux/bin/powerpc64-linux-gcc --version # < /opt/cross/kisskb/korg/gcc-4.9.4-nolibc/powerpc64-linux/bin/powerpc64-linux-ld --version # < git log --format=%s --max-count=1 4cb682964706deffb4861f0a91329ab3a705039f # < make -s -j 8 ARCH=powerpc O=/kisskb/build/linus_mpc83xx_defconfig_powerpc-gcc4.9 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-4.9.4-nolibc/powerpc64-linux/bin/powerpc64-linux- mpc83xx_defconfig # < make -s -j 8 ARCH=powerpc O=/kisskb/build/linus_mpc83xx_defconfig_powerpc-gcc4.9 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-4.9.4-nolibc/powerpc64-linux/bin/powerpc64-linux- help # make -s -j 8 ARCH=powerpc O=/kisskb/build/linus_mpc83xx_defconfig_powerpc-gcc4.9 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-4.9.4-nolibc/powerpc64-linux/bin/powerpc64-linux- olddefconfig # make -s -j 8 ARCH=powerpc O=/kisskb/build/linus_mpc83xx_defconfig_powerpc-gcc4.9 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-4.9.4-nolibc/powerpc64-linux/bin/powerpc64-linux- /kisskb/src/block/genhd.c: In function 'diskstats_show': /kisskb/src/block/genhd.c:1662:1: warning: the frame size of 1160 bytes is larger than 1024 bytes [-Wframe-larger-than=] } ^ INFO: Uncompressed kernel (size 0x7a09b8) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x800000) INFO: Uncompressed kernel (size 0x7a09b8) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x800000) INFO: Uncompressed kernel (size 0x7a09b8) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x800000) INFO: Uncompressed kernel (size 0x7a09b8) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x800000) INFO: Uncompressed kernel (size 0x7a09b8) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x800000) INFO: Uncompressed kernel (size 0x7a09b8) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x800000) INFO: Uncompressed kernel (size 0x7902d0) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x800000) INFO: Uncompressed kernel (size 0x7a09b8) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x800000) Image Name: Linux-5.10.0-rc7-67293-g4cb68296 Created: Wed Dec 9 12:46:21 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 3571108 Bytes = 3487.41 KiB = 3.41 MiB Load Address: 00000000 Entry Point: 00000000 Image Name: Linux-5.10.0-rc7-67293-g4cb68296 Created: Wed Dec 9 12:46:22 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 3601292 Bytes = 3516.89 KiB = 3.43 MiB Load Address: 00800000 Entry Point: 00800294 Image Name: Linux-5.10.0-rc7-67293-g4cb68296 Created: Wed Dec 9 12:46:22 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 3601268 Bytes = 3516.86 KiB = 3.43 MiB Load Address: 00800000 Entry Point: 00800294 Image Name: Linux-5.10.0-rc7-67293-g4cb68296 Created: Wed Dec 9 12:46:22 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 3602191 Bytes = 3517.76 KiB = 3.44 MiB Load Address: 00800000 Entry Point: 00800294 Image Name: Linux-5.10.0-rc7-67293-g4cb68296 Created: Wed Dec 9 12:46:22 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 3600914 Bytes = 3516.52 KiB = 3.43 MiB Load Address: 00800000 Entry Point: 00800294 Image Name: Linux-5.10.0-rc7-67293-g4cb68296 Created: Wed Dec 9 12:46:22 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 3601135 Bytes = 3516.73 KiB = 3.43 MiB Load Address: 00800000 Entry Point: 00800294 Image Name: Linux-5.10.0-rc7-67293-g4cb68296 Created: Wed Dec 9 12:46:22 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 3601230 Bytes = 3516.83 KiB = 3.43 MiB Load Address: 00800000 Entry Point: 00800294 Completed OK # rm -rf /kisskb/build/linus_mpc83xx_defconfig_powerpc-gcc4.9 # Build took: 0:01:26.925842