From mboxrd@z Thu Jan 1 00:00:00 1970 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 5A9C01C4A1C for ; Fri, 20 Dec 2024 12:16:04 +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=1734696966; cv=none; b=T6bfWMOZwLQ8NIoHw37T+vYWZpQ5M/lCieCjw2umhcvo/WG13IAX2KWGJQPjpZwvEdqN9o6dAuM9sefDlhMqsmElxkyRqQfMnPGzazOr2pdk1YlVZI58/r5jxTpxEOfcptiSG3H1xs7Ovt1/FesTFiEHeYDNj7vPxqj2P5FNwbU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734696966; c=relaxed/simple; bh=bF+dcfBaA2DPhPMs1vcMdVsoDBW1S4klSiEmzNrCw5I=; h=MIME-Version:Date:In-Reply-To:Message-ID:Subject:From:To: Content-Type; b=QJURq1buHpR1mZM1vgn/etqVFt41bX3u5s1Zx6i8nmWPpYmVws4t/zFebaRKS/e/8HqunZvVQheVwPzdMCneKEwdQoR58Al08Cm4S0XMAbNBcnsmuWZfmgphLOEO6FIlc3zNUmK+t/LxCgBRmrTxyKvTagxuj2gYBJClbPfKPrI= 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-3a9d4ea9e0cso17364375ab.0 for ; Fri, 20 Dec 2024 04:16:04 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734696963; x=1735301763; h=to:from:subject:message-id:in-reply-to:date:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=XYGRlCXbAkdydrhYujg1Fw8OWpFUuGTKnBKgiArnS6o=; b=RCZ/1kJwm1y7j0bdLafDqxWheJQqIoathV/4dXe/VdtVKdBh+avMErlzOzC3FoKqn2 JUKlDFMkcqqaJ7hgn4fCyXxgXO+aEfpNRypPlc2Eq/VPQV+8Muol73vDO14ZlsNYEyTc /zCb2Pesq1lm1WhmjIa4zIjjd1Z9WgFwxcZ4LM6alOHAIlQ8mSU4tH7ofckDmpmCNW26 Qpd1o5/mQK40/A7WWDnmeIlTmbSwNcmlLfXgSEhK07vt5Pj/CVadS8CaesS38H/6K3ZK C5j4WRbVqN8ymPbz8bEcFz+xFpB4W3FWrMIIklLkZbkOF8kNli4F2VhEd7/rMXj6rumJ i5ug== X-Gm-Message-State: AOJu0YzZHIy3CSl2pN3xpmSiK5hFfWDbe+Gh1/fOJ23oQ7gBlg5thn33 uTHdLQ6UK5nHhKX8fKzq6qJ/o0CSUcS8I99tqmyI07guSsPMAtTTAWXYVawR5eHHzqThbDlpsG0 cmMy6VyxkhhPpiLK+iYitjQQfT5/OEBB51Ie/H53trgYiSeFrIzit7qE= X-Google-Smtp-Source: AGHT+IGX6iHrtHRV/6IPzSW77ZX6D8cHRZWsas5PPX8Y0RToFRvybFOBJpBOR2vi4LcI+lG/S04gs/jcP+gA13IgsWGkF07a8eWA 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:2408:b0:3a7:8ee6:cd6e with SMTP id e9e14a558f8ab-3c2d26813eamr28441205ab.8.1734696963579; Fri, 20 Dec 2024 04:16:03 -0800 (PST) Date: Fri, 20 Dec 2024 04:16:03 -0800 In-Reply-To: <636563a2-8f73-4f08-b882-57b68fe7d0fc@I-love.SAKURA.ne.jp> X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <67656003.050a0220.1333dc.00dc.GAE@google.com> Subject: Re: [syzbot] [tomoyo?] general protection fault in tomoyo_gc_thread From: syzbot To: linux-kernel@vger.kernel.org, penguin-kernel@i-love.sakura.ne.jp, syzkaller-bugs@googlegroups.com Content-Type: text/plain; charset="UTF-8" Hello, syzbot has tested the proposed patch but the reproducer is still triggering an issue: general protection fault in tomoyo_init_request_info Oops: general protection fault, probably for non-canonical address 0xdffffc000000000a: 0000 [#1] PREEMPT SMP KASAN PTI KASAN: null-ptr-deref in range [0x0000000000000050-0x0000000000000057] CPU: 1 UID: 0 PID: 6698 Comm: syz.2.57 Not tainted 6.13.0-rc3-syzkaller-g8faabc041a00-dirty #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/25/2024 RIP: 0010:tomoyo_init_request_info+0x6f/0x370 security/tomoyo/util.c:1028 Code: 48 89 fa 48 c1 ea 03 80 3c 02 00 0f 85 98 02 00 00 48 8d 7d 50 48 89 6b 10 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 <0f> b6 04 02 84 c0 74 06 0f 8e 5d 02 00 00 48 8d 7b 4b 44 0f b6 6d RSP: 0018:ffffc90003eef790 EFLAGS: 00010206 RAX: dffffc0000000000 RBX: ffffc90003eef808 RCX: 0000000000000000 RDX: 000000000000000a RSI: ffffffff8452e107 RDI: 0000000000000050 RBP: 0000000000000000 R08: 0000000000000001 R09: 0000000000000000 R10: ffffc90003eef808 R11: 0000000000000000 R12: 0000000000000001 R13: 0000000000048000 R14: ffff8880760cf040 R15: 0000000000000004 FS: 00007f79ac9fe6c0(0000) GS:ffff8880b8700000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000000008 CR3: 000000001dea8000 CR4: 00000000003526f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: tomoyo_check_open_permission+0x27a/0x3c0 security/tomoyo/file.c:769 tomoyo_file_open+0x6b/0x90 security/tomoyo/tomoyo.c:334 security_file_open+0x84/0x1e0 security/security.c:3105 do_dentry_open+0x57e/0x1ea0 fs/open.c:928 vfs_open+0x82/0x3f0 fs/open.c:1075 do_open fs/namei.c:3828 [inline] path_openat+0x1e6a/0x2d60 fs/namei.c:3987 do_filp_open+0x20c/0x470 fs/namei.c:4014 do_sys_openat2+0x17a/0x1e0 fs/open.c:1402 do_sys_open fs/open.c:1417 [inline] __do_sys_openat fs/open.c:1433 [inline] __se_sys_openat fs/open.c:1428 [inline] __x64_sys_openat+0x175/0x210 fs/open.c:1428 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f79ad785d19 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 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 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f79ac9fe038 EFLAGS: 00000246 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 00007f79ad975fa0 RCX: 00007f79ad785d19 RDX: 0000000000040000 RSI: 0000000020000040 RDI: ffffffffffffff9c RBP: 00007f79ad801a20 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f79ad975fa0 R15: 00007ffe8d39dad8 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:tomoyo_init_request_info+0x6f/0x370 security/tomoyo/util.c:1028 Code: 48 89 fa 48 c1 ea 03 80 3c 02 00 0f 85 98 02 00 00 48 8d 7d 50 48 89 6b 10 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 <0f> b6 04 02 84 c0 74 06 0f 8e 5d 02 00 00 48 8d 7b 4b 44 0f b6 6d RSP: 0018:ffffc90003eef790 EFLAGS: 00010206 RAX: dffffc0000000000 RBX: ffffc90003eef808 RCX: 0000000000000000 RDX: 000000000000000a RSI: ffffffff8452e107 RDI: 0000000000000050 RBP: 0000000000000000 R08: 0000000000000001 R09: 0000000000000000 R10: ffffc90003eef808 R11: 0000000000000000 R12: 0000000000000001 R13: 0000000000048000 R14: ffff8880760cf040 R15: 0000000000000004 FS: 00007f79ac9fe6c0(0000) GS:ffff8880b8700000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000c006f48000 CR3: 000000001dea8000 CR4: 00000000003526f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: 48 89 fa mov %rdi,%rdx 3: 48 c1 ea 03 shr $0x3,%rdx 7: 80 3c 02 00 cmpb $0x0,(%rdx,%rax,1) b: 0f 85 98 02 00 00 jne 0x2a9 11: 48 8d 7d 50 lea 0x50(%rbp),%rdi 15: 48 89 6b 10 mov %rbp,0x10(%rbx) 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: 0f b6 04 02 movzbl (%rdx,%rax,1),%eax <-- trapping instruction 2e: 84 c0 test %al,%al 30: 74 06 je 0x38 32: 0f 8e 5d 02 00 00 jle 0x295 38: 48 8d 7b 4b lea 0x4b(%rbx),%rdi 3c: 44 rex.R 3d: 0f .byte 0xf 3e: b6 6d mov $0x6d,%dh Tested on: commit: 8faabc04 Merge tag 'net-6.13-rc4' of git://git.kernel... git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=13f200c4580000 kernel config: https://syzkaller.appspot.com/x/.config?x=c22efbd20f8da769 dashboard link: https://syzkaller.appspot.com/bug?extid=bf6351831bc4f9148d98 compiler: gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40 patch: https://syzkaller.appspot.com/x/patch.diff?x=170dcf30580000