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>] [day] [month] [year] [list]
Date:   Fri, 28 Aug 2020 15:21:38 +0800
From:   kernel test robot <rong.a.chen@...el.com>
To:     Thomas Gleixner <tglx@...utronix.de>
Cc:     0day robot <lkp@...el.com>, Alex bykov <alex.bykov@...lladb.com>,
        Avi Kivity <avi@...lladb.com>,
        Alexander Graf <graf@...zon.com>,
        LKML <linux-kernel@...r.kernel.org>, lkp@...ts.01.org
Subject: [x86/irq] e03700cc45:
 WARNING:at_arch/x86/kernel/apic/vector.c:#apic_update_vector

Greeting,

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

commit: e03700cc457d41c3241702365a535ba5d84221c1 ("x86/irq: Unbreak interrupt affinity setting")
url: https://github.com/0day-ci/linux/commits/UPDATE-20200827-042206/Alexander-Graf/x86-irq-Preserve-vector-in-orig_ax-for-APIC-code/20200826-195623


in testcase: trinity
with following parameters:

	runtime: 300s

test-description: Trinity is a linux system call fuzz tester.
test-url: http://codemonkey.org.uk/projects/trinity/


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):


+--------------------------------------------------------------+------------+------------+
|                                                              | 158807de58 | e03700cc45 |
+--------------------------------------------------------------+------------+------------+
| boot_successes                                               | 8          | 0          |
| boot_failures                                                | 0          | 10         |
| WARNING:at_arch/x86/kernel/apic/vector.c:#apic_update_vector | 0          | 10         |
| RIP:apic_update_vector                                       | 0          | 10         |
+--------------------------------------------------------------+------------+------------+


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


[    3.492677] WARNING: CPU: 0 PID: 0 at arch/x86/kernel/apic/vector.c:164 apic_update_vector+0x216/0x290
[    3.494357] Modules linked in:
[    3.494940] CPU: 0 PID: 0 Comm: swapper Not tainted 5.8.0-rc6-00012-ge03700cc457d4 #1
[    3.496377] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.12.0-1 04/01/2014
[    3.497971] RIP: 0010:apic_update_vector+0x216/0x290
[    3.498893] Code: 0d a3 5a 40 02 0f 85 64 fe ff ff e8 02 eb fa ff e9 5a fe ff ff e8 f8 ea fa ff e9 69 fe ff ff 31 db 0f 1f 00 e9 22 fe ff ff 90 <0f> 0b 90 0f 1f 80 00 00 00 00 e9 87 fe ff ff 4c 01 e5 0f 82 f6 fe
[    3.502193] RSP: 0000:ffffffffa0a03cd8 EFLAGS: 00010046
[    3.503178] RAX: 0000000000000000 RBX: ffff888237adf528 RCX: 0000000000000030
[    3.504489] RDX: 0000000000000030 RSI: 0000000000000000 RDI: ffffffffa0a2ada8
[    3.505800] RBP: 0000000000000020 R08: 0000000000000001 R09: 0000000000000020
[    3.510990] R10: 0000000000000030 R11: 0000000000080000 R12: 0000000000000000
[    3.512284] R13: ffff888237ac58f0 R14: 0000000011400400 R15: ffff888237adf4b8
[    3.513602] FS:  0000000000000000(0000) GS:ffffffffa0a5a000(0000) knlGS:0000000000000000
[    3.515113] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[    3.516213] CR2: 00000000ffffffff CR3: 0000000040422000 CR4: 00000000000406b0
[    3.519355] Call Trace:
[    3.519837]  assign_vector_locked+0xe1/0x1b0
[    3.520625]  assign_irq_vector_any_locked+0x2f/0x90
[    3.521533]  x86_vector_activate+0x11e/0x370
[    3.522341]  __irq_domain_activate_irq+0x62/0xa0
[    3.523186]  __irq_domain_activate_irq+0x41/0xa0
[    3.524049]  irq_domain_activate_irq+0x29/0x50
[    3.524896]  check_timer+0x232/0x702
[    3.525546]  ? __radix_tree_lookup+0x3e/0xf0
[    3.526373]  setup_IO_APIC+0x285/0x29e
[    3.527115]  x86_late_time_init+0x20/0x30
[    3.527855]  start_kernel+0x433/0x4c0
[    3.528529]  secondary_startup_64+0xa4/0xb0
[    3.529308] ---[ end trace aef1243a3b6fd7b6 ]---


To reproduce:

        # build kernel
	cd linux
	cp config-5.8.0-rc6-00012-ge03700cc457d4 .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,
Rong Chen


View attachment "config-5.8.0-rc6-00012-ge03700cc457d4" of type "text/plain" (139904 bytes)

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

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

View attachment "trinity" of type "text/plain" (437 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ