# git rev-parse -q --verify a45ea48e2bcd92c1f678b794f488ca0bda9835b8^{commit} a45ea48e2bcd92c1f678b794f488ca0bda9835b8 already have revision, skipping fetch # git checkout -q -f -B kisskb a45ea48e2bcd92c1f678b794f488ca0bda9835b8 # git clean -qxdf # < git log -1 # commit a45ea48e2bcd92c1f678b794f488ca0bda9835b8 # Author: David Howells # Date: Sun Jan 26 01:02:53 2020 +0000 # # afs: Fix characters allowed into cell names # # The afs filesystem needs to prohibit certain characters from cell names, # such as '/', as these are used to form filenames in procfs, leading to # the following warning being generated: # # WARNING: CPU: 0 PID: 3489 at fs/proc/generic.c:178 # # Fix afs_alloc_cell() to disallow nonprintable characters, '/', '@' and # names that begin with a dot. # # Remove the check for "@cell" as that is then redundant. # # This can be tested by running: # # echo add foo/.bar 1.2.3.4 >/proc/fs/afs/cells # # Note that we will also need to deal with: # # - Names ending in ".invalid" shouldn't be passed to the DNS. # # - Names that contain non-valid domainname chars shouldn't be passed to # the DNS. # # - DNS replies that say "your-dns-needs-immediate-attention." and # replies containing A records that say 127.0.53.53 should be # considered invalid. # [https://www.icann.org/en/system/files/files/name-collision-mitigation-01aug14-en.pdf] # # but these need to be dealt with by the kafs-client DNS program rather # than the kernel. # # Reported-by: syzbot+b904ba7c947a37b4b291@syzkaller.appspotmail.com # Cc: stable@kernel.org # Signed-off-by: David Howells # Signed-off-by: Linus Torvalds # < /opt/cross/kisskb/korg/gcc-8.1.0-nolibc/m68k-linux/bin/m68k-linux-gcc --version # < /opt/cross/kisskb/korg/gcc-8.1.0-nolibc/m68k-linux/bin/m68k-linux-ld --version # < git log --format=%s --max-count=1 a45ea48e2bcd92c1f678b794f488ca0bda9835b8 # < make -s -j 32 ARCH=m68k O=/kisskb/build/linus_m5272c3_defconfig_m68k CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-8.1.0-nolibc/m68k-linux/bin/m68k-linux- m5272c3_defconfig # make -s -j 32 ARCH=m68k O=/kisskb/build/linus_m5272c3_defconfig_m68k CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-8.1.0-nolibc/m68k-linux/bin/m68k-linux- :1511:2: warning: #warning syscall clone3 not implemented [-Wcpp] In file included from /kisskb/src/include/linux/string.h:20, from /kisskb/src/include/linux/bitmap.h:9, from /kisskb/src/include/linux/cpumask.h:12, from /kisskb/src/include/linux/rcupdate.h:31, from /kisskb/src/include/linux/rculist.h:11, from /kisskb/src/include/linux/dcache.h:7, from /kisskb/src/include/linux/fs.h:8, from /kisskb/src/fs/ext2/ext2.h:14, from /kisskb/src/fs/ext2/ioctl.c:11: /kisskb/src/fs/ext2/ioctl.c: In function 'ext2_ioctl': /kisskb/src/arch/m68k/include/asm/string.h:72:25: warning: '__builtin_memcpy' forming offset [3, 4] is out of the bounds [0, 2] of object '__gu_val' with type 'short unsigned int' [-Warray-bounds] #define memcpy(d, s, n) __builtin_memcpy(d, s, n) ^~~~~~~~~~~~~~~~~~~~~~~~~ /kisskb/src/arch/m68k/include/asm/uaccess_no.h:86:2: note: in expansion of macro 'memcpy' memcpy((void *) &__gu_val, ptr, sizeof (*(ptr))); \ ^~~~~~ /kisskb/src/fs/ext2/ioctl.c:123:7: note: in expansion of macro 'get_user' if (get_user(rsv_window_size, (int __user *)arg)) ^~~~~~~~ In file included from /kisskb/src/arch/m68k/include/asm/uaccess.h:3, from /kisskb/src/include/linux/uaccess.h:11, from /kisskb/src/include/linux/crypto.h:21, from /kisskb/src/include/crypto/hash.h:11, from /kisskb/src/include/linux/uio.h:10, from /kisskb/src/include/linux/socket.h:8, from /kisskb/src/include/linux/compat.h:15, from /kisskb/src/fs/ext2/ioctl.c:15: /kisskb/src/arch/m68k/include/asm/uaccess_no.h:74:15: note: '__gu_val' declared here typeof(x) __gu_val = 0; \ ^~~~~~~~ /kisskb/src/fs/ext2/ioctl.c:123:7: note: in expansion of macro 'get_user' if (get_user(rsv_window_size, (int __user *)arg)) ^~~~~~~~ /kisskb/src/drivers/net/ethernet/freescale/fec_main.c: In function 'fec_restart': /kisskb/src/drivers/net/ethernet/freescale/fec_main.c:915:6: warning: unused variable 'val' [-Wunused-variable] u32 val; ^~~ /kisskb/src/drivers/net/ethernet/freescale/fec_main.c: In function 'fec_get_mac': /kisskb/src/drivers/net/ethernet/freescale/fec_main.c:1643:28: warning: unused variable 'pdata' [-Wunused-variable] struct fec_platform_data *pdata = dev_get_platdata(&fep->pdev->dev); ^~~~~ In file included from /kisskb/src/arch/m68k/include/asm/atomic.h:7, from /kisskb/src/include/linux/atomic.h:7, from /kisskb/src/include/linux/spinlock.h:445, from /kisskb/src/include/linux/seqlock.h:36, from /kisskb/src/include/linux/time.h:6, from /kisskb/src/include/linux/stat.h:19, from /kisskb/src/include/linux/module.h:13, from /kisskb/src/net/core/filter.c:20: /kisskb/src/net/core/filter.c: In function 'bpf_clear_redirect_map': /kisskb/src/arch/m68k/include/asm/cmpxchg.h:137:3: warning: value computed is not used [-Wunused-value] ((__typeof__(*(ptr)))__cmpxchg_local_generic((ptr), (unsigned long)(o),\ ~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ (unsigned long)(n), sizeof(*(ptr)))) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /kisskb/src/include/asm-generic/cmpxchg.h:106:28: note: in expansion of macro 'cmpxchg_local' #define cmpxchg(ptr, o, n) cmpxchg_local((ptr), (o), (n)) ^~~~~~~~~~~~~ /kisskb/src/net/core/filter.c:3605:4: note: in expansion of macro 'cmpxchg' cmpxchg(&ri->map, map, NULL); ^~~~~~~ Completed OK # rm -rf /kisskb/build/linus_m5272c3_defconfig_m68k # Build took: 0:00:29.656547