From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-il1-f198.google.com (mail-il1-f198.google.com [209.85.166.198]) (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 ADA0A2940F for ; Tue, 8 Oct 2024 18:13:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.166.198 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728411208; cv=none; b=T5I1605GCmKgD59jpAZnuJ2uJurEyOQm35n90xN6mxUnyYUmIQZ2ok/l50qH/rPJQd6cGzXMdwcqkvgU9IVIlPsk441P+Jj8PibRoHq/RITqRPCNUOOpWNFSr7JGIpYuv2etpRdUOM1zIFk0Kfg7jHQRj9bMcNNtCtPO0i24fl4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728411208; c=relaxed/simple; bh=TyKulcS6b2v49mZ5JY37uTPP61Uc7smThSPijgdWXsg=; h=MIME-Version:Date:Message-ID:Subject:From:To:Content-Type; b=KPYjDUQuMHqUYg69SxnvvlgwKkQEHXGnbImJJ6m1oPkCgpwgOZl1jLCjqj7fdbetlrrWMvGHVhM6fRBIh6/RjkCDrBY09aZMIK9mzpyyp51XGtRd1+i9ywLVceEp+Vpop+2AuP/BClLwM/ASk2528UWKoLmREolc6DZhki3LbVs= 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.198 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-il1-f198.google.com with SMTP id e9e14a558f8ab-3a342620f50so51100095ab.3 for ; Tue, 08 Oct 2024 11:13:26 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1728411205; x=1729016005; h=to:from:subject:message-id:date:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=0MQzjSaKVYeWaWQppOOsmsM7r8sTYW/AeftTpIwUERE=; b=jtoBI+78oav7bQV/PafeHajtw3WJbNKYp2N3tJy+0hXFFM5DbSl8RiGAE9VLC6ihtL ikF+E091sJiZPdfkdYsIHD77ctsVEELzNVwS3XWO9yEbaQ8FOUIAe5ngqDS6rnYoUJei JvLMogkUMUPqLQzP9Lkmu8Ld5v6Kx5uMBVXlw7fTqwFCmUCuj9B269OBlE4MklyM5YUv bwI/3Sm3F+93wE8Ei0nD44hGBvqH6DI79LhiJdK8s369Y66rYzJuCz5EgXm/8Sp5tEhH VuTA1Hb9uZRpqs/QAQ45uRqG6spTeDpm+Kq55CbOr94PuyqVwpNydSOP8p7HthGB1gn9 erdA== X-Forwarded-Encrypted: i=1; AJvYcCXXUBMSSRGtoumKeLz1ww4Pg+4YtoXyshjoAlBApT4sjj8IP5wSvLH0D2mBqC5eguquzsRPlgzPZBpJJK4=@vger.kernel.org X-Gm-Message-State: AOJu0YxgtwHBlDAXSXRFaR1Ya/syhYPjKCDXsx54Ep8fpGRTEdI1VEt5 brjhBGI2LHk7HR5Zki/AkYV0WwFfcc/T6YqfwJ5tf06kcvA2U5ynF8NFIjaqY0LXjkf4Mux1j48 v03Twr1AvB5J/uFxugz4FScNYZ2vHUyqSkOgOw/Bd026wZh5mVikGJpM= X-Google-Smtp-Source: AGHT+IFxLxSgUPTvxHIh5CCQCfDXbTcjNoPz+QbB51/spldK7VGtQv3RckB5vJ/2ElHi3zmPWoJZbp56ZJkitgV148ieCAOBrwgI 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:6e02:1d90:b0:3a0:4250:165f with SMTP id e9e14a558f8ab-3a3757d6d99mr161958185ab.0.1728411205645; Tue, 08 Oct 2024 11:13:25 -0700 (PDT) Date: Tue, 08 Oct 2024 11:13:25 -0700 X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <67057645.050a0220.13529.0000.GAE@google.com> Subject: [syzbot] [jfs?] general protection fault in metapage_write_folio From: syzbot To: dave.kleikamp@oracle.com, jfs-discussion@lists.sourceforge.net, linux-kernel@vger.kernel.org, shaggy@kernel.org, syzkaller-bugs@googlegroups.com, willy@infradead.org Content-Type: text/plain; charset="UTF-8" Hello, syzbot found the following issue on: HEAD commit: c02d24a5af66 Add linux-next specific files for 20241003 git tree: linux-next console output: https://syzkaller.appspot.com/x/log.txt?x=1746fd27980000 kernel config: https://syzkaller.appspot.com/x/.config?x=94f9caf16c0af42d dashboard link: https://syzkaller.appspot.com/bug?extid=d7ffeb5538fe5c793f74 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=10c6fd27980000 C reproducer: https://syzkaller.appspot.com/x/repro.c?x=10b87380580000 Downloadable assets: disk image: https://storage.googleapis.com/syzbot-assets/641e642c9432/disk-c02d24a5.raw.xz vmlinux: https://storage.googleapis.com/syzbot-assets/98aaf20c29e0/vmlinux-c02d24a5.xz kernel image: https://storage.googleapis.com/syzbot-assets/c23099f2d86b/bzImage-c02d24a5.xz mounted in repro #1: https://storage.googleapis.com/syzbot-assets/3f7113d64967/mount_0.gz mounted in repro #2: https://storage.googleapis.com/syzbot-assets/fc2de7358212/mount_6.gz mounted in repro #3: https://storage.googleapis.com/syzbot-assets/627888892b4e/mount_11.gz The issue was bisected to: commit 35474d52c6056976e675e9130d755cdb749ded5a Author: Matthew Wilcox (Oracle) Date: Wed Apr 17 17:56:46 2024 +0000 jfs: Convert metapage_writepage to metapage_write_folio bisection log: https://syzkaller.appspot.com/x/bisect.txt?x=155f47d0580000 final oops: https://syzkaller.appspot.com/x/report.txt?x=175f47d0580000 console output: https://syzkaller.appspot.com/x/log.txt?x=135f47d0580000 IMPORTANT: if you fix the issue, please add the following tag to the commit: Reported-by: syzbot+d7ffeb5538fe5c793f74@syzkaller.appspotmail.com Fixes: 35474d52c605 ("jfs: Convert metapage_writepage to metapage_write_folio") loop0: rw=0, sector=120, nr_sectors = 8 limit=0 ERROR: (device loop0): remounting filesystem as read-only syz-executor140: attempt to access beyond end of device loop0: rw=2049, sector=30744, nr_sectors = 8 limit=0 lbmIODone: I/O error in JFS log Oops: general protection fault, probably for non-canonical address 0xdffffc0000000000: 0000 [#1] PREEMPT SMP KASAN PTI KASAN: null-ptr-deref in range [0x0000000000000000-0x0000000000000007] CPU: 0 UID: 0 PID: 5242 Comm: syz-executor140 Not tainted 6.12.0-rc1-next-20241003-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 RIP: 0010:metapage_write_folio+0xb7/0x10e0 fs/jfs/jfs_metapage.c:346 Code: 48 89 d8 48 c1 e8 03 42 80 3c 30 00 74 08 48 89 df e8 6d 3c cf fe 48 8b 1b 48 89 d8 48 c1 e8 03 48 b9 00 00 00 00 00 fc ff df <80> 3c 08 00 74 08 48 89 df e8 4b 3c cf fe 4c 8b 2b 48 8d 84 24 b0 RSP: 0018:ffffc900036172a0 EFLAGS: 00010246 RAX: 0000000000000000 RBX: 0000000000000000 RCX: dffffc0000000000 RDX: 0000000000000000 RSI: ffffc90003617400 RDI: ffffea0000b5ec40 RBP: ffffc900036173b0 R08: ffffea0000b5ec77 R09: 1ffffd400016bd8e R10: dffffc0000000000 R11: fffff9400016bd8f R12: ffffea0000b5ec74 R13: ffffea0000b5ec40 R14: dffffc0000000000 R15: ffffc90003617400 FS: 00007f1541cdd6c0(0000) GS:ffff8880b8600000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000055fe70fb1000 CR3: 000000007aad2000 CR4: 00000000003526f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: metapage_write_one+0x2c7/0x680 fs/jfs/jfs_metapage.c:710 force_metapage+0x10a/0x2b0 fs/jfs/jfs_metapage.c:732 txForce fs/jfs/jfs_txnmgr.c:2215 [inline] txCommit+0x6250/0x6b90 fs/jfs/jfs_txnmgr.c:1315 diNewIAG fs/jfs/jfs_imap.c:2592 [inline] diAllocExt fs/jfs/jfs_imap.c:1905 [inline] diAllocAG+0x17ab/0x1e50 fs/jfs/jfs_imap.c:1669 diAlloc+0x1d2/0x1630 fs/jfs/jfs_imap.c:1590 ialloc+0x8f/0x900 fs/jfs/jfs_inode.c:56 jfs_mkdir+0x1c5/0xba0 fs/jfs/namei.c:225 vfs_mkdir+0x2f9/0x4f0 fs/namei.c:4257 do_mkdirat+0x264/0x3a0 fs/namei.c:4280 __do_sys_mkdirat fs/namei.c:4295 [inline] __se_sys_mkdirat fs/namei.c:4293 [inline] __x64_sys_mkdirat+0x87/0xa0 fs/namei.c:4293 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:0x7f1541d37e49 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 c1 1f 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 b0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f1541cdd168 EFLAGS: 00000246 ORIG_RAX: 0000000000000102 RAX: ffffffffffffffda RBX: 00007f1541dc64a8 RCX: 00007f1541d37e49 RDX: 0000000000000135 RSI: 0000000020000140 RDI: 00000000ffffff9c RBP: 00007f1541dc64a0 R08: 00007f1541cdd6c0 R09: 0000000000000000 R10: 00007f1541cdd6c0 R11: 0000000000000246 R12: 00007f1541dc64ac R13: 000000000000000b R14: 00007ffcfa87d490 R15: 00007ffcfa87d578 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:metapage_write_folio+0xb7/0x10e0 fs/jfs/jfs_metapage.c:346 Code: 48 89 d8 48 c1 e8 03 42 80 3c 30 00 74 08 48 89 df e8 6d 3c cf fe 48 8b 1b 48 89 d8 48 c1 e8 03 48 b9 00 00 00 00 00 fc ff df <80> 3c 08 00 74 08 48 89 df e8 4b 3c cf fe 4c 8b 2b 48 8d 84 24 b0 RSP: 0018:ffffc900036172a0 EFLAGS: 00010246 RAX: 0000000000000000 RBX: 0000000000000000 RCX: dffffc0000000000 RDX: 0000000000000000 RSI: ffffc90003617400 RDI: ffffea0000b5ec40 RBP: ffffc900036173b0 R08: ffffea0000b5ec77 R09: 1ffffd400016bd8e R10: dffffc0000000000 R11: fffff9400016bd8f R12: ffffea0000b5ec74 R13: ffffea0000b5ec40 R14: dffffc0000000000 R15: ffffc90003617400 FS: 00007f1541cdd6c0(0000) GS:ffff8880b8700000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f1541dc3f18 CR3: 000000007aad2000 CR4: 00000000003526f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: 48 89 d8 mov %rbx,%rax 3: 48 c1 e8 03 shr $0x3,%rax 7: 42 80 3c 30 00 cmpb $0x0,(%rax,%r14,1) c: 74 08 je 0x16 e: 48 89 df mov %rbx,%rdi 11: e8 6d 3c cf fe call 0xfecf3c83 16: 48 8b 1b mov (%rbx),%rbx 19: 48 89 d8 mov %rbx,%rax 1c: 48 c1 e8 03 shr $0x3,%rax 20: 48 b9 00 00 00 00 00 movabs $0xdffffc0000000000,%rcx 27: fc ff df * 2a: 80 3c 08 00 cmpb $0x0,(%rax,%rcx,1) <-- trapping instruction 2e: 74 08 je 0x38 30: 48 89 df mov %rbx,%rdi 33: e8 4b 3c cf fe call 0xfecf3c83 38: 4c 8b 2b mov (%rbx),%r13 3b: 48 rex.W 3c: 8d .byte 0x8d 3d: 84 24 b0 test %ah,(%rax,%rsi,4) --- 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. For information about bisection process see: https://goo.gl/tpsmEJ#bisection If the report is already addressed, let syzbot know by replying with: #syz fix: exact-commit-title 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. If you want to overwrite report's subsystems, reply with: #syz set subsystems: new-subsystem (See the list of subsystem names on the web dashboard) If the report is a duplicate of another one, reply with: #syz dup: exact-subject-of-another-report If you want to undo deduplication, reply with: #syz undup