Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp6723928yba; Tue, 14 May 2019 12:26:42 -0700 (PDT) X-Google-Smtp-Source: APXvYqzMa8buf9UdnkyJw02mcyoJgld48sVfGtqRp2V3pW7uSGVhG94RFb2xqAqojAPW/r4Fzqx6 X-Received: by 2002:aa7:8493:: with SMTP id u19mr41787636pfn.233.1557862001999; Tue, 14 May 2019 12:26:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557862001; cv=none; d=google.com; s=arc-20160816; b=FFlrBnh+c353rKFMEKYDWY+8vFotJ0SSe/ii7o4cWnmWKEjPdvIzKfQKnPE2hKnM1f KQ+wWA99+Yh/hIc7iz7oF/Nc6hQQMb+s41ViZR7GYQLUEgq7CkfITRDdOfyxFLZcQdvC eOblvyInDrR2lAINCPPnI61zzjDlVywVFNNOSd70Hmfs11VEqRq9v7Csw8N5OZVA84Iz 6fdQj6/DUHuLmWD2D/oK81ee3tYtadvapTKgHTnzUp0POCvIi7zkRb8DWJBbCX/trlPh ula4+ScXFfdw7J3CZWDzg/7GPPTNCLlzlybSZU9VzI/xBrlsjISX+TvJHnnH8RZ1arn1 KcIw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :organization:message-id:subject:cc:to:from:date; bh=cbyUunJjVwP2M6fuaRm+o2Hj+R9jNEGjg1Jj2zvM/BQ=; b=fsZEj+VQMmWzc+O3OsUwredOHgH05wEOKIs/fCFstOGAJPuXS1tdoi0u4w93I5pEyv ZZrYTsWOLjkRB03xP3hR2NJ2tGL1rKc4YNFGHS9ZmbSu28VfVpZBLj5gyut1PpOnZ22y tef92yo11Y+pdEkcGOuVPiaauOm4CcM2stdo6xebGTSNm0MARZbKh5rxzcP9SJOunVqJ iCAUmtLt8QleFmc1cYIp2N2n9SXqcst0T+sHGWg2Uo8W8iC352cfHB8iGNDgtGQPPOa8 TSsWTH3hwP9IOkLrF4cua+Eir4iYxrnSwUNwJ2lhgccOykQMdVXP1pq7CgbrwKQxhGlY n90Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k17si25578070pfp.81.2019.05.14.12.26.27; Tue, 14 May 2019 12:26:41 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726246AbfENTXz (ORCPT + 99 others); Tue, 14 May 2019 15:23:55 -0400 Received: from mail-wr1-f45.google.com ([209.85.221.45]:33763 "EHLO mail-wr1-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726013AbfENTXz (ORCPT ); Tue, 14 May 2019 15:23:55 -0400 Received: by mail-wr1-f45.google.com with SMTP id d9so80210wrx.0 for ; Tue, 14 May 2019 12:23:54 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:organization :mime-version:content-transfer-encoding; bh=cbyUunJjVwP2M6fuaRm+o2Hj+R9jNEGjg1Jj2zvM/BQ=; b=ma6xdTTl6rHCtcpJo6QZ8TQpMedpGcA7XImMUX05kNb6iIIFn7CDV1RI+d5E+HClT1 Yn2lluFYlT4EtfqMo8Wf2T900c1poQ5DN7OR+R7HE22bBkpZi9X6QbwSnAga2hXAFjv1 7RKcdlkS2EgdvphD8egEgnqHthwm9joj5umfRfVBolFgnzskCrfP1qQP+yPJD8771ciT /H5sl3skCzYmzei9ZUqJkzXxU+EUj6lgyw5/9Bq97YxDX0owLSKow0R5z2AxSX1dI/EA eDrr8vDYo9xdGsKqp9GY5xSCMA7r9HLEq9DvdN/6IzezI60eYElmxcIsLdOEzTRZyo1C JpWw== X-Gm-Message-State: APjAAAU0bUmSKiHs6YkavsLUYTntHsdM3bPd2MelQYQ9wMTYapiHm+h5 7jfKZujgHcMp804LxYBC39GjfA== X-Received: by 2002:adf:f841:: with SMTP id d1mr2145517wrq.62.1557861833202; Tue, 14 May 2019 12:23:53 -0700 (PDT) Received: from raver.teknoraver.net (net-47-53-225-211.cust.vodafonedsl.it. [47.53.225.211]) by smtp.gmail.com with ESMTPSA id r1sm2322988wmf.37.2019.05.14.12.23.52 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Tue, 14 May 2019 12:23:53 -0700 (PDT) Date: Tue, 14 May 2019 21:23:48 +0200 From: Matteo Croce To: cgroups@vger.kernel.org, LKML , Roman Gushchin Cc: Tejun Heo , Li Zefan , Johannes Weiner Subject: WARNING: CPU: 1 PID: 228 at kernel/cgroup/cgroup.c:5929 Message-ID: Organization: Red Hat X-Mailer: Claws Mail 3.17.3 (GTK+ 2.24.32; x86_64-redhat-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, I have the following splat when a ptraced process exits: root@debian64:~# strace true execve("/bin/true", ["true"], 0x7ffd444fdfb0 /* 18 vars */) = 0 [..] exit_group(0) = ? [ 5.394349] WARNING: CPU: 1 PID: 228 at kernel/cgroup/cgroup.c:5929 cgroup_exit+0xed/0x100 [ 5.394606] CPU: 1 PID: 228 Comm: true Not tainted 5.1.0-rc3-kvm+ #86 [ 5.394819] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.12.0-2.fc30 04/01/2014 [ 5.395091] RIP: 0010:cgroup_exit+0xed/0x100 [ 5.395269] Code: 04 89 c3 7e d5 48 83 c4 08 5b 5d c3 f0 ff 43 28 0f 88 8e 4d 34 00 eb a3 48 8b 85 78 06 00 00 48 8b 78 38 e8 e5 25 00 00 eb 82 <0f> 0b e9 5f ff ff ff 66 66 2e 0f 1f 84 00 00 00 00 00 90 55 be 05 [ 5.395827] RSP: 0018:ffffc9000037be38 EFLAGS: 00010002 [ 5.396009] RAX: ffff88807be8bc40 RBX: ffff888078f62400 RCX: ffff888078f62468 [ 5.396236] RDX: ffff888078f62448 RSI: ffff888078f62400 RDI: ffff888078f62408 [ 5.396463] RBP: ffff888078f89580 R08: ffff888078f89c60 R09: 0000000000000000 [ 5.396692] R10: ffff88807adc1100 R11: 0000000000000001 R12: ffff888078f89580 [ 5.396919] R13: ffff888078f89b80 R14: 0000000000000000 R15: ffff888078ed4060 [ 5.397169] FS: 0000000000000000(0000) GS:ffff88807da80000(0000) knlGS:0000000000000000 [ 5.397425] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 5.397614] CR2: 00007f017ea1d9a0 CR3: 0000000001a0c000 CR4: 00000000000006a0 [ 5.397846] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 [ 5.398097] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 [ 5.398324] Call Trace: [ 5.398408] do_exit+0x27f/0xa10 [ 5.398550] ? ptrace_do_notify+0x6c/0x80 [ 5.398694] do_group_exit+0x35/0xa0 [ 5.398838] __x64_sys_exit_group+0xf/0x10 [ 5.398983] do_syscall_64+0x48/0x340 [ 5.399127] ? __do_page_fault+0x1aa/0x3f0 [ 5.399272] ? __put_user_4+0x19/0x20 [ 5.399418] entry_SYSCALL_64_after_hwframe+0x44/0xa9 [ 5.399598] RIP: 0033:0x7f017ea1d9d6 [ 5.399745] Code: Bad RIP value. [ 5.399885] RSP: 002b:00007ffc187f7aa8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 5.400144] RAX: ffffffffffffffda RBX: 00007f017eb0e760 RCX: 00007f017ea1d9d6 [ 5.400370] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 5.400601] RBP: 0000000000000000 R08: 00000000000000e7 R09: ffffffffffffff80 [ 5.400858] R10: 00007ffc187f7974 R11: 0000000000000246 R12: 00007f017eb0e760 [ 5.401105] R13: 0000000000000001 R14: 00007f017eb17428 R15: 0000000000000000 [ 5.401337] ---[ end trace 6bf3ae0d5396cf27 ]--- I found the offending commit bisecting, and seems to be this one. commit 96b9c592def5d7203bdad1337d9c92a2183de5cb Author: Roman Gushchin Date: Fri Apr 26 10:59:45 2019 -0700 cgroup: get rid of cgroup_freezer_frozen_exit() Regards, -- Matteo Croce per aspera ad upstream