[lkp-robot] edeb31a9bd [ 48.481404] BUG: unable to handle kernel NULL pointer dereference at 00000000
by kernel test robot
Greetings,
0day kernel testing robot got the below dmesg and the first bad commit is
git://git.infradead.org/users/hch/misc.git proc_create.2
commit edeb31a9bd7050147e20a2ae8a5966fa140b88cf
Author: Christoph Hellwig <hch(a)lst.de>
AuthorDate: Wed Apr 11 09:31:28 2018 +0200
Commit: Christoph Hellwig <hch(a)lst.de>
CommitDate: Tue Apr 24 17:08:39 2018 +0200
ipv{4,6}/tcp: simplify procfs registration
Avoid most of the afinfo indirections and just call the proc helpers
directly.
Signed-off-by: Christoph Hellwig <hch(a)lst.de>
650cd1d7dd ipv{4,6}/udp{,lite}: simplify proc registration
edeb31a9bd ipv{4,6}/tcp: simplify procfs registration
280fcf5621 tty: replace ->proc_fops with ->proc_show
+------------------------------------------+------------+------------+------------+
| | 650cd1d7dd | edeb31a9bd | 280fcf5621 |
+------------------------------------------+------------+------------+------------+
| boot_successes | 4 | 4 | 6 |
| boot_failures | 55 | 11 | 26 |
| BUG:unable_to_handle_kernel | 53 | 11 | 26 |
| Oops:#[##] | 55 | 11 | 26 |
| EIP:tcp_seq_open | 55 | | |
| Kernel_panic-not_syncing:Fatal_exception | 55 | 11 | 26 |
| EIP:listening_get_next | 0 | 11 | 26 |
+------------------------------------------+------------+------------+------------+
[ 46.240626] random: ubusd: uninitialized urandom read (4 bytes read)
[ 46.260117] random: ubusd: uninitialized urandom read (4 bytes read)
[ 46.260498] random: ubusd: uninitialized urandom read (4 bytes read)
[ 46.260946] random: ubusd: uninitialized urandom read (4 bytes read)
[ 46.261385] random: ubusd: uninitialized urandom read (4 bytes read)
[ 48.481404] BUG: unable to handle kernel NULL pointer dereference at 00000000
[ 48.482352] *pde = 00000000
[ 48.482524] Oops: 0000 [#1] SMP
[ 48.482708] CPU: 0 PID: 484 Comm: dropbearkey Not tainted 4.17.0-rc2-00008-gedeb31a #1
[ 48.483157] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.10.2-1 04/01/2014
[ 48.483627] EIP: listening_get_next+0x47/0xe0
[ 48.483913] EFLAGS: 00010282 CPU: 0
[ 48.484120] EAX: ccacf540 EBX: cca44008 ECX: 00000000 EDX: 00000000
[ 48.484473] ESI: 00000000 EDI: 00000300 EBP: cca2be38 ESP: cca2be28
[ 48.484826] DS: 007b ES: 007b FS: 00d8 GS: 00e0 SS: 0068
[ 48.485135] CR0: 80050033 CR2: 00000000 CR3: 0c9fd000 CR4: 001406d0
[ 48.485489] DR0: 00000000 DR1: 00000000 DR2: 00000000 DR3: 00000000
[ 48.485841] DR6: fffe0ff0 DR7: 00000400
[ 48.486083] Call Trace:
[ 48.486228] ? tcp_get_idx+0x4f/0xe0
[ 48.486434] ? tcp_seq_next+0xb9/0xc0
[ 48.486646] ? seq_read+0x363/0x4a0
[ 48.486847] ? seq_open+0x90/0x90
[ 48.487045] ? proc_reg_read+0x45/0x90
[ 48.487261] ? proc_reg_write+0x90/0x90
[ 48.487481] ? __vfs_read+0x35/0x150
[ 48.487694] ? __might_fault+0x2f/0x40
[ 48.487910] ? __copy_user_ll+0x14/0x50
[ 48.488137] ? rw_verify_area+0x14/0x130
[ 48.488363] ? poll_select_copy_remaining+0xc9/0x130
[ 48.488645] ? vfs_read+0x98/0x140
[ 48.488841] ? kern_select+0xba/0x100
[ 48.489055] ? __fget_light+0x9/0x60
[ 48.489261] ? ksys_read+0x57/0xc0
[ 48.489457] ? do_int80_syscall_32+0x6f/0x120
[ 48.489706] ? entry_INT80_32+0x36/0x36
[ 48.489925] Code: 85 ff 89 c6 8b 43 08 74 6b ff 43 14 ff 43 0c 8d 04 40 c1 e0 04 05 60 52 ab c2 89 45 f0 8b 47 54 85 c0 74 35 83 e8 54 85 c0 74 2e <0f> b7 0e 0f b7 3e 66 39 48 10 74 66 8b 50 54 85 d2 74 1b 8d b6
[ 48.491051] EIP: listening_get_next+0x47/0xe0 SS:ESP: 0068:cca2be28
[ 48.491439] CR2: 0000000000000000
[ 48.491628] ---[ end trace 1cca1ef03bcbab83 ]---
[ 48.491888] Kernel panic - not syncing: Fatal exception
# HH:MM RESULT GOOD BAD GOOD_BUT_DIRTY DIRTY_NOT_BAD
git bisect start 280fcf56218e914b35fb53f64f2a86f51302ac33 6d08b06e67cd117f6992c46611dfb4ce267cd71e --
git bisect bad cc2c817e170de32f8f13bfe57816cfef29397f3c # 03:10 B 0 15 55 6 sg: simplify procfs code
git bisect bad 19e71849f4eefce6092230b4a3736a17e078daff # 03:10 B 0 11 25 0 ipv{4,6}/raw: simplify ѕeq_file code
git bisect good 0ddd1e75d771a94a7c2f2a64f82be67bd00701ca # 03:17 G 11 0 11 24 proc: introduce proc_create_seq_private
git bisect good 650cd1d7dd8353cb27030ab1940feb0e7301d77a # 03:24 G 11 0 11 22 ipv{4,6}/udp{,lite}: simplify proc registration
git bisect bad edeb31a9bd7050147e20a2ae8a5966fa140b88cf # 03:34 B 0 1 14 0 ipv{4,6}/tcp: simplify procfs registration
# first bad commit: [edeb31a9bd7050147e20a2ae8a5966fa140b88cf] ipv{4,6}/tcp: simplify procfs registration
git bisect good 650cd1d7dd8353cb27030ab1940feb0e7301d77a # 03:48 G 33 0 33 55 ipv{4,6}/udp{,lite}: simplify proc registration
# extra tests on HEAD of hch-misc/proc_create.2
git bisect bad 280fcf56218e914b35fb53f64f2a86f51302ac33 # 03:48 B 0 26 56 0 tty: replace ->proc_fops with ->proc_show
# extra tests on tree/branch hch-misc/proc_create.2
git bisect bad 280fcf56218e914b35fb53f64f2a86f51302ac33 # 03:52 B 0 26 56 0 tty: replace ->proc_fops with ->proc_show
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/lkp Intel Corporation
4 years, 1 month
ed74ae0342 ("blk-mq: Avoid that a completion can be ignored .."): BUG: kernel hang in test stage
by kernel test robot
Greetings,
0day kernel testing robot got the below dmesg and the first bad commit is
https://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux-block.git for-linus
commit ed74ae03424684a6ad8a973c3fa727c6b4162432
Author: Bart Van Assche <bart.vanassche(a)wdc.com>
AuthorDate: Thu Apr 19 09:43:53 2018 -0700
Commit: Jens Axboe <axboe(a)kernel.dk>
CommitDate: Thu Apr 19 14:21:47 2018 -0600
blk-mq: Avoid that a completion can be ignored for BLK_EH_RESET_TIMER
The blk-mq timeout handling code ignores completions that occur after
blk_mq_check_expired() has been called and before blk_mq_rq_timed_out()
has reset rq->aborted_gstate. If a block driver timeout handler always
returns BLK_EH_RESET_TIMER then the result will be that the request
never terminates.
Fix this race as follows:
- Use the deadline instead of the request generation to detect whether
or not a request timer fired after reinitialization of a request.
- Store the request state in the lowest two bits of the deadline instead
of the lowest two bits of 'gstate'.
- Rename MQ_RQ_STATE_MASK into RQ_STATE_MASK and change it from an
enumeration member into a #define such that its type can be changed
into unsigned long. That allows to write & ~RQ_STATE_MASK instead of
~(unsigned long)RQ_STATE_MASK.
- Remove all request member variables that became superfluous due to
this change: gstate, gstate_seq and aborted_gstate_sync.
- Remove the request state information that became superfluous due to this
patch, namely RQF_MQ_TIMEOUT_EXPIRED.
- Remove the code that became superfluous due to this change, namely
the RCU lock and unlock statements in blk_mq_complete_request() and
also the synchronize_rcu() call in the timeout handler.
Signed-off-by: Bart Van Assche <bart.vanassche(a)wdc.com>
Cc: Tejun Heo <tj(a)kernel.org>
Cc: Christoph Hellwig <hch(a)lst.de>
Cc: Ming Lei <ming.lei(a)redhat.com>
Cc: Sagi Grimberg <sagi(a)grimberg.me>
Cc: Israel Rukshin <israelr(a)mellanox.com>,
Cc: Max Gurtovoy <maxg(a)mellanox.com>
Cc: <stable(a)vger.kernel.org> # v4.16
Signed-off-by: Jens Axboe <axboe(a)kernel.dk>
901932a3f9 blkcg: init root blkcg_gq under lock
ed74ae0342 blk-mq: Avoid that a completion can be ignored for BLK_EH_RESET_TIMER
81f9787a93 block: mq: Add some minor doc for core structs
+-------------------------------+------------+------------+------------+
| | 901932a3f9 | ed74ae0342 | 81f9787a93 |
+-------------------------------+------------+------------+------------+
| boot_successes | 33 | 0 | 0 |
| boot_failures | 0 | 13 | 19 |
| BUG:kernel_hang_in_test_stage | 0 | 13 | 19 |
+-------------------------------+------------+------------+------------+
[ 1291.232051] Writes: Total: 551918540 Max/Min: 0/0 Fail: 0
[ 1352.672080] Writes: Total: 584508421 Max/Min: 0/0 Fail: 0
[ 1414.120542] Writes: Total: 614769476 Max/Min: 0/0 Fail: 0
[ 1475.552055] Writes: Total: 641108602 Max/Min: 0/0 Fail: 0
[ 1536.993079] Writes: Total: 668490942 Max/Min: 0/0 Fail: 0
BUG: kernel hang in test stage
# HH:MM RESULT GOOD BAD GOOD_BUT_DIRTY DIRTY_NOT_BAD
git bisect start aa1ee658e2460d5caaa6c9f20c21f5429e967421 60cc43fc888428bb2f18f08997432d426a243338 --
git bisect bad bc9a2437cdfcbf8906270d81cb5dd973efa260a7 # 19:42 B 0 3 16 0 Merge 'wsa/coccinelle/get_drvdata' into devel-hourly-2018042013
git bisect bad 855b1a282f0fe1da064cd1d26b32ee5e64e1262c # 20:34 B 0 4 17 0 Merge 'drm-drm-intel/topic/core-for-CI' into devel-hourly-2018042013
git bisect good 3cfc4f7d8c25179a3d0198d7231e6ec9f67121e2 # 20:54 G 11 0 4 4 Merge 'linux-review/Baolin-Wang/dt-bindings-input-Add-Add-Spreadtrum-SC27xx-vibrator-documentation/20180417-172158' into devel-hourly-2018042013
git bisect bad 2b9ee19fee29678f1db58a1c56af59d4ae1a8b32 # 21:31 B 0 11 24 0 Merge 'linux-review/Jon-Maloy/tipc-fix-use-after-free-in-tipc_nametbl_stop/20180418-195743' into devel-hourly-2018042013
git bisect bad 7b6af07d1f233f28f49d9d8866bece52c5a24163 # 22:16 B 0 1 14 0 Merge 'linux-nvdimm/libnvdimm-for-next' into devel-hourly-2018042013
git bisect bad bc1f481f45ce7483f02e47bbf4020c7607b1e041 # 22:55 B 0 2 15 0 Merge 'net/master' into devel-hourly-2018042013
git bisect good f2ba5ad5cef9d0984d5e8ab631466405ceba8097 # 23:15 G 11 0 2 2 Merge 'baolu/iommu/siov/0419' into devel-hourly-2018042013
git bisect good 6724b7e7ac4e65a794e2fe5ef666c4dbe1a8b057 # 23:29 G 10 0 4 4 Merge 'chanwoo-extcon/extcon-fixes' into devel-hourly-2018042013
git bisect good e3377f29326e372064057289eac14d65813c24e7 # 23:48 G 11 0 5 5 Merge 'ceph-client/testing' into devel-hourly-2018042013
git bisect good 7592af80646d1cfa4a37f9b125901b8aa558a232 # 00:05 G 10 0 4 4 Merge 'linux-review/Ryder-Lee/thermal-mediatek-use-of_device_get_match_data/20180416-125446' into devel-hourly-2018042013
git bisect bad edc4453ad0d7e61ead2875fdbeea2086f9284143 # 00:45 B 0 2 15 0 Merge 'block/for-linus' into devel-hourly-2018042013
git bisect good b3906535ccc6cd04c42f9b1c7e31d1947b3ebc74 # 01:50 G 11 0 2 2 block/swim: Select appropriate drive on device open
git bisect good 946b81da114b8ba5c74bb01e57c0c6eca2bdc801 # 02:03 G 11 0 1 1 blkcg: don't hold blkcg lock when deactivating policy
git bisect bad ed74ae03424684a6ad8a973c3fa727c6b4162432 # 02:36 B 0 2 15 0 blk-mq: Avoid that a completion can be ignored for BLK_EH_RESET_TIMER
git bisect good 901932a3f9b2b80352896be946c6d577c0a9652c # 03:08 G 11 0 2 2 blkcg: init root blkcg_gq under lock
# first bad commit: [ed74ae03424684a6ad8a973c3fa727c6b4162432] blk-mq: Avoid that a completion can be ignored for BLK_EH_RESET_TIMER
git bisect good 901932a3f9b2b80352896be946c6d577c0a9652c # 03:13 G 30 0 3 5 blkcg: init root blkcg_gq under lock
# extra tests with debug options
git bisect bad ed74ae03424684a6ad8a973c3fa727c6b4162432 # 03:52 B 0 3 16 0 blk-mq: Avoid that a completion can be ignored for BLK_EH_RESET_TIMER
# extra tests on HEAD of linux-devel/devel-hourly-2018042013
git bisect bad aa1ee658e2460d5caaa6c9f20c21f5429e967421 # 03:57 B 0 21 46 0 0day head guard for 'devel-hourly-2018042013'
# extra tests on tree/branch block/for-linus
git bisect bad 81f9787a93a81d284eec6c0327f452b56d337ee0 # 04:39 B 0 2 16 1 block: mq: Add some minor doc for core structs
# extra tests with first bad commit reverted
git bisect good 64c641c666cd37692c81aa2933c1f19262e047f2 # 04:59 G 10 0 1 1 Revert "blk-mq: Avoid that a completion can be ignored for BLK_EH_RESET_TIMER"
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/lkp Intel Corporation
4 years, 1 month
0b76b66e33 ("proc: add a proc_create_reg helper"): BUG: unable to handle kernel NULL pointer dereference at 00000004
by kernel test robot
Greetings,
0day kernel testing robot got the below dmesg and the first bad commit is
git://git.infradead.org/users/hch/misc.git proc_create.2
commit 0b76b66e33b60252fc8a6c3d87143e728d7b75ed
Author: Christoph Hellwig <hch(a)lst.de>
AuthorDate: Tue Apr 24 17:08:36 2018 +0200
Commit: Christoph Hellwig <hch(a)lst.de>
CommitDate: Tue Apr 24 17:08:36 2018 +0200
proc: add a proc_create_reg helper
Common code for creating a regular file. Factor out of proc_create_data, to
be reused by other functions soon.
Signed-off-by: Christoph Hellwig <hch(a)lst.de>
4c2067266d proc: simplify proc_register calling conventions
0b76b66e33 proc: add a proc_create_reg helper
280fcf5621 tty: replace ->proc_fops with ->proc_show
+------------------------------------------+------------+------------+------------+
| | 4c2067266d | 0b76b66e33 | 280fcf5621 |
+------------------------------------------+------------+------------+------------+
| boot_successes | 35 | 2 | 6 |
| boot_failures | 0 | 24 | 15 |
| BUG:unable_to_handle_kernel | 0 | 22 | 15 |
| Oops:#[##] | 0 | 24 | 15 |
| EIP:tcp_seq_open | 0 | 19 | |
| Kernel_panic-not_syncing:Fatal_exception | 0 | 24 | 15 |
| EIP:udp_seq_open | 0 | 5 | |
| EIP:listening_get_next | 0 | 0 | 15 |
+------------------------------------------+------------+------------+------------+
[ 66.040779] random: ubusd: uninitialized urandom read (4 bytes read)
[ 66.041613] random: ubusd: uninitialized urandom read (4 bytes read)
[ 66.042242] random: ubusd: uninitialized urandom read (4 bytes read)
[ 66.100238] random: ubusd: uninitialized urandom read (4 bytes read)
[ 66.101036] random: ubusd: uninitialized urandom read (4 bytes read)
[ 67.592993] BUG: unable to handle kernel NULL pointer dereference at 00000004
[ 67.594249] *pde = 00000000
[ 67.594538] Oops: 0000 [#1] SMP
[ 67.594869] CPU: 0 PID: 472 Comm: dropbearkey Not tainted 4.17.0-rc2-00003-g0b76b66 #235
[ 67.595643] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.10.2-1 04/01/2014
[ 67.596435] EIP: tcp_seq_open+0x3c/0x70
[ 67.609882] EFLAGS: 00010246 CPU: 0
[ 67.610217] EAX: cc937e20 EBX: 00000000 ECX: c29c0660 EDX: 00000000
[ 67.610813] ESI: cc971480 EDI: cd5226d0 EBP: cc9e3e0c ESP: cc9e3dfc
[ 67.611402] DS: 007b ES: 007b FS: 00d8 GS: 00e0 SS: 0068
[ 67.611915] CR0: 80050033 CR2: 00000004 CR3: 0ca3b000 CR4: 001406d0
[ 67.612486] DR0: 00000000 DR1: 00000000 DR2: 00000000 DR3: 00000000
[ 67.613063] DR6: fffe0ff0 DR7: 00000400
[ 67.613415] Call Trace:
[ 67.613675] ? proc_reg_open+0x65/0x120
[ 67.614042] ? do_dentry_open+0x159/0x2d0
[ 67.614490] ? proc_i_callback+0x20/0x20
[ 67.614872] ? path_openat+0x420/0xad0
[ 67.615230] ? getname_flags+0x2a/0x180
[ 67.615615] ? do_filp_open+0x6e/0xe0
[ 67.615966] ? unuse_pde+0x30/0x30
[ 67.616294] ? noop_direct_IO+0x10/0x10
[ 67.616671] ? do_sys_open+0x1d5/0x280
[ 67.617021] ? do_int80_syscall_32+0x6f/0x120
[ 67.617422] ? entry_INT80_32+0x36/0x36
[ 67.617784] Code: b7 5b ff 89 c7 89 d6 e8 33 15 7b ff 89 f2 8d 48 0c 89 c3 c7 04 24 24 00 00 00 89 f8 e8 6e 83 7b ff 85 c0 78 23 8b 86 14 01 00 00 <0f> b7 53 04 8b 80 8c 00 00 00 66 89 10 c7 40 1c 00 00 00 00 c7
[ 67.619553] EIP: tcp_seq_open+0x3c/0x70 SS:ESP: 0068:cc9e3dfc
[ 67.620083] CR2: 0000000000000004
[ 67.620495] ---[ end trace 54cd0519445aa0ae ]---
[ 67.620959] Kernel panic - not syncing: Fatal exception
# HH:MM RESULT GOOD BAD GOOD_BUT_DIRTY DIRTY_NOT_BAD
git bisect start 280fcf56218e914b35fb53f64f2a86f51302ac33 6d08b06e67cd117f6992c46611dfb4ce267cd71e --
git bisect bad cc2c817e170de32f8f13bfe57816cfef29397f3c # 01:34 B 0 2 15 0 sg: simplify procfs code
git bisect bad 19e71849f4eefce6092230b4a3736a17e078daff # 01:45 B 0 4 18 0 ipv{4,6}/raw: simplify ѕeq_file code
git bisect bad 0ddd1e75d771a94a7c2f2a64f82be67bd00701ca # 02:00 B 0 11 24 0 proc: introduce proc_create_seq_private
git bisect good 4c2067266d8d7fbacb01d4df6cb1273890fbb6b0 # 02:12 G 11 0 0 0 proc: simplify proc_register calling conventions
git bisect bad 0b76b66e33b60252fc8a6c3d87143e728d7b75ed # 02:21 B 0 1 14 0 proc: add a proc_create_reg helper
# first bad commit: [0b76b66e33b60252fc8a6c3d87143e728d7b75ed] proc: add a proc_create_reg helper
git bisect good 4c2067266d8d7fbacb01d4df6cb1273890fbb6b0 # 02:30 G 31 0 0 0 proc: simplify proc_register calling conventions
# extra tests with debug options
git bisect bad 0b76b66e33b60252fc8a6c3d87143e728d7b75ed # 02:36 B 0 5 18 0 proc: add a proc_create_reg helper
# extra tests on HEAD of hch-misc/proc_create.2
git bisect bad 280fcf56218e914b35fb53f64f2a86f51302ac33 # 02:41 B 0 15 32 0 tty: replace ->proc_fops with ->proc_show
# extra tests on tree/branch hch-misc/proc_create.2
git bisect bad 280fcf56218e914b35fb53f64f2a86f51302ac33 # 02:41 B 0 15 32 0 tty: replace ->proc_fops with ->proc_show
# extra tests with first bad commit reverted
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/lkp Intel Corporation
4 years, 1 month
c9e97a1997 ("mm: initialize pages on demand during boot"): BUG: kernel reboot-without-warning in early-boot stage, last printk: early console in setup code
by kernel test robot
Greetings,
0day kernel testing robot got the below dmesg and the first bad commit is
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
commit c9e97a1997fbf3a1d18d4065c2ca381f0704d7e5
Author: Pavel Tatashin <pasha.tatashin(a)oracle.com>
AuthorDate: Thu Apr 5 16:22:31 2018 -0700
Commit: Linus Torvalds <torvalds(a)linux-foundation.org>
CommitDate: Thu Apr 5 21:36:25 2018 -0700
mm: initialize pages on demand during boot
Deferred page initialization allows the boot cpu to initialize a small
subset of the system's pages early in boot, with other cpus doing the
rest later on.
It is, however, problematic to know how many pages the kernel needs
during boot. Different modules and kernel parameters may change the
requirement, so the boot cpu either initializes too many pages or runs
out of memory.
To fix that, initialize early pages on demand. This ensures the kernel
does the minimum amount of work to initialize pages during boot and
leaves the rest to be divided in the multithreaded initialization path
(deferred_init_memmap).
The on-demand code is permanently disabled using static branching once
deferred pages are initialized. After the static branch is changed to
false, the overhead is up-to two branch-always instructions if the zone
watermark check fails or if rmqueue fails.
Sergey Senozhatsky noticed that while deferred pages currently make
sense only on NUMA machines (we start one thread per latency node),
CONFIG_NUMA is not a requirement for CONFIG_DEFERRED_STRUCT_PAGE_INIT,
so that is also must be addressed in the patch.
[akpm(a)linux-foundation.org: fix typo in comment, make deferred_pages static]
[pasha.tatashin(a)oracle.com: fix min() type mismatch warning]
Link: http://lkml.kernel.org/r/20180212164543.26592-1-pasha.tatashin@oracle.com
[pasha.tatashin(a)oracle.com: use zone_to_nid() in deferred_grow_zone()]
Link: http://lkml.kernel.org/r/20180214163343.21234-2-pasha.tatashin@oracle.com
[pasha.tatashin(a)oracle.com: might_sleep warning]
Link: http://lkml.kernel.org/r/20180306192022.28289-1-pasha.tatashin@oracle.com
[akpm(a)linux-foundation.org: s/spin_lock/spin_lock_irq/ in page_alloc_init_late()]
[pasha.tatashin(a)oracle.com: v5]
Link: http://lkml.kernel.org/r/20180309220807.24961-3-pasha.tatashin@oracle.com
[akpm(a)linux-foundation.org: tweak comments]
[pasha.tatashin(a)oracle.com: v6]
Link: http://lkml.kernel.org/r/20180313182355.17669-3-pasha.tatashin@oracle.com
[akpm(a)linux-foundation.org: coding-style fixes]
Link: http://lkml.kernel.org/r/20180209192216.20509-2-pasha.tatashin@oracle.com
Signed-off-by: Pavel Tatashin <pasha.tatashin(a)oracle.com>
Reviewed-by: Daniel Jordan <daniel.m.jordan(a)oracle.com>
Reviewed-by: Steven Sistare <steven.sistare(a)oracle.com>
Reviewed-by: Andrew Morton <akpm(a)linux-foundation.org>
Tested-by: Masayoshi Mizuma <m.mizuma(a)jp.fujitsu.com>
Acked-by: Mel Gorman <mgorman(a)suse.de>
Cc: Michal Hocko <mhocko(a)suse.com>
Cc: Catalin Marinas <catalin.marinas(a)arm.com>
Cc: AKASHI Takahiro <takahiro.akashi(a)linaro.org>
Cc: Gioh Kim <gi-oh.kim(a)profitbricks.com>
Cc: Heiko Carstens <heiko.carstens(a)de.ibm.com>
Cc: Yaowei Bai <baiyaowei(a)cmss.chinamobile.com>
Cc: Wei Yang <richard.weiyang(a)gmail.com>
Cc: Paul Burton <paul.burton(a)mips.com>
Cc: Miles Chen <miles.chen(a)mediatek.com>
Cc: Vlastimil Babka <vbabka(a)suse.cz>
Cc: Johannes Weiner <hannes(a)cmpxchg.org>
Signed-off-by: Andrew Morton <akpm(a)linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds(a)linux-foundation.org>
3a2d7fa8a3 mm: disable interrupts while initializing deferred pages
c9e97a1997 mm: initialize pages on demand during boot
6d08b06e67 Linux 4.17-rc2
43cd1f4979 Add linux-next specific files for 20180424
+-----------------------------------------------------------------------------------------------+------------+------------+-----------+---------------+
| | 3a2d7fa8a3 | c9e97a1997 | v4.17-rc2 | next-20180424 |
+-----------------------------------------------------------------------------------------------+------------+------------+-----------+---------------+
| boot_successes | 45 | 10 | 1 | 0 |
| boot_failures | 0 | 8 | 17 | 10 |
| BUG:kernel_reboot-without-warning_in_early-boot_stage,last_printk:early_console_in_setup_code | 0 | 8 | 12 | 10 |
| BUG:unable_to_handle_kernel | 0 | 0 | 5 | |
| Oops:#[##] | 0 | 0 | 5 | |
| RIP:llc_ui_release | 0 | 0 | 5 | |
| Kernel_panic-not_syncing:Fatal_exception | 0 | 0 | 5 | |
+-----------------------------------------------------------------------------------------------+------------+------------+-----------+---------------+
early console in setup code
BUG: kernel reboot-without-warning in early-boot stage, last printk: early console in setup code
Linux version 4.16.0-07313-gc9e97a1 #1
Command line: root=/dev/ram0 hung_task_panic=1 debug apic=debug sysrq_always_enabled rcupdate.rcu_cpu_stall_timeout=100 net.ifnames=0 printk.devkmsg=on panic=-1 softlockup_panic=1 nmi_watchdog=panic oops=panic load_ramdisk=2 prompt_ramdisk=0 drbd.minor_count=8 systemd.log_level=err ignore_loglevel console=tty0 earlyprintk=ttyS0,115200 console=ttyS0,115200 vga=normal rw link=/kbuild-tests/run-queue/quantal-lkp-hsw01/x86_64-randconfig-b0-04131753/linux-devel:devel-spot-201804131640:c9e97a1997fbf3a1d18d4065c2ca381f0704d7e5:bisect-linux-32/.vmlinuz-c9e97a1997fbf3a1d18d4065c2ca381f0704d7e5-20180424201327-4:quantal-lkp-hsw01-20 branch=linux-devel/devel-spot-201804131640 BOOT_IMAGE=/pkg/linux/x86_64-randconfig-b0-04131753/gcc-7/c9e97a1997fbf3a1d18d4065c2ca381f0704d7e5/vmlinuz-4.16.0-07313-gc9e97a1 drbd.minor_count=8 rcuperf.shutdown=0
# HH:MM RESULT GOOD BAD GOOD_BUT_DIRTY DIRTY_NOT_BAD
git bisect start 8ffb4bb96d48382882e468abdd313c1347a8d949 0adb32858b0bddf4ada5f364a84ed60b196dbcda --
git bisect bad 86488bd4631bbf00ca4c8f53fce2e42768e1f268 # 16:35 B 0 1 14 0 Merge 'linux-review/Pierre-Yves-MORDRET/Add-different-features-for-I2C/20180413-042757' into devel-spot-201804131640
git bisect bad 96b791d4a59de0bb9ed5cf25325d44014eb98847 # 16:53 B 0 9 22 0 Merge 'linux-review/Andrey-Konovalov/kasan-add-no_sanitize-attribute-for-clang-builds/20180413-104156' into devel-spot-201804131640
git bisect bad 39479b2c194e447d3a0aca34d9a55bc74fc69945 # 17:03 B 0 1 14 0 Merge 'linux-review/Kai-Heng-Feng/dell-led-Change-dell-led-h-to-dell-common-h/20180413-143830' into devel-spot-201804131640
git bisect bad c6bbecf209ac3ddeb5d517f1b7612bdfecd4476f # 17:12 B 0 1 14 0 Merge 'mkp-scsi/fixes' into devel-spot-201804131640
git bisect good 52ac9a3dbd75042abdd28419932c434b512e36a2 # 17:22 G 14 0 0 0 Merge 'powerpc/merge' into devel-spot-201804131640
git bisect bad 48eb8be9087e1bda27d42a94f8b74c47e001ce50 # 17:36 B 0 5 18 0 Merge 'powerpc/fixes' into devel-spot-201804131640
git bisect good 147a89bc71e7db40f011454a40add7ff2d10f8d8 # 17:45 G 14 0 0 0 Merge tag 'kconfig-v4.17' of git://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild
git bisect bad 97b1255cb27c551d7c3c5c496d787da40772da99 # 17:53 B 0 8 24 3 mm,oom_reaper: check for MMF_OOM_SKIP before complaining
git bisect good f9ca6a561d40115696a54f16085c4edb17effc74 # 18:13 G 14 0 0 0 Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
git bisect good 049b5e2ae30b3c2f870cc9550af6f9a947fbd5b5 # 18:24 G 14 0 0 0 staging: rtl8723bs: Remove yield call, replace with cond_resched()
git bisect good 9abf8acea297b4c65f5fa3206e2b8e468e730e84 # 18:34 G 14 0 0 0 Merge tag 'tty-4.17-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty
git bisect good 86f690e8bfd124c38940e7ad58875ef383003348 # 18:45 G 13 0 0 0 Merge tag 'stm-intel_th-for-greg-20180329' of git://git.kernel.org/pub/scm/linux/kernel/git/ash/stm into char-misc-next
git bisect good 56d8ceebd39b4db3248291e6d1e3e696fc73b077 # 19:13 G 14 0 0 0 slub: make ->max_attr_size unsigned int
git bisect bad 03f5d58fa42fb337b921e57f8e2c2d4df7df890d # 19:30 B 0 7 20 0 mm/page_ref: use atomic_set_release in page_ref_unfreeze
git bisect good f9e13c0a5a33d1eaec374d6d4dab53a4f72756a0 # 19:41 G 14 0 0 0 slab, slub: skip unnecessary kasan_cache_shutdown()
git bisect bad 078eb6aa50dc50cd85f09a22226b7e238b3397ce # 19:51 B 0 9 22 0 x86/mm/memory_hotplug: determine block size based on the end of boot memory
git bisect good 8e7a0c9100cade3bdbf851206b892b6f98eb39c9 # 20:02 G 14 0 0 0 mm/swap_slots.c: use conditional compilation
git bisect bad c9e97a1997fbf3a1d18d4065c2ca381f0704d7e5 # 20:15 B 0 2 15 0 mm: initialize pages on demand during boot
git bisect good 3a2d7fa8a3d5ae740bd0c21d933acc6220857ed0 # 20:28 G 14 0 0 0 mm: disable interrupts while initializing deferred pages
# first bad commit: [c9e97a1997fbf3a1d18d4065c2ca381f0704d7e5] mm: initialize pages on demand during boot
git bisect good 3a2d7fa8a3d5ae740bd0c21d933acc6220857ed0 # 20:31 G 41 0 0 0 mm: disable interrupts while initializing deferred pages
# extra tests with debug options
git bisect bad c9e97a1997fbf3a1d18d4065c2ca381f0704d7e5 # 20:51 B 0 5 18 0 mm: initialize pages on demand during boot
# extra tests on HEAD of linux-devel/devel-spot-201804131640
git bisect bad 8ffb4bb96d48382882e468abdd313c1347a8d949 # 20:51 B 5 8 0 0 0day head guard for 'devel-spot-201804131640'
# extra tests on tree/branch linus/master
git bisect bad 6d08b06e67cd117f6992c46611dfb4ce267cd71e # 21:05 B 0 4 18 1 Linux 4.17-rc2
# extra tests with first bad commit reverted
git bisect good 75b17fa1798cc01a7c5df46fdc62316f1933f4c0 # 21:54 G 14 0 0 0 Revert "mm: initialize pages on demand during boot"
# extra tests on tree/branch linux-next/master
git bisect bad 43cd1f4979998ba0ef1c0b8e1c5d23d2de5ab172 # 22:09 B 0 10 23 0 Add linux-next specific files for 20180424
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/lkp Intel Corporation
4 years, 1 month
[lkp-robot] [kvm] 783e9e5126: kernel_selftests.kvm.set_sregs_test.fail
by kernel test robot
FYI, we noticed the following commit (built with gcc-7):
commit: 783e9e51266ebb7f78c606a53cb0fa41bb7c31a0 ("kvm: selftests: add API testing infrastructure")
https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git master
in testcase: kernel_selftests
with following parameters:
group: kselftests-01
test-description: The kernel contains a set of "self tests" under the tools/testing/selftests/ directory. These are intended to be small unit tests to exercise individual code paths in the kernel.
test-url: https://www.kernel.org/doc/Documentation/kselftest.txt
on test machine: 88 threads Intel(R) Xeon(R) CPU E5-2699 v4 @ 2.20GHz with 64G memory
caused below changes (please refer to attached dmesg/kmsg for entire log/backtrace):
gcc -O2 -g -I../../../..//usr/include/ -Iinclude -I. set_sregs_test.c /usr/src/linux-selftests-x86_64-rhel-7.2-783e9e51266ebb7f78c606a53cb0fa41bb7c31a0/tools/testing/selftests/kvm/libkvm.a -o /usr/src/linux-selftests-x86_64-rhel-7.2-783e9e51266ebb7f78c606a53cb0fa41bb7c31a0/tools/testing/selftests/kvm/set_sregs_test
TAP version 13
selftests: set_sregs_test
========================================
==== Test Assertion Failure ====
lib/kvm_util.c:95: kvm_fd >= 0
pid=19892 tid=19892
1 0x0000000000401a6e: vm_create at kvm_util.c:94
2 0x0000000000406149: vm_create_default at x86.c:688
3 0x0000000000400d01: main at set_sregs_test.c:39
4 0x00007fa0cbf61a86: ?? ??:0
5 0x0000000000400de9: _start at ??:?
open /dev/kvm failed, rc: -1 errno: 2
not ok 1..1 selftests: set_sregs_test [FAIL]
make: Leaving directory '/usr/src/linux-selftests-x86_64-rhel-7.2-783e9e51266ebb7f78c606a53cb0fa41bb7c31a0/tools/testing/selftests/kvm'
Thanks,
Xiaolong
4 years, 1 month
[lkp-robot] [KVM] 432baf60ee: kvm-unit-tests.emulator.fail
by kernel test robot
FYI, we noticed the following commit (built with gcc-7):
commit: 432baf60eee3dcacac94b8781464ab566abf0183 ("KVM: VMX: use kvm_fast_pio_in for handling IN I/O")
https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git master
in testcase: kvm-unit-tests
with following parameters:
on test machine: 88 threads Intel(R) Xeon(R) CPU E5-2699 v4 @ 2.20GHz with 128G memory
caused below changes (please refer to attached dmesg/kmsg for entire log/backtrace):
[31mFAIL[0m emulator (131 tests, 7 unexpected failures, 1 skipped)
[32mPASS[0m eventinj (13 tests)
[32mPASS[0m hypercall (2 tests)
[32mPASS[0m idt_test (4 tests)
[32mPASS[0m memory (8 tests)
Thanks,
Xiaolong
4 years, 1 month
[lkp-robot] [bpf] 014bd0ec2c: bpf_offload.test_offload.fail
by kernel test robot
FYI, we noticed the following commit (built with gcc-7):
commit: 014bd0ec2c5f5dcd0f3ccfad678e61963ebc6485 ("bpf: bpftool, support for pinned maps")
https://github.com/cilium/linux.git cilium_working_ipc-v2
in testcase: bpf_offload
with following parameters:
on test machine: qemu-system-x86_64 -enable-kvm -cpu host -smp 2 -m 4G
caused below changes (please refer to attached dmesg/kmsg for entire log/backtrace):
Test offload of wrong type fails...
Test asking for TC offload of two filters...
Test if netdev removal waits for translation...
Test loading program with maps...
Test bpftool bound info reporting (own ns)...
Test bpftool bound info reporting (other ns)...
Test bpftool bound info reporting (remote ns)...
Test bpftool bound info reporting (back to own ns)...
Test bpftool bound info reporting (removed dev)...
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
4 years, 1 month
[lkp-robot] f657a666fd: stress-ng.open.ops 160.4% improvement
by kernel test robot
Greeting,
FYI, we noticed a 160.4% improvement of stress-ng.open.ops due to commit:
commit: f657a666fd1b1b9fe59963943c74c245ae66f4cc ("get rid of trylock loop around dentry_kill()")
https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git master
in testcase: stress-ng
on test machine: 88 threads Intel(R) Xeon(R) CPU E5-2699 v4 @ 2.20GHz with 128G memory
with following parameters:
nr_threads: 100%
testtime: 1s
class: filesystem
cpufreq_governor: performance
Details are as below:
-------------------------------------------------------------------------------------------------->
To reproduce:
git clone https://github.com/intel/lkp-tests.git
cd lkp-tests
bin/lkp install job.yaml # job file is attached in this email
bin/lkp run job.yaml
=========================================================================================
class/compiler/cpufreq_governor/kconfig/nr_threads/rootfs/tbox_group/testcase/testtime:
filesystem/gcc-7/performance/x86_64-rhel-7.2/100%/debian-x86_64-2016-08-31.cgz/lkp-bdw-ep6/stress-ng/1s
commit:
62d9956cef ("handle move to LRU in retain_dentry()")
f657a666fd ("get rid of trylock loop around dentry_kill()")
62d9956cefe6ecc4 f657a666fd1b1b9fe59963943c
---------------- --------------------------
%stddev %change %stddev
\ | \
382089 ± 2% +160.4% 995072 ± 2% stress-ng.open.ops
382104 ± 2% +160.5% 995212 ± 2% stress-ng.open.ops_per_sec
0.09 ± 4% +0.0 0.10 ± 2% mpstat.cpu.soft%
3307 ± 75% -39.9% 1988 ±103% proc-vmstat.thp_deferred_split_page
10.26 +0.2 10.42 perf-stat.cache-miss-rate%
3.214e+11 -3.1% 3.116e+11 perf-stat.dTLB-stores
2091 ± 2% -8.8% 1907 ± 4% slabinfo.biovec-64.active_objs
2091 ± 2% -8.8% 1907 ± 4% slabinfo.biovec-64.num_objs
8694 ± 8% +14.6% 9966 ± 3% slabinfo.shmem_inode_cache.num_objs
21610 ± 4% +1211.9% 283499 ±159% sched_debug.cfs_rq:/.runnable_weight.max
3.35 ± 13% +19.6% 4.00 ± 11% sched_debug.cpu.clock.stddev
3.35 ± 13% +19.6% 4.00 ± 11% sched_debug.cpu.clock_task.stddev
235.05 ± 10% -21.2% 185.11 ± 10% sched_debug.cpu.curr->pid.avg
0.00 ± 11% -16.0% 0.00 ± 5% sched_debug.cpu.next_balance.stddev
0.05 ± 21% -86.0% 0.01 ±173% sched_debug.cpu.ttwu_local.avg
0.22 ± 11% -80.9% 0.04 ±173% sched_debug.cpu.ttwu_local.stddev
13.52 ± 92% -13.5 0.00 perf-profile.calltrace.cycles-pp.entry_SYSCALL_64_after_hwframe.write
13.52 ± 92% -13.5 0.00 perf-profile.calltrace.cycles-pp.do_syscall_64.entry_SYSCALL_64_after_hwframe.write
14.18 ± 83% -12.9 1.25 ±173% perf-profile.calltrace.cycles-pp.write
12.90 ±101% -12.9 0.00 perf-profile.calltrace.cycles-pp.sys_write.do_syscall_64.entry_SYSCALL_64_after_hwframe.write
12.90 ±101% -12.9 0.00 perf-profile.calltrace.cycles-pp.vfs_write.sys_write.do_syscall_64.entry_SYSCALL_64_after_hwframe.write
12.90 ±101% -12.9 0.00 perf-profile.calltrace.cycles-pp.devkmsg_write.__vfs_write.vfs_write.sys_write.do_syscall_64
12.90 ±101% -12.9 0.00 perf-profile.calltrace.cycles-pp.printk_emit.devkmsg_write.__vfs_write.vfs_write.sys_write
12.90 ±101% -12.9 0.00 perf-profile.calltrace.cycles-pp.vprintk_emit.printk_emit.devkmsg_write.__vfs_write.vfs_write
12.90 ±101% -12.9 0.00 perf-profile.calltrace.cycles-pp.console_unlock.vprintk_emit.printk_emit.devkmsg_write.__vfs_write
12.90 ±101% -11.6 1.25 ±173% perf-profile.calltrace.cycles-pp.__vfs_write.vfs_write.sys_write.do_syscall_64.entry_SYSCALL_64_after_hwframe
9.13 ±114% -9.1 0.00 perf-profile.calltrace.cycles-pp.serial8250_console_write.console_unlock.vprintk_emit.printk_emit.devkmsg_write
8.93 ±113% -8.9 0.00 perf-profile.calltrace.cycles-pp.uart_console_write.serial8250_console_write.console_unlock.vprintk_emit.printk_emit
8.73 ±112% -8.7 0.00 perf-profile.calltrace.cycles-pp.wait_for_xmitr.serial8250_console_putchar.uart_console_write.serial8250_console_write.console_unlock
8.73 ±112% -8.7 0.00 perf-profile.calltrace.cycles-pp.serial8250_console_putchar.uart_console_write.serial8250_console_write.console_unlock.vprintk_emit
5.42 ±109% -5.4 0.00 perf-profile.calltrace.cycles-pp.io_serial_in.wait_for_xmitr.serial8250_console_putchar.uart_console_write.serial8250_console_write
39.76 ± 16% +16.1 55.84 ± 12% perf-profile.calltrace.cycles-pp.cpu_startup_entry.start_secondary.secondary_startup_64
39.76 ± 16% +16.1 55.84 ± 12% perf-profile.calltrace.cycles-pp.do_idle.cpu_startup_entry.start_secondary.secondary_startup_64
39.76 ± 16% +16.1 55.84 ± 12% perf-profile.calltrace.cycles-pp.start_secondary.secondary_startup_64
38.48 ± 14% +16.3 54.75 ± 16% perf-profile.calltrace.cycles-pp.cpuidle_enter_state.do_idle.cpu_startup_entry.start_secondary.secondary_startup_64
40.62 ± 15% +19.2 59.84 ± 15% perf-profile.calltrace.cycles-pp.secondary_startup_64
48.13 ± 11% -18.4 29.69 ± 25% perf-profile.children.cycles-pp.entry_SYSCALL_64_after_hwframe
48.13 ± 11% -18.4 29.69 ± 25% perf-profile.children.cycles-pp.do_syscall_64
14.18 ± 83% -12.9 1.25 ±173% perf-profile.children.cycles-pp.write
12.90 ±101% -12.9 0.00 perf-profile.children.cycles-pp.devkmsg_write
12.90 ±101% -12.9 0.00 perf-profile.children.cycles-pp.printk_emit
12.90 ±101% -12.9 0.00 perf-profile.children.cycles-pp.vprintk_emit
12.90 ±101% -12.9 0.00 perf-profile.children.cycles-pp.console_unlock
12.90 ±101% -11.6 1.25 ±173% perf-profile.children.cycles-pp.sys_write
12.90 ±101% -11.6 1.25 ±173% perf-profile.children.cycles-pp.vfs_write
12.90 ±101% -11.6 1.25 ±173% perf-profile.children.cycles-pp.__vfs_write
9.13 ±114% -9.1 0.00 perf-profile.children.cycles-pp.serial8250_console_write
8.93 ±113% -8.9 0.00 perf-profile.children.cycles-pp.uart_console_write
8.93 ±113% -8.9 0.00 perf-profile.children.cycles-pp.wait_for_xmitr
8.73 ±112% -8.7 0.00 perf-profile.children.cycles-pp.serial8250_console_putchar
5.42 ±109% -5.4 0.00 perf-profile.children.cycles-pp.io_serial_in
5.08 ± 81% -4.0 1.09 ±173% perf-profile.children.cycles-pp.syscall_return_via_sysret
39.76 ± 16% +16.1 55.84 ± 12% perf-profile.children.cycles-pp.start_secondary
39.96 ± 15% +18.8 58.75 ± 18% perf-profile.children.cycles-pp.cpuidle_enter_state
40.62 ± 15% +19.2 59.84 ± 15% perf-profile.children.cycles-pp.secondary_startup_64
40.62 ± 15% +19.2 59.84 ± 15% perf-profile.children.cycles-pp.cpu_startup_entry
40.62 ± 15% +19.2 59.84 ± 15% perf-profile.children.cycles-pp.do_idle
5.42 ±109% -5.4 0.00 perf-profile.self.cycles-pp.io_serial_in
5.08 ± 81% -4.0 1.09 ±173% perf-profile.self.cycles-pp.syscall_return_via_sysret
stress-ng.open.ops
1.2e+06 +-+---------------------------------------------------------------+
O |
1.1e+06 +-O O O O OO O O O |
1e+06 +-+ O O O O O O O O O |
| O O O O |
900000 +-+ |
800000 +-+ |
| |
700000 +-+ |
600000 +-+ |
| |
500000 +-+ |
400000 +-+.+. +.+.+. .+. .+. .+. |
|.+ +.+.+.+.+.+ + +.+.+.+.+.+.+.+ +.+.++.+ +.+.+.+.+.|
300000 +-+---------------------------------------------------------------+
stress-ng.open.ops_per_sec
1.2e+06 +-+---------------------------------------------------------------+
O |
1.1e+06 +-O O O O OO O O O |
1e+06 +-+ O O O O O O O O O |
| O O O O |
900000 +-+ |
800000 +-+ |
| |
700000 +-+ |
600000 +-+ |
| |
500000 +-+ |
400000 +-+.+. +.+.+. .+. .+. .+. |
|.+ +.+.+.+.+.+ + +.+.+.+.+.+.+.+ +.+.++.+ +.+.+.+.+.|
300000 +-+---------------------------------------------------------------+
[*] bisect-good sample
[O] bisect-bad sample
Disclaimer:
Results have been estimated based on internal Intel analysis and are provided
for informational purposes only. Any difference in system hardware or software
design or configuration may affect actual performance.
Thanks,
Xiaolong
4 years, 1 month