[lkml]   [2018]   [May]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH] powerpc/64s: Enhance the information in cpu_show_spectre_v1()
Hi Michal,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on powerpc/next]
[also build test ERROR on v4.17-rc7 next-20180529]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]

base: next
config: powerpc-defconfig (attached as .config)
compiler: powerpc64-linux-gnu-gcc (Debian 7.2.0-11) 7.2.0
wget -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
make.cross ARCH=powerpc

All errors (new ones prefixed by >>):

arch/powerpc/kernel/security.c: In function 'cpu_show_spectre_v1':
>> arch/powerpc/kernel/security.c:54:6: error: 'barrier_nospec_enabled' undeclared (first use in this function); did you mean 'kernfs_ns_enabled'?
if (barrier_nospec_enabled)
arch/powerpc/kernel/security.c:54:6: note: each undeclared identifier is reported only once for each function it appears in
arch/powerpc/kernel/security.c:58:1: error: control reaches end of non-void function [-Werror=return-type]
cc1: all warnings being treated as errors

vim +54 arch/powerpc/kernel/security.c

49 ssize_t cpu_show_spectre_v1(struct device *dev, struct device_attribute *attr, char *buf)
50 {
51 if (!security_ftr_enabled(SEC_FTR_BNDS_CHK_SPEC_BAR))
52 return sprintf(buf, "Not affected\n");
> 54 if (barrier_nospec_enabled)
55 return sprintf(buf, "Mitigation: __user pointer sanitization\n");
56 else
57 return sprintf(buf, "Vulnerable\n");
58 }

0-DAY kernel test infrastructure Open Source Technology Center Intel Corporation
[unhandled content-type:application/gzip]
 \ /
  Last update: 2018-05-29 16:04    [W:0.153 / U:4.416 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site