Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp1492100imm; Fri, 22 Jun 2018 18:45:20 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJlt2v5oH5MPDGY0rgMm7yzuz/unM4P6DTz4q1jqwYbOtjndIl4mEO0usuZohMAPDKWrtvt X-Received: by 2002:a17:902:b08d:: with SMTP id p13-v6mr3781460plr.344.1529718320824; Fri, 22 Jun 2018 18:45:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529718320; cv=none; d=google.com; s=arc-20160816; b=oklgeS1QFR0oCY3sqKstFGjPncOVEj3GZN3VO0T3x+QKlXBynVeNLYpl68JC6pR9my la68n/QOu+8+6n6WUBnv7tCPBWJZ1Ls4kUVzJAb1n97ibw/QxWvQKFJ17Ji79fQWI+T/ WAp9sE+kWl4EqW15nsTJ5LQfCZljNvNkx+WX2XlMMZ98YL5/LVv2tYN1vKo+SEl1yKm9 jLBggcs1P1kz3Jv7zY7GX5NR9u70plka3sajzQBeADXOt2rS1CspSOokWWwV0VMKCzw0 wtNLL2z13UoBraowtSnGTF7YMgXAzHevks2s/fqzikWbLHlg74/KMfTLHoWg/es03kTn kcuA== 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=PiSBHM91zU9kMDSinZx8scwBcHzw0q0UYy5nWqfWMrM=; b=IYUOu92S2RWhcZ+fbogADjYsI1wRT30y0ENh3Fi9BVqX0Nzma3SauD1Peow6CD8Hsw Ie/ByC0Cvj2DV6fL7lG2KXwbwZDv8jVbrpwAm83oQWh643rWhOepRxM4sPSsV6fSrDfP 4yuBMkdspPNbBSdHii5YBI4LVAj9I/yom7fh8Ox4CIysLRW7BzsDwcnX8bTQZMWX+/7K EkMYzeB2/zwN9SJoV+GR2dojtedyyugC0KvjjPYKdnlHbCJQTV3gFuDwBA/xJVufAP/T aya8jDsj4ZPW+kizexHWHR2qpDCAClWR8/FkdYBUcpVPqtR3MNI6lrwTUIp6+igYlD8u hwoA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=jE3OYmjM; 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 n124-v6si7224765pga.311.2018.06.22.18.45.05; Fri, 22 Jun 2018 18:45:20 -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=jE3OYmjM; 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 S934544AbeFWBo0 (ORCPT + 99 others); Fri, 22 Jun 2018 21:44:26 -0400 Received: from mail-lj1-f179.google.com ([209.85.208.179]:46370 "EHLO mail-lj1-f179.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933977AbeFWBoY (ORCPT ); Fri, 22 Jun 2018 21:44:24 -0400 Received: by mail-lj1-f179.google.com with SMTP id v22-v6so2215514ljg.13; Fri, 22 Jun 2018 18:44:23 -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=PiSBHM91zU9kMDSinZx8scwBcHzw0q0UYy5nWqfWMrM=; b=jE3OYmjM74JLCFmb3wJX+TE+P4SG0k1XzVCG7yOcicHc6NaoZu8L9adsPJ9g5Kup82 YzW251XbnKsAK7nMdOZ7zzOKUu+ivFAolaSknJZ3n17Td1O2EokYu61uXW0juRj0yqQf OSYnT8k2amFz+8mjag7lRp9LheHMoI3XO806fuSwEJgI9xBwzXfvd8EncmQDFwMe8kZq gAEPX33XL1rqZ9Xs2WZ4Q8j04DY8QxqXRxBgPLdj+CIwlaXoMPKDQmCMpTTjL+NOUEfC 6K1G4W8Xx/ColPIkZUbFsyFdviU3PgZCmRVLzLXBAEK5dx09PLHDzxlVQl2WHzLZdtck R+XQ== 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=PiSBHM91zU9kMDSinZx8scwBcHzw0q0UYy5nWqfWMrM=; b=oS7WOGDJmQPkbzUsKvgIkq1PfUoOHNJ3XqaEe46BPZGyT1e+zq0VvljFhl3IdkxEr0 MXxzhk1yOUfRmV1SEEmB9pRYeetayMALmWzrnwscM7LCbEmSnHpXWErTsl4kHXum4yqD eXExGJWbPxtcFLxyO2LawlBjIA4zRSiPvdNG9kqiViZ02b9w7m6raSFIi3c6CUnsXsun Nlb+fOTlzUBi+qrYTNDS/vD1B2BWhdAUpVVTM2GCU1wYx2XxlemCg1sGZsKr+cig+UWO BfzZSRQSmwVTRZdaqAl7BJtp0J5Z622iip5bJya10omP2UoRQWLAAiksDBXVEeqXWBZc lhzg== X-Gm-Message-State: APt69E1kkCJl2Fqfvm1frBw4w5yvO2M7qQzPzJ9l58ZgTlckpz/RbE7r EBhsXCodGw2wgzL5pY9Gc5kow5IUZsc7umfOCVw= X-Received: by 2002:a2e:808e:: with SMTP id i14-v6mr2521456ljg.85.1529718262864; Fri, 22 Jun 2018 18:44:22 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a2e:5119:0:0:0:0:0 with HTTP; Fri, 22 Jun 2018 18:44:22 -0700 (PDT) From: shankarapailoor Date: Fri, 22 Jun 2018 18:44:22 -0700 Message-ID: Subject: Task Hung in btrfs_start_ordered_extent To: Chris Mason , jbacik@fb.com, dsterba@suse.com Cc: LKML , linux-btrfs@vger.kernel.org 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 am using Syzkaller to fuzz linux 4.18.0-rc1 with btrfs and I found the following task hung bug. This is reproducible and I have a C program to reproduce the bug here: https://pastebin.com/dMfR6yZx Syzkaller hit 'INFO: task hung in btrfs_start_ordered_extent' bug. random: sshd: uninitialized urandom read (32 bytes read) random: sshd: uninitialized urandom read (32 bytes read) random: sshd: uninitialized urandom read (32 bytes read) random: sshd: uninitialized urandom read (32 bytes read) random: sshd: uninitialized urandom read (32 bytes read) INFO: task syz-executor329:3499 blocked for more than 120 seconds. Not tainted 4.18.0-rc1+ #35 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. syz-executor329 D23328 3499 3498 0x00000000 Call Trace: context_switch kernel/sched/core.c:2862 [inline] __schedule+0x8cd/0x1d20 kernel/sched/core.c:3504 schedule+0x7c/0x1a0 kernel/sched/core.c:3548 btrfs_start_ordered_extent+0x366/0x510 fs/btrfs/ordered-data.c:784 __do_contiguous_readpages fs/btrfs/extent_io.c:3113 [inline] __extent_readpages+0x1c3/0x6b0 fs/btrfs/extent_io.c:3158 extent_readpages+0x1f5/0x6d0 fs/btrfs/extent_io.c:4153 btrfs_readpages+0x25/0x30 fs/btrfs/inode.c:8724 read_pages+0x10d/0x500 mm/readahead.c:121 __do_page_cache_readahead+0x4ab/0x590 mm/readahead.c:209 ra_submit mm/internal.h:66 [inline] do_sync_mmap_readahead mm/filemap.c:2444 [inline] filemap_fault+0x939/0x1b20 mm/filemap.c:2520 __do_fault+0x84/0x1a0 mm/memory.c:3231 do_read_fault mm/memory.c:3641 [inline] do_fault mm/memory.c:3741 [inline] handle_pte_fault mm/memory.c:3972 [inline] __handle_mm_fault+0x1931/0x2b40 mm/memory.c:4096 handle_mm_fault+0x3a4/0xa10 mm/memory.c:4133 faultin_page mm/gup.c:518 [inline] __get_user_pages+0x3dc/0x11f0 mm/gup.c:718 __get_user_pages_locked mm/gup.c:889 [inline] get_user_pages_unlocked+0x25a/0x390 mm/gup.c:1012 get_user_pages_fast+0x163/0x310 mm/gup.c:1865 iov_iter_get_pages+0x235/0xd70 lib/iov_iter.c:1129 dio_refill_pages fs/direct-io.c:170 [inline] dio_get_page fs/direct-io.c:214 [inline] do_direct_IO fs/direct-io.c:980 [inline] do_blockdev_direct_IO+0x33c2/0x7800 fs/direct-io.c:1331 __blockdev_direct_IO+0x9d/0xc6 fs/direct-io.c:1417 btrfs_direct_IO+0x3c6/0xbf0 fs/btrfs/inode.c:8629 generic_file_direct_write+0x1e6/0x440 mm/filemap.c:3042 __btrfs_direct_write fs/btrfs/file.c:1813 [inline] btrfs_file_write_iter+0x770/0x166a fs/btrfs/file.c:1954 call_write_iter include/linux/fs.h:1795 [inline] new_sync_write fs/read_write.c:474 [inline] __vfs_write+0x4e8/0x660 fs/read_write.c:487 vfs_write+0x189/0x510 fs/read_write.c:549 ksys_write+0xd8/0x1b0 fs/read_write.c:598 __do_sys_write fs/read_write.c:610 [inline] __se_sys_write fs/read_write.c:607 [inline] __x64_sys_write+0x73/0xb0 fs/read_write.c:607 do_syscall_64+0xda/0x560 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x440799 Code: Bad RIP value. RSP: 002b:00007ffdf3c66738 EFLAGS: 00000217 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000440799 RDX: 00000000d996d7aa RSI: 0000000020000000 RDI: 0000000000000003 RBP: 00000000006cb018 R08: 0000000000004000 R09: 0000000000004000 R10: 0000000000000004 R11: 0000000000000217 R12: 0000000000401c20 R13: 0000000000401cb0 R14: 0000000000000000 R15: 0000000000000000 My kernel configs: https://pastebin.com/KFcaLxhj Please let me know if I can provide more information -- Regards, Shankara Pailoor