# 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_ppc6xx_defconfig_powerpc-gcc4.9 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-4.9.4-nolibc/powerpc64-linux/bin/powerpc64-linux- ppc6xx_defconfig # < make -s -j 8 ARCH=powerpc O=/kisskb/build/linus_ppc6xx_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_ppc6xx_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_ppc6xx_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 0xc4e04c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xc4e04c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xc4e04c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xc4e04c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xc3d964) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xc4e04c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) Image Name: Linux-5.10.0-rc7+ Created: Wed Dec 9 13:31:18 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5434127 Bytes = 5306.76 KiB = 5.18 MiB Load Address: 00d00000 Entry Point: 00d00894 INFO: Uncompressed kernel (size 0xc4e04c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xc4e04c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) Image Name: Linux-5.10.0-rc7+ Created: Wed Dec 9 13:31:18 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5435936 Bytes = 5308.53 KiB = 5.18 MiB Load Address: 00d00000 Entry Point: 00d00294 Image Name: Linux-5.10.0-rc7+ Created: Wed Dec 9 13:31:18 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5434212 Bytes = 5306.85 KiB = 5.18 MiB Load Address: 00d00000 Entry Point: 00d00894 Image Name: Linux-5.10.0-rc7+ Created: Wed Dec 9 13:31:18 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5403784 Bytes = 5277.13 KiB = 5.15 MiB Load Address: 00000000 Entry Point: 00000000 INFO: Uncompressed kernel (size 0xc4e04c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xc4e04c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xc4e04c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xc3d964) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) Image Name: Linux-5.10.0-rc7+ Created: Wed Dec 9 13:31:21 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5435552 Bytes = 5308.16 KiB = 5.18 MiB Load Address: 00d00000 Entry Point: 00d00294 Image Name: Linux-5.10.0-rc7+ Created: Wed Dec 9 13:31:21 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5435780 Bytes = 5308.38 KiB = 5.18 MiB Load Address: 00d00000 Entry Point: 00d00294 Image Name: Linux-5.10.0-rc7+ Created: Wed Dec 9 13:31:21 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5432561 Bytes = 5305.24 KiB = 5.18 MiB Load Address: 00d00000 Entry Point: 00d00294 Image Name: Linux-5.10.0-rc7+ Created: Wed Dec 9 13:31:22 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5435239 Bytes = 5307.85 KiB = 5.18 MiB Load Address: 00d00000 Entry Point: 00d00294 Image Name: Linux-5.10.0-rc7+ Created: Wed Dec 9 13:31:22 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5436699 Bytes = 5309.28 KiB = 5.18 MiB Load Address: 00d00000 Entry Point: 00d00294 Completed OK # rm -rf /kisskb/build/linus_ppc6xx_defconfig_powerpc-gcc4.9 # Build took: 0:05:55.698998