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 X-Spam-Level: X-Spam-Status: No, score=-5.3 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id AABD1C432BE for ; Tue, 31 Aug 2021 10:59:48 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 3321460FE8 for ; Tue, 31 Aug 2021 10:59:48 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 3321460FE8 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=i-love.sakura.ne.jp Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=kvack.org Received: by kanga.kvack.org (Postfix) id 6CF336B0071; Tue, 31 Aug 2021 06:59:47 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 67ED76B0072; Tue, 31 Aug 2021 06:59:47 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 56D068D0001; Tue, 31 Aug 2021 06:59:47 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0106.hostedemail.com [216.40.44.106]) by kanga.kvack.org (Postfix) with ESMTP id 43F176B0071 for ; Tue, 31 Aug 2021 06:59:47 -0400 (EDT) Received: from smtpin18.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay03.hostedemail.com (Postfix) with ESMTP id DAAAD8249980 for ; Tue, 31 Aug 2021 10:59:46 +0000 (UTC) X-FDA: 78535080372.18.29EA5AF Received: from www262.sakura.ne.jp (www262.sakura.ne.jp [202.181.97.72]) by imf01.hostedemail.com (Postfix) with ESMTP id DFAD9503DED1 for ; Tue, 31 Aug 2021 10:59:45 +0000 (UTC) Received: from fsav315.sakura.ne.jp (fsav315.sakura.ne.jp [153.120.85.146]) by www262.sakura.ne.jp (8.15.2/8.15.2) with ESMTP id 17VAxfx3037267 for ; Tue, 31 Aug 2021 19:59:41 +0900 (JST) (envelope-from penguin-kernel@i-love.sakura.ne.jp) Received: from www262.sakura.ne.jp (202.181.97.72) by fsav315.sakura.ne.jp (F-Secure/fsigk_smtp/550/fsav315.sakura.ne.jp); Tue, 31 Aug 2021 19:59:41 +0900 (JST) X-Virus-Status: clean(F-Secure/fsigk_smtp/550/fsav315.sakura.ne.jp) Received: from [192.168.1.9] (M106072142033.v4.enabler.ne.jp [106.72.142.33]) (authenticated bits=0) by www262.sakura.ne.jp (8.15.2/8.15.2) with ESMTPSA id 17VAxYJp036886 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NO) for ; Tue, 31 Aug 2021 19:59:41 +0900 (JST) (envelope-from penguin-kernel@i-love.sakura.ne.jp) Subject: [syzbot] BUG: unable to handle kernel paging request in tomoyo_encode2 References: <000000000000bae2cf05cad87aff@google.com> To: linux-mm From: Tetsuo Handa X-Forwarded-Message-Id: <000000000000bae2cf05cad87aff@google.com> Message-ID: <643dc0f6-694f-1afa-fa90-34674c4d1c38@i-love.sakura.ne.jp> Date: Tue, 31 Aug 2021 19:59:35 +0900 User-Agent: Mozilla/5.0 (Windows NT 6.3; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 MIME-Version: 1.0 In-Reply-To: <000000000000bae2cf05cad87aff@google.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Authentication-Results: imf01.hostedemail.com; dkim=none; dmarc=none; spf=none (imf01.hostedemail.com: domain of penguin-kernel@i-love.sakura.ne.jp has no SPF policy when checking 202.181.97.72) smtp.mailfrom=penguin-kernel@i-love.sakura.ne.jp X-Rspamd-Server: rspam03 X-Rspamd-Queue-Id: DFAD9503DED1 X-Stat-Signature: 8hmxa9qkqcowje589wxf1j8nsko1czmz X-HE-Tag: 1630407585-172413 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: Hello. I think this report should be sent to linux-mm. -------- Forwarded Message -------- Date: Tue, 31 Aug 2021 03:33:24 -0700 Message-ID: <000000000000bae2cf05cad87aff@google.com> Subject: [syzbot] BUG: unable to handle kernel paging request in tomoyo_encode2 From: syzbot To: jmorris@namei.org, linux-kernel@vger.kernel.org, linux-security-module@vger.kernel.org, penguin-kernel@I-love.SAKURA.ne.jp, serge@hallyn.com, syzkaller-bugs@googlegroups.com, takedakn@nttdata.co.jp Hello, syzbot found the following issue on: HEAD commit: 7d2a07b76933 Linux 5.14 git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=12dfff03300000 kernel config: https://syzkaller.appspot.com/x/.config?x=113c5df900d8cf12 dashboard link: https://syzkaller.appspot.com/bug?extid=eee04f9a4a45fabcebef compiler: Debian clang version 11.0.1-2, GNU ld (GNU Binutils for Debian) 2.35.1 Unfortunately, I don't have any reproducer for this issue yet. IMPORTANT: if you fix the issue, please add the following tag to the commit: Reported-by: syzbot+eee04f9a4a45fabcebef@syzkaller.appspotmail.com BUG: unable to handle page fault for address: 00000000001b7e20 #PF: supervisor read access in kernel mode #PF: error_code(0x0000) - not-present page PGD 0 P4D 0 Oops: 0000 [#1] PREEMPT SMP KASAN CPU: 1 PID: 4861 Comm: systemd-udevd Not tainted 5.14.0-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:slab_alloc_node mm/slub.c:2943 [inline] RIP: 0010:slab_alloc mm/slub.c:2967 [inline] RIP: 0010:__kmalloc+0x1ab/0x390 mm/slub.c:4111 Code: 84 11 01 00 00 48 83 78 10 00 0f 84 06 01 00 00 48 8b 7d 00 40 f6 c7 0f 0f 85 a7 01 00 00 45 84 c0 0f 84 a0 01 00 00 8b 45 28 <49> 8b 5c 05 00 48 89 d1 48 83 c1 08 4c 89 e8 65 48 0f c7 0f 0f 94 RSP: 0018:ffffc90000e4f8e0 EFLAGS: 00010202 RAX: 0000000000000020 RBX: 0000000000000d40 RCX: 0000000000000000 RDX: 000000000083bf29 RSI: 0000000000000040 RDI: 0000000000054e70 RBP: ffff888011041640 R08: dffffc0000000001 R09: fffffbfff1b74f1e R10: fffffbfff1b74f1e R11: 0000000000000000 R12: 0000000000000032 R13: 00000000001b7e00 R14: 0000000000000032 R15: 0000000000000d40 FS: 00007f39d836f8c0(0000) GS:ffff8880b9d00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00000000001b7e20 CR3: 000000001caf9000 CR4: 00000000001506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: kmalloc include/linux/slab.h:596 [inline] kzalloc include/linux/slab.h:721 [inline] tomoyo_encode2+0x25a/0x560 security/tomoyo/realpath.c:45 tomoyo_encode security/tomoyo/realpath.c:80 [inline] tomoyo_realpath_from_path+0x5c3/0x610 security/tomoyo/realpath.c:288 tomoyo_get_realpath security/tomoyo/file.c:151 [inline] tomoyo_path_perm+0x201/0x650 security/tomoyo/file.c:822 security_inode_getattr+0xc0/0x140 security/security.c:1333 vfs_getattr fs/stat.c:139 [inline] vfs_fstat fs/stat.c:164 [inline] __do_sys_newfstat fs/stat.c:404 [inline] __se_sys_newfstat+0xba/0x820 fs/stat.c:401 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x44/0xae RIP: 0033:0x7f39d71e12e2 Code: 48 8b 05 b9 db 2b 00 64 c7 00 16 00 00 00 b8 ff ff ff ff c3 0f 1f 40 00 83 ff 01 77 33 48 63 fe b8 05 00 00 00 48 89 d6 0f 05 <48> 3d 00 f0 ff ff 77 06 f3 c3 0f 1f 40 00 48 8b 15 81 db 2b 00 f7 RSP: 002b:00007ffd97de9338 EFLAGS: 00000246 ORIG_RAX: 0000000000000005 RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f39d71e12e2 RDX: 00007ffd97de9350 RSI: 00007ffd97de9350 RDI: 000000000000000e RBP: 00007ffd97de94f0 R08: 0000000000000000 R09: 0000000000000001 R10: 0000000000080000 R11: 0000000000000246 R12: 0000558889f0be90 R13: 0000558889ef8010 R14: 0000558889efb450 R15: 00007ffd97de94b0 Modules linked in: CR2: 00000000001b7e20 ---------------- Code disassembly (best guess): 0: 84 11 test %dl,(%rcx) 2: 01 00 add %eax,(%rax) 4: 00 48 83 add %cl,-0x7d(%rax) 7: 78 10 js 0x19 9: 00 0f add %cl,(%rdi) b: 84 06 test %al,(%rsi) d: 01 00 add %eax,(%rax) f: 00 48 8b add %cl,-0x75(%rax) 12: 7d 00 jge 0x14 14: 40 f6 c7 0f test $0xf,%dil 18: 0f 85 a7 01 00 00 jne 0x1c5 1e: 45 84 c0 test %r8b,%r8b 21: 0f 84 a0 01 00 00 je 0x1c7 27: 8b 45 28 mov 0x28(%rbp),%eax * 2a: 49 8b 5c 05 00 mov 0x0(%r13,%rax,1),%rbx <-- trapping instruction 2f: 48 89 d1 mov %rdx,%rcx 32: 48 83 c1 08 add $0x8,%rcx 36: 4c 89 e8 mov %r13,%rax 39: 65 48 0f c7 0f cmpxchg16b %gs:(%rdi) 3e: 0f .byte 0xf 3f: 94 xchg %eax,%esp --- 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.