Received: by 2002:ab2:1149:0:b0:1f3:1f8c:d0c6 with SMTP id z9csp1927465lqz; Tue, 2 Apr 2024 01:47:50 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXY5v7NEblfwDjdaTkaKVadfXGS0bzREcC/Rfskwogcq6xfE+rjwn22g9hsZzpMUhCLy2saDTkmnzuDcB0ywf54uELHgd84bMHMifZuSQ== X-Google-Smtp-Source: AGHT+IHzOsOK/aKEM+gzMzJHM7f8qveCowgcxN4DlAfyEW8RXcmz+q1WImg5atA8ckTxtpmNoiSu X-Received: by 2002:a05:6a20:a121:b0:1a3:af38:31de with SMTP id q33-20020a056a20a12100b001a3af3831demr12091825pzk.4.1712047670581; Tue, 02 Apr 2024 01:47:50 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712047670; cv=pass; d=google.com; s=arc-20160816; b=gMKl9MmaSBneEV1lMU3aXTaa6APNM6w1gorSqh20yDQp+4snti3M0nsnRNOSCYWiOl dZHDr3qkAYxVi5QYJPbP5l892Ny4wfrbuOAcf/0UthbcGCV6Ng8cfwWTixGJmGt1T0os xaVQvIr1cRycFyoT6Mr1VNJdX487V0LrhtB6VyNjkVUuv8ubFcTHPsUSXfGsgg0SNWo6 uiUwbKHltJQ6j26lNpE377BYMA8IuZ+x8msRQ0kWL6LMeCPaBU7VxAmWJ2I5mdwsL6JM Wt1/tMOj7UUNfqfYoG/ZALlUq9O6tyT8ZtEPzURZxvdOCrJuOaLGudv8I257zt+w3tta ABVQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=to:from:subject:message-id:date:mime-version:list-unsubscribe :list-subscribe:list-id:precedence; bh=8HQuzIwBpCyt1IFYX7pol1lktCvpmrQQPU05Mw4nyFo=; fh=65XkRyhljLkP9Q81sb2hqrMFRFYLp3cOPyvorgIuSBc=; b=LozKwXEy2pF/c2EYNBseF2k7BY68FLRHIOVV6vCoMTlYDX7x4v/zn3yUSIiaenU1ZF bHAn9oHQ0ZiTt16faFy+nrS6jdm158piiSkeVkdHSjr7+IFK32blLh4lnxrcSoEPrUc/ dQlvgftpUk3b4GwxDod2ymujsKmciM3Xcpap77fvdGkDK6VVkQcmidJNklJyXHp+5+/C qZrqQ7re263Z0TgSSwiTLqOyvzB6WWIXvZQ7PsTPKiMUfTRyRbZ7va8FwgunV6BKx4nf kcx1LQxnhei1pkygNSEq1eTjBv/PZuJNZ2AqVDKJKyO43lsZX+XP5Hzbk7pDW9/wS7QX DcjQ==; 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-127581-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-127581-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=appspotmail.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id j20-20020aa79294000000b006e6c4e74321si10646551pfa.29.2024.04.02.01.47.50 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Apr 2024 01:47:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-127581-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; 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-127581-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-127581-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 26CB4283D75 for ; Tue, 2 Apr 2024 08:47:50 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3718E56444; Tue, 2 Apr 2024 08:47:35 +0000 (UTC) Received: from mail-io1-f72.google.com (mail-io1-f72.google.com [209.85.166.72]) (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 E647B4C601 for ; Tue, 2 Apr 2024 08:47:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.166.72 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712047654; cv=none; b=KHAYbMx3noy6hPtreqFKAKAWk3989vjmcAFfvjwMdpTjsFivZGehazU+PeKWyWzSrYkhmaphebFHCC/hAM84A+I1oaAFF4w05HkPol14K6k9l79iNJokX5mbgijoIk08cFt/cA84ydsxyz7O/PNQRDQm5aWt0rFFNFMCYnmwdYU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712047654; c=relaxed/simple; bh=jEdGEcceCTXdnD5MjNTC9IVy5Ci49c298K9nYlZVnpw=; h=MIME-Version:Date:Message-ID:Subject:From:To:Content-Type; b=HIjWy59oNHpHZ8uNmGHiZdhBJfsTg0tsJiwFShoVtsBonzQpcYyVSIEhXJVXbtuD5Q/6SodXIMhn513jTqvt+r2H4c4CBfCH/hYiK9xEU1tVfq+gJxBOtwablxfAxO861RzK6mPZqLdIbRAsJSRW9JGnT+L4YDCmUvj4Wne3IqU= 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.72 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-f72.google.com with SMTP id ca18e2360f4ac-7cbef888187so498994739f.2 for ; Tue, 02 Apr 2024 01:47:32 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712047652; x=1712652452; h=to:from:subject:message-id:date:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=8HQuzIwBpCyt1IFYX7pol1lktCvpmrQQPU05Mw4nyFo=; b=WgXSrVBWPsrouTkqi1K3q4CQe7m3jDCRVHZeLOZJlgC0mxOimt++rJ0+40ASwOjBJq NTQLcuuOL8MAL1DCuiOlIjzFgJrjaIuOk6DPnIe1OR0uFCmZsjAgdpFbZjMlh/z6fP1X tMEOYaWjQ7oLId5LclaX+jrirmsJalkHtxTwdLAZE7Wa8rtVZIGB0tVgdZwUGqtGr/13 Fe5WogEn8fTpifhQZ6rsbTno8swewz8qrQqwPzXo7WBL9xXQu6rwX8nhYslYeK340Ge8 SjlO651NjApGDmD5dY7M4EKNka2Tc16LLBliCCyZHfnLUXOs8L1ybtRrfyuIcwqmRvct ITeA== X-Forwarded-Encrypted: i=1; AJvYcCXx0ezFDrgh2rfvbSVlxfE05/iYNtEjd1X8BRtdTLZMhvkq5xLsJetju76lONBa2Puk6dq6IToqIHwaLeNOicr2uX6PzfyuF3noNYMM X-Gm-Message-State: AOJu0YwDZHFpVXU2xRBiU6IfV2+HgfdgsJAk+zE+t4hO4FGQQ6f8JWf9 1MKkg++/GpXRmQFkPfTMCHcL5AuZW4DAnvPEOgy+EXO5uFvmga/KZQ/o4LNvjgxtPvd2vT2eND8 hSsbg6A8Na0LkUqcBYjbXtOcwjWQYQeNDlnkUkI4TuZRWFZZFV12CEKw= 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:6638:4094:b0:47e:c495:3a1e with SMTP id m20-20020a056638409400b0047ec4953a1emr884663jam.1.1712047652097; Tue, 02 Apr 2024 01:47:32 -0700 (PDT) Date: Tue, 02 Apr 2024 01:47:32 -0700 X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <0000000000002464bf06151928ef@google.com> Subject: [syzbot] [io-uring?] kernel BUG in put_page From: syzbot To: asml.silence@gmail.com, axboe@kernel.dk, io-uring@vger.kernel.org, linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com Content-Type: text/plain; charset="UTF-8" Hello, syzbot found the following issue on: HEAD commit: c0b832517f62 Add linux-next specific files for 20240402 git tree: linux-next console+strace: https://syzkaller.appspot.com/x/log.txt?x=1737bfb1180000 kernel config: https://syzkaller.appspot.com/x/.config?x=afcaf46d374cec8c dashboard link: https://syzkaller.appspot.com/bug?extid=324f30025b9b5d66fab9 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=17ce85b1180000 C reproducer: https://syzkaller.appspot.com/x/repro.c?x=139fe0c5180000 Downloadable assets: disk image: https://storage.googleapis.com/syzbot-assets/0d36ec76edc7/disk-c0b83251.raw.xz vmlinux: https://storage.googleapis.com/syzbot-assets/6f9bb4e37dd0/vmlinux-c0b83251.xz kernel image: https://storage.googleapis.com/syzbot-assets/2349287b14b7/bzImage-c0b83251.xz IMPORTANT: if you fix the issue, please add the following tag to the commit: Reported-by: syzbot+324f30025b9b5d66fab9@syzkaller.appspotmail.com reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1110 [inline] free_unref_page+0xd3c/0xec0 mm/page_alloc.c:2617 __folio_put_small mm/swap.c:119 [inline] __folio_put+0x22b/0x390 mm/swap.c:142 io_mem_alloc_single io_uring/memmap.c:55 [inline] io_pages_map+0x25a/0x480 io_uring/memmap.c:76 io_allocate_scq_urings+0x3b8/0x640 io_uring/io_uring.c:3432 io_uring_create+0x741/0x12f0 io_uring/io_uring.c:3590 io_uring_setup io_uring/io_uring.c:3702 [inline] __do_sys_io_uring_setup io_uring/io_uring.c:3729 [inline] __se_sys_io_uring_setup+0x2ba/0x330 io_uring/io_uring.c:3723 do_syscall_64+0xfb/0x240 entry_SYSCALL_64_after_hwframe+0x72/0x7a ------------[ cut here ]------------ kernel BUG at include/linux/mm.h:1135! Oops: invalid opcode: 0000 [#1] PREEMPT SMP KASAN PTI CPU: 0 PID: 5084 Comm: syz-executor990 Not tainted 6.9.0-rc2-next-20240402-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024 RIP: 0010:put_page_testzero include/linux/mm.h:1135 [inline] RIP: 0010:folio_put_testzero include/linux/mm.h:1141 [inline] RIP: 0010:folio_put include/linux/mm.h:1508 [inline] RIP: 0010:put_page+0x1b6/0x260 include/linux/mm.h:1581 Code: 00 00 e8 6d 25 61 fd 84 c0 74 6e e8 c4 a6 ed fc e9 3f ff ff ff e8 ba a6 ed fc 4c 89 f7 48 c7 c6 a0 12 1f 8c e8 bb ea 36 fd 90 <0f> 0b e8 a3 a6 ed fc e9 a1 fe ff ff 4c 89 f7 be 08 00 00 00 e8 11 RSP: 0018:ffffc9000353fc30 EFLAGS: 00010246 RAX: bf727e5c3e70b300 RBX: ffffea0000446034 RCX: 0000000000000001 RDX: dffffc0000000000 RSI: ffffffff8bcad5c0 RDI: 0000000000000001 RBP: 0000000000000000 R08: ffffffff8fa934ef R09: 1ffffffff1f5269d R10: dffffc0000000000 R11: fffffbfff1f5269e R12: 1ffff1100c8c9518 R13: ffff888064636000 R14: ffffea0000446000 R15: ffff88806464a8c6 FS: 00005555716a0380(0000) GS:ffff8880b9400000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fe2349d29f0 CR3: 0000000022106000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: io_pages_unmap+0x1c0/0x320 io_uring/memmap.c:108 io_rings_free+0xcf/0x2b0 io_uring/io_uring.c:2619 io_allocate_scq_urings+0x41f/0x640 io_uring/io_uring.c:3437 io_uring_create+0x741/0x12f0 io_uring/io_uring.c:3590 io_uring_setup io_uring/io_uring.c:3702 [inline] __do_sys_io_uring_setup io_uring/io_uring.c:3729 [inline] __se_sys_io_uring_setup+0x2ba/0x330 io_uring/io_uring.c:3723 do_syscall_64+0xfb/0x240 entry_SYSCALL_64_after_hwframe+0x72/0x7a RIP: 0033:0x7fe234a0f9d9 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 61 18 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:00007ffc53bc7168 EFLAGS: 00000246 ORIG_RAX: 00000000000001a9 RAX: ffffffffffffffda RBX: 0000000000000010 RCX: 00007fe234a0f9d9 RDX: 00007fe234a0f9d9 RSI: 0000000020000000 RDI: 0000000000006839 RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00007fe234a59036 R13: 00007ffc53bc71a0 R14: 00007ffc53bc71e0 R15: 0000000000000000 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:put_page_testzero include/linux/mm.h:1135 [inline] RIP: 0010:folio_put_testzero include/linux/mm.h:1141 [inline] RIP: 0010:folio_put include/linux/mm.h:1508 [inline] RIP: 0010:put_page+0x1b6/0x260 include/linux/mm.h:1581 Code: 00 00 e8 6d 25 61 fd 84 c0 74 6e e8 c4 a6 ed fc e9 3f ff ff ff e8 ba a6 ed fc 4c 89 f7 48 c7 c6 a0 12 1f 8c e8 bb ea 36 fd 90 <0f> 0b e8 a3 a6 ed fc e9 a1 fe ff ff 4c 89 f7 be 08 00 00 00 e8 11 RSP: 0018:ffffc9000353fc30 EFLAGS: 00010246 RAX: bf727e5c3e70b300 RBX: ffffea0000446034 RCX: 0000000000000001 RDX: dffffc0000000000 RSI: ffffffff8bcad5c0 RDI: 0000000000000001 RBP: 0000000000000000 R08: ffffffff8fa934ef R09: 1ffffffff1f5269d R10: dffffc0000000000 R11: fffffbfff1f5269e R12: 1ffff1100c8c9518 R13: ffff888064636000 R14: ffffea0000446000 R15: ffff88806464a8c6 FS: 00005555716a0380(0000) GS:ffff8880b9500000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000556f47e67058 CR3: 0000000022106000 CR4: 00000000003506f0 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. 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