Received: by 10.223.164.221 with SMTP id h29csp447896wrb; Tue, 31 Oct 2017 22:58:03 -0700 (PDT) X-Google-Smtp-Source: ABhQp+Q/NkftDAh/WOJuwlQxwSTW5BHgeyyWCSkRP5LzdOpSfjGU/IjwCXH5XG736uFpJkJPmGDf X-Received: by 10.101.81.130 with SMTP id h2mr4587685pgq.175.1509515883366; Tue, 31 Oct 2017 22:58:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1509515883; cv=none; d=google.com; s=arc-20160816; b=oZVGxgQ+lEsyzgFxzasB9h3EeOaYwY+n0rATPU52E/JvfiUhUJfvK5gFKGWanu13Nj q+C/kSaHr5bbU+wulHnurMsCm/WmSINPYf0g8+YUZulejafzFJTCX3ZONKMMiFawOcZg MjsBPcWXyY+aPCJvIvzyi0kNTw1jkUIXSP8+2pvVRXQtPz0UiEFsL5QB0p8xdMU6nRpn eVT7k54lxYFiv2kM8aYtPlWtvmQxLqoWHSEkdKDaWy7wj3vglXADynri1qK7mDvT5Pwr 1Gr5V66dKO1wU3b6kkextPIe2095IUmKZvj8gI6KjyYKmiDVTryzqpe9Vg4CV2pRt3oW zN8Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=agqbxM6OgwUAzFB+xe4EAm35v2+eGiN3YEYUE0Tkn24=; b=RAbDHv8P/Z97K/yhrLrrUez+K7lHyFJRTtZlM7vQwDAM9Vb/BBrb7QeE1kn8GTbDMv +qb/Iw401XyodixJPYJLGN5ZL6LIL2mAtayvVen7WhwAjViUs2ixoERoveyzXxLq328H bnGodv+BDc8vNQUGN84OBQY2LxVsExfINb4qBOEsuk37qPKVLJMoqWLFR64YMCWXaJcw cOQGT3zjBZfOQ1VT3CnCB5kocP8zo3FXUd2P4vwcqwEwITIXnaGQkVg+c9o4umpKKiWB h74OBYCrH9qAc7X8yFkAVBtwTS+POlFo40vEPrg/BguJX2Md8Z+yaASLiVipRUGkebto gaJw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=dxz89v5n; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s64si3939999pfe.463.2017.10.31.22.57.50; Tue, 31 Oct 2017 22:58:03 -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; dkim=pass header.i=@google.com header.s=20161025 header.b=dxz89v5n; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753619AbdKAF4I (ORCPT + 99 others); Wed, 1 Nov 2017 01:56:08 -0400 Received: from mail-io0-f194.google.com ([209.85.223.194]:54090 "EHLO mail-io0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751274AbdKAF4H (ORCPT ); Wed, 1 Nov 2017 01:56:07 -0400 Received: by mail-io0-f194.google.com with SMTP id 189so3786138iow.10 for ; Tue, 31 Oct 2017 22:56:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=agqbxM6OgwUAzFB+xe4EAm35v2+eGiN3YEYUE0Tkn24=; b=dxz89v5nKcqcfyyHcMeg1hu7UBkxnCng7ts1m/CUog74+aRyyd0a7uJa6IJ/d6W7GA Qa83ugMtwAyYIZocXkaEhmAZOfZ4js6MIDlUI6hHT4Ax14aVINStOZ3pDtN2gNHKUnWq BP0mRAFuofQjsOk/bdoB2Jul4SlID6spywjd2QTl9PevkWF7WXuIh8++ojfsXmVHPwdz GWscYuRfHU2LkAJY5WQ44sBozFlypT++pOYeV+xAVhAuSuc61KtAKoDaoqAXeBGU8tTh sYjwgX/DZyqnLxCTaDk70xusiWMisntlrscsYfdGIrW4vrsOBtFdCD8dTIgG/Js3Pzw1 dTMA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=agqbxM6OgwUAzFB+xe4EAm35v2+eGiN3YEYUE0Tkn24=; b=e6fy/vj0rm62IPIY4GvoI+PyqgU4aMUVVrkfvHRee2oE9JWNjyN1RKhX9Q4Gg3dji5 uGoC6Iyp4Z/oYZ+wId3n63PaD9PG/zZtZrRJKV9V8PofdjSX8VwblxRilXZUx7XdZBL/ EfRfDmXUkQNa9DWW1IDyAu6+0x2RIJWHEc7uW81QK4dWf8wY8yjQpI/KGrzuycZxQVik cDs5z73+6FdD6lXVeFLlLmyVl3W1EATwLWP7wZb7oHKhBadtX6ipBR/AvMR0Cb3aqDUI G8T9j8k3uFpjT6fnzKmk51qcCfbJ3BvqN00yK0q7oRDjAOyuvvzGzlRJYWEH34nlLC15 qdbw== X-Gm-Message-State: AMCzsaXGh/+ARC/CPzPh8aYfbeP0wMbMJOjGUxVRk5YIUXE7q+CjKyGv Tlc8uEBn95UFjgGx4viT/5ac4sAKwuusvjWQ5bv00A== X-Received: by 10.107.9.27 with SMTP id j27mr5828151ioi.111.1509515766102; Tue, 31 Oct 2017 22:56:06 -0700 (PDT) MIME-Version: 1.0 Received: by 10.2.155.231 with HTTP; Tue, 31 Oct 2017 22:55:45 -0700 (PDT) In-Reply-To: <20171031163451.GA30223@redhat.com> References: <94eb2c058c80ea49ed055cc8695e@google.com> <20171031163451.GA30223@redhat.com> From: Dmitry Vyukov Date: Wed, 1 Nov 2017 08:55:45 +0300 Message-ID: Subject: Re: WARNING in task_participate_group_stop To: Oleg Nesterov Cc: syzbot , Andrew Morton , Arvind Yadav , Mark Brown , "Eric W. Biederman" , =?UTF-8?B?RnLDqWTDqXJpYyBXZWlzYmVja2Vy?= , jamie.iles@oracle.com, LKML , "Martin K. Petersen" , mchehab@kernel.org, Ingo Molnar , mpe@ellerman.id.au, syzkaller-bugs@googlegroups.com, Al Viro Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Oct 31, 2017 at 7:34 PM, Oleg Nesterov wrote: > On 10/30, Dmitry Vyukov wrote: >> >> On Mon, Oct 30, 2017 at 10:12 PM, syzbot >> >> wrote: >> > Hello, >> > >> > syzkaller hit the following crash on >> > d95e159cd1da1ed4dbf76bf203e8ffaf231395e4 >> > git://git.cmpxchg.org/linux-mmots.git/master >> > compiler: gcc (GCC) 7.1.1 20170620 >> > .config is attached >> > Raw console output is attached. >> > C reproducer is attached > > Hmm. I do not see reproducer in this email... Ah, sorry. You can see full thread with attachments here: https://groups.google.com/forum/#!topic/syzkaller-bugs/EUmYZU4m5gU >> > syzkaller reproducer is attached. See https://goo.gl/kgGztJ >> > for information about syzkaller reproducers >> >> This also happens on more recent commits, including linux-next >> 36ef71cae353f88fd6e095e2aaa3e5953af1685d (Oct 19) and upstream >> 3e0cc09a3a2c40ec1ffb6b4e12da86e98feccb11 (Oct 18). >> >> > WARNING: CPU: 0 PID: 1 at kernel/signal.c:340 >> > task_participate_group_stop+0x1ce/0x230 kernel/signal.c:340 >> > Kernel panic - not syncing: panic_on_warn set ... >> > >> > CPU: 0 PID: 1 Comm: init Not tainted 4.13.0-mm1+ #5 > > Looks familiar... I need some time to recall the details, will try to send > the fix(es) this week. > > So this is init process with SIGNAL_UNKILLABLE flag set. And I hope it has > the pending SIGKILL, otherwise there is something else. > > IIRC the problem is that complete_signal(SIGKILL) does nothing if > SIGNAL_UNKILLABLE is set, in particular it doesn't set SIGNAL_GROUP_EXIT. > This fools the signal_group_exit() check in do_signal_stop(). > > Actually there are more problems with SIGNAL_UNKILLABLE && SIGKILL, we need > some nasty cleanups. > > Oleg. > > >> > Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS >> > Google 01/01/2011 >> > Call Trace: >> > __dump_stack lib/dump_stack.c:16 [inline] >> > dump_stack+0x194/0x257 lib/dump_stack.c:52 >> > panic+0x1e4/0x417 kernel/panic.c:181 >> > __warn+0x1c4/0x1d9 kernel/panic.c:542 >> > report_bug+0x211/0x2d0 lib/bug.c:183 >> > fixup_bug+0x40/0x90 arch/x86/kernel/traps.c:178 >> > do_trap_no_signal arch/x86/kernel/traps.c:212 [inline] >> > do_trap+0x260/0x390 arch/x86/kernel/traps.c:261 >> > do_error_trap+0x120/0x390 arch/x86/kernel/traps.c:298 >> > do_invalid_op+0x1b/0x20 arch/x86/kernel/traps.c:311 >> > invalid_op+0x18/0x20 arch/x86/entry/entry_64.S:905 >> > RIP: 0010:task_participate_group_stop+0x1ce/0x230 kernel/signal.c:340 >> > RSP: 0018:ffff8801d9ee77f0 EFLAGS: 00010097 >> > RAX: ffff8801d9ed8040 RBX: ffff8801d9ed8040 RCX: ffff8801d9edb2c0 >> > RDX: 0000000000000000 RSI: 0000000000060013 RDI: ffff8801d9ed84d0 >> > RBP: ffff8801d9ee7808 R08: ffff8801d9ee7180 R09: ffff8801d9ee7178 >> > R10: ffff8801d9ee70f0 R11: 1ffff1003b3db29b R12: ffff8801d9ee9740 >> > R13: 0000000000000000 R14: dffffc0000000000 R15: ffff8801d9ed85c8 >> > do_signal_stop+0x217/0x900 kernel/signal.c:2042 >> > get_signal+0x61c/0x17e0 kernel/signal.c:2297 >> > do_signal+0x94/0x1ee0 arch/x86/kernel/signal.c:808 >> > exit_to_usermode_loop+0x224/0x300 arch/x86/entry/common.c:158 >> > prepare_exit_to_usermode arch/x86/entry/common.c:197 [inline] >> > syscall_return_slowpath+0x42f/0x500 arch/x86/entry/common.c:266 >> > entry_SYSCALL_64_fastpath+0xbc/0xbe >> > RIP: 0033:0x7f33f723fdd3 >> > RSP: 002b:00007fffb5303398 EFLAGS: 00000246 ORIG_RAX: 0000000000000017 >> > RAX: fffffffffffffdfe RBX: 00007fffb5303540 RCX: 00007f33f723fdd3 >> > RDX: 0000000000000000 RSI: 00007fffb53036f0 RDI: 000000000000000b >> > RBP: 00007fffb53036f0 R08: 00007fffb5303770 R09: 0000000000000001 >> > R10: 0000000000000000 R11: 0000000000000246 R12: 00000000ffffffff >> > R13: 00007fffb5303ad0 R14: 0000000000000000 R15: 0000000000000000 >> > >> > >> > --- >> > This bug is generated by a dumb bot. It may contain errors. >> > See https://goo.gl/tpsmEJ for details. >> > Direct all questions to syzkaller@googlegroups.com. >> > >> > syzbot will keep track of this bug report. >> > Once a fix for this bug is committed, please reply to this email with: >> > #syz fix: exact-commit-title >> > To mark this as a duplicate of another syzbot report, please reply with: >> > #syz dup: exact-subject-of-another-report >> > If it's a one-off invalid bug report, please reply with: >> > #syz invalid >> > Note: if the crash happens again, it will cause creation of a new bug >> > report. >> > >> > -- >> > You received this message because you are subscribed to the Google Groups >> > "syzkaller-bugs" group. >> > To unsubscribe from this group and stop receiving emails from it, send an >> > email to syzkaller-bugs+unsubscribe@googlegroups.com. >> > To view this discussion on the web visit >> > https://groups.google.com/d/msgid/syzkaller-bugs/94eb2c058c80ea49ed055cc8695e%40google.com. >> > For more options, visit https://groups.google.com/d/optout. > From 1582791660897987282@xxx Tue Oct 31 16:35:55 +0000 2017 X-GM-THRID: 1582711532474407023 X-Gmail-Labels: Inbox,Category Forums