[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20180627064639.GC18666@nfs>
Date: Wed, 27 Jun 2018 14:46:39 +0800
From: kernel test robot <chenr.fnst@...fujitsu.com>
To: Kees Cook <keescook@...omium.org>
CC: <linux-kernel@...r.kernel.org>, LKP <lkp@...org>
Subject: [lkp-robot] ca90800a91 [ 7.797533] WARNING: CPU: 0 PID: 1 at
mm/slab_common.c:996 kmalloc_slab
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
6f0d349d92 Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
deb5571a33 Add linux-next specific files for 20180625
+-------------------------------------------+------------+------------+------------+---------------+
| | 610b15c50e | ca90800a91 | 6f0d349d92 | next-20180625 |
+-------------------------------------------+------------+------------+------------+---------------+
| boot_successes | 35 | 0 | 0 | 0 |
| boot_failures | 0 | 15 | 19 | 10 |
| WARNING:at_mm/slab_common.c:#kmalloc_slab | 0 | 15 | 19 | 10 |
| EIP:kmalloc_slab | 0 | 15 | 19 | 10 |
| Mem-Info | 0 | 15 | 19 | 10 |
+-------------------------------------------+------------+------------+------------+---------------+
[ 7.795515] test_overflow: s8 : 19 tests
[ 7.795919] test_overflow: u16: 17 tests
[ 7.796319] test_overflow: s16: 17 tests
[ 7.796713] test_overflow: u32: 17 tests
[ 7.797100] test_overflow: s32: 17 tests
[ 7.797533] WARNING: CPU: 0 PID: 1 at mm/slab_common.c:996 kmalloc_slab+0x5f/0x70
[ 7.798532] CPU: 0 PID: 1 Comm: swapper Not tainted 4.17.0-rc4-00006-gca90800 #1
[ 7.799272] EIP: kmalloc_slab+0x5f/0x70
[ 7.799650] EFLAGS: 00210246 CPU: 0
[ 7.800036] EAX: 00000000 EBX: 0001c71d ECX: ffffffff EDX: 014000c0
[ 7.800053] ESI: 014000c0 EDI: 78029f20 EBP: 78029e50 ESP: 78029e50
[ 7.800053] DS: 007b ES: 007b FS: 0000 GS: 00e0 SS: 0068
[ 7.800053] CR0: 80050033 CR2: 00000000 CR3: 01ffe000 CR4: 00140690
[ 7.800053] DR0: 00000000 DR1: 00000000 DR2: 00000000 DR3: 00000000
[ 7.800053] DR6: fffe0ff0 DR7: 00000400
[ 7.800053] Call Trace:
[ 7.800053] ? __kmalloc+0x10/0x130
[ 7.800053] ? test_kmalloc+0x9a/0xcd
[ 7.800053] ? test_module_init+0x18bc/0x23d5
[ 7.800053] ? debug_check_no_obj_freed+0xe4/0x1a0
[ 7.800053] ? test_kmalloc+0xcd/0xcd
[ 7.800053] ? do_one_initcall+0x68/0x13b
[ 7.800053] ? do_early_param+0x73/0x73
[ 7.800053] ? kernel_init_freeable+0xde/0x158
[ 7.800053] ? rest_init+0xd0/0xd0
[ 7.800053] ? kernel_init+0x8/0xe0
[ 7.800053] ? ret_from_fork+0x19/0x30
[ 7.800053] Code: 00 00 00 00 83 e9 01 0f bd c9 75 05 b9 ff ff ff ff 83 c1 01 8b 04 8d 80 54 cf 79 5d c3 8d b4 26 00 00 00 00 31 c0 80 e6 02 75 d1 <0f> 0b 5d c3 8d b6 00 00 00 00 8d bc 27 00 00 00 00 55 89 d0 89
[ 7.800053] ---[ end trace 65f6a6774a196306 ]---
[ 7.810634] test_overflow: kmalloc detected saturation
# HH:MM RESULT GOOD BAD GOOD_BUT_DIRTY DIRTY_NOT_BAD
git bisect start 7daf201d7fe8334e2d2364d4e8ed3394ec9af819 v4.17 --
git bisect bad a16afaf7928b74c30a4727cdcaa67bd10675a55d # 12:07 B 0 1 14 0 Merge tag 'for-v4.18' of git://git.kernel.org/pub/scm/linux/kernel/git/sre/linux-power-supply
git bisect good abf7dba7c4f77d781f6df50fefb19a64c5dc331f # 12:24 G 11 0 0 0 Merge tag 'char-misc-4.18-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc
git bisect bad 3a3869f1c443383ef8354ffa0e5fb8df65d8b549 # 12:33 B 0 5 18 0 Merge tag 'pci-v4.18-changes' of git://git.kernel.org/pub/scm/linux/kernel/git/helgaas/pci
git bisect good 0eb0061381b2bac082cc26d573fc48fe99db3922 # 12:49 G 11 0 0 0 Merge tag 'for-linus-4.18' of git://github.com/cminyard/linux-ipmi
git bisect bad 1c8c5a9d38f607c0b6fd12c91cbe1a4418762a21 # 12:58 B 0 5 42 12 Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next
git bisect good 8b70543e9af036984a52800811416b74978ae4de # 13:13 G 11 0 0 0 Merge tag 'selinux-pr-20180605' of git://git.kernel.org/pub/scm/linux/kernel/git/pcmoore/selinux
git bisect good 5eb6eed7e0fe880dc8de8da203cc888716bbf196 # 13:25 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 285767604576148fc1be7fcd112e4a90eb0d6ad2 # 13:42 B 0 10 23 0 Merge tag 'overflow-v4.18-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/kees/linux
git bisect bad ca90800a91ba723d78ded634d037c1d2df8b54d6 # 13:57 B 0 1 14 0 test_overflow: Add memory allocation overflow tests
git bisect good 6d3344324b5ae49fc8cb599a2c687e5607ba6e9f # 14:15 G 11 0 0 0 test_overflow: macrofy some more, do more tests for free
git bisect good 610b15c50e86eb1e4b77274fabcaea29ac72d6a8 # 14:29 G 11 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 # 14:34 G 31 0 0 0 overflow.h: Add allocation size calculation helpers
# extra tests with debug options
git bisect bad ca90800a91ba723d78ded634d037c1d2df8b54d6 # 14:45 B 0 7 20 0 test_overflow: Add memory allocation overflow tests
# extra tests on HEAD of linux-devel/devel-spot-201806260702
git bisect bad d7b9697992bd82978ca5151b5b5d4b9de02492cc # 14:45 B 0 45 61 0 0day head guard for 'devel-spot-201806260702'
# extra tests on tree/branch linus/master
git bisect bad 6f0d349d922ba44e4348a17a78ea51b7135965b1 # 14:57 B 0 2 15 0 Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
# extra tests on tree/branch linux-next/master
git bisect bad deb5571a333c08f20bee8cb1324644f774b27a66 # 15:16 B 0 1 14 0 Add linux-next specific files for 20180625
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/lkp Intel Corporation
Download attachment "
"dmesg-openwrt-lkp-hsw01-3220180626135751i386-randconfig-h1-062609334.17.0-rc4-00006-gca908001.gz"" of type "application/gzip" (15407 bytes)
View attachment "
"reproduce-openwrt-lkp-hsw01-3220180626135751i386-randconfig-h1-062609334.17.0-rc4-00006-gca908001"" of type "text/plain" (973 bytes)
View attachment "config-4.17.0-rc4-00006-gca90800" of type "text/plain" (111482 bytes)
Powered by blists - more mailing lists