[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20190916015921.GH15734@shao2-debian>
Date: Mon, 16 Sep 2019 09:59:21 +0800
From: kernel test robot <lkp@...el.com>
To: "Theodore Y. Ts'o" <tytso@....edu>
Cc: 0day robot <lkp@...el.com>,
Linus Torvalds <torvalds@...ux-foundation.org>,
"Ahmed S. Darwish" <darwish.07@...il.com>,
LKML <linux-kernel@...r.kernel.org>, lkp@...org
Subject: [random] 2b2cdb6405:
WARNING:at_drivers/char/random.c:#__x64_sys_getrandom
FYI, we noticed the following commit (built with gcc-7):
commit: 2b2cdb6405137415386f0d3dc8fa533be29e2572 ("random: optionally block in getrandom(2) when the CRNG is uninitialized")
https://github.com/0day-ci/linux UPDATE-20190915-185943/Ahmed-S-Darwish/random-getrandom-2-don-t-block-on-non-initialized-entropy-pool/20190915-185941
in testcase: locktorture
with following parameters:
runtime: 300s
test: default
test-description: This torture test consists of creating a number of kernel threads which acquire the lock and hold it for specific amount of time, thus simulating different critical region behaviors.
test-url: https://www.kernel.org/doc/Documentation/locking/locktorture.txt
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):
+-------------------------------------------------------+------------+------------+
| | 1609d7604b | 2b2cdb6405 |
+-------------------------------------------------------+------------+------------+
| boot_successes | 50 | 49 |
| boot_failures | 0 | 10 |
| WARNING:at_drivers/char/random.c:#__x64_sys_getrandom | 0 | 9 |
| RIP:__x64_sys_getrandom | 0 | 9 |
| BUG:kernel_hang_in_boot_stage | 0 | 1 |
+-------------------------------------------------------+------------+------------+
If you fix the issue, kindly add following tag
Reported-by: kernel test robot <lkp@...el.com>
[ 114.834412] WARNING: CPU: 0 PID: 327 at drivers/char/random.c:2154 __x64_sys_getrandom+0x84/0x140
[ 114.866174] Modules linked in:
[ 114.866201] CPU: 0 PID: 327 Comm: gssproxy Not tainted 5.3.0-rc8-00142-g2b2cdb6405137 #4
[ 114.866203] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.10.2-1 04/01/2014
[ 114.866230] RIP: 0010:__x64_sys_getrandom+0x84/0x140
[ 114.866234] Code: 5b c3 ba ff ff ff 7f 83 3d 14 47 92 01 01 7e 11 48 83 c4 08 48 89 de 31 c9 5b 31 ff e9 d5 fb ff ff 83 e1 01 0f 85 85 00 00 00 <0f> 0b 80 3d 03 fa d8 00 00 48 89 14 24 48 c7 c6 60 d2 09 83 48 c7
[ 114.866236] RSP: 0018:ffffb6014028bf28 EFLAGS: 00010246
[ 114.866239] RAX: 0000000000000000 RBX: 0000556325040aa0 RCX: 0000000000000000
[ 114.866261] RDX: 0000000000000020 RSI: ffffb6014028bf58 RDI: ffffb6014028bf58
[ 114.866263] RBP: ffffb6014028bf58 R08: 0000000000000000 R09: 0000000000000000
[ 114.866264] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000
[ 114.866265] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
[ 114.866268] FS: 00007eff3e8acc80(0000) GS:ffff9419bfc00000(0000) knlGS:0000000000000000
[ 114.866270] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 114.866272] CR2: 00007eff3dfa287c CR3: 000000007ee36000 CR4: 00000000000006f0
[ 114.866299] Call Trace:
[ 114.866396] do_syscall_64+0x5b/0x1e0
[ 115.216649] entry_SYSCALL_64_after_hwframe+0x44/0xa9
[ 115.231330] RIP: 0033:0x7eff3c7bc1c9
[ 115.242582] Code: 01 00 48 81 c4 80 00 00 00 e9 f1 fe ff ff 0f 1f 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d 97 dc 2c 00 f7 d8 64 89 01 48
[ 115.292223] RSP: 002b:00007fff9e90a348 EFLAGS: 00000206 ORIG_RAX: 000000000000013e
[ 115.314260] RAX: ffffffffffffffda RBX: 0000000000000020 RCX: 00007eff3c7bc1c9
[ 115.333708] RDX: 0000000000000000 RSI: 0000000000000020 RDI: 0000556325040aa0
[ 115.353149] RBP: 0000556325040aa0 R08: 0000000000000020 R09: 0000000000000000
[ 115.372601] R10: 0000000000004000 R11: 0000000000000206 R12: 00007eff3e8ac6a0
[ 115.392082] R13: 0000000000000000 R14: 00007eff3e1a8b00 R15: 0000000000000001
[ 115.411943] ---[ end trace e1b054a3227a3b73 ]---
To reproduce:
# build kernel
cd linux
cp config-5.3.0-rc8-00142-g2b2cdb6405137 .config
make HOSTCC=gcc-7 CC=gcc-7 ARCH=x86_64 olddefconfig prepare modules_prepare bzImage modules
make HOSTCC=gcc-7 CC=gcc-7 ARCH=x86_64 INSTALL_MOD_PATH=<mod-install-dir> modules_install
cd <mod-install-dir>
find lib/ | cpio -o -H newc --quiet | gzip > modules.cgz
git clone https://github.com/intel/lkp-tests.git
cd lkp-tests
bin/lkp qemu -k <bzImage> -m modules.cgz job-script # job-script is attached in this email
Thanks,
lkp
View attachment "config-5.3.0-rc8-00142-g2b2cdb6405137" of type "text/plain" (210070 bytes)
View attachment "job-script" of type "text/plain" (4583 bytes)
Download attachment "dmesg.xz" of type "application/x-xz" (16092 bytes)
View attachment "locktorture" of type "text/plain" (2329 bytes)
Powered by blists - more mailing lists