FYI, we noticed the following commit:
commit: 2804ec4baefb5383cd2d87fb544e09eee0209835 ("include condition in the
BUG_ON/WARN_ON output")
https://git.kernel.org/cgit/linux/kernel/git/jirislaby/linux.git devel
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 -m 512M
caused below changes (please refer to attached dmesg/kmsg for entire log/backtrace):
+---------------------------------------------------------+------------+------------+
| | 75efa4bb6c | 2804ec4bae |
+---------------------------------------------------------+------------+------------+
| boot_successes | 4 | 0 |
| boot_failures | 4 | 6 |
| BUG:-#unexpected_failures(out_of#)-debugging_disabled!| | 4 | 6 |
| kernel_BUG_at_arch/x86/mm/physaddr.c | 4 | 6 |
| invalid_opcode:#[##] | 4 | 6 |
| Kernel_panic-not_syncing:Fatal_exception | 4 | 6 |
| BUG:'(x>y)||!phys_addr_valid(x)'is_true | 0 | 6
|
+---------------------------------------------------------+------------+------------+
[ 9.892161] BUG: '(x > y) || !phys_addr_valid(x)' is true!
[ 9.894775] ------------[ cut here ]------------
[ 9.896682] kernel BUG at arch/x86/mm/physaddr.c:26!
[ 9.899487] invalid opcode: 0000 [#1] PREEMPT SMP KASAN
[ 9.901606] Modules linked in:
[ 9.902999] CPU: 0 PID: 1 Comm: swapper/0 Not tainted
4.14.0-rc1-next-20170919-00009-g2804ec4 #1
[ 9.906752] task: ffff8800001da040 task.stack: ffff8800001e0000
[ 9.909363] RIP: 0010:__phys_addr+0xaa/0xbe
[ 9.909363] RSP: 0000:ffff8800001e7e58 EFLAGS: 00010202
[ 9.909363] RAX: 000000000000002e RBX: ffff8800001e7e70 RCX: 0000000000000000
[ 9.909363] RDX: 0000000000000000 RSI: ffffffff810ca989 RDI: ffffffff810cbb09
[ 9.909363] RBP: 0000000000000123 R08: ffffffff82073aa8 R09: ffffffff81891b45
[ 9.909363] R10: ffffffff81e52448 R11: ffff8800001e7cb8 R12: 0000000080000000
[ 9.909363] R13: ffffffff82073ab0 R14: 0000000000000000 R15: 0000000000000000
[ 9.909363] FS: 0000000000000000(0000) GS:ffff88001a000000(0000)
knlGS:0000000000000000
[ 9.909363] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 9.909363] CR2: 0000000000000000 CR3: 0000000001e13000 CR4: 00000000000006b0
[ 9.909363] Call Trace:
[ 9.909363] ? test_debug_virtual_init+0x20/0xda
[ 9.909363] ? test_bitmap_init+0x9c/0x9c
[ 9.909363] ? test_bitmap_init+0x9c/0x9c
[ 9.909363] ? do_one_initcall+0xc0/0x1ad
[ 9.909363] ? kernel_init_freeable+0x298/0x38d
[ 9.909363] ? kernel_init_freeable+0x38d/0x38d
[ 9.909363] ? rest_init+0x11d/0x11d
[ 9.909363] ? kernel_init+0x10/0x198
[ 9.909363] ? ret_from_fork+0x25/0x30
[ 9.909363] Code: 48 ff 05 fd 92 08 01 48 d3 ea 48 85 d2 74 27 48 c7 c6 36 1e c9 81 48
c7 c7 38 02 c8 81 31 c0 e8 3f be 0a 00 48 ff 05 e9 92 08 01 <0f> 0b 48 ff 05 e8 92
08 01 eb f7 48 ff 05 cf 92 08 01 59 c3 48
[ 9.909363] RIP: __phys_addr+0xaa/0xbe RSP: ffff8800001e7e58
[ 9.968841] ---[ end trace 0236f874b4889dbd ]---
To reproduce:
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,
Xiaolong