From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id E7213C021B2 for ; Tue, 25 Feb 2025 08:10:27 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 83B7F6B0085; Tue, 25 Feb 2025 03:10:27 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 776A06B0088; Tue, 25 Feb 2025 03:10:27 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 616FD6B0089; Tue, 25 Feb 2025 03:10:27 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0014.hostedemail.com [216.40.44.14]) by kanga.kvack.org (Postfix) with ESMTP id 3C8ED6B0085 for ; Tue, 25 Feb 2025 03:10:27 -0500 (EST) Received: from smtpin08.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay03.hostedemail.com (Postfix) with ESMTP id C06FAA2DA6 for ; Tue, 25 Feb 2025 08:10:26 +0000 (UTC) X-FDA: 83157744852.08.1399BB1 Received: from mail-io1-f78.google.com (mail-io1-f78.google.com [209.85.166.78]) by imf14.hostedemail.com (Postfix) with ESMTP id 10C38100006 for ; Tue, 25 Feb 2025 08:10:24 +0000 (UTC) Authentication-Results: imf14.hostedemail.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=appspotmail.com (policy=none); spf=pass (imf14.hostedemail.com: domain of 38Hq9ZwkbACEPVWH7IIBO7MMFA.DLLDIBRPBO9LKQBKQ.9LJ@M3KW2WVRGUFZ5GODRSRYTGD7.apphosting.bounces.google.com designates 209.85.166.78 as permitted sender) smtp.mailfrom=38Hq9ZwkbACEPVWH7IIBO7MMFA.DLLDIBRPBO9LKQBKQ.9LJ@M3KW2WVRGUFZ5GODRSRYTGD7.apphosting.bounces.google.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1740471025; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:content-transfer-encoding:in-reply-to: references; bh=oAPT8sSyB+EAkcL0UXOlyTDITtKzKp59XJne9PMGRng=; b=ewizJemTacV1B35h/6b54LgpQMjJqR3xToVVuG6lrtVbJ1nI2x4wm4OJ2RCQAM53jFpROZ 3Q1+WvSxOPZv4yqPFZuaGmTMnyfr2IZXAX0ZGk/x8UaeFGGATI5qRarjzqyagBLzjyEppY 2+Wim7djYjEWiBoFhyg7YI3qQfIwZuE= ARC-Authentication-Results: i=1; imf14.hostedemail.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=appspotmail.com (policy=none); spf=pass (imf14.hostedemail.com: domain of 38Hq9ZwkbACEPVWH7IIBO7MMFA.DLLDIBRPBO9LKQBKQ.9LJ@M3KW2WVRGUFZ5GODRSRYTGD7.apphosting.bounces.google.com designates 209.85.166.78 as permitted sender) smtp.mailfrom=38Hq9ZwkbACEPVWH7IIBO7MMFA.DLLDIBRPBO9LKQBKQ.9LJ@M3KW2WVRGUFZ5GODRSRYTGD7.apphosting.bounces.google.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1740471025; a=rsa-sha256; cv=none; b=2r9q+8Bf9L11/2xGl7dcajPzopXaXlt2xyVB63sn66pa3iWOth7E1RgSxzngtJpGXL+AOk cBu7sZ2X2N+RKkf2+P8iNA3Nns8gUfoeLw42R0UC3xP4gUCcllEqk6iDh8MZSw3hTRNkex Rha3qnvlRXNPGKXrZs7KJiZqpIm5e3o= Received: by mail-io1-f78.google.com with SMTP id ca18e2360f4ac-855a06ec07cso442552539f.0 for ; Tue, 25 Feb 2025 00:10:24 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1740471024; x=1741075824; h=to:from:subject:message-id:date:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=oAPT8sSyB+EAkcL0UXOlyTDITtKzKp59XJne9PMGRng=; b=UwM+nsJsgXL5YahhVujvy/EnxI83hFRTNZqv1enxQDLg1LwAs1hPeOwcqeDHA6UyUL Pgw4qJV1vzmoiibdI014k56wCv4Lhp3JjYCgFiwurtZCIvEcryxC94kJ34B6D/+9XlT5 kfnACckz+PJbDby34RzOsNXZuRJmgPG2pJBbikLf4cQXHSe96KnnUwcTrcGSd9Ulh5vU YCBc1gB8DD4OKZgZUtU3Czt+GJeW5hr4/I26inxZM3kpHhm2Ag3XGw+chJQYgJ5Nf/sD +1LmpS+aki3sal0SMpf0F+dIdp0hPMgBvcxLWIIcSsnX4gfy0g3lCF4SpSN/4ezYuzTi ce5Q== X-Forwarded-Encrypted: i=1; AJvYcCX55jDsYXMfPllPVFCLNPn0uTVeUrVL3F8tkhNuSFzmx6BbSsHYSgOm/yqxBs8kZtsYSM/L9jpBKg==@kvack.org X-Gm-Message-State: AOJu0YxPXnIf7+3vtT+H/sVdlQdSL/HQmDi39lUwyzgM7TcV0d6FZOJB Vn0Z9MEpsXPNcPodls5JYaAPqtoi1pv9nrOvaHF6Z9GzMWkFrPZ/6zkZriSpx/BK1SmUqJdyGkK b2FwiwxpQ1iLyApyo8epCcSe9do0YvxACGjoH3GdpgcjtlSJG15LeNh8= X-Google-Smtp-Source: AGHT+IHrjQnUBRkr5I/m8OuD5OeNoV3cV8jABSa/CAmx8uyTY9FivBJR0pFUxPRbl/TNlHa11sO+FkBf8AMhUodQEekJcGQchgMF MIME-Version: 1.0 X-Received: by 2002:a05:6e02:1a0c:b0:3d2:b4ea:5f60 with SMTP id e9e14a558f8ab-3d2fc0d38a4mr22388945ab.6.1740471024102; Tue, 25 Feb 2025 00:10:24 -0800 (PST) Date: Tue, 25 Feb 2025 00:10:24 -0800 X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <67bd7af0.050a0220.bbfd1.009e.GAE@google.com> Subject: [syzbot] [io-uring?] [mm?] general protection fault in lock_vma_under_rcu From: syzbot To: akpm@linux-foundation.org, asml.silence@gmail.com, axboe@kernel.dk, io-uring@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, shivankg@amd.com, surenb@google.com, syzkaller-bugs@googlegroups.com Content-Type: text/plain; charset="UTF-8" X-Rspam-User: X-Stat-Signature: xnzmty9mk3g13n8gp7dnocu35jhxjhnx X-Rspamd-Server: rspam05 X-Rspamd-Queue-Id: 10C38100006 X-HE-Tag: 1740471024-882202 X-HE-Meta: U2FsdGVkX19kdYB6koccyVMW+4+O72bIqsJ0x5qshki2EwzxHfeD5uCsgz8mN4rtR6NY2u5yXAjUG85jHlLhMNrwxnW2LlsL74s9uoT3VaTalTDwULBH2ahN1K45791b24kQo4jKHgbjVh0UUkiy4z7boNr687bT6Mw4hni5KgU1NOhyZ+eTwBNOmrcZaZ5C0BuZeEWE0MWXk4knpYUlpZ8tdGh8ccHxlp0CmrsllUA3m9zhu8YUi9baiHTOacNFQtva+pm8uSySfpny96SNL2u98hvLgI6SeQDbX2Px2CzLATfoQlP9eTac4a1ZY9yHpbtP18tqrlPAhVCkaXMbSI9l6XCC1MMY7Q3ovh3ewjgNj1o3Q5CNe5E1c5xGbP7Sg/pJw8krnwP4r3KkRLZ06BDo7FH0JfVfd7nXXmG2EFeGJMHgZcHhMH98cgbra0l4LJVAfE9y+tKWNoWj9ivQbxVzurPBal+QaGJoiUfIwNpQ1ZVn7SfoxvlOHNTLS4YpUZYU9O6cfQHSIEFEwgkDh1hWuz9Nse3psZvu3PD3181gZHcEgu1mYj0E0IeK3j6LYpFNKF9vNgg7wH80DhNL3QPqIp2XEM2nwbax7OXHHBLDHqaJUHJPXRvyKsYaGg0Z2oaj2DxtpG6xkANeahvddCEomt5D7bDx3tnhksrR+vAlFzBkquUPNltQ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kAAXhG35StfpvR0kaSrVHYmqjE70DsRq6E2mrw2ZUyi5V2SRPhceXmNuO991WXRlBDZClBuerxZP40yF9cQxuVMkVdID2eR23SexG3mn+a/0/SeGyCSwmZEQi+CVOazeZPd2G8WIkcm1F4ecI93dWMtgT1fFDt4YwxoSOlH85EgLirawZtkL2wuy0SE1qEQtEzadMipW0a Ec2OR83d /HZDHAE+UBiJw+WousjJSqOTmx3qQw+/MbjNCGuwiBd8VAsfjSYig8sOJQPOTaNUetf2d0tXRZlV4Pct01Cu9Bb1U7JE0VxLLrleciAbjZ4bjuFPDCIsiY/qlRxu3RKFzzDAmFEAZ9eMgpKVlt1xmZeP6GNqHI7zII0r8VHUlCaaL+76n0Z/n5ZD2Gi8KOkLcwIs6N3chxKqU6hPITZsPiGLwbHawIykzSkhthHJ1NPGWS3uwXkSQISl+ync6ZWNS30EMN7xQF6ZT2yQWwT3hdvvtOBaS2uarRPiRMq/UxX91j4VWFMBeYxiHyP1cGUo8Wk1MPcmhyJnZlHI2QvFHecfoz9rOSeGtD3cjeOf1kse/CYRwSDX36YcOu/cmzYOk6aQOr1HlYsxDeCNCNMKu9Jzq6TtVcaeM5CZGSsyig3sf30Wj5BPdB+O85ejgbb9CTc1wfPCPua2drTNuiB6JQ== X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: Hello, syzbot found the following issue on: HEAD commit: e5d3fd687aac Add linux-next specific files for 20250218 git tree: linux-next console output: https://syzkaller.appspot.com/x/log.txt?x=1643b498580000 kernel config: https://syzkaller.appspot.com/x/.config?x=4e945b2fe8e5992f dashboard link: https://syzkaller.appspot.com/bug?extid=556fda2d78f9b0daa141 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=138207a4580000 Downloadable assets: disk image: https://storage.googleapis.com/syzbot-assets/ef079ccd2725/disk-e5d3fd68.raw.xz vmlinux: https://storage.googleapis.com/syzbot-assets/99f2123d6831/vmlinux-e5d3fd68.xz kernel image: https://storage.googleapis.com/syzbot-assets/eadfc9520358/bzImage-e5d3fd68.xz The issue was bisected to: commit 0670f2f4d6ff1cd6aa351389130ba7bbafb02320 Author: Suren Baghdasaryan Date: Thu Feb 13 22:46:49 2025 +0000 mm: replace vm_lock and detached flag with a reference count bisection log: https://syzkaller.appspot.com/x/bisect.txt?x=1355bfdf980000 final oops: https://syzkaller.appspot.com/x/report.txt?x=10d5bfdf980000 console output: https://syzkaller.appspot.com/x/log.txt?x=1755bfdf980000 IMPORTANT: if you fix the issue, please add the following tag to the commit: Reported-by: syzbot+556fda2d78f9b0daa141@syzkaller.appspotmail.com Fixes: 0670f2f4d6ff ("mm: replace vm_lock and detached flag with a reference count") 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: 27018 Comm: syz.1.4414 Not tainted 6.14.0-rc3-next-20250218-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025 RIP: 0010:vma_refcount_put include/linux/mm.h:712 [inline] RIP: 0010:vma_end_read include/linux/mm.h:811 [inline] RIP: 0010:lock_vma_under_rcu+0x578/0xac0 mm/memory.c:6454 Code: be 5d b1 ff 49 be 00 00 00 00 00 fc ff df 4d 85 ff 74 0d 49 81 ff 01 f0 ff ff 0f 82 a3 02 00 00 49 83 ff f5 0f 85 55 03 00 00 <41> 80 3e 00 74 0a bf 05 00 00 00 e8 28 df 18 00 4c 8b 34 25 05 00 RSP: 0000:ffffc9000b837d80 EFLAGS: 00010246 RAX: fffffffffffffff5 RBX: 0000000000000000 RCX: ffff888079eb8000 RDX: ffff888079eb8000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: ffffc9000b837ed8 R08: ffffffff8210a26a R09: 1ffff110068be328 R10: dffffc0000000000 R11: ffffed10068be329 R12: ffffc9000b837e10 R13: ffff88802890aa20 R14: dffffc0000000000 R15: fffffffffffffff5 FS: 00005555908b1500(0000) GS:ffff8880b8600000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000400000002fc0 CR3: 0000000011df6000 CR4: 00000000003526f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: do_user_addr_fault arch/x86/mm/fault.c:1328 [inline] handle_page_fault arch/x86/mm/fault.c:1480 [inline] exc_page_fault+0x17b/0x920 arch/x86/mm/fault.c:1538 asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:623 RIP: 0033:0x7f617a954ed8 Code: fc 89 37 c3 c5 fa 6f 06 c5 fa 6f 4c 16 f0 c5 fa 7f 07 c5 fa 7f 4c 17 f0 c3 66 0f 1f 84 00 00 00 00 00 48 8b 4c 16 f8 48 8b 36 <48> 89 37 48 89 4c 17 f8 c3 c5 fe 6f 54 16 e0 c5 fe 6f 5c 16 c0 c5 RSP: 002b:00007ffc20f24718 EFLAGS: 00010246 RAX: 0000400000002fc0 RBX: 0000000000000004 RCX: 0031313230386c6e RDX: 0000000000000008 RSI: 0031313230386c6e RDI: 0000400000002fc0 RBP: 0000000000000000 R08: 00007f617a800000 R09: 0000000000000001 R10: 0000000000000001 R11: 0000000000000009 R12: 00007f617aba5fac R13: 00007f617aba5fa0 R14: fffffffffffffffe R15: 0000000000000006 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:vma_refcount_put include/linux/mm.h:712 [inline] RIP: 0010:vma_end_read include/linux/mm.h:811 [inline] RIP: 0010:lock_vma_under_rcu+0x578/0xac0 mm/memory.c:6454 Code: be 5d b1 ff 49 be 00 00 00 00 00 fc ff df 4d 85 ff 74 0d 49 81 ff 01 f0 ff ff 0f 82 a3 02 00 00 49 83 ff f5 0f 85 55 03 00 00 <41> 80 3e 00 74 0a bf 05 00 00 00 e8 28 df 18 00 4c 8b 34 25 05 00 RSP: 0000:ffffc9000b837d80 EFLAGS: 00010246 RAX: fffffffffffffff5 RBX: 0000000000000000 RCX: ffff888079eb8000 RDX: ffff888079eb8000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: ffffc9000b837ed8 R08: ffffffff8210a26a R09: 1ffff110068be328 R10: dffffc0000000000 R11: ffffed10068be329 R12: ffffc9000b837e10 R13: ffff88802890aa20 R14: dffffc0000000000 R15: fffffffffffffff5 FS: 00005555908b1500(0000) GS:ffff8880b8600000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007ff182f3cf98 CR3: 0000000011df6000 CR4: 00000000003526f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess), 1 bytes skipped: 0: 5d pop %rbp 1: b1 ff mov $0xff,%cl 3: 49 be 00 00 00 00 00 movabs $0xdffffc0000000000,%r14 a: fc ff df d: 4d 85 ff test %r15,%r15 10: 74 0d je 0x1f 12: 49 81 ff 01 f0 ff ff cmp $0xfffffffffffff001,%r15 19: 0f 82 a3 02 00 00 jb 0x2c2 1f: 49 83 ff f5 cmp $0xfffffffffffffff5,%r15 23: 0f 85 55 03 00 00 jne 0x37e * 29: 41 80 3e 00 cmpb $0x0,(%r14) <-- trapping instruction 2d: 74 0a je 0x39 2f: bf 05 00 00 00 mov $0x5,%edi 34: e8 28 df 18 00 call 0x18df61 39: 4c rex.WR 3a: 8b .byte 0x8b 3b: 34 25 xor $0x25,%al 3d: 05 .byte 0x5 --- 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