Received: by 10.213.65.68 with SMTP id h4csp1091007imn; Wed, 4 Apr 2018 12:25:42 -0700 (PDT) X-Google-Smtp-Source: AIpwx48OKA35VFk60OxeV/CudY8oQ0p10BQbbuqvCVXsy180K3+/mLa84lHZF38m1iPDTSmPKMkb X-Received: by 10.101.86.137 with SMTP id v9mr13057578pgs.14.1522869942682; Wed, 04 Apr 2018 12:25:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522869942; cv=none; d=google.com; s=arc-20160816; b=Agwjk50Gov+E6HipNFgx4QqKvfLrCbEZt8I1Utkc7f5fpHVSt+9ua+3xHfG2Chd1eD BWegGXLARyUBpFltWJ1KpcBWGuNufeZUoitPQ4us6GKN2KSoEylvi4R1Hu8lvtNPtPIg WTW4YnH3jJ1wtTmN57XWkn0Oy5MscmBN51pg5M4e1F96p0O4RgmdAYCVttK/KNHG+Kd1 xIUirJd8y2yP3QoZxCQocYs9sYCdc8aJyTSmA4Nizh3UT5bs8vah6DjGrTuByzDGO+Uj pHr2Q2hz7Gu9n+A1mj859idN3T7wcnrwq+Cu00bOAady70Y7TZ4w2RAu4KrbWUO2lk0r olcg== 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=35lqxkS+IbCVsukzTx7yqTP0+Q+8yjBBb9F+LSMj8cE=; b=T4fXvOW7GiYjMQsMlzLOjqg1+6W8sCWTeYucguGVrBSXyNj/bTNCPxImqVT+SuqMyN 7UHQbL3v+RNfvk0/rGsUHmMJ2mNt/AVTQrMBOALqy6VZf5P1wfN+TBOF/jMiSsLEzkdV oYyP7cORMwdWFHQ42fM4rZ7rCIxfV0BhAwcWZv39TOlx9vMIXXFvHmcU2tMwGQyszUtJ YMlSBbwWCZcOj4gaHiYGWUdLlnqRYYLEMkkAC8hUv11HL992egdUln7v+m94nZq2DY5K Nakbq1hO1EbjXL3hH4aEm0xwccBivTC6NRwGoit8yHK9EaWwowd2eZAnn3GdFw5Kt+Oj GjWg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=e89B9LbF; 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 s15-v6si4333789plj.701.2018.04.04.12.25.28; Wed, 04 Apr 2018 12:25:42 -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=e89B9LbF; 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 S1752522AbeDDTY3 (ORCPT + 99 others); Wed, 4 Apr 2018 15:24:29 -0400 Received: from mail-pl0-f53.google.com ([209.85.160.53]:33210 "EHLO mail-pl0-f53.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751535AbeDDTY0 (ORCPT ); Wed, 4 Apr 2018 15:24:26 -0400 Received: by mail-pl0-f53.google.com with SMTP id s10-v6so13495966plp.0 for ; Wed, 04 Apr 2018 12:24:26 -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=35lqxkS+IbCVsukzTx7yqTP0+Q+8yjBBb9F+LSMj8cE=; b=e89B9LbF1ym6SzZBqdDjklbZjnZGrf6ilGPQL+o9rnywx4VVV7Y5e1s1jEahz8sOrs vSjsEcC2gEtNqiVDduH2zHGZXwHYt6CzMkr0EZxuMCSvXwXFgyoZw30zZ6SalUUP2dQs KAbkxHeufFzVRS0IRG2mhb1n+Q0R8n0D9P9sCzxQjkvphlFlmVmpukNDN3ikWIa3+uvE BgweHmcbVvhl42qgnIlLDRvdjcRSjN3MwGvYEbhxKU6y4ITtuZmbfSSBLXIJHdJrLf2x XVKFUu0TcOnnce3zsJY31BXi3tI6Uk+9YJuKqTjYzOEGvfhaDjV9bXosEIcEKBzLbe1Z VYAQ== 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=35lqxkS+IbCVsukzTx7yqTP0+Q+8yjBBb9F+LSMj8cE=; b=UB4EPt9J20YFc/M4nPkPgi+u1LQRaRr9PFk2bySqUJCfHeWBIBYRAnjKq02v9A2cYB Zfkkt2Rbcog5XfJ2BkRM0pYjk1ZML5y3KOqZ0u2vET+LTpu6CfKNsVOK9U1wjTwnCKsm 6AUKlAi1DD4V7AFZXQpBiZZHHxPo+uHfEbKaOm8t3L0y6cjqlX6vNlok9x3WnnBB6MA8 Tn/WkIvUmmueLSv1rGhbe0el6yN2fgbzIoFN5EerjMR2rkDr3w6xGk5Y7hxiwv2RzLz6 WGtJ/J1IXff44Nd6jU4TMdcPxY+jOVZ1aEwmXBn5VX7GL/4HaNzdDUSvO0eH9PAGkgpC BcFA== X-Gm-Message-State: AElRT7FMBoBIyIQilsvDZDy5zc9FoysvoAkRNPF/SPPU2i2T6i9nD8y+ JF4HwRfhuR62fn7Ai2QUxJbqfRb0ZsduyGTiMhpKkA== X-Received: by 2002:a17:902:8482:: with SMTP id c2-v6mr20349368plo.295.1522869865775; Wed, 04 Apr 2018 12:24:25 -0700 (PDT) MIME-Version: 1.0 Received: by 10.100.182.136 with HTTP; Wed, 4 Apr 2018 12:24:05 -0700 (PDT) In-Reply-To: <001a1148578c10e4700568e814eb@google.com> References: <001a1148578c10e4700568e814eb@google.com> From: Dmitry Vyukov Date: Wed, 4 Apr 2018 21:24:05 +0200 Message-ID: Subject: Re: WARNING in up_write To: syzbot , "Theodore Ts'o" Cc: linux-fsdevel , LKML , 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, Apr 3, 2018 at 4:01 AM, syzbot wrote: > Hello, > > syzbot hit the following crash on upstream commit > 86bbbebac1933e6e95e8234c4f7d220c5ddd38bc (Mon Apr 2 18:47:07 2018 +0000) > Merge branch 'ras-core-for-linus' of > git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip > syzbot dashboard link: > https://syzkaller.appspot.com/bug?extid=dc5ab2babdf22ca091af > > So far this crash happened 8 times on upstream. > C reproducer: https://syzkaller.appspot.com/x/repro.c?id=5688491102961664 > syzkaller reproducer: > https://syzkaller.appspot.com/x/repro.syz?id=5709211904245760 > Raw console output: > https://syzkaller.appspot.com/x/log.txt?id=5720789257027584 > Kernel config: > https://syzkaller.appspot.com/x/.config?id=6801295859785128502 > compiler: gcc (GCC) 7.1.1 20170620 > > IMPORTANT: if you fix the bug, please add the following tag to the commit: > Reported-by: syzbot+dc5ab2babdf22ca091af@syzkaller.appspotmail.com > It will help syzbot understand when the bug is fixed. See footer for > details. > If you forward the report, please keep this part and the footer. +Ted for ext4 frames > EXT4-fs (sda1): shut down requested (0) > ------------[ cut here ]------------ > DEBUG_LOCKS_WARN_ON(sem->owner != get_current()) > WARNING: CPU: 1 PID: 4441 at kernel/locking/rwsem.c:133 up_write+0x1cc/0x210 > kernel/locking/rwsem.c:133 > Kernel panic - not syncing: panic_on_warn set ... > > CPU: 1 PID: 4441 Comm: syzkaller594909 Not tainted 4.16.0+ #11 > Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS > Google 01/01/2011 > Call Trace: > __dump_stack lib/dump_stack.c:17 [inline] > dump_stack+0x1a7/0x27d lib/dump_stack.c:53 > panic+0x1f8/0x42c kernel/panic.c:183 > __warn+0x1dc/0x200 kernel/panic.c:547 > report_bug+0x1f4/0x2b0 lib/bug.c:186 > fixup_bug.part.10+0x37/0x80 arch/x86/kernel/traps.c:178 > fixup_bug arch/x86/kernel/traps.c:247 [inline] > do_error_trap+0x2d7/0x3e0 arch/x86/kernel/traps.c:296 > do_invalid_op+0x1b/0x20 arch/x86/kernel/traps.c:315 > invalid_op+0x1b/0x40 arch/x86/entry/entry_64.S:986 > RIP: 0010:up_write+0x1cc/0x210 kernel/locking/rwsem.c:133 > RSP: 0018:ffff8801b349f710 EFLAGS: 00010286 > RAX: dffffc0000000008 RBX: ffff8801ccc0ce40 RCX: ffffffff815ae26e > RDX: 0000000000000000 RSI: 1ffff10036693e92 RDI: 1ffff10036693e67 > RBP: ffff8801b349f798 R08: fffffbfff10b0659 R09: fffffbfff10b0659 > R10: ffff8801b349f708 R11: fffffbfff10b0658 R12: 1ffff10036693ee2 > R13: dffffc0000000000 R14: ffff8801b349f770 R15: ffff8801ccc0ce98 > percpu_up_write+0xca/0x110 kernel/locking/percpu-rwsem.c:183 > sb_freeze_unlock fs/super.c:1390 [inline] > thaw_super+0x1ca/0x260 fs/super.c:1524 > thaw_bdev+0x151/0x180 fs/block_dev.c:555 > ext4_shutdown fs/ext4/ioctl.c:489 [inline] > ext4_ioctl+0x1f85/0x3e60 fs/ext4/ioctl.c:1048 > vfs_ioctl fs/ioctl.c:46 [inline] > do_vfs_ioctl+0x1b1/0x1520 fs/ioctl.c:686 > SYSC_ioctl fs/ioctl.c:701 [inline] > SyS_ioctl+0x8f/0xc0 fs/ioctl.c:692 > do_syscall_64+0x281/0x940 arch/x86/entry/common.c:287 > entry_SYSCALL_64_after_hwframe+0x42/0xb7 > RIP: 0033:0x440109 > RSP: 002b:00007fffce185d28 EFLAGS: 00000213 ORIG_RAX: 0000000000000010 > RAX: ffffffffffffffda RBX: 00000000004002c8 RCX: 0000000000440109 > RDX: 0000000020000100 RSI: 000000008004587d RDI: 0000000000000003 > RBP: 00000000006ca018 R08: 000000000000000f R09: 65732f636f72702f > R10: 0000000000000000 R11: 0000000000000213 R12: 0000000000401990 > R13: 0000000000401a20 R14: 0000000000000000 R15: 0000000000000000 > Dumping ftrace buffer: > (ftrace buffer empty) > Kernel Offset: disabled > Rebooting in 86400 seconds.. > > > --- > 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. > If you forgot to add the Reported-by tag, once the fix for this bug is > merged > into any tree, please reply to this email with: > #syz fix: exact-commit-title > If you want to test a patch for this bug, please reply with: > #syz test: git://repo/address.git branch > and provide the patch inline or as an attachment. > 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. > Note: all commands must start from beginning of the line in the email body. > > -- > 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/001a1148578c10e4700568e814eb%40google.com. > For more options, visit https://groups.google.com/d/optout.