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]
Date:   Mon, 10 Aug 2020 10:55:16 +0800
From:   kernel test robot <rong.a.chen@...el.com>
To:     Max Gurtovoy <maxg@...lanox.com>
Cc:     "Michael S. Tsirkin" <mst@...hat.com>,
        Jason Wang <jasowang@...hat.com>,
        LKML <linux-kernel@...r.kernel.org>, lkp@...ts.01.org
Subject: [vdpasim] 0ea9ee430e: INFO:trying_to_register_non-static_key

Greeting,

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

commit: 0ea9ee430e74b16c6b17e70757d1c26d8d140e1f ("vdpasim: protect concurrent access to iommu iotlb")
https://git.kernel.org/cgit/linux/kernel/git/next/linux-next.git master


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-i386 -enable-kvm -cpu SandyBridge -smp 2 -m 16G

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


+----------------------------------------+------------+------------+
|                                        | 6234f80574 | 0ea9ee430e |
+----------------------------------------+------------+------------+
| boot_successes                         | 7          | 0          |
| boot_failures                          | 0          | 12         |
| INFO:trying_to_register_non-static_key | 0          | 12         |
+----------------------------------------+------------+------------+


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


[    3.762722] INFO: trying to register non-static key.
[    3.762830] the code is fine but needs lockdep annotation.
[    3.762830] turning off the locking correctness validator.
[    3.762830] CPU: 0 PID: 1 Comm: swapper Not tainted 5.8.0-00043-g0ea9ee430e74b #1
[    3.762830] Call Trace:
[    3.762830]  dump_stack+0x1b/0x1e
[    3.762830]  register_lock_class+0x597/0x5a0
[    3.762830]  ? sched_clock_cpu+0xd5/0xf0
[    3.762830]  __lock_acquire+0x36/0x4f0
[    3.762830]  lock_acquire+0x3e/0x70
[    3.762830]  ? vdpasim_set_status+0x142/0x190
[    3.762830]  _raw_spin_lock+0x28/0x70
[    3.762830]  ? vdpasim_set_status+0x142/0x190
[    3.762830]  vdpasim_set_status+0x142/0x190
[    3.762830]  virtio_vdpa_reset+0x20/0x30
[    3.762830]  register_virtio_device+0x72/0xe0
[    3.762830]  virtio_vdpa_probe+0x9f/0xe0
[    3.762830]  vdpa_dev_probe+0x18/0x30
[    3.762830]  really_probe+0xd5/0x270
[    3.762830]  driver_probe_device+0x44/0xa0
[    3.762830]  __device_attach_driver+0x54/0x80
[    3.762830]  ? driver_allows_async_probing+0x50/0x50
[    3.762830]  bus_for_each_drv+0x4e/0x80
[    3.762830]  __device_attach+0xa7/0x100
[    3.762830]  ? driver_allows_async_probing+0x50/0x50
[    3.762830]  device_initial_probe+0xd/0x10
[    3.762830]  bus_probe_device+0x6f/0x80
[    3.762830]  device_add+0x31a/0x6a0
[    3.762830]  ? virtio_vdpa_driver_init+0x11/0x11
[    3.762830]  vdpa_register_device+0x8/0x10
[    3.762830]  vdpasim_dev_init+0x12d/0x15e
[    3.762830]  ? virtio_vdpa_driver_init+0x11/0x11
[    3.762830]  do_one_initcall+0x36/0x130
[    3.762830]  ? parse_args+0x100/0x270
[    3.762830]  ? do_initcalls+0x78/0xc0
[    3.762830]  do_initcalls+0x9d/0xc0
[    3.762830]  kernel_init_freeable+0x77/0xc1
[    3.762830]  ? rest_init+0xf9/0xf9
[    3.762830]  kernel_init+0x8/0xe7
[    3.762830]  ret_from_fork+0x1c/0x28
[    3.786853] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[    3.787487] 00:05: ttyS0 at I/O 0x3f8 (irq = 4, base_baud = 115200) is a 16550A
[    3.788823] 00:06: ttyS1 at I/O 0x2f8 (irq = 3, base_baud = 115200) is a 16550A
[    3.795236] MOXA Intellio family driver version 6.0k
[    3.795613] SyncLink GT
[    3.795786] SyncLink GT, tty major#234
[    3.796108] SyncLink GT no devices found
[    3.796418] SyncLink MultiPort driver $Revision: 4.38 $
[    3.800879] SyncLink MultiPort driver $Revision: 4.38 $, tty major#511
[    3.801358] SyncLink serial driver $Revision: 4.38 $
[    3.805478] SyncLink serial driver $Revision: 4.38 $, tty major#510
[    3.806029] sonypi: Sony Programmable I/O Controller Driver v1.26.
[    3.806473] toshiba: not a supported Toshiba laptop
[    3.806891] scx200_gpio: no SCx200 gpio present
[    3.807200] nsc_gpio initializing
[    3.807434] telclk_interrupt = 0xf non-mcpbl0010 hw.
[    3.807784] smapi::smapi_init, ERROR invalid usSmapiID
[    3.808132] mwave: tp3780i::tp3780I_InitializeBoardData: Error: SMAPI is not available on this machine
[    3.808750] mwave: mwavedd::mwave_init: Error: Failed to initialize board data
[    3.809234] mwave: mwavedd::mwave_init: Error: Failed to initialize
[    3.809653] Hangcheck: starting hangcheck timer 0.9.1 (tick is 180 seconds, margin is 60 seconds).
[    3.810557] random: get_random_u32 called from test_drm_mm_init+0x13/0xab with crng_init=0
[    3.810559] drm_mm: Testing DRM range manger (struct drm_mm), with random_seed=0x63ffe4ab max_iterations=8192 max_prime=128
[    3.811865] drm_mm: igt_sanitycheck - ok!
[    3.812159] igt_debug 0x0000000000000000-0x0000000000000200: 512: free
[    3.812595] igt_debug 0x0000000000000200-0x0000000000000600: 1024: used
[    3.813068] igt_debug 0x0000000000000600-0x0000000000000a00: 1024: free
[    3.813508] igt_debug 0x0000000000000a00-0x0000000000000e00: 1024: used
[    3.813970] igt_debug 0x0000000000000e00-0x0000000000001000: 512: free
[    3.814415] igt_debug total: 4096, used 2048 free 2048
[   50.319538] [drm] amdgpu kernel modesetting enabled.
[   50.320388] [drm] Initialized vgem 1.0.0 20120112 for vgem on minor 0
[   50.321024] [drm] Found bochs VGA, ID 0xb0c0.
[   50.321327] [drm] Framebuffer size 16384 kB @ 0xfd000000, mmio @ 0xfebf0000.
[   50.321889] [TTM] Zone  kernel: Available graphics memory: 915974 KiB
[   50.322331] [TTM] Initializing pool allocator
[   50.322634] [TTM] Initializing DMA pool allocator
[   50.323136] [drm] Initialized bochs-drm 1.0.0 20130925 for 0000:00:02.0 on minor 1
[   50.324697] bochs-drm 0000:00:02.0: fb0: bochs-drmdrmfb frame buffer device
[   50.326243] usbcore: registered new interface driver gm12u320
[   50.326745] dummy-irq: no IRQ given.  Use irq=N
[   50.327085] Phantom Linux Driver, version n0.9.8, init OK
[   50.327476] Silicon Labs C2 port support v. 0.51.0 - (C) 2007 Rodolfo Giometti
[   50.328024] c2port c2port0: C2 port uc added
[   50.328312] c2port c2port0: uc flash has 30 blocks x 512 bytes (15360 bytes total)
[   50.328958] Guest personality initialized and is inactive
[   50.329355] VMCI host device registered (name=vmci, major=10, minor=60)
[   50.329795] Initialized host personality
[   50.330115] usbcore: registered new interface driver rtsx_usb
[   50.330802] usbcore: registered new interface driver viperboard
[   50.331237] usbcore: registered new interface driver dln2
[   50.331667] dma-buf: Running sanitycheck
[   50.331951] dma-buf: Running dma_fence
[   50.332204] sizeof(dma_fence)=44
[   50.332428] dma-buf: Running dma_fence/sanitycheck
[   50.332751] dma-buf: Running dma_fence/test_signaling
[   50.333091] dma-buf: Running dma_fence/test_add_callback
[   50.333446] dma-buf: Running dma_fence/test_late_add_callback
[   50.333833] dma-buf: Running dma_fence/test_rm_callback
[   50.334182] dma-buf: Running dma_fence/test_late_rm_callback
[   50.334559] dma-buf: Running dma_fence/test_status


To reproduce:

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


View attachment "config-5.8.0-00043-g0ea9ee430e74b" of type "text/plain" (135096 bytes)

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

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

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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ