Hi "Daniel,
[FYI, it's a private test report for your RFC patch.]
[auto build test WARNING on linuxtv-media/master]
[also build test WARNING on next-20200519]
[cannot apply to linus/master linux/master v5.7-rc6]
[if your patch is applied to the wrong git tree, please drop us a note to help
improve the system. BTW, we also suggest to use '--base' option to specify the
base tree in git format-patch, please see
https://stackoverflow.com/a/37406982]
url:
https://github.com/0day-ci/linux/commits/Daniel-W-S-Almeida/media-vidtv-i...
base:
git://linuxtv.org/media_tree.git master
config: x86_64-defconfig (attached as .config)
compiler: gcc-7 (Ubuntu 7.5.0-6ubuntu2) 7.5.0
reproduce:
# save the attached .config to linux build tree
make ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>, old ones prefixed by <<):
> arch/x86/mm/init_64.c:1264:6: warning: no previous prototype for
'mark_rodata_ro' [-Wmissing-prototypes]
void mark_rodata_ro(void)
^~~~~~~~~~~~~~
vim +/mark_rodata_ro +1264 arch/x86/mm/init_64.c
16239630974516a arch/x86/mm/init_64.c Steven Rostedt 2009-02-17 1263
67df197b1a07944 arch/x86_64/mm/init.c Arjan van de Ven 2006-01-06 @1264 void
mark_rodata_ro(void)
67df197b1a07944 arch/x86_64/mm/init.c Arjan van de Ven 2006-01-06 1265 {
74e081797bd9d2a arch/x86/mm/init_64.c Suresh Siddha 2009-10-14 1266 unsigned long
start = PFN_ALIGN(_text);
fc8d782677f163d arch/x86/mm/init_64.c Alexander Duyck 2012-11-16 1267 unsigned long
rodata_start = PFN_ALIGN(__start_rodata);
2d0004d19829c84 arch/x86/mm/init_64.c Kees Cook 2019-10-29 1268 unsigned long
end = (unsigned long)__end_rodata_hpage_align;
2d0004d19829c84 arch/x86/mm/init_64.c Kees Cook 2019-10-29 1269 unsigned long
text_end = PFN_ALIGN(_etext);
2d0004d19829c84 arch/x86/mm/init_64.c Kees Cook 2019-10-29 1270 unsigned long
rodata_end = PFN_ALIGN(__end_rodata);
45e2a9d4701d8c6 arch/x86/mm/init_64.c Kees Cook 2014-11-14 1271 unsigned long
all_end;
8f0f996e80b980f arch/x86/mm/init_64.c Steven Rostedt 2008-05-12 1272
6fb14755a676282 arch/x86_64/mm/init.c Jan Beulich 2007-05-02 1273 printk(KERN_INFO
"Write protecting the kernel read-only data: %luk\n",
e3ebadd95cb621e arch/x86_64/mm/init.c Linus Torvalds 2007-05-07 1274 (end -
start) >> 10);
984bb80d94d8915 arch/x86/mm/init_64.c Arjan van de Ven 2008-02-06 1275
set_memory_ro(start, (end - start) >> PAGE_SHIFT);
984bb80d94d8915 arch/x86/mm/init_64.c Arjan van de Ven 2008-02-06 1276
16239630974516a arch/x86/mm/init_64.c Steven Rostedt 2009-02-17 1277
kernel_set_to_readonly = 1;
16239630974516a arch/x86/mm/init_64.c Steven Rostedt 2009-02-17 1278
984bb80d94d8915 arch/x86/mm/init_64.c Arjan van de Ven 2008-02-06 1279 /*
72212675d1c96f5 arch/x86/mm/init_64.c Yinghai Lu 2013-01-24 1280 * The
rodata/data/bss/brk section (but not the kernel text!)
72212675d1c96f5 arch/x86/mm/init_64.c Yinghai Lu 2013-01-24 1281 * should also
be not-executable.
45e2a9d4701d8c6 arch/x86/mm/init_64.c Kees Cook 2014-11-14 1282 *
45e2a9d4701d8c6 arch/x86/mm/init_64.c Kees Cook 2014-11-14 1283 * We align
all_end to PMD_SIZE because the existing mapping
45e2a9d4701d8c6 arch/x86/mm/init_64.c Kees Cook 2014-11-14 1284 * is a full
PMD. If we would align _brk_end to PAGE_SIZE we
45e2a9d4701d8c6 arch/x86/mm/init_64.c Kees Cook 2014-11-14 1285 * split the PMD
and the reminder between _brk_end and the end
45e2a9d4701d8c6 arch/x86/mm/init_64.c Kees Cook 2014-11-14 1286 * of the PMD
will remain mapped executable.
45e2a9d4701d8c6 arch/x86/mm/init_64.c Kees Cook 2014-11-14 1287 *
45e2a9d4701d8c6 arch/x86/mm/init_64.c Kees Cook 2014-11-14 1288 * Any PMD which
was setup after the one which covers _brk_end
45e2a9d4701d8c6 arch/x86/mm/init_64.c Kees Cook 2014-11-14 1289 * has been
zapped already via cleanup_highmem().
984bb80d94d8915 arch/x86/mm/init_64.c Arjan van de Ven 2008-02-06 1290 */
45e2a9d4701d8c6 arch/x86/mm/init_64.c Kees Cook 2014-11-14 1291 all_end =
roundup((unsigned long)_brk_end, PMD_SIZE);
ab76f7b4ab2397f arch/x86/mm/init_64.c Stephen Smalley 2015-10-01 1292
set_memory_nx(text_end, (all_end - text_end) >> PAGE_SHIFT);
67df197b1a07944 arch/x86_64/mm/init.c Arjan van de Ven 2006-01-06 1293
:::::: The code at line 1264 was first introduced by commit
:::::: 67df197b1a07944c2e0e40ded3d4fd07d108e110 [PATCH] x86/x86_64: mark rodata section
read-only: x86-64 support
:::::: TO: Arjan van de Ven <arjan(a)infradead.org>
:::::: CC: Linus Torvalds <torvalds(a)g5.osdl.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org