Received: by 2002:a05:7412:7c14:b0:fa:6e18:a558 with SMTP id ii20csp177008rdb; Sun, 21 Jan 2024 23:56:55 -0800 (PST) X-Google-Smtp-Source: AGHT+IEPKXq2PyQfDFIqE8ECa0PMBNjkWkZL52y+ZS3t3bSrsuBpl1slKkcL5rIMI6E/x3NytPky X-Received: by 2002:a17:907:8e07:b0:a2f:8533:af7a with SMTP id th7-20020a1709078e0700b00a2f8533af7amr2219708ejc.32.1705910214851; Sun, 21 Jan 2024 23:56:54 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705910214; cv=pass; d=google.com; s=arc-20160816; b=Y19gyieS9rCd6oYoqZHf4d6br5BvGjcN5MnqvTQ/yZ9LYCp1mL8+213RF52EC3vGS8 ft137MpK4nert7zEi1twoIOooNvfAJOET+Kh9572WTiWUFWZGwPbxKyTfEjL+XUmw3H+ IKiU56b/Vrf9jUzNGkVmYswa4GMcwmFs5K2Drd/3TMeaJuUjo+NA7HJifiPj5NLSnPgw k0cLvWjMMoSTbBjhh5udbSCIJxvynwKvQYHOxwDhhJ3MlB4WcBRp+RKwot2ARTff33f6 pit4VxIFb8zrgbpGJ0tOEBEUmBJrBE3/bNlyeeCV2n+qS6+KLZN+QUsrfYXKSDcG635T iELQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=to:from:subject:message-id:date:mime-version:list-unsubscribe :list-subscribe:list-id:precedence; bh=Zplnq0PvF89EcZVIkc+zWSM0JISJ0UOuIUavi6LXGuQ=; fh=zvxEldPohxain/6LQsMYeCN9hA2xDTh/Vf13UCtDdls=; b=GicUi669+Zvx35CNMlgmMFooJvrhp9plubeabWSrpJoDKIKta83ntMHz2dnbGK1z4H Oz9LRbJ0MrFSbr5/r/ItjjdeqtPrtpj59Z1D/NvAX1BvJGrv/D26KDEoPpu55QK0cxxo qo1Sti2dLrVknblz9k31FqAY4dvv2AECTO4B1FI0Wb1gHX8crLgamvGqRzivJHsySmaH L0RGPQ2CvJXJ0we0IUHmYCYnUxETO8G6LpYFkELbKO13Q9CfmYuyw+fO8xFZM96QbC2a RYWe5TSstwq28s+YYsYRnjpU8/tjvjpVWFdKkv5qRNgty82USW51sA+7Gx0DFg3VeSyk b2Mw== ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=m3kw2wvrgufz5godrsrytgd7.apphosting.bounces.google.com); spf=pass (google.com: domain of linux-kernel+bounces-32472-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-32472-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=appspotmail.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id r24-20020a170906365800b00a2d5d73c3c6si7889890ejb.91.2024.01.21.23.56.54 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 21 Jan 2024 23:56:54 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-32472-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=m3kw2wvrgufz5godrsrytgd7.apphosting.bounces.google.com); spf=pass (google.com: domain of linux-kernel+bounces-32472-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-32472-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=appspotmail.com 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 am.mirrors.kernel.org (Postfix) with ESMTPS id 37EAD1F23065 for ; Mon, 22 Jan 2024 07:56:30 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5D71E17C8B; Mon, 22 Jan 2024 07:56:22 +0000 (UTC) Received: from mail-il1-f199.google.com (mail-il1-f199.google.com [209.85.166.199]) (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 18BB017BD2 for ; Mon, 22 Jan 2024 07:56:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.166.199 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705910181; cv=none; b=LbaS/lo1GMOMZ1weMPmHqpRxEAkv9EJlVzaEeKHgMtFRc3SddV4xhKMbQGoPnTgCLQNMhHtsKx0BnHFDJVCstO8xiX7O9959dnhh2XH3Zn37RaZUAWhlZOlSy08/mGhTftLgZX4ODETcKiyy4M9HZ41MzvEb8RND78GF6Dbeha8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705910181; c=relaxed/simple; bh=lIkp4WS6tsZeLM/HOMKd7E5IP/q50HZVhoOHHjaOCZE=; h=MIME-Version:Date:Message-ID:Subject:From:To:Content-Type; b=bwQr69iVJLn8jYWFeENVYyuVkpQ6I6z5f9jURogTGCAS+vc+WEa5XzX+4G2C4OAZ5VUJ/zsr/kEUulz2CcPYynveHNdPI+DqikvIYL61oMiSoW+55kLJo9BOf1sHuGh3r7mjzCa7KV9fMXsqX+rv+bc0SSN146GngUtl2UbnfIc= 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.199 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-f199.google.com with SMTP id e9e14a558f8ab-36280fd2213so1399145ab.1 for ; Sun, 21 Jan 2024 23:56:19 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705910179; x=1706514979; h=to:from:subject:message-id:date:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=Zplnq0PvF89EcZVIkc+zWSM0JISJ0UOuIUavi6LXGuQ=; b=LweTuAPAVwWuKm9QkYTtbuDLmYUpOir9n+TSDyrkasljl5wurvh/iP/+mx+ugVZ14Z yQOp88TEKPfX4VYnuwjMQcWYiSAZsqScEuGqq7maRZUqrSpw3MNpl1kriQvoZmvr6x4v TdXIaUbKsKgXOfw5Ow3BsNaVNNBf0rARDja3w0R2wCaK/C76p5BOjXFMpkzFe0cSRPU4 /f3hhSdQpvWS4kSOj5R47TiTH6aY+8RjtGP4QcAuvCiQmj1orOIaQiXqfqzp6b1Jr8/M Q1VkuXwXSIMdMXq4tOkCTARL5Qv5H0LxJc8lvJVcTtSY8atNGnil7DBuG6Jn6RZjwo+e NuaA== X-Gm-Message-State: AOJu0YyVcfacWpJiuACcKGj9owC7cAaQhr9CIWCkGr54lOAISQhVHwVt zDmXBAf6pZ/75zMLWDrYeDmOG0TWaZXO+T7fzfGmIc6hDMXYECI0bD301LANa4S17ful11vD1zh PDWrKkftetRdb84KUrykNpdS9Ym8v8mPJ2Qxc+pldmYttsNa6ipYAGKs= 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:1a25:b0:35f:d9cc:1c9b with SMTP id g5-20020a056e021a2500b0035fd9cc1c9bmr600668ile.0.1705910179369; Sun, 21 Jan 2024 23:56:19 -0800 (PST) Date: Sun, 21 Jan 2024 23:56:19 -0800 X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <00000000000042993b060f842a0c@google.com> Subject: [syzbot] [perf?] WARNING in ctx_sched_in (2) From: syzbot To: acme@kernel.org, adrian.hunter@intel.com, alexander.shishkin@linux.intel.com, irogers@google.com, jolsa@kernel.org, linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, mark.rutland@arm.com, mingo@redhat.com, namhyung@kernel.org, peterz@infradead.org, syzkaller-bugs@googlegroups.com Content-Type: text/plain; charset="UTF-8" Hello, syzbot found the following issue on: HEAD commit: 1b1934dbbdcf Merge tag 'docs-6.8-2' of git://git.lwn.net/l.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=1275fc93e80000 kernel config: https://syzkaller.appspot.com/x/.config?x=68ea41b98043e6e8 dashboard link: https://syzkaller.appspot.com/bug?extid=4ac05c048fbcdd0e3444 compiler: aarch64-linux-gnu-gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40 userspace arch: arm64 Unfortunately, I don't have any reproducer for this issue yet. Downloadable assets: disk image (non-bootable): https://storage.googleapis.com/syzbot-assets/384ffdcca292/non_bootable_disk-1b1934db.raw.xz vmlinux: https://storage.googleapis.com/syzbot-assets/00b728a4f3de/vmlinux-1b1934db.xz kernel image: https://storage.googleapis.com/syzbot-assets/5a3fe8452d59/Image-1b1934db.gz.xz IMPORTANT: if you fix the issue, please add the following tag to the commit: Reported-by: syzbot+4ac05c048fbcdd0e3444@syzkaller.appspotmail.com ------------[ cut here ]------------ WARNING: CPU: 1 PID: 11671 at kernel/events/core.c:3923 ctx_sched_in+0xb0/0x14c kernel/events/core.c:3936 Modules linked in: CPU: 1 PID: 11671 Comm: syz-executor.0 Not tainted 6.7.0-syzkaller-10085-g1b1934dbbdcf #0 Hardware name: linux,dummy-virt (DT) pstate: 004000c9 (nzcv daIF +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : ctx_sched_in+0xb0/0x14c kernel/events/core.c:3923 lr : perf_event_sched_in kernel/events/core.c:2677 [inline] lr : perf_event_context_sched_in kernel/events/core.c:3983 [inline] lr : __perf_event_task_sched_in+0x11c/0x1d0 kernel/events/core.c:4012 sp : ffff8000835e3940 x29: ffff8000835e3940 x28: f2ff00002c4d7570 x27: 000000000000000e x26: 0000000000000001 x25: f5ff00004b7fbc78 x24: f5ff00004b7fb600 x23: f9ff000002eab600 x22: 0000000000000002 x21: 0000000000000007 x20: faff000014d8c900 x19: ffff00007f9d00b8 x18: ffff800083abbba8 x17: ffff7ffffd514000 x16: ffff800080008000 x15: 0000000000000001 x14: 000000000000006e x13: 0000000000000000 x12: ffff8000824dfe70 x11: 0000000000000001 x10: 68221d39881c888f x9 : 9edf92a6ba7012f5 x8 : f5ff00004b7fc7a8 x7 : 0000000000000004 x6 : 0000000000000001 x5 : ffff7ffffd514000 x4 : 0000000000000000 x3 : ffff7ffffd514000 x2 : f5ff00004b7fb600 x1 : 0000000000000002 x0 : 0000000000000000 Call trace: ctx_sched_in+0xb0/0x14c kernel/events/core.c:3936 perf_event_sched_in kernel/events/core.c:2677 [inline] perf_event_context_sched_in kernel/events/core.c:3983 [inline] __perf_event_task_sched_in+0x11c/0x1d0 kernel/events/core.c:4012 perf_event_task_sched_in include/linux/perf_event.h:1484 [inline] finish_task_switch.isra.0+0x104/0x248 kernel/sched/core.c:5269 context_switch kernel/sched/core.c:5403 [inline] __schedule+0x328/0x8a8 kernel/sched/core.c:6727 preempt_schedule_common kernel/sched/core.c:6904 [inline] preempt_schedule+0x48/0x60 kernel/sched/core.c:6928 __raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:152 [inline] _raw_spin_unlock_irqrestore+0x34/0x44 kernel/locking/spinlock.c:194 spin_unlock_irqrestore include/linux/spinlock.h:406 [inline] unlock_page_lruvec_irqrestore include/linux/memcontrol.h:1672 [inline] release_pages+0xf4/0x530 mm/swap.c:1039 free_pages_and_swap_cache+0x58/0x68 mm/swap_state.c:316 tlb_batch_pages_flush+0x54/0x8c mm/mmu_gather.c:98 tlb_flush_mmu_free mm/mmu_gather.c:293 [inline] tlb_flush_mmu mm/mmu_gather.c:300 [inline] tlb_finish_mmu+0x74/0x1c0 mm/mmu_gather.c:392 exit_mmap+0x144/0x280 mm/mmap.c:3290 __mmput+0x3c/0x170 kernel/fork.c:1343 mmput+0x50/0x5c kernel/fork.c:1365 exit_mm kernel/exit.c:569 [inline] do_exit+0x288/0x960 kernel/exit.c:858 __do_sys_exit kernel/exit.c:987 [inline] __se_sys_exit kernel/exit.c:985 [inline] do_group_exit+0x0/0x90 kernel/exit.c:985 __invoke_syscall arch/arm64/kernel/syscall.c:37 [inline] invoke_syscall+0x48/0x114 arch/arm64/kernel/syscall.c:51 el0_svc_common.constprop.0+0x40/0xe0 arch/arm64/kernel/syscall.c:136 do_el0_svc+0x1c/0x28 arch/arm64/kernel/syscall.c:155 el0_svc+0x34/0xd8 arch/arm64/kernel/entry-common.c:678 el0t_64_sync_handler+0x100/0x12c arch/arm64/kernel/entry-common.c:696 el0t_64_sync+0x19c/0x1a0 arch/arm64/kernel/entry.S:595 ---[ end trace 0000000000000000 ]--- Unable to handle kernel NULL pointer dereference at virtual address 0000000000000028 Mem abort info: ESR = 0x0000000096000005 EC = 0x25: DABT (current EL), IL = 32 bits SET = 0, FnV = 0 EA = 0, S1PTW = 0 FSC = 0x05: level 1 translation fault Data abort info: ISV = 0, ISS = 0x00000005, ISS2 = 0x00000000 CM = 0, WnR = 0, TnD = 0, TagAccess = 0 GCS = 0, Overlay = 0, DirtyBit = 0, Xs = 0 user pgtable: 4k pages, 48-bit VAs, pgdp=0000000054ec7000 [0000000000000028] pgd=0800000045bd1003, p4d=0800000045bd1003, pud=0000000000000000 Internal error: Oops: 0000000096000005 [#1] PREEMPT SMP Modules linked in: CPU: 1 PID: 11671 Comm: syz-executor.0 Tainted: G W 6.7.0-syzkaller-10085-g1b1934dbbdcf #0 Hardware name: linux,dummy-virt (DT) pstate: 004000c9 (nzcv daIF +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : perf_ctx_sched_task_cb+0x14/0x80 kernel/events/core.c:3484 lr : perf_event_context_sched_in kernel/events/core.c:3985 [inline] lr : __perf_event_task_sched_in+0x140/0x1d0 kernel/events/core.c:4012 sp : ffff8000835e3950 x29: ffff8000835e3950 x28: f2ff00002c4d7570 x27: 000000000000000e x26: 0000000000000001 x25: f5ff00004b7fbc78 x24: f5ff00004b7fb600 x23: f9ff000002eab600 x22: f5ff00004b7fb600 x21: faff000014d8c900 x20: 0000000000000000 x19: ffff8000824bc0b8 x18: ffff800083abbba8 x17: ffff7ffffd514000 x16: ffff800080008000 x15: 0000000000000001 x14: 000000000000006e x13: 0000000000000000 x12: ffff8000824dfe70 x11: 0000000000000001 x10: 68221d39881c888f x9 : 9edf92a6ba7012f5 x8 : f5ff00004b7fc7a8 x7 : 0000000000000004 x6 : 0000000000000001 x5 : ffff7ffffd514000 x4 : 0000000000000000 x3 : ffff7ffffd514000 x2 : f5ff00004b7fb600 x1 : 0000000000000001 x0 : 0000000000000000 Call trace: perf_ctx_sched_task_cb+0x14/0x80 kernel/events/core.c:3484 perf_event_context_sched_in kernel/events/core.c:3985 [inline] __perf_event_task_sched_in+0x140/0x1d0 kernel/events/core.c:4012 perf_event_task_sched_in include/linux/perf_event.h:1484 [inline] finish_task_switch.isra.0+0x104/0x248 kernel/sched/core.c:5269 context_switch kernel/sched/core.c:5403 [inline] __schedule+0x328/0x8a8 kernel/sched/core.c:6727 preempt_schedule_common kernel/sched/core.c:6904 [inline] preempt_schedule+0x48/0x60 kernel/sched/core.c:6928 __raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:152 [inline] _raw_spin_unlock_irqrestore+0x34/0x44 kernel/locking/spinlock.c:194 spin_unlock_irqrestore include/linux/spinlock.h:406 [inline] unlock_page_lruvec_irqrestore include/linux/memcontrol.h:1672 [inline] release_pages+0xf4/0x530 mm/swap.c:1039 free_pages_and_swap_cache+0x58/0x68 mm/swap_state.c:316 tlb_batch_pages_flush+0x54/0x8c mm/mmu_gather.c:98 tlb_flush_mmu_free mm/mmu_gather.c:293 [inline] tlb_flush_mmu mm/mmu_gather.c:300 [inline] tlb_finish_mmu+0x74/0x1c0 mm/mmu_gather.c:392 exit_mmap+0x144/0x280 mm/mmap.c:3290 __mmput+0x3c/0x170 kernel/fork.c:1343 mmput+0x50/0x5c kernel/fork.c:1365 exit_mm kernel/exit.c:569 [inline] do_exit+0x288/0x960 kernel/exit.c:858 __do_sys_exit kernel/exit.c:987 [inline] __se_sys_exit kernel/exit.c:985 [inline] do_group_exit+0x0/0x90 kernel/exit.c:985 __invoke_syscall arch/arm64/kernel/syscall.c:37 [inline] invoke_syscall+0x48/0x114 arch/arm64/kernel/syscall.c:51 el0_svc_common.constprop.0+0x40/0xe0 arch/arm64/kernel/syscall.c:136 do_el0_svc+0x1c/0x28 arch/arm64/kernel/syscall.c:155 el0_svc+0x34/0xd8 arch/arm64/kernel/entry-common.c:678 el0t_64_sync_handler+0x100/0x12c arch/arm64/kernel/entry-common.c:696 el0t_64_sync+0x19c/0x1a0 arch/arm64/kernel/entry.S:595 Code: a9bd7bfd 910003fd a90153f3 aa0003f4 (f8428e80) ---[ end trace 0000000000000000 ]--- ---------------- Code disassembly (best guess): 0: a9bd7bfd stp x29, x30, [sp, #-48]! 4: 910003fd mov x29, sp 8: a90153f3 stp x19, x20, [sp, #16] c: aa0003f4 mov x20, x0 * 10: f8428e80 ldr x0, [x20, #40]! <-- trapping instruction --- 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 report is already addressed, let syzbot know by replying with: #syz fix: exact-commit-title 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