Received: by 2002:a05:6500:2018:b0:1fb:9675:f89d with SMTP id t24csp983662lqh; Sat, 1 Jun 2024 04:50:42 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVP/C6lKVJBDbrs2Y5ssLQepuNljNXcnDF5n9QcQA6UuJUbuwOCQcUZwPajlP6GcaD8ek4FLPQM0Fdm29aO0eojfOlMXJAQWQDHLs8Ssg== X-Google-Smtp-Source: AGHT+IFteYULYRiRyg0CaJevqfcV0O/6ZP/r6eo0noW+0nuHU52IrQL+NmTtDzGSmMCfL8nluLbg X-Received: by 2002:a05:651c:61f:b0:2ea:8201:4a10 with SMTP id 38308e7fff4ca-2ea951de6b0mr31436571fa.42.1717242642162; Sat, 01 Jun 2024 04:50:42 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717242642; cv=pass; d=google.com; s=arc-20160816; b=SFMBUAhW3eDD51hwZ5aZ379XSvOYG25KhvM1LxeNC7K9PpSofYsEqRa2FafMj6ecIm NHOWhfcLP7UsKekAFL3/cNd1b31ILDPoQ8ByQ2HEsnPktxQr+7Lu17LqnCg/mIgEcYYc xHFLhIPye5mvQZTQDEx5AH0crNBHSbA8hTTnx/dCEjlKoz+vjOzrl1Mxed9CfCQ/PpBc YUuSgMcBnGuj1YuG+Gn60hXDfx0FsLwDHMe+no1kuhPF7KiasTF9X+fnHpfPmcgoql3N 1vSaTMSDgkIW1+jCOpSF08S4218LROkFNI4r3FbIlrBSaSz8M0syujlE0z2KvfsyTV13 HlEg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=to:from:subject:message-id:in-reply-to:date:mime-version :list-unsubscribe:list-subscribe:list-id:precedence; bh=1nhwM4GXqjdtOIKde8twxoOQTnsBpiNgrRNHNeDdmjk=; fh=Dd4i3CcUXYEGrvuiQORdPwM0ujo9oNxylc+YuXBWSqM=; b=trTrqlEUgv+f1STzfJb4/FK7JWHxccvKgjAeMrPLl38oT4sUF9JZXNsRAFjj6gCemS G0dqDiu6AS3mouzW5cP58EM0sNcWjPGTgwQtvgBo5gsS2CTt58HJHEFb+Jh69f5AJAwC o8KSyyb9qYjXiI2TpODtv6B0ltWXc0orhlDHXIxM0GcQyxg/oBNS85c4QoazcPUxgfP/ MhOuodkUuIthvMaCypKyGt2kciXIRkbdLrDn83s41bL40XLRwvGTVECj4OPBOSPrACav WoDYdd+B3E1JSWF/MPRx1kLzgUzpzQJ1779cEG1afCbNOiBwI+9BT+BP/Rw1rw8tk7CI XRWQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=m3kw2wvrgufz5godrsrytgd7.apphosting.bounces.google.com); spf=pass (google.com: domain of linux-kernel+bounces-197815-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-197815-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=appspotmail.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id a640c23a62f3a-a68c8dc3c22si21476466b.383.2024.06.01.04.50.42 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 01 Jun 2024 04:50:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-197815-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=m3kw2wvrgufz5godrsrytgd7.apphosting.bounces.google.com); spf=pass (google.com: domain of linux-kernel+bounces-197815-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-197815-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=appspotmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id A8E421F21DFE for ; Sat, 1 Jun 2024 11:50:41 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 79E1A1E4B0; Sat, 1 Jun 2024 11:50:30 +0000 (UTC) Received: from mail-io1-f80.google.com (mail-io1-f80.google.com [209.85.166.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 768B62F873 for ; Sat, 1 Jun 2024 11:50:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.166.80 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717242629; cv=none; b=QjGmoVrznkRtOMsW7WJeRB4RlX/U+QmZi74AFpzQ+kigBwcdDx02PetbTtBQb+l7S/BGSKgJXESfhmipiVKcaqFL/CcgpWyELkVI3uGU05mNhs+g+pmc+RgUbyNjsqc4RZCk4xbbXctXu88lLT2xtiP8kI0T1ffexPjncv8odzY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717242629; c=relaxed/simple; bh=sz/Pny8FM86qTgj8n/lge9wgc8vp99x0ePnz29Ftf70=; h=MIME-Version:Date:In-Reply-To:Message-ID:Subject:From:To: Content-Type; b=aRnPzmh0xU9mAqM/10/vb/d5FjDeNio1/mrrBC0vEIzPBgC1yr+I/7MgN38E2cBC7KvLRaZEMMaXGdNibJIvyHqys6jTvfkENDaRryBrlMl7HOniW5zfpUBKAkGMp3v/DZEZuAA59qSsEOdqVYlDCLcvpapWNJPdQaYgcG3Q9b8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=syzkaller.appspotmail.com; spf=pass smtp.mailfrom=M3KW2WVRGUFZ5GODRSRYTGD7.apphosting.bounces.google.com; arc=none smtp.client-ip=209.85.166.80 Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=syzkaller.appspotmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=M3KW2WVRGUFZ5GODRSRYTGD7.apphosting.bounces.google.com Received: by mail-io1-f80.google.com with SMTP id ca18e2360f4ac-7ea8fc6bd4dso350369239f.1 for ; Sat, 01 Jun 2024 04:50:28 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717242627; x=1717847427; 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=1nhwM4GXqjdtOIKde8twxoOQTnsBpiNgrRNHNeDdmjk=; b=YC4G86fKgvbV0JNdRBooffIpzYLH7qUV7TIL0b8GhsD3UPuCYBYh+EXmxty2xj3FDW ZAO/sAr8TUD3YfdGxC1nLSIGHQx6J3wrJrnVnCPVoz7vsAsr3YQVtBphQUIfMQhtMkoN 3A0hQjokQyx8j5G43zdx+C/HuL0+2h1boxXpWjGaj3XWxvC3gDPsHx9ZpAW05VB3KHTh rk6CHpuJWD0mU0kwUxDEA4xe3HR5QOHQIZEGY9Bw4Qcbw06V0odPwc3XFw3LRFH8fIr+ kThUHHiw32j9EzHA71g8Xb17rrPj1aM4WlyEXflTNrs28X+huQ5c9seI2t891xWFjH0s ikeA== X-Forwarded-Encrypted: i=1; AJvYcCVJ419DcCGcwx1Y3hdCYqfBoWvM1w7xs17KeNGx0IbFQogbITSszgHroT0BQ56MRKHJ9TbP1FhZL4Dxxil0+XRCS/s9a4kbVEYMxD7N X-Gm-Message-State: AOJu0Yxf6v4u1wBfftfb6WsNwHrX8YLU+2JqE7vTRIBsAC/9YEtYENah XA93Av5xxta4+rUQ9E0s07enawAlypLtIhigaZ7eNHxIyA+j3RwWNvTz/ako3QlNIcyK21Fwal8 +Fe6ca/o6UnqBpo0NKB+sImNxq3QsAQz+x63FpIr9PQ+k1Ec4Qbw8oOQ= Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Received: by 2002:a05:6602:168c:b0:7e2:30a3:bd13 with SMTP id ca18e2360f4ac-7eafff67c45mr33191739f.4.1717242627670; Sat, 01 Jun 2024 04:50:27 -0700 (PDT) Date: Sat, 01 Jun 2024 04:50:27 -0700 In-Reply-To: <000000000000d103ce06174d7ec3@google.com> X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <000000000000d0d5e20619d2b486@google.com> Subject: Re: [syzbot] [f2fs?] kernel BUG in f2fs_write_inline_data From: syzbot To: chao@kernel.org, jaegeuk@kernel.org, linux-f2fs-devel@lists.sourceforge.net, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com Content-Type: text/plain; charset="UTF-8" syzbot has found a reproducer for the following issue on: HEAD commit: 0e1980c40b6e Add linux-next specific files for 20240531 git tree: linux-next console+strace: https://syzkaller.appspot.com/x/log.txt?x=146c33d6980000 kernel config: https://syzkaller.appspot.com/x/.config?x=d9c3ca4e54577b88 dashboard link: https://syzkaller.appspot.com/bug?extid=848062ba19c8782ca5c8 compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 syz repro: https://syzkaller.appspot.com/x/repro.syz?x=14a9aabc980000 C reproducer: https://syzkaller.appspot.com/x/repro.c?x=14d86426980000 Downloadable assets: disk image: https://storage.googleapis.com/syzbot-assets/44fb1d8b5978/disk-0e1980c4.raw.xz vmlinux: https://storage.googleapis.com/syzbot-assets/a66ce5caf0b2/vmlinux-0e1980c4.xz kernel image: https://storage.googleapis.com/syzbot-assets/8992fc8fe046/bzImage-0e1980c4.xz mounted in repro: https://storage.googleapis.com/syzbot-assets/72a0fa392581/mount_0.gz IMPORTANT: if you fix the issue, please add the following tag to the commit: Reported-by: syzbot+848062ba19c8782ca5c8@syzkaller.appspotmail.com F2FS-fs (loop0): Try to recover 1th superblock, ret: 0 F2FS-fs (loop0): Mounted with checkpoint version = 48b305e5 ------------[ cut here ]------------ kernel BUG at fs/f2fs/inline.c:258! Oops: invalid opcode: 0000 [#1] PREEMPT SMP KASAN PTI CPU: 1 PID: 5090 Comm: syz-executor430 Not tainted 6.10.0-rc1-next-20240531-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/02/2024 RIP: 0010:f2fs_write_inline_data+0x781/0x790 fs/f2fs/inline.c:258 Code: ff ff 89 d9 80 e1 07 80 c1 03 38 c1 0f 8c e3 fc ff ff 48 89 df e8 ff a4 09 fe e9 d6 fc ff ff e8 25 22 9a 07 e8 a0 b7 a3 fd 90 <0f> 0b e8 98 b7 a3 fd 90 0f 0b 0f 1f 44 00 00 90 90 90 90 90 90 90 RSP: 0018:ffffc9000343eb00 EFLAGS: 00010293 RAX: ffffffff83f2c450 RBX: 0000000000000001 RCX: ffff88807f750000 RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000000 RBP: ffffc9000343ec30 R08: ffffffff83f2bf15 R09: 1ffff1100f0ed1ad R10: dffffc0000000000 R11: ffffed100f0ed1ae R12: ffffc9000343eb88 R13: 1ffff1100f0ed1ad R14: ffffc9000343eb80 R15: ffffc9000343eb90 FS: 000055557674e380(0000) GS:ffff8880b9500000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000020002000 CR3: 000000001fb2e000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: f2fs_write_single_data_page+0xbb6/0x1e90 fs/f2fs/data.c:2858 f2fs_write_cache_pages fs/f2fs/data.c:3157 [inline] __f2fs_write_data_pages fs/f2fs/data.c:3312 [inline] f2fs_write_data_pages+0x1efe/0x3a90 fs/f2fs/data.c:3339 do_writepages+0x35d/0x870 mm/page-writeback.c:2657 filemap_fdatawrite_wbc+0x125/0x180 mm/filemap.c:397 __filemap_fdatawrite_range mm/filemap.c:430 [inline] file_write_and_wait_range+0x1aa/0x290 mm/filemap.c:788 f2fs_do_sync_file+0x68a/0x1b10 fs/f2fs/file.c:276 generic_write_sync include/linux/fs.h:2810 [inline] f2fs_file_write_iter+0x7bd/0x24e0 fs/f2fs/file.c:4935 new_sync_write fs/read_write.c:497 [inline] vfs_write+0xa72/0xc90 fs/read_write.c:590 ksys_write+0x1a0/0x2c0 fs/read_write.c:643 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fd453a5f779 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 61 17 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:00007ffc94e03488 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007ffc94e03658 RCX: 00007fd453a5f779 RDX: 0000000000002000 RSI: 0000000020000040 RDI: 0000000000000006 RBP: 00007fd453ad8610 R08: 00007ffc94e03658 R09: 00007ffc94e03658 R10: 00007ffc94e03658 R11: 0000000000000246 R12: 0000000000000001 R13: 00007ffc94e03648 R14: 0000000000000001 R15: 0000000000000001 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:f2fs_write_inline_data+0x781/0x790 fs/f2fs/inline.c:258 Code: ff ff 89 d9 80 e1 07 80 c1 03 38 c1 0f 8c e3 fc ff ff 48 89 df e8 ff a4 09 fe e9 d6 fc ff ff e8 25 22 9a 07 e8 a0 b7 a3 fd 90 <0f> 0b e8 98 b7 a3 fd 90 0f 0b 0f 1f 44 00 00 90 90 90 90 90 90 90 RSP: 0018:ffffc9000343eb00 EFLAGS: 00010293 RAX: ffffffff83f2c450 RBX: 0000000000000001 RCX: ffff88807f750000 RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000000 RBP: ffffc9000343ec30 R08: ffffffff83f2bf15 R09: 1ffff1100f0ed1ad R10: dffffc0000000000 R11: ffffed100f0ed1ae R12: ffffc9000343eb88 R13: 1ffff1100f0ed1ad R14: ffffc9000343eb80 R15: ffffc9000343eb90 FS: 000055557674e380(0000) GS:ffff8880b9400000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000056082271e438 CR3: 000000001fb2e000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 --- 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.