Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp3190066imm; Sun, 24 Jun 2018 13:55:43 -0700 (PDT) X-Google-Smtp-Source: ADUXVKLU/6/DokXtxzVlAJ9+6D19TCdqmGYQXApbqiQCULDQvaxb2NiuSdL9+GDXJ2Kpxv5m3fUo X-Received: by 2002:a63:7b1b:: with SMTP id w27-v6mr8103616pgc.199.1529873742957; Sun, 24 Jun 2018 13:55:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529873742; cv=none; d=google.com; s=arc-20160816; b=Dd95t3Le1z4UZVhCRxZ/Ce7z1+Zi/sN3j8jwHRz5EUFwvnlfqtiO+1z9Z09xKVTKeq 9BXYxeHxSpzD1U7BFpyC+8uIEOxo9BDtmnFxy98Y4QOSyFPK/sWEwUBq/FY8LdsxvpB/ vjXZo2m+2sCdZiSk8i+FNKppn1U3gF10MX70tZvuFHSNOy8p3SRUjPbc5ysq1wZ+fNBB PHoKV3QPu3yEAWc/fLNbReA4/GIfrs/CY6vx5wJruBdzpb/t5XOuKBJpigpMlbhfaPb6 XMtP4WALisKUz9SKxZAoFCBqXI7CFQLwcn/+oG1yJLMUXtX+zADH8oXhD3GQq9Xei+0X fJiA== 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 :mime-version:dkim-signature:arc-authentication-results; bh=gduUVBGQO9m7egdelHCr13qJar1MlKEdX2jvrOg7xjE=; b=EJwBpozPxiVrEqEJr7eTqeHcZzNholwzXhyMS0UPmpDzX0rPfoJuNGec6VdMs5hMtT zmEwgn+h3J3XYTyS6b4c7miriH1XVCnsM168COChBwBFV4t6zSwC+pw0mjVvb1JHiWXs z+ryc4KBced5XTVQ8q14k7vLA2uorcS1EG8g3R/VHCeE5XR2QPAd+CM1/xclhZdfybjw Tu0+c2jwT+vcTlT8dUtfZb3sxKRWBhSzuRf7bj3VTSV65w5Fj2GeXw73LcY+JqTeubG3 eku/zNU4I4zGMP5Zdx08orizFTtGSQ0T6g2KqFWn1p31Nb1n42KwlLSZye9QzFwnPKq6 UBvw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=csKlrC0v; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 12-v6si2806868pgd.421.2018.06.24.13.55.29; Sun, 24 Jun 2018 13:55: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=@gmail.com header.s=20161025 header.b=csKlrC0v; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752000AbeFXUyk (ORCPT + 99 others); Sun, 24 Jun 2018 16:54:40 -0400 Received: from mail-lf0-f65.google.com ([209.85.215.65]:35467 "EHLO mail-lf0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751575AbeFXUyh (ORCPT ); Sun, 24 Jun 2018 16:54:37 -0400 Received: by mail-lf0-f65.google.com with SMTP id i15-v6so12849281lfc.2; Sun, 24 Jun 2018 13:54:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to:cc; bh=gduUVBGQO9m7egdelHCr13qJar1MlKEdX2jvrOg7xjE=; b=csKlrC0vURxiJITKsMOZpKPXoi6SEg/KsBT/bxKUhzG+ZQ8489D6X7GzzCdRyC9Xnm QuZt8D8daSmiWqY/1f4n/FLd1BFHYp3gkP6O7svW9z1j6SvyQZjnvOpnwvrghG9MScF2 wbZfRZ0JSQlR9xj8vUytlsT/nal61t2ZEb/rtlqdePw45QABetSR2GLHni/0ixJDVu55 qip6uN4Q2EA9vrdFrdWeYkS3PU3Ul9v3v5T2w3IC7lxdPzZV+Ay5cALRn5lH6TclEhLi 1cSxfWBw6P1WiMS5ajpBra4U373424D/C8u11iUU8xXRtolVPqkyDZGuzGf0msubxQE9 TXsg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to:cc; bh=gduUVBGQO9m7egdelHCr13qJar1MlKEdX2jvrOg7xjE=; b=sEzJyRz78Uya/ViH3VNcTokjbJZK/ttJoDvWdhbv9AwyGBJJSbjzAX50mGGXW7Gyig 53dwlX08a0qQAfXOki18/KazwjTXZT/CR+aeYgsKxnSutCvDHIcMhnTIH9pPFFU+ZeW4 RlkWPjAkKC1OhACdLMl51/OY927J46JLB+XyB+5jdc3Jm329UtauJMj8860nicwtdo0I 42pk35FM7zWwO8waBHD+7lUrGmICZ8GATBnl9hZWcLK1BPeWOutqkSKwLBgCauBvHiPK kL5yGoVJxsO9Rgu7EgJckmFD2wpBFIcBLXz6RKekJ0j9y+ofaL0IUx9lP7lFVVlxuvf3 sDQQ== X-Gm-Message-State: APt69E0w5fc/N5Rq2VR2N9v1xsg5XN4AMulXcwbmylskHE/aw5XKNQRk cJ0BwRStYZLqAIB+pef3Iy06mH8iU7HwI77g8pQ= X-Received: by 2002:a19:9d92:: with SMTP id g140-v6mr1612868lfe.85.1529873675562; Sun, 24 Jun 2018 13:54:35 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a2e:5119:0:0:0:0:0 with HTTP; Sun, 24 Jun 2018 13:54:35 -0700 (PDT) From: shankarapailoor Date: Sun, 24 Jun 2018 13:54:35 -0700 Message-ID: Subject: WARNING in btrfs_destroy_inode To: Chris Mason , jbacik@fb.com, dsterba@suse.com Cc: linux-btrfs@vger.kernel.org, linux-fsdevel@vger.kernel.org, LKML 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 Hi, I'm using Syzkaller to fuzz linux 4.18.0-rc1 with btrfs and found the following WARNING crash. I have a C program that reproduces it here: https://pastebin.com/bBzmrGFH WARNING: CPU: 1 PID: 12788 at fs/btrfs/inode.c:9288 btrfs_destroy_inode+0x545/0x720 fs/btrfs/inode.c:9288 Kernel panic - not syncing: panic_on_warn set ...CPU: 1 PID: 12788 Comm: syz-executor5 Not tainted 4.18.0-rc1+ #35 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x148/0x1b5 lib/dump_stack.c:113 panic+0x200/0x42c kernel/panic.c:184 __warn+0x1ea/0x200 kernel/panic.c:536 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:248 [inline] do_error_trap+0x288/0x2e0 arch/x86/kernel/traps.c:296 do_invalid_op+0x1b/0x20 arch/x86/kernel/traps.c:316 invalid_op+0x14/0x20 arch/x86/entry/entry_64.S:992 RIP: 0010:btrfs_destroy_inode+0x545/0x720 fs/btrfs/inode.c:9288 Code: ff e8 4f 6c 52 ff 0f 0b e9 ed fb ff ff e8 43 6c 52 ff 0f 0b e9 c8 fc ff ff e8 37 6c 52 ff 0f 0b e9 f2 fc ff ff e8 2b 6c 52 ff <0f> 0b e9 93 fb ff ff e8 1f 6c 52 ff 0f 0b e9 38 fc ff ff e8 13 6c RSP: 0018:ffff880091287c68 EFLAGS: 00010293 RAX: ffff88009d0a8340 RBX: ffff8800a65c36a8 RCX: ffffffff820ef895 RDX: 0000000000000000 RSI: 0000000000000008 RDI: ffff8800a65c3598 RBP: ffff880091287cb0 R08: ffffed00169d02bf R09: 0000000000000001 R10: ffffed00169d02be R11: ffff8800b4e815f7 R12: ffff8800a65c3240 R13: ffff8800b448c1c0 R14: ffff8800a65c3878 R15: ffffffff855cbc40 destroy_inode+0xc3/0x120 fs/inode.c:267 evict+0x3d4/0x620 fs/inode.c:575 iput_final fs/inode.c:1506 [inline] iput+0x4e8/0x760 fs/inode.c:1532 do_unlinkat+0x398/0x670 fs/namei.c:4079 __do_sys_unlink fs/namei.c:4120 [inline] __se_sys_unlink fs/namei.c:4118 [inline] __x64_sys_unlink+0x42/0x50 fs/namei.c:4118 do_syscall_64+0xda/0x560 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x455757 Code: 0f 1f 00 b8 58 00 00 00 0f 05 48 3d 01 f0 ff ff 0f 83 bd bc fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 b8 57 00 00 00 0f 05 <48> 3d 01 f0 ff ff 0f 83 9d bc fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007fffe629f058 EFLAGS: 00000202 ORIG_RAX: 0000000000000057 RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000455757 RDX: 0000000002980a13 RSI: 00007fffe629f0f0 RDI: 00007fffe629f0f0 RBP: 00007fffe62a0e00 R08: 0000000000000000 R09: 000000000000000a R10: 0000000000000005 R11: 0000000000000202 R12: 0000000002980940 R13: 0000000000000000 R14: 0000000000000117 R15: 000000000008e36d My kernel configs: https://pastebin.com/KFcaLxhj Please let me know if I can provide more information. -- Regards, Shankara Pailoor