lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20201122152925.GM2390@xsang-OptiPlex-9020>
Date:   Sun, 22 Nov 2020 23:29:25 +0800
From:   kernel test robot <oliver.sang@...el.com>
To:     Rick Edgecombe <rick.p.edgecombe@...el.com>
Cc:     akpm@...ux-foundation.org, jeyu@...nel.org, bpf@...r.kernel.org,
        ast@...nel.org, daniel@...earbox.net, luto@...nel.org,
        dave.hansen@...ux.intel.com, peterz@...radead.org, x86@...nel.org,
        rppt@...nel.org, linux-mm@...ck.org, linux-kernel@...r.kernel.org,
        dan.j.williams@...el.com, elena.reshetova@...el.com,
        ira.weiny@...el.com, Rick Edgecombe <rick.p.edgecombe@...el.com>,
        0day robot <lkp@...el.com>, lkp@...ts.01.org
Subject: [vmalloc]  377647beed:
 WARNING:at_arch/x86/kernel/ftrace.c:#ftrace_verify_code


Greeting,

FYI, we noticed the following commit (built with gcc-9):

commit: 377647beed53730bde5b15bcc49401f3c982bd45 ("[PATCH RFC 10/10] vmalloc: Add perm_alloc x86 implementation")
url: https://github.com/0day-ci/linux/commits/Rick-Edgecombe/New-permission-vmalloc-interface/20201121-043212
base: https://git.kernel.org/cgit/linux/kernel/git/bpf/bpf-next.git master

in testcase: boot

on test machine: qemu-system-x86_64 -enable-kvm -cpu SandyBridge -smp 2 -m 8G

caused below changes (please refer to attached dmesg/kmsg for entire log/backtrace):


+---------------------------------------------------------+------------+------------+
|                                                         | bc80b28ef8 | 377647beed |
+---------------------------------------------------------+------------+------------+
| boot_successes                                          | 4          | 0          |
| boot_failures                                           | 0          | 4          |
| WARNING:at_arch/x86/kernel/ftrace.c:#ftrace_verify_code | 0          | 4          |
| RIP:ftrace_verify_code                                  | 0          | 4          |
| WARNING:at_kernel/trace/ftrace.c:#ftrace_bug            | 0          | 4          |
| RIP:ftrace_bug                                          | 0          | 4          |
| BUG:unable_to_handle_page_fault_for_address             | 0          | 3          |
| Oops:#[##]                                              | 0          | 3          |
| RIP:strcmp                                              | 0          | 3          |
| Kernel_panic-not_syncing:Fatal_exception                | 0          | 3          |
+---------------------------------------------------------+------------+------------+


If you fix the issue, kindly add following tag
Reported-by: kernel test robot <oliver.sang@...el.com>


[    6.656527] WARNING: CPU: 0 PID: 2897 at arch/x86/kernel/ftrace.c:90 ftrace_verify_code+0x2f/0x70
[    6.658669] Modules linked in: sr_mod cdrom sg ata_generic
[    6.660055] CPU: 0 PID: 2897 Comm: modprobe Not tainted 5.10.0-rc3-00842-g377647beed53 #1
[    6.662003] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.12.0-1 04/01/2014
[    6.664112] RIP: 0010:ftrace_verify_code+0x2f/0x70
[    6.665391] Code: 00 48 89 f5 48 89 fe 48 83 ec 10 65 48 8b 04 25 28 00 00 00 48 89 44 24 08 31 c0 48 8d 7c 24 03 e8 b9 b9 13 00 48 85 c0 74 09 <0f> 0b b8 f2 ff ff ff eb 1d ba 05 00 00 00 48 89 ee 48 8d 7c 24 03
[    6.669614] RSP: 0018:ffffc900002ebcd8 EFLAGS: 00010286
[    6.669617] RAX: ffffffffffffffde RBX: 0000000000000000 RCX: ffffffef8103f45c
[    6.669618] RDX: 0000800000000000 RSI: 0000000000000005 RDI: 000000100000090f
[    6.669620] RBP: ffffffff82bf14a8 R08: 0000000000000000 R09: 0000000000000119
[    6.669621] R10: 0000000000000000 R11: 0000000000000000 R12: ffffffffa0030000
[    6.669623] R13: ffff88811ded8000 R14: 0000000002000000 R15: 0000000000000001
[    6.669625] FS:  00007fa2d3dea480(0000) GS:ffff88823fc00000(0000) knlGS:0000000000000000
[    6.669627] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[    6.669628] CR2: 00007fa2d3f702b0 CR3: 000000011d576000 CR4: 00000000000406f0
[    6.669632] Call Trace:
[    6.669654]  ? trace_clock_local+0xc/0x14
[    6.669659]  ftrace_modify_code_direct+0x10/0x4a
[    6.669665]  ftrace_process_locs+0x336/0x3a1
[    6.669669]  load_module+0xd46/0x1149
[    6.669673]  ? __kernel_read+0xfb/0x15f
[    6.669677]  ? kernel_read_file+0x132/0x1db
[    6.669679]  ? __do_sys_finit_module+0x94/0xbb
[    6.669681]  __do_sys_finit_module+0x94/0xbb
[    6.669684]  do_syscall_64+0x33/0x40
[    6.669687]  entry_SYSCALL_64_after_hwframe+0x44/0xa9
[    6.669690] RIP: 0033:0x7fa2d3f04f59
[    6.669694] Code: 00 c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d 07 6f 0c 00 f7 d8 64 89 01 48
[    6.669696] RSP: 002b:00007ffd79a85538 EFLAGS: 00000246 ORIG_RAX: 0000000000000139
[    6.669698] RAX: ffffffffffffffda RBX: 000055b509cbfbc0 RCX: 00007fa2d3f04f59
[    6.669699] RDX: 0000000000000000 RSI: 000055b509cb43f0 RDI: 0000000000000003
[    6.669701] RBP: 000055b509cb43f0 R08: 0000000000000000 R09: 000055b509cc1190
[    6.669702] R10: 0000000000000003 R11: 0000000000000246 R12: 0000000000000000
[    6.669703] R13: 000055b509cbfb60 R14: 0000000000040000 R15: 000055b509cbfbc0
[    6.669709] CPU: 0 PID: 2897 Comm: modprobe Not tainted 5.10.0-rc3-00842-g377647beed53 #1
[    6.669710] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.12.0-1 04/01/2014
[    6.669711] Call Trace:
[    6.669716]  dump_stack+0x57/0x6a
[    6.669719]  __warn+0xbb/0xe7
[    6.669724]  ? ftrace_verify_code+0x2f/0x70
[    6.669727]  report_bug+0x96/0xd6
[    6.669731]  handle_bug+0x4f/0x6f
[    6.669733]  exc_invalid_op+0x14/0x61
[    6.669736]  asm_exc_invalid_op+0x12/0x20
[    6.669739] RIP: 0010:ftrace_verify_code+0x2f/0x70
[    6.669741] Code: 00 48 89 f5 48 89 fe 48 83 ec 10 65 48 8b 04 25 28 00 00 00 48 89 44 24 08 31 c0 48 8d 7c 24 03 e8 b9 b9 13 00 48 85 c0 74 09 <0f> 0b b8 f2 ff ff ff eb 1d ba 05 00 00 00 48 89 ee 48 8d 7c 24 03
[    6.669742] RSP: 0018:ffffc900002ebcd8 EFLAGS: 00010286
[    6.669744] RAX: ffffffffffffffde RBX: 0000000000000000 RCX: ffffffef8103f45c
[    6.669746] RDX: 0000800000000000 RSI: 0000000000000005 RDI: 000000100000090f
[    6.669747] RBP: ffffffff82bf14a8 R08: 0000000000000000 R09: 0000000000000119
[    6.669748] R10: 0000000000000000 R11: 0000000000000000 R12: ffffffffa0030000
[    6.669750] R13: ffff88811ded8000 R14: 0000000002000000 R15: 0000000000000001
[    6.669754]  ? ftrace_verify_code+0x2a/0x70
[    6.669756]  ? trace_clock_local+0xc/0x14
[    6.669758]  ftrace_modify_code_direct+0x10/0x4a
[    6.669761]  ftrace_process_locs+0x336/0x3a1
[    6.669764]  load_module+0xd46/0x1149
[    6.669766]  ? __kernel_read+0xfb/0x15f
[    6.669769]  ? kernel_read_file+0x132/0x1db
[    6.669772]  ? __do_sys_finit_module+0x94/0xbb
[    6.669773]  __do_sys_finit_module+0x94/0xbb
[    6.669776]  do_syscall_64+0x33/0x40
[    6.669778]  entry_SYSCALL_64_after_hwframe+0x44/0xa9
[    6.669780] RIP: 0033:0x7fa2d3f04f59
[    6.669782] Code: 00 c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d 07 6f 0c 00 f7 d8 64 89 01 48
[    6.669783] RSP: 002b:00007ffd79a85538 EFLAGS: 00000246 ORIG_RAX: 0000000000000139
[    6.669786] RAX: ffffffffffffffda RBX: 000055b509cbfbc0 RCX: 00007fa2d3f04f59
[    6.669787] RDX: 0000000000000000 RSI: 000055b509cb43f0 RDI: 0000000000000003
[    6.669788] RBP: 000055b509cb43f0 R08: 0000000000000000 R09: 000055b509cc1190
[    6.669789] R10: 0000000000000003 R11: 0000000000000246 R12: 0000000000000000
[    6.669790] R13: 000055b509cbfb60 R14: 0000000000040000 R15: 000055b509cbfbc0
[    6.669793] ---[ end trace 8b6008b88a57006f ]---


To reproduce:

        # build kernel
	cd linux
	cp config-5.10.0-rc3-00842-g377647beed53 .config
	make HOSTCC=gcc-9 CC=gcc-9 ARCH=x86_64 olddefconfig prepare modules_prepare bzImage

        git clone https://github.com/intel/lkp-tests.git
        cd lkp-tests
        bin/lkp qemu -k <bzImage> job-script # job-script is attached in this email



Thanks,
Oliver Sang


View attachment "config-5.10.0-rc3-00842-g377647beed53" of type "text/plain" (117452 bytes)

View attachment "job-script" of type "text/plain" (4642 bytes)

Download attachment "dmesg.xz" of type "application/x-xz" (14588 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ