Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp8924491rwp; Wed, 19 Jul 2023 18:29:32 -0700 (PDT) X-Google-Smtp-Source: APBJJlFVnG5fajuF9MqpR5CcharnZNmosICcwglkfkfY86UytH4sh58xu21r+VCa7BM16+NMvmbE X-Received: by 2002:a17:907:3e29:b0:992:b3a3:81f4 with SMTP id hp41-20020a1709073e2900b00992b3a381f4mr4266060ejc.50.1689816572138; Wed, 19 Jul 2023 18:29:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689816572; cv=none; d=google.com; s=arc-20160816; b=xK9lgD1HHnqbYIAClMlOYdXc/OrRCYxnKC0xL9P3+KqyJ03x0uSBK9nZcQkrC8T8fh iTsol2Gr/14M2Kqpr+Awz6sgSdNfDRFY3d3WbyXs4Kf8PsQFzxMXQkhCI/CLE572k4DC TlGh5QkGudDvmLm0DudidRhI7OAQ1Jc+Kb0ujrwsXB8kqa4E/65Vk37bw6pAwJnfEI4X fuKSNjOCd6crsdxRxK72O7FHyZfpw/iBLrMar8HPCII4bzlBfxHZAYkPZF+UsDnh69Xw vkgpgkbw/rwMG0rvxYiYphSE2H8L2pHlzbuuMEotGFoO76EsyuJPR33rEZvjjuvKMet+ B3fg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:from:subject:message-id:date:mime-version; bh=z33L3e+3x0ehmV8Vpa6tMdcfIWJ6iGZmABJfuVjRPmk=; fh=Zkn71JIcQL+CDlQlln8Ztw48Zi0sHSlfahHpOtV4uFk=; b=TO/XcRs4G/acJWLvDbSACY/XZ6DqN2vhZPRQD7M4KBte3CQB7ZTRiXo6Se7AbM9G1L 3p5F3HlDe06GSsSMHo8T0FHrmUxHjDSfJZM+25gCgRVBZ7/9zjw6KPflO+FTDB6QTM4S qz3tpz2mMk+Ab196apIzFYNyE7kQqelXRYUQSjUzJQvIHOlllOVBM6uHeAj3/QHEnTI0 aRiyBspIFzu80jqoe2B03qiYTCQ0CoZekCHQOemNzlGyistCU65/WKOyV6nmJPsGIQgw EwXVdtyAN1+dzPKZ8WA+4eOpyJGCwbQaZSiIY2xIXQZzsay40eZWU6elbpcgNgzeCowJ 4RuA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=appspotmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z19-20020a170906945300b0098df1cbe2b1si3568760ejx.925.2023.07.19.18.29.03; Wed, 19 Jul 2023 18:29:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=appspotmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229633AbjGTBMD (ORCPT + 99 others); Wed, 19 Jul 2023 21:12:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36740 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229450AbjGTBMC (ORCPT ); Wed, 19 Jul 2023 21:12:02 -0400 Received: from mail-oo1-f79.google.com (mail-oo1-f79.google.com [209.85.161.79]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A10FA2106 for ; Wed, 19 Jul 2023 18:11:58 -0700 (PDT) Received: by mail-oo1-f79.google.com with SMTP id 006d021491bc7-5676ac40f63so530783eaf.0 for ; Wed, 19 Jul 2023 18:11:58 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689815518; x=1690420318; h=to:from:subject:message-id:date:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=z33L3e+3x0ehmV8Vpa6tMdcfIWJ6iGZmABJfuVjRPmk=; b=RwZqf9/u1CZiOjoEgry4JzjJHKAyW7xjKpcaIxZNPHLO0LjGtaubCfaXNGRI4L0iVS qL+ZEaZkfF4zjKlVmB4d0QPwIpPCXTIqIlfRE2UTkcOAs4/2rYupbIo+nfOySbl6hOF9 +or2qQzB4821TRoQ7QyiLgC6sfxZ931xtur+g4v+g6KLVdOskr9OiRJBoU6wa135jHKc 7YFXBxHDUClacGxBoDNayJWUed9nQ7O1VBDbAzRs42RHUzEcisyEelbD0s4atMHmTZqx SItTh0u2buUrdESlFno/xCqo+kFgMAlAzQ2R4oYcQODVKyXHDYJ3sJIzImR/e2Ml5R6v WsTw== X-Gm-Message-State: ABy/qLa9TIe9fCeQ6IObSkLUgLzwZTfFtU/911DyYJcB4SzhbY61N/PS p4EQ6Jti46n1vs+J+M72hyCoZ/9qFJ9FgSaZB8uXyLhFHpLg MIME-Version: 1.0 X-Received: by 2002:a4a:c018:0:b0:567:83f9:86f8 with SMTP id v24-20020a4ac018000000b0056783f986f8mr1676660oop.0.1689815517889; Wed, 19 Jul 2023 18:11:57 -0700 (PDT) Date: Wed, 19 Jul 2023 18:11:57 -0700 X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <000000000000ae0abc0600e0d534@google.com> Subject: [syzbot] [apparmor?] [ext4?] general protection fault in common_perm_cond From: syzbot To: adilger.kernel@dilger.ca, apparmor@lists.ubuntu.com, jmorris@namei.org, john.johansen@canonical.com, john@apparmor.net, linux-ext4@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, linux-security-module@vger.kernel.org, paul@paul-moore.com, serge@hallyn.com, syzkaller-bugs@googlegroups.com, terrelln@fb.com, tytso@mit.edu Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_00,FROM_LOCAL_HEX, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL,SORTED_RECIPS,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org Hello, syzbot found the following issue on: HEAD commit: b6e6cc1f78c7 Merge tag 'x86_urgent_for_6.5_rc2' of git://g.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=1323c43aa80000 kernel config: https://syzkaller.appspot.com/x/.config?x=6769a69bd0e144b4 dashboard link: https://syzkaller.appspot.com/bug?extid=7d5fa8eb99155f439221 compiler: gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40 syz repro: https://syzkaller.appspot.com/x/repro.syz?x=137b16dca80000 C reproducer: https://syzkaller.appspot.com/x/repro.c?x=14153b7ca80000 Downloadable assets: disk image: https://storage.googleapis.com/syzbot-assets/2e2f11c29840/disk-b6e6cc1f.raw.xz vmlinux: https://storage.googleapis.com/syzbot-assets/977c5d1c1a6d/vmlinux-b6e6cc1f.xz kernel image: https://storage.googleapis.com/syzbot-assets/a9a9097f9fb2/bzImage-b6e6cc1f.xz mounted in repro: https://storage.googleapis.com/syzbot-assets/e66241f633bd/mount_0.gz IMPORTANT: if you fix the issue, please add the following tag to the commit: Reported-by: syzbot+7d5fa8eb99155f439221@syzkaller.appspotmail.com general protection fault, probably for non-canonical address 0xdffffc0000000e71: 0000 [#1] PREEMPT SMP KASAN KASAN: probably user-memory-access in range [0x0000000000007388-0x000000000000738f] CPU: 0 PID: 4475 Comm: udevd Not tainted 6.5.0-rc1-syzkaller-00248-gb6e6cc1f78c7 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/03/2023 RIP: 0010:i_user_ns include/linux/fs.h:1289 [inline] RIP: 0010:i_uid_into_vfsuid include/linux/fs.h:1328 [inline] RIP: 0010:common_perm_cond+0x102/0x850 security/apparmor/lsm.c:230 Code: 89 fa 48 c1 ea 03 80 3c 02 00 0f 85 48 06 00 00 49 8b 4f 18 49 8d 7c 24 28 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 <80> 3c 02 00 0f 85 61 06 00 00 48 b8 00 00 00 00 00 fc ff df 4d 8b RSP: 0018:ffffc900031bfc18 EFLAGS: 00010217 RAX: dffffc0000000000 RBX: ffffc900031bfd38 RCX: ffffffff8cb831e0 RDX: 0000000000000e71 RSI: ffffffff83e1f79c RDI: 000000000000738d RBP: 1ffff92000637f85 R08: 0000000000000005 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000094000 R12: 0000000000007365 R13: ffffffff8ac134a0 R14: 0000000000000200 R15: ffff888016246920 FS: 00007f1f780b3c80(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00000000209e3000 CR3: 000000001735c000 CR4: 0000000000350ef0 Call Trace: security_inode_getattr+0xf1/0x150 security/security.c:2114 vfs_getattr fs/stat.c:167 [inline] vfs_statx+0x180/0x430 fs/stat.c:242 vfs_fstatat+0x90/0xb0 fs/stat.c:276 __do_sys_newfstatat+0x98/0x110 fs/stat.c:446 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x38/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f1f77d165f4 Code: 64 c7 00 09 00 00 00 83 c8 ff c3 48 89 f2 b9 00 01 00 00 48 89 fe bf 9c ff ff ff e9 00 00 00 00 41 89 ca b8 06 01 00 00 0f 05 <45> 31 c0 3d 00 f0 ff ff 76 10 48 8b 15 03 a8 0d 00 f7 d8 41 83 c8 RSP: 002b:00007ffd1a0d0c38 EFLAGS: 00000202 ORIG_RAX: 0000000000000106 RAX: ffffffffffffffda RBX: 0000556e5d077650 RCX: 00007f1f77d165f4 RDX: 00007ffd1a0d0c50 RSI: 00007f1f77db3130 RDI: 000000000000000d RBP: 0000556e5d080bf0 R08: 0000000000090800 R09: 0000556e5d05f360 R10: 0000000000001000 R11: 0000000000000202 R12: 00007ffd1a0d0c50 R13: 00000000000000ff R14: 0000556e5c4f71c4 R15: 0000000000000000 Modules linked in: ---------------- Code disassembly (best guess): 0: 89 fa mov %edi,%edx 2: 48 c1 ea 03 shr $0x3,%rdx 6: 80 3c 02 00 cmpb $0x0,(%rdx,%rax,1) a: 0f 85 48 06 00 00 jne 0x658 10: 49 8b 4f 18 mov 0x18(%r15),%rcx 14: 49 8d 7c 24 28 lea 0x28(%r12),%rdi 19: 48 b8 00 00 00 00 00 movabs $0xdffffc0000000000,%rax 20: fc ff df 23: 48 89 fa mov %rdi,%rdx 26: 48 c1 ea 03 shr $0x3,%rdx * 2a: 80 3c 02 00 cmpb $0x0,(%rdx,%rax,1) <-- trapping instruction 2e: 0f 85 61 06 00 00 jne 0x695 34: 48 b8 00 00 00 00 00 movabs $0xdffffc0000000000,%rax 3b: fc ff df 3e: 4d rex.WRB 3f: 8b .byte 0x8b --- 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 bug is already fixed, 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 change bug's subsystems, reply with: #syz set subsystems: new-subsystem (See the list of subsystem names on the web dashboard) If the bug is a duplicate of another bug, reply with: #syz dup: exact-subject-of-another-report If you want to undo deduplication, reply with: #syz undup