Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp2849640pxk; Tue, 15 Sep 2020 04:08:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzWZmDyv5cAFFre2VIZxgQrXP9WMOoCS5lkey7zOUZPT7XYcXvz5vynnvY7XDQnNb8OeKcA X-Received: by 2002:a05:6402:c15:: with SMTP id co21mr21131461edb.268.1600168105289; Tue, 15 Sep 2020 04:08:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600168105; cv=none; d=google.com; s=arc-20160816; b=tOx3wzOCDz6gqLxP+KSdMgh9+k76HClE+2MHWceq0HJZCUg3ZCMOWPcVxsuWAUqEBY yIuxDX6Dl0LTkf4z6c275zFv2qklcjFh/a/yD5YY+cBh+mIPWc6vuiukQkuvk8DzpVLG n1wtbsEEALuV439D+3AsOuie2l96/QJWAt22qZ3drw4/TTeo6yxCM+W/CpwBpTLMpiv0 fFcF7at+nd2FKOvCQm7LoKQUWh0tMM0C+UVNFds2ucZMCFaCNif7w6sYoKO4Q2oprbD0 TaGWqxVhAZFT20NI+H+xb7ICqMxw2NyvB1UjQiy4/mKyphTyt2HycqmPSRCAQrxFMUhl MD8g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:from:subject:message-id:date :mime-version; bh=58qLiwvX+9V/OpLahru/OEuKtk2KKFaE+wKNx1A2XkM=; b=ajK60I13mDdwiVG/pxC4mtdl1uyiLhDREwK55rWUcJmxzlHtPo/uY4wZzNIlXZ79aE J8MchLoOZM/ag+6JLl7PpW16RR+K8Vs69joydsPEyMXJGvE7VfxU087IyHD5WrxPwG0r 32tI9RSApy3EXT4SbQLMtEpAT346rdm6+V3FfvCGBVym/x8iOav13DsNSJ9CRpwLC4Y6 /uAd9tnLAu5ofUfwOks+WnyIo9wUFvJY0YQOsjRKLtplUdwBqy17rHXTEVhKytq4jXyo SaNFLeoz2SOP5WS30kkhLW/hasLiwxtv5Gudycc5AEYs2eHmdTv7eDrKa2ka8VqJVcdA bVGg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=appspotmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q23si9312007ejn.400.2020.09.15.04.08.01; Tue, 15 Sep 2020 04:08:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=appspotmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726133AbgIOLDj (ORCPT + 99 others); Tue, 15 Sep 2020 07:03:39 -0400 Received: from mail-io1-f79.google.com ([209.85.166.79]:39314 "EHLO mail-io1-f79.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726216AbgIOLAn (ORCPT ); Tue, 15 Sep 2020 07:00:43 -0400 Received: by mail-io1-f79.google.com with SMTP id y16so1878999ioy.6 for ; Tue, 15 Sep 2020 04:00:33 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:date:message-id:subject:from:to; bh=58qLiwvX+9V/OpLahru/OEuKtk2KKFaE+wKNx1A2XkM=; b=Mn8XOxExqkZlrcW/tP7JW8/xYRKw4mpB5fzTIFDIWbA6nF3cJjqE6RujNYh5ZYoPGh Ag3cj8Lj+cqTzVLAyPMxc4X0UL07ZEc96bWQe4v4kMHlItPVz2Yxkxf3LHppHCjmyOho lYarzqoqHiAonxX8lN7/ekzBrGOyLIhllmeba0+NpEOxqbRAwTVkiYKV6gbdmI1CB1ts mlDX6v9UmatmpAReppeUDicUZklvPxE99EEjpLL4cRDDeONyuKRuxTleXcsfBVJcAQuZ Rr+kN7WvORVxxpIIv0IjkmcQXpWc64Xtb7TietrSo33hSsVlgYE3WsmCORvr2Q6D41CG L2kw== X-Gm-Message-State: AOAM531iBZhNwXmMOwc1GQILoGMXO6EJ+Wzd9ilOe4dXvFv8/i5ACcI5 tt6st6uby/MLuXMCXtYBBX4uF8HvQM+l+x8WdOabDuulUO55 MIME-Version: 1.0 X-Received: by 2002:a92:d087:: with SMTP id h7mr9239735ilh.198.1600167621301; Tue, 15 Sep 2020 04:00:21 -0700 (PDT) Date: Tue, 15 Sep 2020 04:00:21 -0700 X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <000000000000a61d6b05af580e62@google.com> Subject: kernel BUG at lib/string.c:LINE! (5) From: syzbot To: clm@fb.com, dsterba@suse.com, josef@toxicpanda.com, linux-btrfs@vger.kernel.org, linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com 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 Hello, syzbot found the following issue on: HEAD commit: e4c26faa Merge tag 'usb-5.9-rc5' of git://git.kernel.org/p.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=13b17bed900000 kernel config: https://syzkaller.appspot.com/x/.config?x=c61610091f4ca8c4 dashboard link: https://syzkaller.appspot.com/bug?extid=e864a35d361e1d4e29a5 compiler: gcc (GCC) 10.1.0-syz 20200507 syz repro: https://syzkaller.appspot.com/x/repro.syz?x=177582be900000 C reproducer: https://syzkaller.appspot.com/x/repro.c?x=13deb2b5900000 IMPORTANT: if you fix the issue, please add the following tag to the commit: Reported-by: syzbot+e864a35d361e1d4e29a5@syzkaller.appspotmail.com detected buffer overflow in memcpy ------------[ cut here ]------------ kernel BUG at lib/string.c:1129! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 1 PID: 26 Comm: kworker/u4:2 Not tainted 5.9.0-rc4-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Workqueue: btrfs-endio-meta btrfs_work_helper RIP: 0010:fortify_panic+0xf/0x20 lib/string.c:1129 Code: 89 c7 48 89 74 24 08 48 89 04 24 e8 ab 39 00 fe 48 8b 74 24 08 48 8b 04 24 eb d5 48 89 fe 48 c7 c7 40 22 97 88 e8 b0 8c a9 fd <0f> 0b cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc 41 57 41 56 41 RSP: 0018:ffffc90000e27980 EFLAGS: 00010286 RAX: 0000000000000022 RBX: ffff8880a80dca64 RCX: 0000000000000000 RDX: ffff8880a90860c0 RSI: ffffffff815dba07 RDI: fffff520001c4f22 RBP: ffff8880a80dca00 R08: 0000000000000022 R09: ffff8880ae7318e7 R10: 0000000000000000 R11: 0000000000077578 R12: 00000000ffffff6e R13: 0000000000000008 R14: ffffc90000e27a40 R15: 1ffff920001c4f3c FS: 0000000000000000(0000) GS:ffff8880ae700000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000557335f440d0 CR3: 000000009647d000 CR4: 00000000001506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: memcpy include/linux/string.h:405 [inline] btree_readpage_end_io_hook.cold+0x206/0x221 fs/btrfs/disk-io.c:642 end_bio_extent_readpage+0x4de/0x10c0 fs/btrfs/extent_io.c:2854 bio_endio+0x3cf/0x7f0 block/bio.c:1449 end_workqueue_fn+0x114/0x170 fs/btrfs/disk-io.c:1695 btrfs_work_helper+0x221/0xe20 fs/btrfs/async-thread.c:318 process_one_work+0x94c/0x1670 kernel/workqueue.c:2269 worker_thread+0x64c/0x1120 kernel/workqueue.c:2415 kthread+0x3b5/0x4a0 kernel/kthread.c:292 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:294 Modules linked in: ---[ end trace b68924293169feef ]--- RIP: 0010:fortify_panic+0xf/0x20 lib/string.c:1129 Code: 89 c7 48 89 74 24 08 48 89 04 24 e8 ab 39 00 fe 48 8b 74 24 08 48 8b 04 24 eb d5 48 89 fe 48 c7 c7 40 22 97 88 e8 b0 8c a9 fd <0f> 0b cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc 41 57 41 56 41 RSP: 0018:ffffc90000e27980 EFLAGS: 00010286 RAX: 0000000000000022 RBX: ffff8880a80dca64 RCX: 0000000000000000 RDX: ffff8880a90860c0 RSI: ffffffff815dba07 RDI: fffff520001c4f22 RBP: ffff8880a80dca00 R08: 0000000000000022 R09: ffff8880ae7318e7 R10: 0000000000000000 R11: 0000000000077578 R12: 00000000ffffff6e R13: 0000000000000008 R14: ffffc90000e27a40 R15: 1ffff920001c4f3c FS: 0000000000000000(0000) GS:ffff8880ae700000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f95b7c4d008 CR3: 000000009647d000 CR4: 00000000001506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 --- This report is generated by a bot. It may contain errors. See https://goo.gl/tpsmEJ for more information about syzbot. syzbot engineers can be reached at syzkaller@googlegroups.com. syzbot will keep track of this issue. See: https://goo.gl/tpsmEJ#status for how to communicate with syzbot. syzbot can test patches for this issue, for details see: https://goo.gl/tpsmEJ#testing-patches