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: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20201206155949.GB19216@xsang-OptiPlex-9020>
Date:   Sun, 6 Dec 2020 23:59:49 +0800
From:   kerne test robot <oliver.sang@...el.com>
To:     "Paul E. McKenney" <paulmck@...nel.org>
Cc:     Ming Lei <ming.lei@...hat.com>, Jens Axboe <axboe@...nel.dk>,
        LKML <linux-kernel@...r.kernel.org>, lkp@...ts.01.org,
        lkp@...el.com
Subject: [percpu_ref]  2c05cc5920:
 WARNING:at_arch/x86/mm/pat/set_memory.c:#__cpa_process_fault



Greeting,

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

commit: 2c05cc5920504514a39df422145c68306f030a60 ("percpu_ref: Print stack trace upon reference-count underflow")
https://git.kernel.org/cgit/linux/kernel/git/paulmck/linux-rcu.git rcu/next


in testcase: boot

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

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


+--------------------------------------------------------------+------------+------------+
|                                                              | bb70203c00 | 2c05cc5920 |
+--------------------------------------------------------------+------------+------------+
| WARNING:at_arch/x86/mm/pat/set_memory.c:#__cpa_process_fault | 0          | 2          |
| EIP:__cpa_process_fault                                      | 0          | 2          |
| kernel_BUG_at_arch/x86/mm/physaddr.c                         | 0          | 2          |
| PANIC:early_exception                                        | 0          | 2          |
| EIP:__phys_addr                                              | 0          | 2          |
+--------------------------------------------------------------+------------+------------+


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


[   15.289525] WARNING: CPU: 0 PID: 0 at arch/x86/mm/pat/set_memory.c:1501 __cpa_process_fault+0x24f/0x292
[   15.293917] Modules linked in:
[   15.295329] CPU: 0 PID: 0 Comm: swapper Not tainted 5.10.0-rc1-00218-g2c05cc592050 #7
[   15.298798] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.12.0-1 04/01/2014
[   15.303054] EIP: __cpa_process_fault+0x24f/0x292
[   15.305327] Code: 06 83 05 d0 da c7 dd 01 83 15 d4 da c7 dd 00 ff 30 53 68 e5 22 0f dd e8 4f e6 25 01 83 05 d8 da c7 dd 01 83 15 dc da c7 dd 00 <0f> 0b 83 05 e0 da c7 dd 01 ba 01 00 00 00 6a 01 b8 b8 df a6 dd bf
[   15.313812] EAX: 00000040 EBX: dedfe000 ECX: 00000000 EDX: 00000000
[   15.316903] ESI: dd2d7f04 EDI: 00000001 EBP: dd2d7e68 ESP: dd2d7e40
[   15.319889] DS: 007b ES: 007b FS: 0000 GS: 0000 SS: 0068 EFLAGS: 00210046
[   15.322872] CR0: 80050033 CR2: ffbff000 CR3: 1dc30000 CR4: 000406b0
[   15.325934] Call Trace:
[   15.327141]  ? 0xdb200000
[   15.328474]  ? lookup_address+0x2b/0x3c
[   15.330371]  __change_page_attr+0xa6/0x3c7
[   15.332352]  __change_page_attr_set_clr+0x72/0x2a5
[   15.334627]  ? mutex_unlock+0x27/0x37
[   15.336421]  ? _vm_unmap_aliases+0x1da/0x1f0
[   15.338485]  change_page_attr_set_clr+0x274/0x307
[   15.340747]  change_page_attr_clear+0x34/0x44
[   15.343233]  set_memory_nonglobal+0x24/0x34
[   15.345150]  ? 0xdb200000
[   15.346415]  pti_init+0x1e0/0x215
[   15.348155]  start_kernel+0x555/0xce7
[   15.350003]  i386_start_kernel+0xf8/0x108
[   15.351908]  startup_32_smp+0x15f/0x164
[   15.356949] CPU: 0 PID: 0 Comm: swapper Not tainted 5.10.0-rc1-00218-g2c05cc592050 #7
[   15.360401] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.12.0-1 04/01/2014
[   15.364438] Call Trace:
[   15.365723]  dump_stack+0x45/0x63
[   15.367318]  __warn+0x136/0x177
[   15.368869]  report_bug+0x11f/0x1a4
[   15.370642]  ? __cpa_process_fault+0x24f/0x292
[   15.372788]  ? exc_overflow+0x6f/0x6f
[   15.374526]  handle_bug+0x77/0xc6
[   15.376113]  exc_invalid_op+0x40/0xdb
[   15.377950]  handle_exception+0x164/0x167
[   15.379734] EIP: __cpa_process_fault+0x24f/0x292
[   15.381687] Code: 06 83 05 d0 da c7 dd 01 83 15 d4 da c7 dd 00 ff 30 53 68 e5 22 0f dd e8 4f e6 25 01 83 05 d8 da c7 dd 01 83 15 dc da c7 dd 00 <0f> 0b 83 05 e0 da c7 dd 01 ba 01 00 00 00 6a 01 b8 b8 df a6 dd bf
[   15.390055] EAX: 00000040 EBX: dedfe000 ECX: 00000000 EDX: 00000000
[   15.393095] ESI: dd2d7f04 EDI: 00000001 EBP: dd2d7e68 ESP: dd2d7e40
[   15.396127] DS: 007b ES: 007b FS: 0000 GS: 0000 SS: 0068 EFLAGS: 00210046
[   15.399628]  ? pci_mmconfig_insert+0x2b6/0x35a
[   15.401937]  ? exc_overflow+0x6f/0x6f
[   15.403552]  ? pci_mmconfig_insert+0x2b6/0x35a
[   15.405625]  ? exc_overflow+0x6f/0x6f
[   15.411446]  ? __cpa_process_fault+0x24f/0x292
[   15.413584]  ? 0xdb200000
[   15.414558]  ? lookup_address+0x2b/0x3c
[   15.416292]  __change_page_attr+0xa6/0x3c7
[   15.418204]  __change_page_attr_set_clr+0x72/0x2a5
[   15.420295]  ? mutex_unlock+0x27/0x37
[   15.421927]  ? _vm_unmap_aliases+0x1da/0x1f0
[   15.424070]  change_page_attr_set_clr+0x274/0x307
[   15.426364]  change_page_attr_clear+0x34/0x44
[   15.428892]  set_memory_nonglobal+0x24/0x34
[   15.430966]  ? 0xdb200000
[   15.432219]  pti_init+0x1e0/0x215
[   15.433816]  start_kernel+0x555/0xce7
[   15.435254]  i386_start_kernel+0xf8/0x108
[   15.437111]  startup_32_smp+0x15f/0x164
[   15.438937] ---[ end trace c5ab853cca4be851 ]---


To reproduce:

        # build kernel
	cd linux
	cp config-5.10.0-rc1-00218-g2c05cc592050 .config
	make HOSTCC=gcc-9 CC=gcc-9 ARCH=i386 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-rc1-00218-g2c05cc592050" of type "text/plain" (132247 bytes)

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

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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ