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] [thread-next>] [day] [month] [year] [list]
Date:   Fri, 20 Sep 2019 08:51:20 +0800
From:   kernel test robot <lkp@...el.com>
To:     "Ahmed S. Darwish" <darwish.07@...il.com>
Cc:     Linus Torvalds <torvalds@...ux-foundation.org>,
        Lennart Poettering <mzxreary@...inter.de>,
        "Theodore Y. Ts'o" <tytso@....edu>,
        "Eric W. Biederman" <ebiederm@...ssion.com>,
        "Alexander E. Patrakov" <patrakov@...il.com>,
        Michael Kerrisk <mtk.manpages@...il.com>,
        lkml <linux-kernel@...r.kernel.org>, linux-ext4@...r.kernel.org,
        linux-man@...r.kernel.org, lkp@...org
Subject: [random] ec47a799bf: WARNING:at_drivers/char/random.c:#getrandom_wait

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

commit: ec47a799bf6bcdb734c5b8571e072226d474aa0a ("[PATCH RFC v4 1/1] random: WARN on large getrandom() waits and introduce getrandom2()")
url: https://github.com/0day-ci/linux/commits/Ahmed-S-Darwish/random-WARN-on-large-getrandom-waits-and-introduce-getrandom2/20190919-051815


in testcase: boot

on test machine: qemu-system-x86_64 -enable-kvm -cpu SandyBridge -smp 2 -m 4G

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


+--------------------------------------------------+------------+------------+
|                                                  | e170eb2771 | ec47a799bf |
+--------------------------------------------------+------------+------------+
| boot_successes                                   | 4          | 0          |
| boot_failures                                    | 0          | 4          |
| WARNING:at_drivers/char/random.c:#getrandom_wait | 0          | 4          |
| RIP:getrandom_wait                               | 0          | 4          |
+--------------------------------------------------+------------+------------+


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


[   42.884704] WARNING: CPU: 1 PID: 3042 at drivers/char/random.c:2159 getrandom_wait+0x12d/0x169
[   42.890882] Modules linked in:
[   42.893283] CPU: 1 PID: 3042 Comm: getrandom Not tainted 5.3.0-07390-gec47a799bf6bc #11
[   42.898628] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.10.2-1 04/01/2014
[   42.904061] RIP: 0010:getrandom_wait+0x12d/0x169
[   42.907061] Code: 8b 34 25 00 5d 01 00 44 8b 05 d8 b6 f9 00 8b 96 00 05 00 00 4c 89 e1 48 81 c6 b8 06 00 00 48 c7 c7 a7 d1 39 82 e8 14 08 bc ff <0f> 0b 4c 89 f5 e9 1b ff ff ff ba 01 00 00 00 4c 89 e6 4c 89 ef e8
[   42.915041] RSP: 0000:ffffc90000727ed8 EFLAGS: 00010286
[   42.917251] RAX: 0000000000000000 RBX: 0000000000000000 RCX: 00000000ffffffff
[   42.919721] RDX: 0000000000000001 RSI: 0000000000000002 RDI: ffffffff82c40b8c
[   42.922228] RBP: 0000000000000001 R08: 0000000000000000 R09: ffff8880000bb840
[   42.925376] R10: ffffc90000643c28 R11: ffffc90000727d57 R12: 0000000000000100
[   42.928392] R13: 00000000ff8f9afc R14: 7fffffffffffffff R15: 0000000000000000
[   42.932129] FS:  0000000000000000(0000) GS:ffff88813fd00000(0063) knlGS:00000000f7fb2de4
[   42.937219] CS:  0010 DS: 002b ES: 002b CR0: 0000000080050033
[   42.939775] CR2: 000000000804eff8 CR3: 0000000123c6a000 CR4: 00000000000406e0
[   42.942121] Call Trace:
[   42.943486]  ? wait_woken+0x8b/0x8b
[   42.945035]  __se_sys_getrandom+0x60/0x6e
[   42.946703]  do_int80_syscall_32+0x51/0x10c
[   42.948410]  entry_INT80_compat+0x82/0x90
[   42.950068] ---[ end trace 085d30872d4fa42c ]---


To reproduce:

        # build kernel
	cd linux
	cp config-5.3.0-07390-gec47a799bf6bc .config
	make HOSTCC=gcc-7 CC=gcc-7 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,
lkp


View attachment "config-5.3.0-07390-gec47a799bf6bc" of type "text/plain" (113799 bytes)

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

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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ