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: <5d38e189.rF5nqXyx5om2sy16%lkp@intel.com>
Date:   Thu, 25 Jul 2019 06:54:01 +0800
From:   kernel test robot <lkp@...el.com>
To:     Alexander Potapenko <glider@...gle.com>
Cc:     LKP <lkp@...org>, linux-kernel@...r.kernel.org,
        Linux Memory Management List <linux-mm@...ck.org>,
        Andrew Morton <akpm@...ux-foundation.org>, philip.li@...el.com
Subject: 5015a300a5 ("lib: introduce test_meminit module"):  BUG: sleeping function called from invalid context at mm/page_alloc.c:4664

Greetings,

0day kernel testing robot got the below dmesg and the first bad commit is

https://kernel.googlesource.com/pub/scm/linux/kernel/git/torvalds/linux.git master

commit 5015a300a522c8fb542dc993140e4c360cf4cf5f
Author:     Alexander Potapenko <glider@...gle.com>
AuthorDate: Tue Jul 16 16:27:27 2019 -0700
Commit:     Linus Torvalds <torvalds@...ux-foundation.org>
CommitDate: Tue Jul 16 19:23:22 2019 -0700

    lib: introduce test_meminit module
    
    Add tests for heap and pagealloc initialization.  These can be used to
    check init_on_alloc and init_on_free implementations as well as other
    approaches to initialization.
    
    Expected test output in the case the kernel provides heap initialization
    (e.g.  when running with either init_on_alloc=1 or init_on_free=1):
    
      test_meminit: all 10 tests in test_pages passed
      test_meminit: all 40 tests in test_kvmalloc passed
      test_meminit: all 60 tests in test_kmemcache passed
      test_meminit: all 10 tests in test_rcu_persistent passed
      test_meminit: all 120 tests passed!
    
    Link: http://lkml.kernel.org/r/20190529123812.43089-4-glider@google.com
    Signed-off-by: Alexander Potapenko <glider@...gle.com>
    Acked-by: Kees Cook <keescook@...omium.org>
    Cc: Christoph Lameter <cl@...ux.com>
    Cc: Nick Desaulniers <ndesaulniers@...gle.com>
    Cc: Kostya Serebryany <kcc@...gle.com>
    Cc: Dmitry Vyukov <dvyukov@...gle.com>
    Cc: Sandeep Patil <sspatil@...roid.com>
    Cc: Laura Abbott <labbott@...hat.com>
    Cc: Jann Horn <jannh@...gle.com>
    Cc: Marco Elver <elver@...gle.com>
    Signed-off-by: Andrew Morton <akpm@...ux-foundation.org>
    Signed-off-by: Linus Torvalds <torvalds@...ux-foundation.org>

8e060c21ae  lib/test_overflow.c: avoid tainting the kernel and fix wrap size
5015a300a5  lib: introduce test_meminit module
bed38c3e2d  Merge tag 'powerpc-5.3-2' of git://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux
9e6dfe8045  Add linux-next specific files for 20190724
+----------------------------------------------------------------------+------------+------------+------------+---------------+
|                                                                      | 8e060c21ae | 5015a300a5 | bed38c3e2d | next-20190724 |
+----------------------------------------------------------------------+------------+------------+------------+---------------+
| boot_successes                                                       | 190        | 2          | 0          | 0             |
| boot_failures                                                        | 1          | 64         | 66         | 3             |
| kernel_BUG_at_security/keys/keyring.c                                | 1          |            |            |               |
| invalid_opcode:#[##]                                                 | 1          |            |            |               |
| RIP:__key_link_begin                                                 | 1          |            |            |               |
| Kernel_panic-not_syncing:Fatal_exception                             | 1          | 56         |            |               |
| BUG:sleeping_function_called_from_invalid_context_at_mm/page_alloc.c | 0          | 43         | 66         | 3             |
| BUG:unable_to_handle_page_fault_for_address                          | 0          | 56         |            |               |
| Oops:#[##]                                                           | 0          | 56         |            |               |
| RIP:slob_page_alloc                                                  | 0          | 42         |            |               |
| RIP:fill_with_garbage_skip                                           | 0          | 14         |            |               |
+----------------------------------------------------------------------+------------+------------+------------+---------------+

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

[    8.991602] test_stackinit: packed_none FAIL (uninit bytes: 32)
[    8.992253] test_stackinit: user FAIL (uninit bytes: 32)
[    8.992842] test_stackinit: failures: 23
[    9.006247] test_meminit: all 10 tests in test_pages passed
[    9.014607] test_meminit: test_kvmalloc failed 10 out of 40 times
[    9.017906] BUG: sleeping function called from invalid context at mm/page_alloc.c:4664
[    9.019075] in_atomic(): 0, irqs_disabled(): 0, pid: 1, name: swapper
[    9.019793] 1 lock held by swapper/1:
[    9.020207]  #0: (____ptrval____) (rcu_read_lock){....}, at: test_meminit_init+0x64b/0xc9f
[    9.021156] Preemption disabled at:
[    9.021161] [<ffffffff812b1e1a>] slob_alloc+0x62/0x2eb
[    9.022305] CPU: 0 PID: 1 Comm: swapper Tainted: G                T 5.2.0-10846-g5015a30 #1
[    9.023218] Call Trace:
[    9.023505]  dump_stack+0x2e/0x3e
[    9.023883]  ___might_sleep+0x28c/0x2ad
[    9.024406]  __might_sleep+0xa1/0xaf
[    9.024815]  __alloc_pages_nodemask+0x138/0xf74
[    9.025318]  ? kvm_clock_read+0x2b/0x62
[    9.025745]  ? kvm_sched_clock_read+0x10/0x20
[    9.026351]  ? sched_clock_cpu+0xe1/0x11f
[    9.026800]  slob_new_pages+0x14/0x4b
[    9.027286]  slob_alloc+0x19f/0x2eb
[    9.027746]  __kmalloc+0x69/0xc4
[    9.028110]  test_meminit_init+0x6a4/0xc9f
[    9.028567]  ? test_meminit_init+0x64b/0xc9f
[    9.029043]  ? fill_with_garbage+0x43/0x43
[    9.029501]  do_one_initcall+0x9a/0x274
[    9.029980]  kernel_init_freeable+0x268/0x3e4
[    9.030543]  ? rest_init+0x1ac/0x1ac
[    9.030962]  kernel_init+0x10/0x1b1
[    9.031369]  ret_from_fork+0x35/0x40
[    9.032240] BUG: unable to handle page fault for address: ffff88801b033ac4
[    9.033000] #PF: supervisor read access in kernel mode
[    9.033566] #PF: error_code(0x0000) - not-present page
[    9.034276] PGD 5c00067 P4D 5c00067 PUD 5c01067 PMD 1f928067 PTE 800fffffe4fcc060
[    9.034280] Oops: 0000 [#1] PREEMPT DEBUG_PAGEALLOC PTI
[    9.034280] CPU: 0 PID: 1 Comm: swapper Tainted: G        W       T 5.2.0-10846-g5015a30 #1
[    9.034280] RIP: 0010:slob_page_alloc+0x31/0x262
[    9.034280] Code: c9 48 89 e5 41 57 41 56 41 55 49 89 cd 41 54 53 c6 01 00 4c 63 f2 48 8b 4f 20 49 d1 ea 49 89 fc 4d 89 f3 45 89 d7 31 db 31 d2 <66> 44 8b 01 66 45 85 c0 7e 09 48 ff 05 28 1f 82 03 eb 06 41 b8 01
[    9.034280] RSP: 0000:ffff88801e843d68 EFLAGS: 00010006
[    9.034280] RAX: ffff88801b033ac4 RBX: ffff88801b02b230 RCX: ffff88801b033ac4
[    9.034280] RDX: ffff88801b02b230 RSI: 000000000000010c RDI: ffff88801b02b230
[    9.034280] RBP: ffff88801e843d90 R08: 0000000000000101 R09: 0000000000000000
[    9.034280] R10: 000000000000010c R11: 0000000000000008 R12: ffffea00006c0ac0
[    9.034280] R13: ffff88801e843dbf R14: 0000000000000008 R15: 000000000000010c
[    9.034280] FS:  0000000000000000(0000) GS:ffffffff8387a000(0000) knlGS:0000000000000000
[    9.034280] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[    9.034280] CR2: ffff88801b033ac4 CR3: 0000000003824001 CR4: 00000000003606f0
[    9.034280] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[    9.034280] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
[    9.034280] Call Trace:
[    9.034280]  slob_alloc+0xb2/0x2eb
[    9.034280]  kmem_cache_alloc+0x56/0xf2
[    9.034280]  test_meminit_init+0x5bf/0xc9f
[    9.034280]  ? fill_with_garbage+0x43/0x43
[    9.034280]  do_one_initcall+0x9a/0x274
[    9.034280]  kernel_init_freeable+0x268/0x3e4
[    9.034280]  ? rest_init+0x1ac/0x1ac
[    9.034280]  kernel_init+0x10/0x1b1
[    9.034280]  ret_from_fork+0x35/0x40
[    9.034280] Modules linked in:
[    9.034280] CR2: ffff88801b033ac4
[    9.034280] ---[ end trace a392338ad698f6fd ]---
[    9.034280] RIP: 0010:slob_page_alloc+0x31/0x262

                                                          # HH:MM RESULT GOOD BAD GOOD_BUT_DIRTY DIRTY_NOT_BAD
git bisect start 5f9e832c137075045d15cd6899ab0505cfb2ca4b v5.2 --
git bisect good 106f1466e7e7057ec6f4dc9516c13ea8cb9dffa0  # 22:47  G     10     0    0   0  Merge tag 'kconfig-v5.3' of git://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild
git bisect  bad fdcec00405fae0befdd7bbcbe738b7325e5746fb  # 23:05  B      0     3   18   0  Merge tag 'rproc-v5.3' of git://github.com/andersson/remoteproc
git bisect good fa6e951a2a440babd7a7310d0f4713e618061767  # 23:41  G     10     0    1   1  Merge tag 'ecryptfs-5.3-rc1-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/tyhicks/ecryptfs
git bisect good c309b6f24222246c18a8b65d3950e6e755440865  # 00:06  G     10     0    0   0  Merge tag 'docs/v5.3-1' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media
git bisect  bad fa121bb3fed6313b1f0af23952301e06cf6d32ed  # 00:22  B      0     1   16   0  Merge tag 'mips_5.3' of git://git.kernel.org/pub/scm/linux/kernel/git/mips/linux
git bisect good 0a8ad0ffa4d80a544f6cbff703bf6394339afcdf  # 00:48  G     10     0    1   1  Merge tag 'for-linus-5.3-ofs1' of git://git.kernel.org/pub/scm/linux/kernel/git/hubcap/linux
git bisect  bad 415bfd9cdb175cf870fb173ae9d3958862de2c97  # 00:56  B      0     2   17   0  Merge tag 'for-linus-20190617' of git://git.sourceforge.jp/gitroot/uclinux-h8/linux
git bisect  bad 57a8ec387e1441ea5e1232bc0749fb99a8cba7e7  # 01:13  B      0     1   16   0  Merge branch 'akpm' (patches from Andrew)
git bisect  bad 6e51f8aa76b67d0a6eb168fd41a81e8478ae07a9  # 01:47  B      0     1   16   0  coda: potential buffer overflow in coda_psdev_write()
git bisect good fe6ba88b251aa76a94be2cb441d2e6b7c623b989  # 02:14  G     10     0    0   0  arch: replace _BITUL() in kernel-space headers with BIT()
git bisect  bad b4658cdd8cab49c978334dc5db9070d0d881e3dd  # 02:33  B      3     1    3   3  lib/string_helpers: fix some kerneldoc warnings
git bisect good 33d6e0ff68af74be0c846c8e042e84a9a1a0561e  # 04:15  G     61     0    1   1  lib/test_string.c: avoid masking memset16/32/64 failures
git bisect  bad 5015a300a522c8fb542dc993140e4c360cf4cf5f  # 04:29  B      1     1    1   1  lib: introduce test_meminit module
git bisect good 8e060c21ae2c265a2b596e9e7f9f97ec274151a4  # 05:35  G     61     0    4   4  lib/test_overflow.c: avoid tainting the kernel and fix wrap size
# first bad commit: [5015a300a522c8fb542dc993140e4c360cf4cf5f] lib: introduce test_meminit module
git bisect good 8e060c21ae2c265a2b596e9e7f9f97ec274151a4  # 06:27  G    180     0    5   9  lib/test_overflow.c: avoid tainting the kernel and fix wrap size
# extra tests on HEAD of internal-eywa/master
git bisect  bad 5a380be2937f374c3207f002f9d823a382e9e9ae  # 06:27  B      0    13   31   0  Intel Next: Add release files for v5.3-rc1 2019-07-23
# extra tests on tree/branch linus/master
git bisect  bad bed38c3e2dca01b358a62b5e73b46e875742fd75  # 06:40  B      0     2   17   0  Merge tag 'powerpc-5.3-2' of git://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux
# extra tests on tree/branch linux-next/master
git bisect  bad 9e6dfe8045f85f9b5aade47e4192482927e2791a  # 06:51  B      0     2   17   0  Add linux-next specific files for 20190724

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/lkp                          Intel Corporation

Download attachment "dmesg-yocto-vm-yocto-8a0139c85771:20190725043221:x86_64-randconfig-n0-07242049:5.2.0-10846-g5015a30:1.gz" of type "application/gzip" (9963 bytes)

Download attachment "dmesg-yocto-vm-yocto-206b1f8b98e6:20190725053224:x86_64-randconfig-n0-07242049:5.2.0-10845-g8e060c2:1.gz" of type "application/gzip" (26066 bytes)

View attachment "reproduce-yocto-vm-yocto-8a0139c85771:20190725043221:x86_64-randconfig-n0-07242049:5.2.0-10846-g5015a30:1" of type "text/plain" (933 bytes)

View attachment "config-5.2.0-10846-g5015a30" of type "text/plain" (139296 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ