FYI, we noticed the following commit (built with gcc-7):
commit: 96b9c592def5d7203bdad1337d9c92a2183de5cb ("cgroup: get rid of
cgroup_freezer_frozen_exit()")
grep: /cephfs/kbuild/commit-list/aaron/aaron:batch_size-phas1_1:
in testcase: kernel_selftests
with following parameters:
group: kselftests-02
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: qemu-system-x86_64 -enable-kvm -cpu SandyBridge -smp 2 -m 4G
caused below changes (please refer to attached dmesg/kmsg for entire log/backtrace):
+-------------------------------------------------+------------+------------+
| | cb2c4cd878 | 96b9c592de |
+-------------------------------------------------+------------+------------+
| boot_successes | 9 | 0 |
| boot_failures | 3 | 13 |
| BUG:kernel_reboot-without-warning_in_test_stage | 3 | |
| WARNING:at_kernel/cgroup/cgroup.c:#cgroup_exit | 0 | 13 |
| RIP:cgroup_exit | 0 | 13 |
+-------------------------------------------------+------------+------------+
If you fix the issue, kindly add following tag
Reported-by: kernel test robot <rong.a.chen(a)intel.com>
[ 325.042710] WARNING: CPU: 0 PID: 18857 at kernel/cgroup/cgroup.c:5929
cgroup_exit+0x148/0x160
[ 325.044998] Modules linked in: ramoops reed_solomon dccp_ipv6 dccp_ipv4 dccp ip_vti
ip6_vti fou6 sit ipip tunnel4 geneve esp6 xfrm6_mode_tunnel authenc echainiv
xfrm4_mode_tunnel xt_policy iptable_filter veth netdevsim esp4 xfrm4_mode_transport vxlan
8021q garp mrp bridge stp llc ip6_gre ip6_tunnel tunnel6 ip_gre gre cls_u32 sch_htb dummy
fou ip6_udp_tunnel udp_tunnel ip_tunnel fuse binfmt_misc sr_mod cdrom sg ata_generic
pata_acpi crct10dif_pclmul crc32_pclmul crc32c_intel ghash_clmulni_intel bochs_drm ttm
drm_kms_helper syscopyarea sysfillrect ppdev sysimgblt fb_sys_fops snd_pcm drm snd_timer
ata_piix aesni_intel crypto_simd snd cryptd glue_helper joydev libata soundcore serio_raw
pcspkr i2c_piix4 parport_pc floppy parport ip_tables [last unloaded: test_bpf]
[ 325.061639] CPU: 0 PID: 18857 Comm: peeksiginfo Not tainted 5.1.0-rc3-00053-g96b9c59
#1
[ 325.063757] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.10.2-1
04/01/2014
[ 325.066185] RIP: 0010:cgroup_exit+0x148/0x160
[ 325.068018] Code: 0f 84 50 ff ff ff 48 8b 85 c8 0c 00 00 48 8b 78 70 e8 ec 2e 00 00 e9
3b ff ff ff f0 ff 43 60 0f 88 7d 41 89 00 e9 48 ff ff ff <0f> 0b e9 1b ff ff ff e8
3c 73 f4 ff 66 66 2e 0f 1f 84 00 00 00 00
[ 325.073162] RSP: 0018:ffffbdc1c203fd38 EFLAGS: 00010002
[ 325.074993] RAX: ffff9f567ec8bb50 RBX: ffff9f567efdc800 RCX: dead000000000200
[ 325.077384] RDX: ffff9f567efdc880 RSI: ffff9f5676d0bb50 RDI: ffff9f5676d0bb50
[ 325.079696] RBP: ffff9f5676d0ae80 R08: ffff9f5676d0af18 R09: 0000000000000000
[ 325.081784] R10: 0000000000000000 R11: 0000000000000001 R12: ffff9f5676d0b901
[ 325.084185] R13: ffff9f5676d0ae80 R14: ffff9f56483555b0 R15: ffff9f5676d0b9f0
[ 325.086498] FS: 0000000000000000(0000) GS:ffff9f573fc00000(0000)
knlGS:0000000000000000
[ 325.088818] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 325.090921] CR2: 0000560d5e6ea268 CR3: 000000009940e000 CR4: 00000000000406f0
[ 325.093339] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[ 325.095761] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
[ 325.098147] Call Trace:
[ 325.099879] do_exit+0x337/0xc40
[ 325.101679] do_group_exit+0x3a/0xa0
[ 325.103515] get_signal+0x12e/0x8d0
[ 325.105023] do_signal+0x36/0x650
[ 325.106542] ? async_page_fault+0x1e/0x30
[ 325.108260] exit_to_usermode_loop+0x89/0xf0
[ 325.110046] syscall_return_slowpath+0xce/0x100
[ 325.111686] ret_from_fork+0x15/0x40
[ 325.113434] RIP: 0033:0x7f732695d7be
[ 325.115124] Code: Bad RIP value.
[ 325.116869] RSP: 002b:00007ffe524ce330 EFLAGS: 00000246 ORIG_RAX: 0000000000000038
[ 325.118905] RAX: 0000000000000000 RBX: 0000000000000000 RCX: 00007f732695d7be
[ 325.120984] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000001200011
[ 325.123223] RBP: 0000000000000000 R08: 0000000000000000 R09: 00007f7326a59500
[ 325.125376] R10: 00007f7326a597d0 R11: 0000000000000246 R12: 0000560d5d13a9a0
[ 325.127664] R13: 00007ffe524ce9e0 R14: 0000000000000000 R15: 0000000000000000
[ 325.129760] ---[ end trace c2bfe6fc337871f9 ]---
To reproduce:
# build kernel
cd linux
cp config-5.1.0-rc3-00053-g96b9c59 .config
make HOSTCC=gcc-7 CC=gcc-7 ARCH=x86_64 olddefconfig
make HOSTCC=gcc-7 CC=gcc-7 ARCH=x86_64 prepare
make HOSTCC=gcc-7 CC=gcc-7 ARCH=x86_64 modules_prepare
make HOSTCC=gcc-7 CC=gcc-7 ARCH=x86_64 SHELL=/bin/bash
make HOSTCC=gcc-7 CC=gcc-7 ARCH=x86_64 bzImage
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,
Rong Chen