Received: by 2002:ab2:3141:0:b0:1ed:23cc:44d1 with SMTP id i1csp52871lqg; Thu, 29 Feb 2024 19:47:24 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVPH6EGss3BUjK43t+MlF8kbzqagnU3XUAXp2NTfpksmdmhCurijMudXYllpOFw0CamFb0XttnhqoYLWYtGRKy61ZSULkj7cIE8ZzoOlw== X-Google-Smtp-Source: AGHT+IEkcGHpkKtPDQdA5xR9i0XaKZ/Nxiz3FHiuAxwhemQ8XpwjNtYrkJRwg+GxvG3SduCVyXod X-Received: by 2002:a05:620a:5e09:b0:787:b5e7:6c72 with SMTP id xz9-20020a05620a5e0900b00787b5e76c72mr640592qkn.66.1709264843868; Thu, 29 Feb 2024 19:47:23 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709264843; cv=pass; d=google.com; s=arc-20160816; b=mTrFOS8PSVhxwje80Las1ua9wXYvZzacCL7q8+m5z6qBOLEwnidLe3Hc0f7PsxEIK2 yy/mHBA8GmLG8BfGlou+xBK3I3yKz8uYVV9gG5WtNwf0rAlUX1roUgKbmnhVnUlkqF3y SjN45F5jTG1zPyiIoddj/jnPKp+r7v2CZ0Bj/Z29aw+e/TzNmac2L9ezXZXwPzDmf+2I w4EO/smSs32xGRJES1C+x6OFyALHUGqFMckr7MlC0IpOEjWx+ua/d6tH8Karh2VKc8K/ 6oVb9HAnkmHceaY0s986Hz7oeqUBDxeeqTS6a/Xl44dHEX2o39/u6duDVChieT0Z6zAs D3mQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=VkcaSuD/e18p8NNnt1Mz3M/RrO78CTrFgbKnRB/hUAw=; fh=M+YAqZ3BO4lS8CzuXPXe7y+Ed2whvy28lzUfllu+A1g=; b=L1kv2DRj/08cSsuJs3u2Oz493DhVl49aVJN3noqRN5ov41SL8x8N8CSpU3Jb6Nyo0t ZjKRcubRfgUH0TRiBHtmE9OxaZFEbJBhzbjDFkDAatRjAbXIPF6y/GKnfVv8HA5x8bWf B9XpHPINwiZUgtOUro5loiU18fTWVvLhmiALg7TIMYccWjRfHi6VDueFWjXm0JpHQExy 9NgMgXP7P8ry7wBcgB+HO6jlcZqWmAJ8hgHUGycdhr6NP3pW/qyeAZWk7Jd81/4LVB3Y xCIlSKQvcHUtduh1ou/WyibCP/ky10M5hPwuJqscLTGyvMdO+jhh0z2YkwWzHToluvLe bGQQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bytedance.com header.s=google header.b=E+VU+tN0; arc=pass (i=1 spf=pass spfdomain=bytedance.com dkim=pass dkdomain=bytedance.com dmarc=pass fromdomain=bytedance.com); spf=pass (google.com: domain of linux-kernel+bounces-87880-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-87880-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=bytedance.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id oq41-20020a05620a612900b00785abacdab6si2772987qkn.27.2024.02.29.19.47.23 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Feb 2024 19:47:23 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-87880-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@bytedance.com header.s=google header.b=E+VU+tN0; arc=pass (i=1 spf=pass spfdomain=bytedance.com dkim=pass dkdomain=bytedance.com dmarc=pass fromdomain=bytedance.com); spf=pass (google.com: domain of linux-kernel+bounces-87880-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-87880-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=bytedance.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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 7B9051C224AE for ; Fri, 1 Mar 2024 03:47:23 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 120DF4645B; Fri, 1 Mar 2024 03:47:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bytedance.com header.i=@bytedance.com header.b="E+VU+tN0" Received: from mail-il1-f172.google.com (mail-il1-f172.google.com [209.85.166.172]) (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 935C616FF42 for ; Fri, 1 Mar 2024 03:47:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.166.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709264836; cv=none; b=VDHBWoOW8ZJZenGaDVlDajf9b8CSIgrmnFnuqI3lJ/xlURbDXFv/sNo8P3SGGkrWdRvZP7PGr3v9Bc5aBRR2d3HSvnui9ewoyh3JAwSZ7xTZzrvGxlt6HQjAd0zHqpJF8q32vwJGAS6izFr8nb6/X/7TdNhEoaD3EaikIM30jjQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709264836; c=relaxed/simple; bh=5lI8qA8Sd9zWuBqqV8KDmYpslmVSQLcRzhgA/iqHo/Q=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=NvBsPE9YSn/iMLrSHDDMY1nu2ThcJGy3J7D9FWseQMlQvczsQAj0UZRYEFhp6WSoryonXUGpPSDC4PzosKspI5+idoMdwge2z2jWYXB6aeSJ5dKMXcH/qbBbJ5TTu0RvoF8jWfRTXdJDpkTJojKw3f/k0fJ++PYt0NDmldfyuWc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=bytedance.com; spf=pass smtp.mailfrom=bytedance.com; dkim=pass (2048-bit key) header.d=bytedance.com header.i=@bytedance.com header.b=E+VU+tN0; arc=none smtp.client-ip=209.85.166.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=bytedance.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bytedance.com Received: by mail-il1-f172.google.com with SMTP id e9e14a558f8ab-3657dbe2008so8201465ab.1 for ; Thu, 29 Feb 2024 19:47:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bytedance.com; s=google; t=1709264833; x=1709869633; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=VkcaSuD/e18p8NNnt1Mz3M/RrO78CTrFgbKnRB/hUAw=; b=E+VU+tN0X0fJbfyNsuauKei4D5nrJMVf73ExV/93thDRx6G3eiiYPe01FjY4v1Ymir 084s4cSiwi63j0nKJ5Q4EAcIpVQPL72MqqbBvO2exzi/811uhXhAUXsp02eryvXTSquk KlkwGMRAHlf1P6vDN56EZvtmwL0vEB6FBdbvXc+/MvyJoulTv4TBwjjwhx9NK3zeVLhb xIJsYO7Pgd2MdDIRAmWwJBcNv8SgX31qKOo8UxJlSuPpvWWDhX+koZJT0fM0d8RZraEh C4avPUK3uUkPg4gIxSPrcUBxNuZVwIC/B0RaHmlMtMvR52EXFLgdd18T/bDDnhEl7Bdz qmmA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709264833; x=1709869633; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=VkcaSuD/e18p8NNnt1Mz3M/RrO78CTrFgbKnRB/hUAw=; b=XoGdPfqlT2QNPpcc65iZGJVOz7VbUVR7i7/OvUK0WDUMzG896ecog4el9lFISSegE5 WjPmj3aqsoRY4vPS1YL8DCKBxVWFI8PZgcFfb6EoT0PdAhBn3R87nCD2qs18O+5o42K1 zu4Ou0rVEkP4Z8DmHWe6tO3GDdgGJle2Egm1HgBL78aJGQM1HlZkTxFtCenScnkn9UI4 b5BlDMRaAoD40feb8hQamVlHadP5/XQtCcpjuH8ZWKGcJkN9bAerCd5WTsfEBf/UDrsL p9+Pv/gNPTNSYQ4+fdTjrnkwvYEqnohVO8G+7pTPwTG2VflzL6DZfKTx2kSnECR5J+mv X11w== X-Gm-Message-State: AOJu0YxN4qymkER3bMFDFagnP0pcYbjBgaDVFJ3q1FbectshcijC+Bqs VFsmHzybQYJDpo0geZHHchEDarjpJ2dI4cEzKhkEuREmUnQ36ecNYj/92cfNLn0= X-Received: by 2002:a05:6e02:1807:b0:365:69a:86b2 with SMTP id a7-20020a056e02180700b00365069a86b2mr844972ilv.17.1709264833447; Thu, 29 Feb 2024 19:47:13 -0800 (PST) Received: from [10.84.152.139] ([203.208.167.155]) by smtp.gmail.com with ESMTPSA id z17-20020a170903019100b001db4433ef95sm2297074plg.152.2024.02.29.19.47.10 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 29 Feb 2024 19:47:13 -0800 (PST) Message-ID: <123ebd58-9ca1-4a12-bdb7-c35d0c48c93c@bytedance.com> Date: Fri, 1 Mar 2024 11:47:05 +0800 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: general protection fault, probably for non-canonical address in pick_next_task_fair() Content-Language: en-US To: Breno Leitao , peterz@infradead.org, bp@alien8.de, tglx@linutronix.de Cc: linux-kernel@vger.kernel.org, Chen Yu , Oliver Sang References: From: Abel Wu In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit (+ Chen Yu, Oliver Sang) On 2/29/24 11:55 PM, Breno Leitao Wrote: > I've been running some stress test using stress-ng with a kernel with some > debug options enabled, such as KASAN and friends (See the config below). > > I saw it in rc4 and the decode instructions are a bit off (as it is here > also - search for mavabs in dmesg below and you will find something as `(bad)`, > so I though it was a machine issue. But now I see it again, and I am sharing > for awareness. > > This is happening in upstream kernel against the following commit > d206a76d7d2726 ("Linux 6.8-rc6") > > This is the exercpt that shows before the crash: > > general protection fault, probably for non-canonical address 0xdffffc0000000014: 0000 [#1] PREEMPT SMP DEBUG_PAGEALLOC KASAN > KASAN: null-ptr-deref in range [0x00000000000000a0-0x00000000000000a7] > > This is the stack that is getting it > > ? __die_body (arch/x86/kernel/dumpstack.c:421) > ? die_addr (arch/x86/kernel/dumpstack.c:460) > ? exc_general_protection (arch/x86/kernel/traps.c:? arch/x86/kernel/traps.c:643) > ? asm_exc_general_protection (arch/x86/include/asm/idtentry.h:564) > ? pick_next_task_fair (kernel/sched/sched.h:1453 kernel/sched/fair.c:8435) > ? pick_next_task_fair (kernel/sched/fair.c:5463 kernel/sched/fair.c:8434) > ? update_rq_clock_task (kernel/sched/core.c:?) > __schedule (kernel/sched/core.c:6022 kernel/sched/core.c:6545 kernel/sched/core.c:6691) > schedule (kernel/sched/core.c:6803 kernel/sched/core.c:6817) > syscall_exit_to_user_mode (kernel/entry/common.c:98 include/linux/entry-common.h:328 kernel/entry/common.c:201 kernel/entry/common.c:212) > do_syscall_64 (arch/x86/entry/common.c:102) > ? irqentry_exit_to_user_mode (kernel/entry/common.c:228) > entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:129) > > Full dmesg: https://paste.mozilla.org/RiLnt4QO# > Configs: https://paste.mozilla.org/XJ9wbdRp >