Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp31840413rwd; Fri, 7 Jul 2023 05:19:57 -0700 (PDT) X-Google-Smtp-Source: APBJJlGKc8NDF13U522ELBPczupmZIn8gRN4Bic8M4MkPHpPEF10q7Z12JVTWp8AkH46JkfscF1n X-Received: by 2002:a9d:4e95:0:b0:6b1:d368:557c with SMTP id v21-20020a9d4e95000000b006b1d368557cmr4799687otk.30.1688732397628; Fri, 07 Jul 2023 05:19:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688732397; cv=none; d=google.com; s=arc-20160816; b=KqVzYJg0uQU5igxKc7bb8XorUa8XUCbfGQMjGqitUgWqsPnTT328jTSdoJuKezlQaP rVj2qo6SLoGWhTYWmfq9ZtVYP3tSgw4lMEBJLN/Ax440noDMA5AOCL1yJrKBGAPxzm22 Y197yu0k1LPbJP+/XW+JuVEMALjKToOHaBAAycxXMhcW39LK0nUNug27uZPpbavmXvBg Cp33G/7jT4UAlOaqg47s4qYRWqwSTo2Iawvi+B3KDLJapAGnVyvg06oByfaqUAClpeNq JajBkdjh0tFGAMLkIOByUw4ZFy1TM9KaQfF1oocD3Cl6zV+yai9f+W43SoLlfmzXYeYN Xz0A== 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=PI5ApXs2ZsjZ5d4mdhTHU0eytxqvGV+WP25cKrMce9g=; fh=DqYfpPLUi/Pn8eqIJRnaM9f2wg/nVNVq38p14ptjrfg=; b=GWKR0CNCig6KD2MIdxeuyYRd1JbMsW0OSnRbmstKTtOzR+juYSk+2mQfOCAHsNkPtJ iV4Fj2mPXNXIQ0VdzDfpHyWlOBReXtV3+rJl/3CFWq2/7/i97jpetUaBIPHXVBVqSrKM zHtNlL5tkLWfth31mVhZJlkBZOeqZ4gL5Ogm6EHPLp3YYQ7cCKw7N4+2dOMunBVTyuok 0ULeEGXejDUC6ZYkNNFsEeIvGeCfetrFPWrCBDjfPWEcpuB9dWXfGUl08egspY5wqudV R7GTRJVr28ET0ZYN4llvKrh/96X2V9u4lJzJNPgClV35MMFOBkoMlo1ok5TlBmdJ62v0 gctA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-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 26-20020a630f5a000000b005538fc7243asi3473384pgp.507.2023.07.07.05.19.43; Fri, 07 Jul 2023 05:19:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-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 S231845AbjGGMKB (ORCPT + 99 others); Fri, 7 Jul 2023 08:10:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51132 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229740AbjGGMKB (ORCPT ); Fri, 7 Jul 2023 08:10:01 -0400 Received: from mail-pg1-f206.google.com (mail-pg1-f206.google.com [209.85.215.206]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B5D1B2114 for ; Fri, 7 Jul 2023 05:09:59 -0700 (PDT) Received: by mail-pg1-f206.google.com with SMTP id 41be03b00d2f7-55bf3002ac7so2435262a12.3 for ; Fri, 07 Jul 2023 05:09:59 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688731799; x=1691323799; h=to:from:subject:message-id:date:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=PI5ApXs2ZsjZ5d4mdhTHU0eytxqvGV+WP25cKrMce9g=; b=e9094y4R01jeM3fcUHp0gommF4YtzwfVT+eHdGi7TYIAkMul045GWj5tWcREugvtlq FPoLwMfeNIYf+QUwENJ5aqijOQ3IL2ImgRhi4sRFvvxz42X9xPAx4wJ+MrX7Pfw038ZU 49u9nLgPTA751dh3AKruSbg+Daxq4ZonWPXpSfe9NyqsQZLyUfhQo+e/ZevEXZQZttS3 IzRur+FumiY3zOPs3Y8gNxwBp+X3p/HZEJNfOEHafc6n6mgkiYO6l4iAb0p7k9XUZZu8 JIgh8ayBUUBUC5YR/yT1xRCpg4aXj8ENh3xwaNnJrJcfD5aycMEQa8Jr7gaJ1PXLWGBJ TlFA== X-Gm-Message-State: ABy/qLZYsvhM4H5rIEZBl46IlX5dqWzCjKPlyYb9MzasN+8/9HhPFtEM n9J8Mv938eSpkKhOSA9m7o8NJEWo5serADDpD19ZVuJVKEM9 MIME-Version: 1.0 X-Received: by 2002:a17:90b:a4a:b0:263:c6b4:5267 with SMTP id gw10-20020a17090b0a4a00b00263c6b45267mr4122522pjb.7.1688731798795; Fri, 07 Jul 2023 05:09:58 -0700 (PDT) Date: Fri, 07 Jul 2023 05:09:58 -0700 X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <000000000000fcfb4a05ffe48213@google.com> Subject: [syzbot] [tomoyo?] [hfs?] general protection fault in tomoyo_check_acl (3) From: syzbot To: jmorris@namei.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, linux-security-module@vger.kernel.org, paul@paul-moore.com, penguin-kernel@I-love.SAKURA.ne.jp, serge@hallyn.com, syzkaller-bugs@googlegroups.com, takedakn@nttdata.co.jp, tomoyo-dev-en@lists.osdn.me 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_NONE,RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL,SORTED_RECIPS,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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-kernel@vger.kernel.org Hello, syzbot found the following issue on: HEAD commit: a901a3568fd2 Merge tag 'iomap-6.5-merge-1' of git://git.ke.. git tree: upstream console+strace: https://syzkaller.appspot.com/x/log.txt?x=15e4c8a4a80000 kernel config: https://syzkaller.appspot.com/x/.config?x=7406f415f386e786 dashboard link: https://syzkaller.appspot.com/bug?extid=28aaddd5a3221d7fd709 compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 syz repro: https://syzkaller.appspot.com/x/repro.syz?x=17b5bb80a80000 C reproducer: https://syzkaller.appspot.com/x/repro.c?x=10193ee7280000 Downloadable assets: disk image: https://storage.googleapis.com/syzbot-assets/119fd918f733/disk-a901a356.raw.xz vmlinux: https://storage.googleapis.com/syzbot-assets/79f9ac119639/vmlinux-a901a356.xz kernel image: https://storage.googleapis.com/syzbot-assets/8bd8662e2869/bzImage-a901a356.xz mounted in repro: https://storage.googleapis.com/syzbot-assets/8e36b52190bc/mount_0.gz IMPORTANT: if you fix the issue, please add the following tag to the commit: Reported-by: syzbot+28aaddd5a3221d7fd709@syzkaller.appspotmail.com loop0: detected capacity change from 0 to 64 hfs: unable to locate alternate MDB hfs: continuing without an alternate MDB general protection fault, probably for non-canonical address 0xdffffc0000000003: 0000 [#1] PREEMPT SMP KASAN KASAN: null-ptr-deref in range [0x0000000000000018-0x000000000000001f] CPU: 0 PID: 5189 Comm: syz-executor307 Not tainted 6.4.0-syzkaller-10173-ga901a3568fd2 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/27/2023 RIP: 0010:tomoyo_check_acl+0xb0/0x440 security/tomoyo/domain.c:173 Code: 00 0f 85 64 03 00 00 49 8b 5d 00 49 39 dd 0f 84 fa 01 00 00 e8 71 fc b1 fd 48 8d 7b 18 48 89 f8 48 89 fa 48 c1 e8 03 83 e2 07 <0f> b6 04 28 38 d0 7f 08 84 c0 0f 85 f2 02 00 00 44 0f b6 73 18 31 RSP: 0018:ffffc90003caf790 EFLAGS: 00010246 RAX: 0000000000000003 RBX: 0000000000000000 RCX: 0000000000000000 RDX: 0000000000000000 RSI: ffffffff83d2d25f RDI: 0000000000000018 RBP: dffffc0000000000 R08: 0000000000000001 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000001 R12: ffffc90003caf880 R13: ffff888016f31410 R14: 0000000000000000 R15: 0000000000000000 FS: 0000555556ffa300(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fc16e620c80 CR3: 0000000075643000 CR4: 0000000000350ef0 Call Trace: tomoyo_path_permission security/tomoyo/file.c:586 [inline] tomoyo_path_permission+0x1ff/0x3a0 security/tomoyo/file.c:573 tomoyo_check_open_permission+0x366/0x3a0 security/tomoyo/file.c:777 tomoyo_file_open security/tomoyo/tomoyo.c:332 [inline] tomoyo_file_open+0xaa/0xd0 security/tomoyo/tomoyo.c:327 security_file_open+0x49/0xb0 security/security.c:2797 do_dentry_open+0x57a/0x17b0 fs/open.c:901 do_open fs/namei.c:3636 [inline] path_openat+0x1b65/0x2710 fs/namei.c:3793 do_filp_open+0x1ba/0x410 fs/namei.c:3820 do_sys_openat2+0x160/0x1c0 fs/open.c:1407 do_sys_open fs/open.c:1422 [inline] __do_sys_openat fs/open.c:1438 [inline] __se_sys_openat fs/open.c:1433 [inline] __x64_sys_openat+0x143/0x1f0 fs/open.c:1433 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x39/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7fc16e647a19 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 11 15 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 c0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007ffcc752e608 EFLAGS: 00000246 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 000000000000e483 RCX: 00007fc16e647a19 RDX: 0000000000141842 RSI: 0000000020000380 RDI: 00000000ffffff9c RBP: 0000000000000000 R08: 0000000000000260 R09: 00007ffcc752e630 R10: 0000000000000000 R11: 0000000000000246 R12: 00007ffcc752e62c R13: 00007ffcc752e660 R14: 00007ffcc752e640 R15: 00000000000000be Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:tomoyo_check_acl+0xb0/0x440 security/tomoyo/domain.c:173 Code: 00 0f 85 64 03 00 00 49 8b 5d 00 49 39 dd 0f 84 fa 01 00 00 e8 71 fc b1 fd 48 8d 7b 18 48 89 f8 48 89 fa 48 c1 e8 03 83 e2 07 <0f> b6 04 28 38 d0 7f 08 84 c0 0f 85 f2 02 00 00 44 0f b6 73 18 31 RSP: 0018:ffffc90003caf790 EFLAGS: 00010246 RAX: 0000000000000003 RBX: 0000000000000000 RCX: 0000000000000000 RDX: 0000000000000000 RSI: ffffffff83d2d25f RDI: 0000000000000018 RBP: dffffc0000000000 R08: 0000000000000001 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000001 R12: ffffc90003caf880 R13: ffff888016f31410 R14: 0000000000000000 R15: 0000000000000000 FS: 0000555556ffa300(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000055d594f5c028 CR3: 0000000075643000 CR4: 0000000000350ef0 ---------------- Code disassembly (best guess): 0: 00 0f add %cl,(%rdi) 2: 85 64 03 00 test %esp,0x0(%rbx,%rax,1) 6: 00 49 8b add %cl,-0x75(%rcx) 9: 5d pop %rbp a: 00 49 39 add %cl,0x39(%rcx) d: dd 0f fisttpll (%rdi) f: 84 fa test %bh,%dl 11: 01 00 add %eax,(%rax) 13: 00 e8 add %ch,%al 15: 71 fc jno 0x13 17: b1 fd mov $0xfd,%cl 19: 48 8d 7b 18 lea 0x18(%rbx),%rdi 1d: 48 89 f8 mov %rdi,%rax 20: 48 89 fa mov %rdi,%rdx 23: 48 c1 e8 03 shr $0x3,%rax 27: 83 e2 07 and $0x7,%edx * 2a: 0f b6 04 28 movzbl (%rax,%rbp,1),%eax <-- trapping instruction 2e: 38 d0 cmp %dl,%al 30: 7f 08 jg 0x3a 32: 84 c0 test %al,%al 34: 0f 85 f2 02 00 00 jne 0x32c 3a: 44 0f b6 73 18 movzbl 0x18(%rbx),%r14d 3f: 31 .byte 0x31 --- 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