Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp512811pxu; Wed, 7 Oct 2020 08:46:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwa5wYBzwJvnjNdQGFuu5Pfgu647qli9+pu9S7SsDnomSqNJ+z0QTZPV8NsLONJ9emWHmB+ X-Received: by 2002:a17:906:4bc4:: with SMTP id x4mr4127638ejv.240.1602085616315; Wed, 07 Oct 2020 08:46:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602085616; cv=none; d=google.com; s=arc-20160816; b=pi9Z4tCN5bG/r9OP0RI5CJjgpfKWRws6xwTygziONJ1LYClycT1P82HG4/KJ3QSq3i +ANZLs3GXC2iEuRB6pepTizNY4WnHfBROJwwm/YfVSj0csjDcnBvLFfame1R1s1dGjlr 2cvm3YVrXNrf4trh4Bzx5k5olZtWgIqCgvoU/9bqJ/lRPc9lg+FKbFYv+gvC5+Mc/XFJ RAvwugyUn8LwPKUlFciAalctyu28uAvoJ/7YKO/kPln/KsRQu74j5RmKuX95w9iYpNhu CyfbrpPyJ6Vg4VlrRrnp+ebGANXuV1PljJkVdK5yCc4K2wXkCJa5e9tdvZ0YNQSrp3Gj YN4w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :to:subject:dkim-signature; bh=VnpOHvJy8LvAhL+Lm2aOHdven8UGI5jNfFG54RH0lno=; b=rVgFsOm9lUDrByOOrvFaxTKfm4MTf4qRm4NPYmbR0MK8Fxmibiq8FdwOq8Rp2cne17 HC6t+T4z/H6xHjVytP3Jq8ApLM1Rz5TAjEXyD9LMK710624ShCVgHuNKB6jfPtuc72gY WOLLhGPhwdXN77A69KH/Dp6Ho564rNFTKTYo0jGe5IH7yMIcYWvS15wMs7BXp66uUZS/ Z2JkdbaGIA5OgwdlBt8+CeqFjbjaWnD3EuLLQwVH0XRkXjZZT0zBtZMLA8LVnbr4m1gG 5LUfivrskOq8SbSEd1+/smf2pf00isIUFmCZ/iQDxAaKNwD/fRiEAOlR8tqQ4FIe7eAR RZfA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=W1BtREJ8; 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=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d18si1767935ejz.660.2020.10.07.08.46.28; Wed, 07 Oct 2020 08:46:56 -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; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=W1BtREJ8; 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=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726463AbgJGLkO (ORCPT + 99 others); Wed, 7 Oct 2020 07:40:14 -0400 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:30713 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726096AbgJGLkO (ORCPT ); Wed, 7 Oct 2020 07:40:14 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1602070812; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=VnpOHvJy8LvAhL+Lm2aOHdven8UGI5jNfFG54RH0lno=; b=W1BtREJ8Jg1163D/XYRpfx/pbMYvR3unRAUryVJGUASPLx3G3KpL6KZnKR5SgJ5L4qYH/z FdCp4FQK7OrulXkTCtXigUGQ6AgjktETFmbn5llkC+s7gySKP50vnEcur4QewCMTlQukEV cdo23pxcyzxl6JKr8xtqiDnhnBqd0KE= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-391-CVwuDJ3ZOieVRIiIXspLDw-1; Wed, 07 Oct 2020 07:40:09 -0400 X-MC-Unique: CVwuDJ3ZOieVRIiIXspLDw-1 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 69762425D1; Wed, 7 Oct 2020 11:40:08 +0000 (UTC) Received: from [10.33.36.138] (unknown [10.33.36.138]) by smtp.corp.redhat.com (Postfix) with ESMTP id C4E675D9E2; Wed, 7 Oct 2020 11:40:02 +0000 (UTC) Subject: Re: [Cluster-devel] general protection fault in gfs2_rgrp_dump To: syzbot , agruenba@redhat.com, cluster-devel@redhat.com, linux-kernel@vger.kernel.org, rpeterso@redhat.com, syzkaller-bugs@googlegroups.com References: <00000000000035788305b1000361@google.com> From: Andrew Price Message-ID: <48e63ee5-7d68-6502-33e0-9ab5489290ce@redhat.com> Date: Wed, 7 Oct 2020 12:40:01 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.11.0 MIME-Version: 1.0 In-Reply-To: <00000000000035788305b1000361@google.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 06/10/2020 13:48, syzbot wrote: > Hello, > > syzbot found the following issue on: > > HEAD commit: 7575fdda Merge tag 'platform-drivers-x86-v5.9-2' of git://.. > git tree: upstream > console output: https://syzkaller.appspot.com/x/log.txt?x=14abb7c7900000 > kernel config: https://syzkaller.appspot.com/x/.config?x=de7f697da23057c7 > dashboard link: https://syzkaller.appspot.com/bug?extid=43fa87986bdd31df9de6 > compiler: clang version 10.0.0 (https://github.com/llvm/llvm-project/ c2443155a0fb245c8f17f2c1c72b6ea391e86e81) > > Unfortunately, I don't have any reproducer for this issue yet. > > IMPORTANT: if you fix the issue, please add the following tag to the commit: > Reported-by: syzbot+43fa87986bdd31df9de6@syzkaller.appspotmail.com > > gfs2: fsid=syz:syz.0: ri_addr = 20 > ri_length = 1 > ri_data0 = 21 > ri_data = 2060 > ri_bitbytes = 0 I could reproduce this by setting ri_bitbytes in the first rindex entry to 0. The bug is in the error path. Patch submitted: https://www.redhat.com/archives/cluster-devel/2020-October/msg00008.html Andy > start=0 len=0 offset=128 > general protection fault, probably for non-canonical address 0xdffffc0000000020: 0000 [#1] PREEMPT SMP KASAN > KASAN: null-ptr-deref in range [0x0000000000000100-0x0000000000000107] > CPU: 1 PID: 19688 Comm: syz-executor.3 Not tainted 5.9.0-rc8-syzkaller #0 > Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 > RIP: 0010:gfs2_rgrp_dump+0x3b/0x6c0 fs/gfs2/rgrp.c:2220 > Code: 24 10 48 89 f3 48 89 7c 24 08 48 bd 00 00 00 00 00 fc ff df e8 06 7a 2b fe 48 89 ea 48 81 c3 00 01 00 00 48 89 d8 48 c1 e8 03 <80> 3c 28 00 74 12 48 89 df e8 97 60 6b fe 48 ba 00 00 00 00 00 fc > RSP: 0018:ffffc90009037758 EFLAGS: 00010202 > RAX: 0000000000000020 RBX: 0000000000000100 RCX: 0000000000040000 > RDX: dffffc0000000000 RSI: 0000000000016753 RDI: 0000000000016754 > RBP: dffffc0000000000 R08: ffffffff83ddd758 R09: fffff52001206efa > R10: fffff52001206efa R11: 0000000000000000 R12: ffffffff89364b22 > R13: ffff888042e74000 R14: dffffc0000000000 R15: ffffffff89364943 > FS: 00007fb8f261d700(0000) GS:ffff8880ae900000(0000) knlGS:0000000000000000 > CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 > CR2: 00000000016a9e60 CR3: 00000000959d9000 CR4: 00000000001506e0 > DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 > DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 > Call Trace: > gfs2_consist_rgrpd_i+0xa1/0x110 fs/gfs2/util.c:422 > compute_bitstructs fs/gfs2/rgrp.c:812 [inline] > read_rindex_entry fs/gfs2/rgrp.c:909 [inline] > gfs2_ri_update+0xb60/0x1860 fs/gfs2/rgrp.c:986 > gfs2_rindex_update+0x283/0x320 fs/gfs2/rgrp.c:1032 > init_inodes fs/gfs2/ops_fstype.c:792 [inline] > gfs2_fill_super+0x28e7/0x3fe0 fs/gfs2/ops_fstype.c:1125 > get_tree_bdev+0x3e9/0x5f0 fs/super.c:1342 > gfs2_get_tree+0x4c/0x1f0 fs/gfs2/ops_fstype.c:1201 > vfs_get_tree+0x88/0x270 fs/super.c:1547 > do_new_mount fs/namespace.c:2875 [inline] > path_mount+0x179d/0x29e0 fs/namespace.c:3192 > do_mount fs/namespace.c:3205 [inline] > __do_sys_mount fs/namespace.c:3413 [inline] > __se_sys_mount+0x126/0x180 fs/namespace.c:3390 > do_syscall_64+0x31/0x70 arch/x86/entry/common.c:46 > entry_SYSCALL_64_after_hwframe+0x44/0xa9 > RIP: 0033:0x46087a > Code: b8 a6 00 00 00 0f 05 48 3d 01 f0 ff ff 0f 83 ad 89 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 49 89 ca b8 a5 00 00 00 0f 05 <48> 3d 01 f0 ff ff 0f 83 8a 89 fb ff c3 66 0f 1f 84 00 00 00 00 00 > RSP: 002b:00007fb8f261ca88 EFLAGS: 00000202 ORIG_RAX: 00000000000000a5 > RAX: ffffffffffffffda RBX: 00007fb8f261cb20 RCX: 000000000046087a > RDX: 0000000020000000 RSI: 0000000020000100 RDI: 00007fb8f261cae0 > RBP: 00007fb8f261cae0 R08: 00007fb8f261cb20 R09: 0000000020000000 > R10: 0000000000000000 R11: 0000000000000202 R12: 0000000020000000 > R13: 0000000020000100 R14: 0000000020000200 R15: 0000000020047a20 > Modules linked in: > ---[ end trace 8711b33583174bc7 ]--- > RIP: 0010:gfs2_rgrp_dump+0x3b/0x6c0 fs/gfs2/rgrp.c:2220 > Code: 24 10 48 89 f3 48 89 7c 24 08 48 bd 00 00 00 00 00 fc ff df e8 06 7a 2b fe 48 89 ea 48 81 c3 00 01 00 00 48 89 d8 48 c1 e8 03 <80> 3c 28 00 74 12 48 89 df e8 97 60 6b fe 48 ba 00 00 00 00 00 fc > RSP: 0018:ffffc90009037758 EFLAGS: 00010202 > RAX: 0000000000000020 RBX: 0000000000000100 RCX: 0000000000040000 > RDX: dffffc0000000000 RSI: 0000000000016753 RDI: 0000000000016754 > RBP: dffffc0000000000 R08: ffffffff83ddd758 R09: fffff52001206efa > R10: fffff52001206efa R11: 0000000000000000 R12: ffffffff89364b22 > R13: ffff888042e74000 R14: dffffc0000000000 R15: ffffffff89364943 > FS: 00007fb8f261d700(0000) GS:ffff8880ae900000(0000) knlGS:0000000000000000 > CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 > CR2: 00000000016a9e60 CR3: 00000000959d9000 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. >