Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp7376001rdb; Wed, 3 Jan 2024 13:58:21 -0800 (PST) X-Google-Smtp-Source: AGHT+IHo7hi3SnOZbuj36IBv5m2IW4B8UG7Iaw6fRgFhirvUdcr20pDCK5ti4pHpwKtu46koIGM7 X-Received: by 2002:a37:ef0f:0:b0:781:d3b6:3637 with SMTP id j15-20020a37ef0f000000b00781d3b63637mr3988363qkk.110.1704319100952; Wed, 03 Jan 2024 13:58:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704319100; cv=none; d=google.com; s=arc-20160816; b=Y0Gan+SG5lg+NuFXewtGGnClwLgflVNn2bSh0UPFu5P0mJOX1+si4Kot6E8V2XCcqH 8R38UexuBtxZNNCM3mPeh+6qW7c40k3KDeDoefdyuobUV2kEnPWNPEtMvqCfaWRqJItY b7Xmm6WFwHoJcQ4ifn2svoEYyaBDiLWdfUEua0Bwm0ZMy1HljJZVvegTjacHFrILcp3+ kOCcMCRBhPP3oukPuQIh/NGLU/D9a18gco3EaHGcMsybepBP0IoWcu06n53uC0eyHh/O Pc90Gv8z6KsHyGwWT3SBIeJ4ZkdiK8NDdur50Bc3q5jSJattd4AJ9jOOe9L6CSs37Jak v4xQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :subject:cc:to:from:date; bh=q42loKSDrBXHHZ2Bp2BSBzAxOknH5yjIzKPw0mjrJmc=; fh=1S1v1bpwruoF8kgQXWieHepCLXyVLbdJ5x8KIx5PwcE=; b=WJycsifNy3su2JPKvdqYWr8Pyg/veJ5IJikc/HNwcI6CXkSgw5LmPe5LgelfGj6HQu wpbRUGRZXB/knugWVOKd9aeY+8Dyuk0sPIkcNquE7sEt0I3Tj0kXIiH0SzODGWIeycPR bNHJkRiWZzUNFEHNepq+uc5l6g8Hwr8azhPH5xpx7r6E+qEIaV8bqzumn3aPWXjubAl2 If6XJLGYqVnsGdUOatmwgp4a/eHGs95JiZZv9Gv++UV5aCk9jPZ2YSYLgzUmWqu7DnNy YlQdlABKhr62WmNK93Nto2aTe2ASusf3ObfxSjRiO9qZW74uDwWmKmzyWdCPJod7jAxX jcXw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-16041-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-16041-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id bp39-20020a05620a45a700b007811615ef4asi31989987qkb.740.2024.01.03.13.58.20 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Jan 2024 13:58:20 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-16041-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-16041-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-16041-linux.lists.archive=gmail.com@vger.kernel.org" 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id A4F051C240A4 for ; Wed, 3 Jan 2024 21:58:20 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 31F9B1DA29; Wed, 3 Jan 2024 21:58:06 +0000 (UTC) X-Original-To: linux-kernel@vger.kernel.org Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id AFA2D1DA38; Wed, 3 Jan 2024 21:58:05 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 53978C433C8; Wed, 3 Jan 2024 21:58:04 +0000 (UTC) Date: Wed, 3 Jan 2024 16:59:07 -0500 From: Steven Rostedt To: syzbot Cc: linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, linux-trace-kernel@vger.kernel.org, mathieu.desnoyers@efficios.com, mhiramat@kernel.org, syzkaller-bugs@googlegroups.com, Linus Torvalds Subject: Re: [syzbot] [fs?] [trace?] BUG: unable to handle kernel paging request in tracefs_apply_options Message-ID: <20240103165907.19d3a36c@gandalf.local.home> In-Reply-To: <0000000000006bf22a060e117a8d@google.com> References: <0000000000006bf22a060e117a8d@google.com> X-Mailer: Claws Mail 3.19.1 (GTK+ 2.24.33; x86_64-pc-linux-gnu) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Wed, 03 Jan 2024 13:41:31 -0800 syzbot wrote: > Hello, > > syzbot found the following issue on: > > HEAD commit: 453f5db0619e Merge tag 'trace-v6.7-rc7' of git://git.kerne.. > git tree: upstream > console+strace: https://syzkaller.appspot.com/x/log.txt?x=10ec3829e80000 > kernel config: https://syzkaller.appspot.com/x/.config?x=f8e72bae38c079e4 > dashboard link: https://syzkaller.appspot.com/bug?extid=f8a023e0c6beabe2371a > 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=1414af31e80000 > C reproducer: https://syzkaller.appspot.com/x/repro.c?x=15e52409e80000 > > Downloadable assets: > disk image: https://storage.googleapis.com/syzbot-assets/38b92a7149e8/disk-453f5db0.raw.xz > vmlinux: https://storage.googleapis.com/syzbot-assets/4f872267133f/vmlinux-453f5db0.xz > kernel image: https://storage.googleapis.com/syzbot-assets/587572061791/bzImage-453f5db0.xz > > The issue was bisected to: > > commit 7e8358edf503e87236c8d07f69ef0ed846dd5112 > Author: Steven Rostedt (Google) > Date: Fri Dec 22 00:07:57 2023 +0000 > > eventfs: Fix file and directory uid and gid ownership > > bisection log: https://syzkaller.appspot.com/x/bisect.txt?x=108cd519e80000 > final oops: https://syzkaller.appspot.com/x/report.txt?x=128cd519e80000 > console output: https://syzkaller.appspot.com/x/log.txt?x=148cd519e80000 > > IMPORTANT: if you fix the issue, please add the following tag to the commit: > Reported-by: syzbot+f8a023e0c6beabe2371a@syzkaller.appspotmail.com > Fixes: 7e8358edf503 ("eventfs: Fix file and directory uid and gid ownership") > > BUG: unable to handle page fault for address: fffffffffffffff0 > #PF: supervisor read access in kernel mode > #PF: error_code(0x0000) - not-present page > PGD d734067 P4D d734067 PUD d736067 PMD 0 > Oops: 0000 [#1] PREEMPT SMP KASAN > CPU: 0 PID: 5056 Comm: syz-executor170 Not tainted 6.7.0-rc7-syzkaller-00049-g453f5db0619e #0 > Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/2023 > RIP: 0010:set_gid fs/tracefs/inode.c:224 [inline] > RIP: 0010:tracefs_apply_options+0x4d0/0xa40 fs/tracefs/inode.c:337 > Code: 24 10 49 8b 1e 48 83 c3 f0 74 3d 48 89 d8 48 c1 e8 03 48 bd 00 00 00 00 00 fc ff df 80 3c 28 00 74 08 48 89 df e8 70 ff 88 fe <48> 8b 1b 48 89 de 48 83 e6 02 31 ff e8 bf fe 2c fe 48 83 e3 02 75 > RSP: 0018:ffffc900040ffca8 EFLAGS: 00010246 > RAX: 1ffffffffffffffe RBX: fffffffffffffff0 RCX: ffff888014bf5940 > RDX: 0000000000000000 RSI: 0000000000000004 RDI: ffffc900040ffc20 > RBP: dffffc0000000000 R08: 0000000000000003 R09: fffff5200081ff84 > R10: dffffc0000000000 R11: fffff5200081ff84 R12: ffff88801d743888 > R13: ffff88801b0c3710 R14: ffff88801d7437e8 R15: ffff88801d743810 > FS: 00005555557dd480(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 > CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 > CR2: fffffffffffffff0 CR3: 000000001ec48000 CR4: 00000000003506f0 > DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 > DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 > Call Trace: > > tracefs_remount+0x78/0x80 fs/tracefs/inode.c:353 > reconfigure_super+0x440/0x870 fs/super.c:1143 > do_remount fs/namespace.c:2884 [inline] This is the same bug that was fixed by: https://lore.kernel.org/linux-trace-kernel/20240102151249.05da244d@gandalf.local.home/ And just waiting to be applied: https://lore.kernel.org/all/20240102210731.1f1c5bf5@gandalf.local.home/ Thanks, -- Steve > path_mount+0xc24/0xfa0 fs/namespace.c:3656 > do_mount fs/namespace.c:3677 [inline] > __do_sys_mount fs/namespace.c:3886 [inline] > __se_sys_mount+0x2d9/0x3c0 fs/namespace.c:3863 > do_syscall_x64 arch/x86/entry/common.c:52 [inline] > do_syscall_64+0x45/0x110 arch/x86/entry/common.c:83 > entry_SYSCALL_64_after_hwframe+0x63/0x6b > RIP: 0033:0x7fec326e8d99 > Code: 48 83 c4 28 c3 e8 67 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:00007ffc8103ddf8 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5 > RAX: ffffffffffffffda RBX: 00007ffc8103de00 RCX: 00007fec326e8d99 > RDX: 0000000000000000 RSI: 00000000200000c0 RDI: 0000000000000000 > RBP: 00007ffc8103de08 R08: 0000000020000140 R09: 00007fec326b5b80 > R10: 0000000002200022 R11: 0000000000000246 R12: 0000000000000000 > R13: 00007ffc8103e068 R14: 0000000000000001 R15: 0000000000000001 > > Modules linked in: > CR2: fffffffffffffff0 > ---[ end trace 0000000000000000 ]--- > RIP: 0010:set_gid fs/tracefs/inode.c:224 [inline] > RIP: 0010:tracefs_apply_options+0x4d0/0xa40 fs/tracefs/inode.c:337 > Code: 24 10 49 8b 1e 48 83 c3 f0 74 3d 48 89 d8 48 c1 e8 03 48 bd 00 00 00 00 00 fc ff df 80 3c 28 00 74 08 48 89 df e8 70 ff 88 fe <48> 8b 1b 48 89 de 48 83 e6 02 31 ff e8 bf fe 2c fe 48 83 e3 02 75 > RSP: 0018:ffffc900040ffca8 EFLAGS: 00010246 > RAX: 1ffffffffffffffe RBX: fffffffffffffff0 RCX: ffff888014bf5940 > RDX: 0000000000000000 RSI: 0000000000000004 RDI: ffffc900040ffc20 > RBP: dffffc0000000000 R08: 0000000000000003 R09: fffff5200081ff84 > R10: dffffc0000000000 R11: fffff5200081ff84 R12: ffff88801d743888 > R13: ffff88801b0c3710 R14: ffff88801d7437e8 R15: ffff88801d743810 > FS: 00005555557dd480(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 > CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 > CR2: fffffffffffffff0 CR3: 000000001ec48000 CR4: 00000000003506f0 > DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 > DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 > ---------------- > Code disassembly (best guess): > 0: 24 10 and $0x10,%al > 2: 49 8b 1e mov (%r14),%rbx > 5: 48 83 c3 f0 add $0xfffffffffffffff0,%rbx > 9: 74 3d je 0x48 > b: 48 89 d8 mov %rbx,%rax > e: 48 c1 e8 03 shr $0x3,%rax > 12: 48 bd 00 00 00 00 00 movabs $0xdffffc0000000000,%rbp > 19: fc ff df > 1c: 80 3c 28 00 cmpb $0x0,(%rax,%rbp,1) > 20: 74 08 je 0x2a > 22: 48 89 df mov %rbx,%rdi > 25: e8 70 ff 88 fe call 0xfe88ff9a > * 2a: 48 8b 1b mov (%rbx),%rbx <-- trapping instruction > 2d: 48 89 de mov %rbx,%rsi > 30: 48 83 e6 02 and $0x2,%rsi > 34: 31 ff xor %edi,%edi > 36: e8 bf fe 2c fe call 0xfe2cfefa > 3b: 48 83 e3 02 and $0x2,%rbx > 3f: 75 .byte 0x75 > > > --- > 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. > For information about bisection process see: https://goo.gl/tpsmEJ#bisection > > 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