[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20181012085706.GL13396@shao2-debian>
Date: Fri, 12 Oct 2018 16:57:06 +0800
From: kernel test robot <rong.a.chen@...el.com>
To: Kees Cook <keescook@...omium.org>
Cc: linux-kernel@...r.kernel.org, LKP <lkp@...org>
Subject: [LKP] ca90800a91 [ 9.462982] WARNING: CPU: 0 PID: 1 at
mm/page_alloc.c:4061 __alloc_pages_nodemask
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 ca90800a91ba723d78ded634d037c1d2df8b54d6
Author: Kees Cook <keescook@...omium.org>
AuthorDate: Thu May 10 16:40:03 2018 -0700
Commit: Kees Cook <keescook@...omium.org>
CommitDate: Tue Jun 5 12:16:51 2018 -0700
test_overflow: Add memory allocation overflow tests
Make sure that the memory allocators are behaving as expected in the face
of overflows of multiplied arguments or when using the array_size()-family
helpers.
Example output of new tests (with the expected __alloc_pages_slowpath
and vmalloc warnings about refusing giant allocations removed):
[ 93.062076] test_overflow: kmalloc detected saturation
[ 93.062988] test_overflow: kmalloc_node detected saturation
[ 93.063818] test_overflow: kzalloc detected saturation
[ 93.064539] test_overflow: kzalloc_node detected saturation
[ 93.120386] test_overflow: kvmalloc detected saturation
[ 93.143458] test_overflow: kvmalloc_node detected saturation
[ 93.166861] test_overflow: kvzalloc detected saturation
[ 93.189924] test_overflow: kvzalloc_node detected saturation
[ 93.221671] test_overflow: vmalloc detected saturation
[ 93.246326] test_overflow: vmalloc_node detected saturation
[ 93.270260] test_overflow: vzalloc detected saturation
[ 93.293824] test_overflow: vzalloc_node detected saturation
[ 93.294597] test_overflow: devm_kmalloc detected saturation
[ 93.295383] test_overflow: devm_kzalloc detected saturation
[ 93.296217] test_overflow: all tests passed
Signed-off-by: Kees Cook <keescook@...omium.org>
610b15c50e overflow.h: Add allocation size calculation helpers
ca90800a91 test_overflow: Add memory allocation overflow tests
0778a9f2dd Merge branch 'for-4.19-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/cgroup
771b65e89c Add linux-next specific files for 20181011
+----------------------------------------------------+------------+------------+------------+---------------+
| | 610b15c50e | ca90800a91 | 0778a9f2dd | next-20181011 |
+----------------------------------------------------+------------+------------+------------+---------------+
| boot_successes | 33 | 0 | 0 | 0 |
| boot_failures | 0 | 11 | 19 | 11 |
| WARNING:at_mm/page_alloc.c:#__alloc_pages_nodemask | 0 | 11 | 19 | 11 |
| EIP:__alloc_pages_nodemask | 0 | 11 | 19 | 11 |
| Mem-Info | 0 | 11 | 19 | 11 |
+----------------------------------------------------+------------+------------+------------+---------------+
[ 9.460416] test_overflow: s8 : 19 tests
[ 9.460879] test_overflow: u16: 17 tests
[ 9.461344] test_overflow: s16: 17 tests
[ 9.461794] test_overflow: u32: 17 tests
[ 9.462274] test_overflow: s32: 17 tests
[ 9.462982] WARNING: CPU: 0 PID: 1 at mm/page_alloc.c:4061 __alloc_pages_nodemask+0x8df/0x13b0
[ 9.463703] CPU: 0 PID: 1 Comm: swapper Not tainted 4.17.0-rc4-00006-gca90800 #2
[ 9.463703] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.10.2-1 04/01/2014
[ 9.463703] EIP: __alloc_pages_nodemask+0x8df/0x13b0
[ 9.463703] EFLAGS: 00210246 CPU: 0
[ 9.463703] EAX: 00000000 EBX: 78013e44 ECX: 00000000 EDX: 00000000
[ 9.463703] ESI: 00000000 EDI: 00000000 EBP: 78013e8c ESP: 78013df8
[ 9.463703] DS: 007b ES: 007b FS: 0000 GS: 00e0 SS: 0068
[ 9.463703] CR0: 80050033 CR2: 00000000 CR3: 0353a000 CR4: 00140690
[ 9.463703] DR0: 00000000 DR1: 00000000 DR2: 00000000 DR3: 00000000
[ 9.463703] DR6: fffe0ff0 DR7: 00000400
[ 9.463703] Call Trace:
[ 9.463703] ? __lock_acquire+0x362/0x12f0
[ 9.463703] ? fs_reclaim_release+0x30/0x70
[ 9.463703] ? slob_new_pages+0x22/0x70
[ 9.463703] ? __kmalloc+0xab/0x110
[ 9.463703] ? test_kmalloc+0x152/0x1d7
[ 9.463703] ? test_module_init+0x1a63/0x22ef
[ 9.463703] ? test_vzalloc_node+0x1b5/0x1b5
[ 9.463703] ? do_one_initcall+0xd8/0x28d
[ 9.463703] ? do_early_param+0x128/0x128
[ 9.463703] ? kernel_init_freeable+0x25b/0x3aa
[ 9.463703] ? rest_init+0x1f0/0x1f0
[ 9.463703] ? kernel_init+0x19/0x260
[ 9.463703] ? schedule_tail_wrapper+0x9/0xc
[ 9.463703] ? ret_from_fork+0x2e/0x38
[ 9.463703] Code: 7b 00 0f 0b 81 e6 ff ff f7 ff 83 05 e8 90 bc 7b 01 83 15 ec 90 bc 7b 00 e9 6f f9 ff ff 83 05 d8 90 bc 7b 01 83 15 dc 90 bc 7b 00 <0f> 0b e9 e8 f8 ff ff 8d 76 00 8d bc 27 00 00 00 00 c7 45 a8 04
[ 9.463703] random: get_random_bytes called from init_oops_id+0x58/0x70 with crng_init=0
[ 9.463703] ---[ end trace 418e45661914bb67 ]---
[ 9.483371] test_overflow: kmalloc detected saturation
# HH:MM RESULT GOOD BAD GOOD_BUT_DIRTY DIRTY_NOT_BAD
git bisect start v4.18 v4.17 --
git bisect bad c81b995f00c7a1c2ca9ad67f5bb4a50d02f98f84 # 08:37 B 0 1 15 0 Merge branch 'perf-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
git bisect bad 2a70ea5cda00214a1d573acf19fa0cd06d947e38 # 08:54 B 0 2 16 0 Merge tag 'hsi-for-4.18' of git://git.kernel.org/pub/scm/linux/kernel/git/sre/linux-hsi
git bisect good 07c4dd3435aa387d3b58f4e941dc516513f14507 # 09:13 G 11 0 0 0 Merge tag 'usb-4.18-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb
git bisect bad 3036bc45364f98515a2c446d7fac2c34dcfbeff4 # 09:29 B 0 3 18 1 Merge tag 'media/v4.18-2' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media
git bisect good 8450493076cd1dc8465db688f919708b5be17d46 # 09:54 G 11 0 0 0 Merge tag 'edac_for_4.18' of git://git.kernel.org/pub/scm/linux/kernel/git/bp/bp
git bisect bad 285767604576148fc1be7fcd112e4a90eb0d6ad2 # 10:05 B 0 1 15 0 Merge tag 'overflow-v4.18-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/kees/linux
git bisect good 10b1eb7d8ce5635a7deb273f8291d8a0a7681de1 # 10:27 G 11 0 0 0 Merge branch 'next-general' of git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/linux-security
git bisect good 8b5c6a3a49d9ebc7dc288870b9c56c4f946035d8 # 10:39 G 11 0 0 0 Merge tag 'audit-pr-20180605' of git://git.kernel.org/pub/scm/linux/kernel/git/pcmoore/audit
git bisect good 5eb6eed7e0fe880dc8de8da203cc888716bbf196 # 10:52 G 11 0 0 0 Merge tag 'trace-v4.18' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace
git bisect bad ca90800a91ba723d78ded634d037c1d2df8b54d6 # 11:03 B 0 2 16 0 test_overflow: Add memory allocation overflow tests
git bisect good 6d3344324b5ae49fc8cb599a2c687e5607ba6e9f # 11:25 G 11 0 0 0 test_overflow: macrofy some more, do more tests for free
git bisect good 610b15c50e86eb1e4b77274fabcaea29ac72d6a8 # 11:39 G 10 0 0 0 overflow.h: Add allocation size calculation helpers
# first bad commit: [ca90800a91ba723d78ded634d037c1d2df8b54d6] test_overflow: Add memory allocation overflow tests
git bisect good 610b15c50e86eb1e4b77274fabcaea29ac72d6a8 # 11:44 G 30 0 0 0 overflow.h: Add allocation size calculation helpers
# extra tests with debug options
git bisect bad ca90800a91ba723d78ded634d037c1d2df8b54d6 # 12:00 B 0 4 18 0 test_overflow: Add memory allocation overflow tests
# extra tests on HEAD of linux-devel/devel-catchup-201810120513
git bisect bad a6734b991353bf6f3d53a7be69653874a402fc58 # 12:05 B 0 19 36 0 0day head guard for 'devel-catchup-201810120513'
# extra tests on tree/branch linus/master
git bisect bad 0778a9f2dd924c3af41971ba40eec44793aea531 # 12:17 B 0 5 19 0 Merge branch 'for-4.19-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/cgroup
# extra tests on tree/branch linux-next/master
git bisect bad 771b65e89c8a51d611b8049718693a4202e4f732 # 12:39 B 0 11 25 0 Add linux-next specific files for 20181011
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/lkp Intel Corporation
Download attachment "dmesg-openwrt-lkp-hsw01-23:20181012110355:i386-randconfig-h1-10111909:4.17.0-rc4-00006-gca90800:2.gz" of type "application/gzip" (21503 bytes)
View attachment "reproduce-openwrt-lkp-hsw01-23:20181012110355:i386-randconfig-h1-10111909:4.17.0-rc4-00006-gca90800:2" of type "text/plain" (924 bytes)
View attachment "config-4.17.0-rc4-00006-gca90800" of type "text/plain" (101397 bytes)
Powered by blists - more mailing lists