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-prev] [day] [month] [year] [list]
Date:   Fri, 26 Mar 2021 09:57:14 +0800
From:   kernel test robot <oliver.sang@...el.com>
To:     Wong Vee Khee <vee.khee.wong@...el.com>
Cc:     0day robot <lkp@...el.com>, Voon Weifeng <voon.weifeng@...el.com>,
        LKML <linux-kernel@...r.kernel.org>, lkp@...ts.01.org,
        Andrew Lunn <andrew@...n.ch>,
        Heiner Kallweit <hkallweit1@...il.com>,
        Russell King <linux@...linux.org.uk>,
        "David S . Miller" <davem@...emloft.net>,
        Jakub Kicinski <kuba@...nel.org>,
        Florian Fainelli <f.fainelli@...il.com>,
        netdev@...r.kernel.org, stable@...r.kernel.org,
        Voon Weifeng <weifeng.voon@...el.com>,
        Ong Boon Leong <boon.leong.ong@...el.com>
Subject: [net]  c0da0048be:
 WARNING:at_net/core/devlink.c:#devlink_port_type_warn



Greeting,

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

commit: c0da0048be0d27455dfb3f4c81604e275b4776d9 ("[PATCH net V2 1/1] net: phy: fix invalid phy id when probe using C22")
url: https://github.com/0day-ci/linux/commits/Wong-Vee-Khee/net-phy-fix-invalid-phy-id-when-probe-using-C22/20210318-170748
base: https://git.kernel.org/cgit/linux/kernel/git/davem/net.git e65eaded4cc4de6bf153def9dde6b25392d9a236

in testcase: trinity
version: trinity-static-i386-x86_64-f93256fb_2019-08-28
with following parameters:

	group: group-04

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


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

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


+-------------------------------------------------------+------------+------------+
|                                                       | e65eaded4c | c0da0048be |
+-------------------------------------------------------+------------+------------+
| WARNING:at_net/core/devlink.c:#devlink_port_type_warn | 0          | 8          |
| EIP:devlink_port_type_warn                            | 0          | 8          |
+-------------------------------------------------------+------------+------------+


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


[ 3904.863424] WARNING: CPU: 1 PID: 3806 at net/core/devlink.c:8317 devlink_port_type_warn (kbuild/src/consumer/net/core/devlink.c:8317) 
[ 3904.868535] Modules linked in:
[ 3904.869305] CPU: 1 PID: 3806 Comm: kworker/1:4 Not tainted 5.12.0-rc2-00394-gc0da0048be0d #1
[ 3904.871261] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.12.0-1 04/01/2014
[ 3904.873493] Workqueue: events devlink_port_type_warn
[ 3904.878296] EIP: devlink_port_type_warn (kbuild/src/consumer/net/core/devlink.c:8317) 
[ 3904.880591] Code: 00 00 00 66 90 66 66 66 66 90 55 31 c9 ba 01 00 00 00 b8 c8 ca cc 5b 89 e5 6a 01 e8 c5 91 23 ff 68 5c 98 6b 5b e8 89 07 4c 00 <0f> 0b 6a 01 31 c9 ba 01 00 00 00 b8 b0 ca cc 5b e8 a6 91 23 ff 83
All code
========
   0:	00 00                	add    %al,(%rax)
   2:	00 66 90             	add    %ah,-0x70(%rsi)
   5:	66 66 66 66 90       	data16 data16 data16 xchg %ax,%ax
   a:	55                   	push   %rbp
   b:	31 c9                	xor    %ecx,%ecx
   d:	ba 01 00 00 00       	mov    $0x1,%edx
  12:	b8 c8 ca cc 5b       	mov    $0x5bcccac8,%eax
  17:	89 e5                	mov    %esp,%ebp
  19:	6a 01                	pushq  $0x1
  1b:	e8 c5 91 23 ff       	callq  0xffffffffff2391e5
  20:	68 5c 98 6b 5b       	pushq  $0x5b6b985c
  25:	e8 89 07 4c 00       	callq  0x4c07b3
  2a:*	0f 0b                	ud2    		<-- trapping instruction
  2c:	6a 01                	pushq  $0x1
  2e:	31 c9                	xor    %ecx,%ecx
  30:	ba 01 00 00 00       	mov    $0x1,%edx
  35:	b8 b0 ca cc 5b       	mov    $0x5bcccab0,%eax
  3a:	e8 a6 91 23 ff       	callq  0xffffffffff2391e5
  3f:	83                   	.byte 0x83

Code starting with the faulting instruction
===========================================
   0:	0f 0b                	ud2    
   2:	6a 01                	pushq  $0x1
   4:	31 c9                	xor    %ecx,%ecx
   6:	ba 01 00 00 00       	mov    $0x1,%edx
   b:	b8 b0 ca cc 5b       	mov    $0x5bcccab0,%eax
  10:	e8 a6 91 23 ff       	callq  0xffffffffff2391bb
  15:	83                   	.byte 0x83
[ 3904.890286] EAX: 00000022 EBX: 00000000 ECX: 00000000 EDX: 00000000
[ 3904.893771] ESI: bfb0f8d8 EDI: 4e985420 EBP: 4eb1fefc ESP: 4eb1fef4
[ 3904.897519] DS: 007b ES: 007b FS: 00d8 GS: 00e0 SS: 0068 EFLAGS: 00010202
[ 3904.900728] CR0: 80050033 CR2: 08e9032c CR3: 15705000 CR4: 00000690
[ 3904.904242] Call Trace:
[ 3904.905724] ? process_one_work (kbuild/src/consumer/arch/x86/include/asm/jump_label.h:25 kbuild/src/consumer/include/linux/jump_label.h:200 kbuild/src/consumer/include/trace/events/workqueue.h:108 kbuild/src/consumer/kernel/workqueue.c:2280) 
[ 3904.907975] ? __this_cpu_preempt_check (kbuild/src/consumer/lib/smp_processor_id.c:71) 
[ 3904.910231] ? worker_thread (kbuild/src/consumer/include/linux/list.h:282 kbuild/src/consumer/kernel/workqueue.c:2422) 
[ 3904.912453] ? kthread (kbuild/src/consumer/kernel/kthread.c:292) 
[ 3904.913933] ? process_one_work (kbuild/src/consumer/kernel/workqueue.c:2364) 
[ 3904.915948] ? kthread_bind (kbuild/src/consumer/kernel/kthread.c:245) 
[ 3904.917826] ? ret_from_fork (kbuild/src/consumer/arch/x86/entry/entry_32.S:856) 
[ 3904.919542] ---[ end trace aff30e8d06df1b5f ]---
[ 3904.921680] ------------[ cut here ]------------
[ 3904.924042] Type was not set for devlink port.


To reproduce:

        # build kernel
	cd linux
	cp config-5.12.0-rc2-00394-gc0da0048be0d .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



---
0DAY/LKP+ Test Infrastructure                   Open Source Technology Center
https://lists.01.org/hyperkitty/list/lkp@lists.01.org       Intel Corporation

Thanks,
Oliver Sang


View attachment "config-5.12.0-rc2-00394-gc0da0048be0d" of type "text/plain" (138804 bytes)

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

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

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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ