# git rev-parse -q --verify 94f0b2d4a1d0c52035aef425da5e022bd2cb1c71^{commit} 94f0b2d4a1d0c52035aef425da5e022bd2cb1c71 already have revision, skipping fetch # git checkout -q -f -B kisskb 94f0b2d4a1d0c52035aef425da5e022bd2cb1c71 # git clean -qxdf # < git log -1 # commit 94f0b2d4a1d0c52035aef425da5e022bd2cb1c71 # Author: Linus Torvalds # Date: Tue Jun 15 09:26:19 2021 -0700 # # proc: only require mm_struct for writing # # Commit 591a22c14d3f ("proc: Track /proc/$pid/attr/ opener mm_struct") we # started using __mem_open() to track the mm_struct at open-time, so that # we could then check it for writes. # # But that also ended up making the permission checks at open time much # stricter - and not just for writes, but for reads too. And that in turn # caused a regression for at least Fedora 29, where NIC interfaces fail to # start when using NetworkManager. # # Since only the write side wanted the mm_struct test, ignore any failures # by __mem_open() at open time, leaving reads unaffected. The write() # time verification of the mm_struct pointer will then catch the failure # case because a NULL pointer will not match a valid 'current->mm'. # # Link: https://lore.kernel.org/netdev/YMjTlp2FSJYvoyFa@unreal/ # Fixes: 591a22c14d3f ("proc: Track /proc/$pid/attr/ opener mm_struct") # Reported-and-tested-by: Leon Romanovsky # Cc: Kees Cook # Cc: Christian Brauner # Cc: Andrea Righi # 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 94f0b2d4a1d0c52035aef425da5e022bd2cb1c71 # < make -s -j 120 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 120 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 120 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 120 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/net/sched/sch_frag.c: In function 'sch_fragment': /kisskb/src/net/sched/sch_frag.c:93:10: warning: missing braces around initializer [-Wmissing-braces] struct rtable sch_frag_rt = { 0 }; ^ /kisskb/src/net/sched/sch_frag.c:93:10: warning: (near initialization for 'sch_frag_rt.dst') [-Wmissing-braces] /kisskb/src/block/genhd.c: In function 'diskstats_show': /kisskb/src/block/genhd.c:1227:1: warning: the frame size of 1120 bytes is larger than 1024 bytes [-Wframe-larger-than=] } ^ INFO: Uncompressed kernel (size 0xcd485c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xcd485c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xcd485c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xcd485c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xcd485c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xcd485c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xcd485c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xcd485c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xcd485c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xcd485c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xcc424c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xcc424c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) Image Name: Linux-5.13.0-rc6+ Created: Wed Jun 16 05:22:38 2021 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5547227 Bytes = 5417.21 KiB = 5.29 MiB Load Address: 00d00000 Entry Point: 00d00294 Image Name: Linux-5.13.0-rc6+ Created: Wed Jun 16 05:22:38 2021 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5547187 Bytes = 5417.17 KiB = 5.29 MiB Load Address: 00d00000 Entry Point: 00d00294 Image Name: Linux-5.13.0-rc6+ Created: Wed Jun 16 05:22:38 2021 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5548221 Bytes = 5418.18 KiB = 5.29 MiB Load Address: 00d00000 Entry Point: 00d00894 Image Name: Linux-5.13.0-rc6+ Created: Wed Jun 16 05:22:38 2021 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5547289 Bytes = 5417.27 KiB = 5.29 MiB Load Address: 00d00000 Entry Point: 00d00294 Image Name: Linux-5.13.0-rc6+ Created: Wed Jun 16 05:22:38 2021 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5547825 Bytes = 5417.80 KiB = 5.29 MiB Load Address: 00d00000 Entry Point: 00d00894 Image Name: Linux-5.13.0-rc6+ Created: Wed Jun 16 05:22:38 2021 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5547617 Bytes = 5417.59 KiB = 5.29 MiB Load Address: 00d00000 Entry Point: 00d00294 Image Name: Linux-5.13.0-rc6+ Created: Wed Jun 16 05:22:38 2021 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5546919 Bytes = 5416.91 KiB = 5.29 MiB Load Address: 00d00000 Entry Point: 00d00294 Image Name: Linux-5.13.0-rc6+ Created: Wed Jun 16 05:22:38 2021 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5547291 Bytes = 5417.28 KiB = 5.29 MiB Load Address: 00d00000 Entry Point: 00d00294 Image Name: Linux-5.13.0-rc6+ Created: Wed Jun 16 05:22:38 2021 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5516635 Bytes = 5387.34 KiB = 5.26 MiB Load Address: 00000000 Entry Point: 00000000 Completed OK # rm -rf /kisskb/build/linus_ppc6xx_defconfig_powerpc-gcc4.9 # Build took: 0:02:02.040181