Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp30054155rwd; Wed, 5 Jul 2023 23:37:23 -0700 (PDT) X-Google-Smtp-Source: APBJJlEDtw70dU2kslNbPEnHhFLNeHSW/k2N36Vze4n0vvit6uXlvU45T5JmQVNdqy41rvVoYbAL X-Received: by 2002:a05:6870:b48e:b0:1b0:f38:9102 with SMTP id y14-20020a056870b48e00b001b00f389102mr2050506oap.7.1688625443026; Wed, 05 Jul 2023 23:37:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688625442; cv=none; d=google.com; s=arc-20160816; b=dCYc+CWB0+C+rOGttf9NBBHa8HXxcErvOGry8V4mP7xdu29u2wkyIrEkH+ZTPiJSYl gwycQ2690DstbdACQ/qY/o1ToSLKqNuKz+lFoi0hX9Q8kQcu+SUikGzWqHOFss6YusYF FoLQP0mVZaQTQS4sCCpjl3kwA8byzSAgqTy59D/rjp98BhH8C+La2fEBWfKtqOfXC77U AZNAByeDkXF63M4VUpbWWDH6tAcBC5qhLcVBELkqhsmo1sPJ1TqPSxCyI5QAiQwB9zqK j7ctErAagKy0i13QMjPAqJM0lOZUxAe1VlurXTN28TytsnHFdyelUw+lulZJGWoQ4ss4 h7HQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:from:subject:message-id:in-reply-to:date :mime-version; bh=rQfgqYhN80cocuiZ4CtvhG1o5YWInCsGK0oXglBkVZQ=; fh=BkDURKSCAte6Y/7iDGt6povNpnOEdlJ7qcs1dbtI/1Y=; b=W54W1Go8e7+UP8Ze4/RtHwdfykMREjH/aJuKxBU7R2lOmhAJwO+6cpjkOYHOgvWG0U 654cvN3U8c1T9CMCDWbjF1NWm18yZ/WtyEGI4le7kC8/+1VXvXRb9OL9g8Mc4E2VMarm Sq3FkLIjvv+U9tAK1jMZfbo0Pg4y3ntUcewHshi+g7Yyb53cmAr2RJ5bIIJDYq01scMn mYvDh7csdkecNfsnfYfxEx5b8aT9zS2jSQfGtHrcRzYGgp5+SYg2MWMLC4h4eLfBHMDb wWGaE66cqeQB4SLos1YVURRsHG1a4MwinTZTNaBs9M3FUpXPWLuE82oPpGLAqe02Jnw3 +5Hw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=appspotmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id lw17-20020a17090b181100b00262ebb9dd58si3689726pjb.81.2023.07.05.23.37.04; Wed, 05 Jul 2023 23:37:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-ext4-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; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-ext4-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 S229519AbjGFGdr (ORCPT + 99 others); Thu, 6 Jul 2023 02:33:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51568 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233574AbjGFGdr (ORCPT ); Thu, 6 Jul 2023 02:33:47 -0400 Received: from mail-pf1-f207.google.com (mail-pf1-f207.google.com [209.85.210.207]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 752E610F2 for ; Wed, 5 Jul 2023 23:33:45 -0700 (PDT) Received: by mail-pf1-f207.google.com with SMTP id d2e1a72fcca58-666ec28a20dso523067b3a.2 for ; Wed, 05 Jul 2023 23:33:45 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688625224; x=1691217224; h=to:from:subject:message-id:in-reply-to:date:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=rQfgqYhN80cocuiZ4CtvhG1o5YWInCsGK0oXglBkVZQ=; b=GIIzuZITl5zhPqzmhAHiRfRgmTSRI14b+FUm+gRK4hon2En2dyatYXDCsK5ghmKiVk Cyj7HtOhs/py8H+UKv5WMpzZ4Hb8zv9CK0pVVBAK+2YP7JP4+H5c2GU3sJ5/I5H0aeiD D3TTls3vk8OyBj6Uf7YDNWN621ht1rfZv2pzFHrK5UwZF/MK+isZVqqvceUDE1FpGdch WauQXLtvEBSyaslc6dHPQeaOaSUsjt5Of3ZiNP7VLVJr6EA5okhKdDfy7AkycBZ3QDhu Wc47wko4zG/PBu6FmexdYEz7wQk/UterFnRvKDDJeEFLWfLtE+S/D082+XqadllTkK0+ rf4g== X-Gm-Message-State: ABy/qLYQZFkX4SAH/UfqxCf6dJIo6sQ+Bo4/3423ABsnW46PFr0L/llx Mzlp2oVqbxA7jMPMlbqwXseqfORypveUAeUa43ALkPfVJ6xb MIME-Version: 1.0 X-Received: by 2002:a05:6a00:2d9b:b0:678:e0b1:7f28 with SMTP id fb27-20020a056a002d9b00b00678e0b17f28mr1181998pfb.6.1688625224084; Wed, 05 Jul 2023 23:33:44 -0700 (PDT) Date: Wed, 05 Jul 2023 23:33:43 -0700 In-Reply-To: <0000000000007faf0005fe4f14b9@google.com> X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <000000000000a3f45805ffcbb21f@google.com> Subject: Re: [syzbot] [ext4?] WARNING in ext4_file_write_iter From: syzbot To: adilger.kernel@dilger.ca, linux-ext4@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, syzkaller-bugs@googlegroups.com, tytso@mit.edu Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_00,FROM_LOCAL_HEX, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2, SORTED_RECIPS,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no 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-ext4@vger.kernel.org syzbot has found a reproducer for the following issue on: HEAD commit: 6843306689af Merge tag 'net-6.5-rc1' of git://git.kernel.o.. git tree: net console output: https://syzkaller.appspot.com/x/log.txt?x=114522aca80000 kernel config: https://syzkaller.appspot.com/x/.config?x=7ad417033279f15a dashboard link: https://syzkaller.appspot.com/bug?extid=5050ad0fb47527b1808a compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 syz repro: https://syzkaller.appspot.com/x/repro.syz?x=102cb190a80000 C reproducer: https://syzkaller.appspot.com/x/repro.c?x=17c49d90a80000 Downloadable assets: disk image: https://storage.googleapis.com/syzbot-assets/f6adc10dbd71/disk-68433066.raw.xz vmlinux: https://storage.googleapis.com/syzbot-assets/5c3fa1329201/vmlinux-68433066.xz kernel image: https://storage.googleapis.com/syzbot-assets/84db3452bac5/bzImage-68433066.xz IMPORTANT: if you fix the issue, please add the following tag to the commit: Reported-by: syzbot+5050ad0fb47527b1808a@syzkaller.appspotmail.com ------------[ cut here ]------------ WARNING: CPU: 1 PID: 5382 at fs/ext4/file.c:611 ext4_dio_write_iter fs/ext4/file.c:611 [inline] WARNING: CPU: 1 PID: 5382 at fs/ext4/file.c:611 ext4_file_write_iter+0x1470/0x1880 fs/ext4/file.c:720 Modules linked in: CPU: 1 PID: 5382 Comm: syz-executor288 Not tainted 6.4.0-syzkaller-11989-g6843306689af #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/27/2023 RIP: 0010:ext4_dio_write_iter fs/ext4/file.c:611 [inline] RIP: 0010:ext4_file_write_iter+0x1470/0x1880 fs/ext4/file.c:720 Code: 84 03 00 00 48 8b 04 24 31 ff 8b 40 20 89 c3 89 44 24 10 83 e3 08 89 de e8 5d 5a 5b ff 85 db 0f 85 d5 fc ff ff e8 30 5e 5b ff <0f> 0b e9 c9 fc ff ff e8 24 5e 5b ff 48 8b 4c 24 40 4c 89 fa 4c 89 RSP: 0018:ffffc9000522fc30 EFLAGS: 00010293 RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000 RDX: ffff8880277a3b80 RSI: ffffffff82298140 RDI: 0000000000000005 RBP: 0000000000000001 R08: 0000000000000005 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000001 R12: ffffffff8a832a60 R13: 0000000000000000 R14: 0000000000000000 R15: fffffffffffffff5 FS: 00007f154db95700(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f154db74718 CR3: 000000006bcc7000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: call_write_iter include/linux/fs.h:1871 [inline] new_sync_write fs/read_write.c:491 [inline] vfs_write+0x981/0xda0 fs/read_write.c:584 ksys_write+0x122/0x250 fs/read_write.c:637 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x39/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f154dc094f9 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 e1 15 00 00 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f154db952f8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f154dc924f0 RCX: 00007f154dc094f9 RDX: 0000000000248800 RSI: 0000000020000000 RDI: 0000000000000006 RBP: 00007f154dc5f628 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 652e79726f6d656d R13: 656c6c616b7a7973 R14: 6465646165726874 R15: 00007f154dc924f8 --- If you want syzbot to run the reproducer, reply with: #syz test: git://repo/address.git branch-or-commit-hash If you attach or paste a git patch, syzbot will apply it before testing.