Received: by 2002:ac0:e34a:0:0:0:0:0 with SMTP id g10csp40705imn; Wed, 27 Jul 2022 14:35:15 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sxjafFyV9Y0QVwrfm1mK1HlKxMj4uHQb5xPzJyRNoEnHET5JD15ULUSBAWoSGL6Ori6DVd X-Received: by 2002:a65:6d19:0:b0:41a:625e:7d7a with SMTP id bf25-20020a656d19000000b0041a625e7d7amr19902506pgb.506.1658957715162; Wed, 27 Jul 2022 14:35:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658957715; cv=none; d=google.com; s=arc-20160816; b=kmxyc2zulvkhr3YXFX48qlAFdp5zlbl+coISSYynUtcTrm9RMR33n9Cpy8fBLosZpg nCsY656cznN7R2uzwG0h3xawbVWKg1UqYzphXP/Zb9LQmAV/l0uS1o/t1BazwTlLCbof DYXv6rDBt/Ey2CMKdgVKf0PEkRit6TIa1OBZzpuQ/oSuGNfAUGIACiYC9CYe6VfGHDL0 EKXJFdeh6l6FSfRiWxypZsl8pAcQSII7zpwotfpJvl8hp1RJIo5CegnEwYKpIOcJLPTz UyBqQGqhX9QXHaXYQpDF7xMEVc8E0n7DAkdHhXNyal64DYsu1JMN8JqLK+UzVAzB79OT 3q4w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:mime-version :dkim-signature; bh=+aKQXmn1Jw2CVO587bDpYzipESoFc04t5jWC8SZjgL0=; b=OFCVpI3eAXiS3/MdAIcJuSAbCDsJuGwO1+GPiBoL9VEoQwKIrF+esq4ReoQxxFCgbb NYhQm5KQIr9sde25dsG3EvwsNXAwwpFZ7uhMrH2su7O6uXGa4XoRMgjBon5ucLY4Q4vt BihqTV27tTh0X/Rk18ISJSJK9tDrhu8HfczlHRTGSyK0wyf2iC4v8Grz1WvkhMJEoX0D vKam7I7xe/DIFbZuc2yg0YytJfiAxOAw1LKSl297hjdJGheT5u9LomLBeoLHefAQsdiX zQ/CYxilCJFLajtHUmSalaLjKa2K9TwjlLiceQMCEqFEwP74gnFfRgkih3SF4VRQIL1o /5UQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=KLZatY7w; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x13-20020a170902ec8d00b0016bf943aeafsi13117243plg.28.2022.07.27.14.34.40; Wed, 27 Jul 2022 14:35:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=KLZatY7w; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S237524AbiG0VIf (ORCPT + 99 others); Wed, 27 Jul 2022 17:08:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56220 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235909AbiG0VIT (ORCPT ); Wed, 27 Jul 2022 17:08:19 -0400 Received: from mail-ej1-x635.google.com (mail-ej1-x635.google.com [IPv6:2a00:1450:4864:20::635]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 978FB66109 for ; Wed, 27 Jul 2022 14:06:09 -0700 (PDT) Received: by mail-ej1-x635.google.com with SMTP id oy13so33645837ejb.1 for ; Wed, 27 Jul 2022 14:06:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:from:date:message-id:subject:to:cc; bh=+aKQXmn1Jw2CVO587bDpYzipESoFc04t5jWC8SZjgL0=; b=KLZatY7w0N5sxQzxNpp64/VpLWi/gZ47bhxV/V9cKv4G+jvhuhy+XpJ1j0sOZ3CcWh T/r71gttJh1dYDzQKYE4Stxy2y4kfP2zkitdvRXtTM5uzKYinFoo3vMEU4E78jSIVUjb hq7RbA0QOnx4MFKmdjgv9c/92TanV5aH6ZMh5IWcchBMfZXgFD/NFn5zkQv32rrEe4pj P91RB/N5ysNcWNFmOWcFvJ/6Wl6cZQZxV4w2Zx3LMAfrI3tAeILomtYyYpuS49TLCra1 vvTpW6AwpIeL0GRLHZ5rwfPE3GKisH3hjwF0T84BQCKWlcCVhDPtT+yi4GH7iPAkCxpE 0ajA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:from:date:message-id:subject:to:cc; bh=+aKQXmn1Jw2CVO587bDpYzipESoFc04t5jWC8SZjgL0=; b=KBdA0lpds2gapjCkCaYtZ7cqLjVZicuqJdOfeVGBt+7iWGd9+x4MbK1JjMXOSePJwf RjAlmbKt34Y5n3pu0bww6bSZONUXFOCpTC3xNmf952SrbM93qmUt/bz77f3AIih28ER6 7axNkdqDgXnu8eeLSgqp0isFUcN1RWSSEMGZexJTIeL+5okOBL62UUBJeD6nfD3N0OfB bFO5+4k7wPCQh9HfVgJUSEHGvMIfTz9T5eSFRxmlkhcAnCl16uHxrMTFnSnk/hNcWYJh OACRllkzPbtouAPAV2D5o5xCGkfRrydu2MJYiM9XQU+p4zIrLuSQUtX4hc4vSiDf4cru hTVA== X-Gm-Message-State: AJIora9EQZ4mcbeyDL601RNlkJgOAiXMS3BB+RxCvo0fp2oj+q7OmjmY 2EcVHjNzSzRo7hC87FzvewaoMb+rbWv7rkM5Lr4= X-Received: by 2002:a17:907:97d6:b0:72f:97d9:978d with SMTP id js22-20020a17090797d600b0072f97d9978dmr18535258ejc.684.1658955966280; Wed, 27 Jul 2022 14:06:06 -0700 (PDT) MIME-Version: 1.0 From: Dipanjan Das Date: Wed, 27 Jul 2022 14:05:54 -0700 Message-ID: Subject: INFO: task hung in gfs2_read_super To: rpeterso@redhat.com, agruenba@redhat.com, cluster-devel@redhat.com, linux-kernel@vger.kernel.org Cc: syzkaller@googlegroups.com, fleischermarius@googlemail.com, its.priyanka.bose@gmail.com Content-Type: multipart/mixed; boundary="00000000000011a1c705e4cfc9e1" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --00000000000011a1c705e4cfc9e1 Content-Type: text/plain; charset="UTF-8" Hi, We would like to report the following bug which has been found by our modified version of syzkaller. ====================================================== description: INFO: task hung in gfs2_read_super affected file: fs/gfs2/ops_fstype.c kernel version: 5.10.131 kernel commit: 8f95261a006489c828f1d909355669875649668b git tree: upstream kernel config: https://syzkaller.appspot.com/x/.config?x=e49433cfed49b7d9 crash reproducer: attached ====================================================== Crash log: ====================================================== INFO: task syz-executor.5:11140 blocked for more than 143 seconds. Tainted: G OE 5.10.131+ #3 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.5 state:D stack:27224 pid:11140 ppid: 7772 flags:0x00004004 Call Trace: context_switch kernel/sched/core.c:3792 [inline] __schedule+0x8ef/0x20c0 kernel/sched/core.c:4541 schedule+0xcf/0x270 kernel/sched/core.c:4619 io_schedule+0x17/0x70 kernel/sched/core.c:6292 wait_on_page_bit_common+0x333/0xf10 mm/filemap.c:1277 wait_on_page_locked include/linux/pagemap.h:674 [inline] gfs2_read_super+0xd28/0x1250 fs/gfs2/ops_fstype.c:266 init_names fs/gfs2/ops_fstype.c:371 [inline] gfs2_fill_super+0x14f2/0x2750 fs/gfs2/ops_fstype.c:1166 get_tree_bdev+0x421/0x740 fs/super.c:1344 gfs2_get_tree+0x4a/0x270 fs/gfs2/ops_fstype.c:1298 vfs_get_tree+0x89/0x2f0 fs/super.c:1549 do_new_mount fs/namespace.c:2899 [inline] path_mount+0x11c6/0x1b70 fs/namespace.c:3229 do_mount+0xf3/0x110 fs/namespace.c:3242 __do_sys_mount fs/namespace.c:3450 [inline] __se_sys_mount fs/namespace.c:3427 [inline] __x64_sys_mount+0x18f/0x230 fs/namespace.c:3427 do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x44/0xa9 RIP: 0033:0x7fdd892684ed RSP: 002b:00007fdd87218be8 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 00007fdd89386f60 RCX: 00007fdd892684ed RDX: 0000000020000180 RSI: 0000000020000140 RDI: 0000000020000040 RBP: 00007fdd892d42e1 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffc29abc18f R14: 00007fdd89386f60 R15: 00007fdd87218d80 INFO: task syz-executor.7:11142 blocked for more than 143 seconds. Tainted: G OE 5.10.131+ #3 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.7 state:D stack:26472 pid:11142 ppid: 7769 flags:0x00004004 Call Trace: context_switch kernel/sched/core.c:3792 [inline] __schedule+0x8ef/0x20c0 kernel/sched/core.c:4541 schedule+0xcf/0x270 kernel/sched/core.c:4619 rwsem_down_read_slowpath+0x4be/0xfa0 kernel/locking/rwsem.c:1099 __down_read kernel/locking/rwsem.c:1341 [inline] down_read+0x1e7/0x430 kernel/locking/rwsem.c:1506 iterate_supers+0xdb/0x290 fs/super.c:692 ksys_sync+0x86/0x150 fs/sync.c:114 __do_sys_sync+0xa/0x10 fs/sync.c:125 do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x44/0xa9 RIP: 0033:0x7fba021af4ed RSP: 002b:00007fba0015fbe8 EFLAGS: 00000246 ORIG_RAX: 00000000000000a2 RAX: ffffffffffffffda RBX: 00007fba022cdf60 RCX: 00007fba021af4ed RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: 00007fba0221b2e1 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffe2a11fc2f R14: 00007fba022cdf60 R15: 00007fba0015fd80 INFO: task syz-executor.7:11156 blocked for more than 143 seconds. Tainted: G OE 5.10.131+ #3 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.7 state:D stack:28616 pid:11156 ppid: 7769 flags:0x00004004 Call Trace: context_switch kernel/sched/core.c:3792 [inline] __schedule+0x8ef/0x20c0 kernel/sched/core.c:4541 schedule+0xcf/0x270 kernel/sched/core.c:4619 rwsem_down_read_slowpath+0x4be/0xfa0 kernel/locking/rwsem.c:1099 __down_read kernel/locking/rwsem.c:1341 [inline] down_read+0x1e7/0x430 kernel/locking/rwsem.c:1506 iterate_supers+0xdb/0x290 fs/super.c:692 ksys_sync+0x86/0x150 fs/sync.c:114 __do_sys_sync+0xa/0x10 fs/sync.c:125 do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x44/0xa9 RIP: 0033:0x7fba021af4ed RSP: 002b:00007fba0013ebe8 EFLAGS: 00000246 ORIG_RAX: 00000000000000a2 RAX: ffffffffffffffda RBX: 00007fba022ce040 RCX: 00007fba021af4ed RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: 00007fba0221b2e1 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffe2a11fc2f R14: 00007fba022ce040 R15: 00007fba0013ed80 INFO: task syz-executor.7:11157 blocked for more than 143 seconds. Tainted: G OE 5.10.131+ #3 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.7 state:D stack:29384 pid:11157 ppid: 7769 flags:0x00004004 Call Trace: context_switch kernel/sched/core.c:3792 [inline] __schedule+0x8ef/0x20c0 kernel/sched/core.c:4541 schedule+0xcf/0x270 kernel/sched/core.c:4619 rwsem_down_read_slowpath+0x4be/0xfa0 kernel/locking/rwsem.c:1099 __down_read kernel/locking/rwsem.c:1341 [inline] down_read+0x1e7/0x430 kernel/locking/rwsem.c:1506 iterate_supers+0xdb/0x290 fs/super.c:692 ksys_sync+0x86/0x150 fs/sync.c:114 __do_sys_sync+0xa/0x10 fs/sync.c:125 do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x44/0xa9 RIP: 0033:0x7fba021af4ed RSP: 002b:00007fba0011dbe8 EFLAGS: 00000246 ORIG_RAX: 00000000000000a2 RAX: ffffffffffffffda RBX: 00007fba022ce120 RCX: 00007fba021af4ed RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: 00007fba0221b2e1 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffe2a11fc2f R14: 00007fba022ce120 R15: 00007fba0011dd80 INFO: task syz-executor.7:11158 blocked for more than 143 seconds. Tainted: G OE 5.10.131+ #3 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.7 state:D stack:29384 pid:11158 ppid: 7769 flags:0x00004004 Call Trace: context_switch kernel/sched/core.c:3792 [inline] __schedule+0x8ef/0x20c0 kernel/sched/core.c:4541 schedule+0xcf/0x270 kernel/sched/core.c:4619 rwsem_down_read_slowpath+0x4be/0xfa0 kernel/locking/rwsem.c:1099 __down_read kernel/locking/rwsem.c:1341 [inline] down_read+0x1e7/0x430 kernel/locking/rwsem.c:1506 iterate_supers+0xdb/0x290 fs/super.c:692 ksys_sync+0x86/0x150 fs/sync.c:114 __do_sys_sync+0xa/0x10 fs/sync.c:125 do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x44/0xa9 RIP: 0033:0x7fba021af4ed RSP: 002b:00007fba000fcbe8 EFLAGS: 00000246 ORIG_RAX: 00000000000000a2 RAX: ffffffffffffffda RBX: 00007fba022ce200 RCX: 00007fba021af4ed RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: 00007fba0221b2e1 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffe2a11fc2f R14: 00007fba022ce200 R15: 00007fba000fcd80 INFO: task syz-executor.7:11159 blocked for more than 143 seconds. Tainted: G OE 5.10.131+ #3 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.7 state:D stack:29384 pid:11159 ppid: 7769 flags:0x00004004 Call Trace: context_switch kernel/sched/core.c:3792 [inline] __schedule+0x8ef/0x20c0 kernel/sched/core.c:4541 schedule+0xcf/0x270 kernel/sched/core.c:4619 rwsem_down_read_slowpath+0x4be/0xfa0 kernel/locking/rwsem.c:1099 __down_read kernel/locking/rwsem.c:1341 [inline] down_read+0x1e7/0x430 kernel/locking/rwsem.c:1506 iterate_supers+0xdb/0x290 fs/super.c:692 ksys_sync+0x86/0x150 fs/sync.c:114 __do_sys_sync+0xa/0x10 fs/sync.c:125 do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x44/0xa9 RIP: 0033:0x7fba021af4ed RSP: 002b:00007fba000dbbe8 EFLAGS: 00000246 ORIG_RAX: 00000000000000a2 RAX: ffffffffffffffda RBX: 00007fba022ce2e0 RCX: 00007fba021af4ed RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: 00007fba0221b2e1 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffe2a11fc2f R14: 00007fba022ce2e0 R15: 00007fba000dbd80 INFO: task syz-executor.7:11160 blocked for more than 143 seconds. Tainted: G OE 5.10.131+ #3 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.7 state:D stack:29384 pid:11160 ppid: 7769 flags:0x00004004 Call Trace: context_switch kernel/sched/core.c:3792 [inline] __schedule+0x8ef/0x20c0 kernel/sched/core.c:4541 schedule+0xcf/0x270 kernel/sched/core.c:4619 rwsem_down_read_slowpath+0x4be/0xfa0 kernel/locking/rwsem.c:1099 __down_read kernel/locking/rwsem.c:1341 [inline] down_read+0x1e7/0x430 kernel/locking/rwsem.c:1506 iterate_supers+0xdb/0x290 fs/super.c:692 ksys_sync+0x86/0x150 fs/sync.c:114 __do_sys_sync+0xa/0x10 fs/sync.c:125 do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x44/0xa9 RIP: 0033:0x7fba021af4ed RSP: 002b:00007fba000babe8 EFLAGS: 00000246 ORIG_RAX: 00000000000000a2 RAX: ffffffffffffffda RBX: 00007fba022ce3c0 RCX: 00007fba021af4ed RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: 00007fba0221b2e1 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffe2a11fc2f R14: 00007fba022ce3c0 R15: 00007fba000bad80 Showing all locks held in the system: 1 lock held by khungtaskd/1658: #0: ffffffff8b336d60 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x53/0x260 kernel/locking/lockdep.c:6389 1 lock held by in:imklog/7747: #0: ffff88810f7745f0 (&f->f_pos_lock){+.+.}-{3:3}, at: __fdget_pos+0xe9/0x100 fs/file.c:1003 1 lock held by syz-executor.5/11140: #0: ffff888111f9c0e0 (&type->s_umount_key#48/1){+.+.}-{3:3}, at: alloc_super+0x194/0xa40 fs/super.c:229 1 lock held by syz-executor.7/11142: #0: ffff888111f9c0e0 (&type->s_umount_key#65){.+.+}-{3:3}, at: iterate_supers+0xdb/0x290 fs/super.c:692 1 lock held by syz-executor.7/11156: #0: ffff888111f9c0e0 (&type->s_umount_key#65){.+.+}-{3:3}, at: iterate_supers+0xdb/0x290 fs/super.c:692 1 lock held by syz-executor.7/11157: #0: ffff888111f9c0e0 (&type->s_umount_key#65){.+.+}-{3:3}, at: iterate_supers+0xdb/0x290 fs/super.c:692 1 lock held by syz-executor.7/11158: #0: ffff888111f9c0e0 (&type->s_umount_key#65){.+.+}-{3:3}, at: iterate_supers+0xdb/0x290 fs/super.c:692 1 lock held by syz-executor.7/11159: #0: ffff888111f9c0e0 (&type->s_umount_key#65){.+.+}-{3:3}, at: iterate_supers+0xdb/0x290 fs/super.c:692 1 lock held by syz-executor.7/11160: #0: ffff888111f9c0e0 (&type->s_umount_key#65){.+.+}-{3:3}, at: iterate_supers+0xdb/0x290 fs/super.c:692 -- Thanks and Regards, Dipanjan --00000000000011a1c705e4cfc9e1 Content-Type: text/x-csrc; charset="US-ASCII"; name="repro.c" Content-Disposition: attachment; filename="repro.c" Content-Transfer-Encoding: base64 Content-ID: X-Attachment-Id: f_l643h3u40 Ly8gYXV0b2dlbmVyYXRlZCBieSBzeXprYWxsZXIgKGh0dHBzOi8vZ2l0aHViLmNvbS9nb29nbGUv c3l6a2FsbGVyKQoKI2RlZmluZSBfR05VX1NPVVJDRSAKCiNpbmNsdWRlIDxkaXJlbnQuaD4KI2lu Y2x1ZGUgPGVuZGlhbi5oPgojaW5jbHVkZSA8ZXJybm8uaD4KI2luY2x1ZGUgPGZjbnRsLmg+CiNp bmNsdWRlIDxzaWduYWwuaD4KI2luY2x1ZGUgPHN0ZGFyZy5oPgojaW5jbHVkZSA8c3RkYm9vbC5o Pgoja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oX19OUl9ta2RpciwgMHgyMDAwMDAwMHVsLCAwdWwpOwptZW1jcHko KHZvaWQqKTB4MjAwMDAwNDAsICIvZGV2L25iZCIsIDgpOwoqKHVpbnQ4X3QqKTB4MjAwMDAwNDgg PSAweDMwOwoqKHVpbnQ4X3QqKTB4MjAwMDAwNDkgPSAwOwptZW1jcHkoKHZvaWQqKTB4MjAwMDAx NDAsICIuL2ZpbGUwXDAwMCIsIDgpOwptZW1jcHkoKHZvaWQqKTB4MjAwMDAxODAsICJnZnMyXDAw MCIsIDUpOwoJc3lzY2FsbChfX05SX21vdW50LCAweDIwMDAwMDQwdWwsIDB4MjAwMDAxNDB1bCwg MHgyMDAwMDE4MHVsLCAwdWwsIDB1bCk7Cgp9CmludCBtYWluKHZvaWQpCnsKCQlzeXNjYWxsKF9f TlJfbW1hcCwgMHgxZmZmZjAwMHVsLCAweDEwMDB1bCwgMHVsLCAweDMydWwsIC0xLCAwdWwpOwoJ c3lzY2FsbChfX05SX21tYXAsIDB4MjAwMDAwMDB1bCwgMHgxMDAwMDAwdWwsIDd1bCwgMHgzMnVs LCAtMSwgMHVsKTsKCXN5c2NhbGwoX19OUl9tbWFwLCAweDIxMDAwMDAwdWwsIDB4MTAwMHVsLCAw dWwsIDB4MzJ1bCwgLTEsIDB1bCk7CgkJCWxvb3AoKTsKCXJldHVybiAwOwp9Cg== --00000000000011a1c705e4cfc9e1 Content-Type: application/octet-stream; name="repro.syz" Content-Disposition: attachment; filename="repro.syz" Content-Transfer-Encoding: base64 Content-ID: X-Attachment-Id: f_l643h3um1 cjAgPSBzeXpfb3Blbl9kZXYkbmRiKCYoMHg3ZjAwMDAwMDAyYzApLCAweDAsIDB4MCkKc29ja2V0 cGFpcigweDFlLCAweDUsIDB4MCwgJigweDdmMDAwMDAwMWM4MCk9ezxyMT0+MHhmZmZmZmZmZmZm ZmZmZmZmfSkKaW9jdGwkTkJEX1NFVF9TT0NLKHIwLCAweGFiMDAsIHIxKQpta2RpcigmKDB4N2Yw MDAwMDAwMDAwKT0nLi9maWxlMFx4MDAnLCAweDApCm1vdW50KCYoMHg3ZjAwMDAwMDAwNDApPUBu YmQ9eycvZGV2L25iZCcsIDB4MH0sICYoMHg3ZjAwMDAwMDAxNDApPScuL2ZpbGUwXHgwMCcsICYo MHg3ZjAwMDAwMDAxODApPSdnZnMyXHgwMCcsIDB4MCwgMHgwKQo= --00000000000011a1c705e4cfc9e1--