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]
Message-ID: <20190511185942.k2y7keqnaypf4rfg@inn2.lkp.intel.com>
Date:   Sun, 12 May 2019 02:59:43 +0800
From:   kernel test robot <lkp@...el.com>
To:     YueHaibing <yuehaibing@...wei.com>
Cc:     "David S. Miller" <davem@...emloft.net>,
        Hulk Robot <hulkci@...wei.com>,
        LKML <linux-kernel@...r.kernel.org>,
        Linus Torvalds <torvalds@...ux-foundation.org>, lkp@...org
Subject: [appletalk]  6377f787ae: INFO:trying_to_register_non-static_key


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

commit: 6377f787aeb945cae7abbb6474798de129e1f3ac ("appletalk: Fix use-after-free in atalk_proc_exit")
https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.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-x86_64 -enable-kvm -cpu SandyBridge -smp 2 -m 2G

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


+-----------------------------------------------------+------------+------------+
|                                                     | e2bcd8b0ce | 6377f787ae |
+-----------------------------------------------------+------------+------------+
| boot_successes                                      | 251        | 172        |
| boot_failures                                       | 0          | 80         |
| INFO:trying_to_register_non-static_key              | 0          | 14         |
| BUG:unable_to_handle_kernel                         | 0          | 77         |
| Oops:#[##]                                          | 0          | 77         |
| RIP:__sock_release                                  | 0          | 74         |
| Kernel_panic-not_syncing:Fatal_exception            | 0          | 77         |
| WARNING:at_kernel/locking/lockdep.c:#lock_downgrade | 0          | 7          |
| RIP:lock_downgrade                                  | 0          | 7          |
+-----------------------------------------------------+------------+------------+


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


[  258.830340] INFO: trying to register non-static key.
[  258.831833] the code is fine but needs lockdep annotation.
[  258.833361] turning off the locking correctness validator.
[  258.834982] CPU: 1 PID: 1295 Comm: trinity-c4 Tainted: G                T 5.0.0-rc8-00103-g6377f78 #1
[  258.837622] Call Trace:
[  258.838363]  ? dump_stack+0x46/0x59
[  258.839447]  ? register_lock_class+0x22b/0x424
[  258.840759]  ? __lock_acquire+0x56/0x70c
[  258.842067]  ? lock_acquire+0x3d/0x50
[  258.843119]  ? _raw_write_lock_bh+0x2e/0x5f
[  258.844406]  ? __sock_release+0x2d/0x86
[  258.845544]  ? sock_close+0xc/0xf
[  258.846521]  ? __fput+0x10b/0x1a6
[  258.847516]  ? task_work_run+0x7d/0x9f
[  258.848637]  ? do_exit+0x408/0x9f5
[  258.849686]  ? do_group_exit+0xa4/0xa4
[  258.850803]  ? __x64_sys_exit_group+0xf/0xf
[  258.852024]  ? do_syscall_64+0x1ae/0x25e
[  258.853243]  ? async_page_fault+0x8/0x30
[  258.854440]  ? perf_swevent_put_recursion_context+0x10/0x2a
[  258.856167]  ? __perf_sw_event+0x47/0x5b
[  258.857328]  ? entry_SYSCALL_64_after_hwframe+0x44/0xa9
[  258.914951] [main] 65475 iterations. [F:43837 S:21614 HI:3023]
[  258.914956] 
[  258.939181] BUG: unable to handle kernel paging request at ffffffffc030f0b0
[  258.941309] #PF error: [normal kernel read fault]
[  258.942761] PGD 42619067 P4D 42619067 PUD 4261b067 PMD 4e10e067 PTE 0
[  258.944794] Oops: 0000 [#1] PREEMPT SMP DEBUG_PAGEALLOC
[  258.946411] CPU: 1 PID: 1249 Comm: trinity-c7 Tainted: G                T 5.0.0-rc8-00103-g6377f78 #1
[  258.949001] RIP: 0010:__sock_release+0x24/0x86
[  258.950218] Code: ff 89 e8 5b 5d c3 55 53 48 89 fb 48 83 7f 28 00 74 3f 48 85 f6 48 89 f5 74 09 48 8d 7e 58 e8 8f a2 19 00 48 8b 43 28 48 89 df <48> 8b 40 10 e8 0b 8a 3e 00 48 85 ed 48 c7 43 20 00 00 00 00 74 09
[  258.955449] RSP: 0018:ffffa5774082fdb8 EFLAGS: 00010246
[  258.957106] RAX: ffffffffc030f0a0 RBX: ffff8eadfa36bb80 RCX: 0000000000000000
[  258.959093] RDX: ffffffffb46181d5 RSI: ffffffffb46181d5 RDI: ffff8eadfa36bb80
[  258.961122] RBP: ffff8eadfa36bbb0 R08: 0000000000000000 R09: 0000000000000000
[  258.963145] R10: ffff8eadfa36bbb0 R11: ffffffffffffffff R12: ffff8eadfa36bbb0
[  258.965162] R13: ffff8eadcf4fef28 R14: ffff8eaded3a2ed8 R15: ffff8eadfa36bbb0
[  258.967275] FS:  00007fec54927b40(0000) GS:ffff8eae36400000(0000) knlGS:0000000000000000
[  258.969657] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[  258.971343] CR2: ffffffffc030f0b0 CR3: 00000000280d3000 CR4: 00000000000006e0
[  258.973384] Call Trace:
[  258.974148]  ? sock_close+0xc/0xf
[  258.975181]  ? __fput+0x10b/0x1a6
[  258.976250]  ? task_work_run+0x7d/0x9f
[  258.977462]  ? do_exit+0x408/0x9f5
[  258.978463]  ? do_group_exit+0xa4/0xa4
[  258.979578]  ? __x64_sys_exit_group+0xf/0xf
[  258.980780]  ? do_syscall_64+0x1ae/0x25e
[  258.981926]  ? async_page_fault+0x8/0x30
[  258.983101]  ? perf_swevent_put_recursion_context+0x10/0x2a
[  258.984782]  ? __perf_sw_event+0x47/0x5b
[  258.986089]  ? entry_SYSCALL_64_after_hwframe+0x44/0xa9
[  258.987634] Modules linked in: ieee802154_socket caif_socket caif hidp hid can_raw can af_packet dn_rtmsg cn decnet crct10dif_pclmul crct10dif_common ghash_clmulni_intel aesni_intel aes_x86_64 input_leds led_class serio_raw rtc_cmos qemu_fw_cfg button
[  258.993831] CR2: ffffffffc030f0b0
[  258.994762] ---[ end trace 033ec3faa0079cf9 ]---


To reproduce:

        # build kernel
	cd linux
	cp config-5.0.0-rc8-00103-g6377f78 .config
	make HOSTCC=gcc-7 CC=gcc-7 ARCH=x86_64 olddefconfig
	make HOSTCC=gcc-7 CC=gcc-7 ARCH=x86_64 prepare
	make HOSTCC=gcc-7 CC=gcc-7 ARCH=x86_64 modules_prepare
	make HOSTCC=gcc-7 CC=gcc-7 ARCH=x86_64 SHELL=/bin/bash
	make HOSTCC=gcc-7 CC=gcc-7 ARCH=x86_64 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,
lkp


View attachment "config-5.0.0-rc8-00103-g6377f78" of type "text/plain" (120539 bytes)

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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ