Received: by 2002:ab2:1149:0:b0:1f3:1f8c:d0c6 with SMTP id z9csp1888068lqz; Mon, 1 Apr 2024 23:58:30 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUWabQ/aJYMbxJ/56YltL0foB1ucEBJwcD0ONnoh6bRtm0ATMWd7373ZFSW07Qfiua9wk/BDJy7j/9b27wyIW1R8THKYBYMqROJaxtRqA== X-Google-Smtp-Source: AGHT+IGgAVFFoTMSdw5k+hj+BEccdb2VB8Ta1H26pzJ+66MIYbuQYCEeGSOGNswDkoadopLqZO4q X-Received: by 2002:a17:906:88a:b0:a47:3409:2948 with SMTP id n10-20020a170906088a00b00a4734092948mr6894837eje.38.1712041110636; Mon, 01 Apr 2024 23:58:30 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712041110; cv=pass; d=google.com; s=arc-20160816; b=gMsllKboHscLnrASTXD0bdkh0hKn2QF3hwD0CKTW59NaB8ZK/aVyHSzo68NVc/5s10 wfRhZC94gp8K3io9FjqTyaFDg+bu34k3xMSOrSyNomn30C9UP3HzYsTd1AV403usQV6H caxGnRANQDv9w6iP2R/r4sSZORQKSs+9BQe/ua9Dlwg44IJIk358qCZ5CUil4/ICDX5Y GczckPD996tRUb/clNXUtfMuPQM1V/QoAoqSLYtC9tMq4vo+EveMkcFw44nXWygYPRTy HCWviXjXD672Y6z8Dhr5PAVhAYffsRc++TiaGToUnL/RzV/A9vI6aUxrKLvGFihZUz8w Cwzg== 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=EQZ9CndAaskPdqnzv8xsN4+oHdlqmMTeeJQ9uYMCKpo=; fh=jNdcUW6VLhM8di+nW+PFs98OHPNJFjWp24pXsJYgv7k=; b=nFxpWltKVjo0vosZlLwq7ghjjnuKf10FjSQyy5rIwZa6jRTYUyS6XkiyD09aphDHKm jX6gPXLtk034qU+g5QNHqfZHEsI+zUZMP0H+d2ao0QTRaBDSx5peMU8yn+dSpOOF1euc H0XU4dEhdDdGg9Zr/p3rnkby0r2dYM/A5ZBkilXQkpEpYyIAfHvSWbkcxcIdjUGqtzrq AfAViSbsLHs6aaHj6rbXWUd5BDFs3MpwGwZmU0J0NsNEINwzW64rL0KRfqD9d7VKRZAx JNI1aPU3qs8aSoicwSFNnxLC7cW6U3cGKphV1mEj3jFBO5nWJObjwKV21X3EM4GvGd3E fOMg==; 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-127465-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-127465-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 q20-20020a1709060f9400b00a474e73906bsi5364090ejj.796.2024.04.01.23.58.30 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 01 Apr 2024 23:58:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-127465-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-127465-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-127465-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 3547D1F22F0D for ; Tue, 2 Apr 2024 06:58:30 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 66FEA32C85; Tue, 2 Apr 2024 06:58:23 +0000 (UTC) Received: from mail-il1-f197.google.com (mail-il1-f197.google.com [209.85.166.197]) (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 4347F22096 for ; Tue, 2 Apr 2024 06:58:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.166.197 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712041102; cv=none; b=anVWLa9SN/2NiGYip0evnpYRKFnfjRbk+bycRhdU+aKq/hnV1BliRfai2/B+wTM3xoz2/XAaKs24YYRtKx8oBWQvkhgAg8GQ3IS+FNoqo8d09yMdvbsDfsReazY+sjBUqwOHsdIHQdUjfYaHYNrYPs74vSuxqJa6tXwdZsSYvrs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712041102; c=relaxed/simple; bh=KOBiFFdOgu+G4YhGzStdHddK7U5EAKUtPaUgIuYJXF8=; h=MIME-Version:Date:Message-ID:Subject:From:To:Content-Type; b=YKQYlfN3TBudP4AoWNB6tsebnvBSEG9MUQXUksxoBK4pu3GRBmGoviYMbrWeSfSJQt6LC2Yjj8eObm0HI8WQFZvjueC3eInSms6NgFEf+jllqSpNhIa4N39RwNS08yLz3fJZXxFycsnhavKOshUwPpgVlBdfOdBuri0QFEvrfOI= 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.197 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-f197.google.com with SMTP id e9e14a558f8ab-368a72042b9so46460945ab.1 for ; Mon, 01 Apr 2024 23:58:21 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712041100; x=1712645900; h=to:from:subject:message-id:date:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=EQZ9CndAaskPdqnzv8xsN4+oHdlqmMTeeJQ9uYMCKpo=; b=LGj73fXskcMUAugxokck3cOvFt0t8uwE42GO4oBzJLPDouAtSIkn6M4iOHr3jPaozE TRJbnH3I2R6F/JAUrUWMd4P3I8g/JdBcQAnLQhlLBDuPrKyyZWdnqChjtip+1t0UJ2JC c0ONqJ9zqqcIKvRJzPWg3chfDcl1n9NditDDr6J9Htf+tzKZ/vPmOGkmEcn9SzUpHSST Ggk+MNai3i5kfUEL+3yAreFK8kHGklodW+l/9g2SIkUiERtZzg6/p2dkvDWFr1m2cShq CMl77NAm9ZsT4PSTdqISqr1QBRgW0bKs8yO44VF08+7ECVf30r/pEzE8kBHR0GKG3dEk VmaA== X-Forwarded-Encrypted: i=1; AJvYcCVmXmtKpnQMs3FqWhLrfg8mA5doLOSmIuyTkMxxdkM04RMp5rjVFUh3zQxEmUcgJrUns1R6HQrVAaIV29tmrUvSRjQYQdOw9nBZ068y X-Gm-Message-State: AOJu0YwZnIBKQ0JPEEPi1LyyBeBroupFv+bLtXgGHuuRvEcUOTTgsG1t LOE+WnONOcrNRL/BTRt3TDXoHr7nzEVsorW5nKEfUxTDBKHKMQuN3Psm/WDcpyJTIwtQ7qdbXHn 2oILC4QoJrF010yxgl35XExvcC9RkfTZ5+At5fMJsUEcZSnCypjdUDJw= 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:1fee:b0:369:95dc:e4e5 with SMTP id dt14-20020a056e021fee00b0036995dce4e5mr423341ilb.3.1712041100437; Mon, 01 Apr 2024 23:58:20 -0700 (PDT) Date: Mon, 01 Apr 2024 23:58:20 -0700 X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <000000000000a1ff78061517a148@google.com> Subject: [syzbot] [mm?] general protection fault in shmem_get_next_id From: syzbot To: akpm@linux-foundation.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, syzkaller-bugs@googlegroups.com Content-Type: text/plain; charset="UTF-8" Hello, syzbot found the following issue on: HEAD commit: fe46a7dd189e Merge tag 'sound-6.9-rc1' of git://git.kernel.. git tree: upstream console+strace: https://syzkaller.appspot.com/x/log.txt?x=10c90795180000 kernel config: https://syzkaller.appspot.com/x/.config?x=fe78468a74fdc3b7 dashboard link: https://syzkaller.appspot.com/bug?extid=05e63c0981a31f35f3fa 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=17f51129180000 C reproducer: https://syzkaller.appspot.com/x/repro.c?x=150d3cee180000 Downloadable assets: disk image: https://storage.googleapis.com/syzbot-assets/0f7abe4afac7/disk-fe46a7dd.raw.xz vmlinux: https://storage.googleapis.com/syzbot-assets/82598d09246c/vmlinux-fe46a7dd.xz kernel image: https://storage.googleapis.com/syzbot-assets/efa23788c875/bzImage-fe46a7dd.xz IMPORTANT: if you fix the issue, please add the following tag to the commit: Reported-by: syzbot+05e63c0981a31f35f3fa@syzkaller.appspotmail.com general protection fault, probably for non-canonical address 0xdffffc0000000000: 0000 [#1] PREEMPT SMP KASAN NOPTI KASAN: null-ptr-deref in range [0x0000000000000000-0x0000000000000007] CPU: 0 PID: 5070 Comm: syz-executor253 Not tainted 6.8.0-syzkaller-08951-gfe46a7dd189e #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024 RIP: 0010:shmem_get_next_id+0x92/0x5c0 mm/shmem_quota.c:119 Code: 04 db 49 8d 9c c6 90 02 00 00 48 89 d8 48 c1 e8 03 42 80 3c 38 00 74 08 48 89 df e8 f8 66 1b 00 48 8b 1b 48 89 d8 48 c1 e8 03 <42> 80 3c 38 00 74 08 48 89 df e8 df 66 1b 00 4c 8b 23 48 8d 5d 07 RSP: 0018:ffffc900043a7be0 EFLAGS: 00010256 RAX: 0000000000000000 RBX: 0000000000000000 RCX: ffff8880266c8000 RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000004 RBP: ffffc900043a7d00 R08: ffffffff81dcdd47 R09: ffffffff822e7d5a R10: 0000000000000003 R11: ffffffff81dcdcf0 R12: 1ffff92000874fa0 R13: ffff888022110000 R14: ffff888022110000 R15: dffffc0000000000 FS: 0000555578677380(0000) GS:ffff8880b9400000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000020001000 CR3: 000000007a384000 CR4: 0000000000350ef0 Call Trace: dquot_get_next_dqblk+0x75/0x3a0 fs/quota/dquot.c:2705 quota_getnextquota+0x2c7/0x6c0 fs/quota/quota.c:250 __do_sys_quotactl_fd fs/quota/quota.c:1002 [inline] __se_sys_quotactl_fd+0x2a1/0x440 fs/quota/quota.c:973 do_syscall_64+0xfd/0x240 entry_SYSCALL_64_after_hwframe+0x6d/0x75 RIP: 0033:0x7f5c0349b329 Code: 48 83 c4 28 c3 e8 37 17 00 00 0f 1f 80 00 00 00 00 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:00007ffc39d71138 EFLAGS: 00000246 ORIG_RAX: 00000000000001bb RAX: ffffffffffffffda RBX: 0031656c69662f2e RCX: 00007f5c0349b329 RDX: 0000000000000000 RSI: ffffffff80000901 RDI: 0000000000000003 RBP: 00007f5c0350e610 R08: 0000000000000000 R09: 00007ffc39d71308 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000001 R13: 00007ffc39d712f8 R14: 0000000000000001 R15: 0000000000000001 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:shmem_get_next_id+0x92/0x5c0 mm/shmem_quota.c:119 Code: 04 db 49 8d 9c c6 90 02 00 00 48 89 d8 48 c1 e8 03 42 80 3c 38 00 74 08 48 89 df e8 f8 66 1b 00 48 8b 1b 48 89 d8 48 c1 e8 03 <42> 80 3c 38 00 74 08 48 89 df e8 df 66 1b 00 4c 8b 23 48 8d 5d 07 RSP: 0018:ffffc900043a7be0 EFLAGS: 00010256 RAX: 0000000000000000 RBX: 0000000000000000 RCX: ffff8880266c8000 RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000004 RBP: ffffc900043a7d00 R08: ffffffff81dcdd47 R09: ffffffff822e7d5a R10: 0000000000000003 R11: ffffffff81dcdcf0 R12: 1ffff92000874fa0 R13: ffff888022110000 R14: ffff888022110000 R15: dffffc0000000000 FS: 0000555578677380(0000) GS:ffff8880b9400000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000020001000 CR3: 000000007a384000 CR4: 0000000000350ef0 ---------------- Code disassembly (best guess): 0: 04 db add $0xdb,%al 2: 49 8d 9c c6 90 02 00 lea 0x290(%r14,%rax,8),%rbx 9: 00 a: 48 89 d8 mov %rbx,%rax d: 48 c1 e8 03 shr $0x3,%rax 11: 42 80 3c 38 00 cmpb $0x0,(%rax,%r15,1) 16: 74 08 je 0x20 18: 48 89 df mov %rbx,%rdi 1b: e8 f8 66 1b 00 call 0x1b6718 20: 48 8b 1b mov (%rbx),%rbx 23: 48 89 d8 mov %rbx,%rax 26: 48 c1 e8 03 shr $0x3,%rax * 2a: 42 80 3c 38 00 cmpb $0x0,(%rax,%r15,1) <-- trapping instruction 2f: 74 08 je 0x39 31: 48 89 df mov %rbx,%rdi 34: e8 df 66 1b 00 call 0x1b6718 39: 4c 8b 23 mov (%rbx),%r12 3c: 48 8d 5d 07 lea 0x7(%rbp),%rbx --- 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