Received: by 2002:a05:6500:1b41:b0:1fb:d597:ff75 with SMTP id cz1csp117785lqb; Tue, 4 Jun 2024 06:50:58 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXaCaCkf5OUBnyxAgKSGlZNBAO0O8UEZ+hwgg0pbtURbLlEGd7QIMJySm4FDN8pbUVcufXKWr+Y1DONrlPeOF6rLz/ktUu0fincdHRubg== X-Google-Smtp-Source: AGHT+IEYtvBb2RzEDy5qm/6QCNyDiCfngmM2cCcTYgMpSB2gyln9etnxzLrLW0NUt/QW2Cr0dAd+ X-Received: by 2002:a05:6870:a912:b0:250:68e5:9b65 with SMTP id 586e51a60fabf-2508c1b44cemr12267664fac.48.1717509057668; Tue, 04 Jun 2024 06:50:57 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717509057; cv=pass; d=google.com; s=arc-20160816; b=GDXFNWBEoHRIzxC3BfKJ1LGxy/y0vagspG2aYWbttW3c4nLcG6jlTBlD9s7U73tE26 KTcspjp0pXVCj8KIdNoBQImjMbJ6fULNnW12stWn4jOJSWJM5Y5U8odAwddUzUhZzgiB tlxmlG8/STAQ9hpzTIu/SPffhtZ5eh1GMqsmPUkOuRHfzfGuJIEHkUPnma/cT4iUpsTW DOqAUNfeu1aB3kpRwEZy47c1CgDfjrNzC5JLUQRLPs3D9q9muAhOioVz6guqeThaDPkc +J5ORnwtlUo9YdHqKDgFFMxshPlWccUB0CCx89Y7HgjScF8lQ22uGNNLsELa/0u1BuL3 sDpg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:organization:autocrypt:from :content-language:references:cc:to:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature; bh=u/pd06+ksW1iJGXtXxv7mdOfhdSquA4khvqGMWC/0Pw=; fh=NEGkusHxhy8j3FjlvsvIh2LvyvPU5eVvaM1aujigmBA=; b=lMsoGPLr6gevahuwBYv7ai3NwjH3SIctWpIVjLDkHR9W+tKZKbkuGbYWfvJUBZwYyN /S9W4RuVTncN2Kv6TknSzpuluYgf1frrhJPL3AsN6lWfY3VUEJHu9pV8xNrocHQf/Z+3 BY2lLjbtSEILzuc+Pbi1eWHNUS78LGt2WCqgR6RB/21k3TIkAvDJ0ly9kxrqqO0ODTFL 3L03nWpfBdUDZYBMbFOCKwTFrFbnzcePEv5W3W+4txcFc+Uc8pqhRVFwMHAbaz//B0BE vq+hZBBDue5GD14WQ2JcxGyhPVWvaPwFg7SDvmEbT8dODWfzKOueMryE7D+oQGmivFuJ OEqQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=iNumM4CT; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-200746-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-200746-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id af79cd13be357-794f32ba5e6si47936885a.753.2024.06.04.06.50.57 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Jun 2024 06:50:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-200746-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=@redhat.com header.s=mimecast20190719 header.b=iNumM4CT; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-200746-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-200746-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.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 2388D1C21766 for ; Tue, 4 Jun 2024 13:50:57 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C0D15BE6F; Tue, 4 Jun 2024 13:50:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="iNumM4CT" Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (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 4A7EC63E for ; Tue, 4 Jun 2024 13:50:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.129.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717509050; cv=none; b=W7lpTeYGxpqJdNKIAqLWcvkQBKqi2L1Xs3HqkfDEsooWv2/4muVw5WJTo2y8OUBoVQgQlDicrgD532jMvvPW83x+QpJGAd89MgKBCshXQeACTQVAF/Kw2/MW5McuPxQssvpYUn9kQxTolzVQxiPb29opjfj8N8Qb+j0KcgzEhRs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717509050; c=relaxed/simple; bh=HGrF2tL4w7a7Rmlc6G9s37xvs7pZ1x+R4NOwXaeZfC0=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=kLNvhluEWZZBJJWjyFLLx6vGmwxYXDoIQs2MzY5Ycl9R5bpyr8DJ3W3kzZ5z545zyhkMRUmaDPVoVUeLYN6Sf6/7KLJS6eVF93J5X8ukPY1H3XPDxw2eBRCE390CHF84jEaiHZJW2bYGolBkFxyPT1bY73gWdEVPyHF4Na4Rs24= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=iNumM4CT; arc=none smtp.client-ip=170.10.129.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1717509048; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:autocrypt:autocrypt; bh=u/pd06+ksW1iJGXtXxv7mdOfhdSquA4khvqGMWC/0Pw=; b=iNumM4CTNBGH8khZZ3oVh/qTizsgcqPkH+2NTCFmp0xsU7qKyxEiF+FPGgmB8j/0bCSNU7 JzjLoaF/lcoQGoA+9pgKZgv50FK8L+bFtiTIbhuqklkjMPsO/ihTpyVAhOHecraUUxrY3z oqLSzPfhAAtA7qM4UxaRaVlNT0yMDXA= Received: from mail-wm1-f71.google.com (mail-wm1-f71.google.com [209.85.128.71]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-663-NFvHBCoRP9WgfhVU-VMlXg-1; Tue, 04 Jun 2024 09:50:44 -0400 X-MC-Unique: NFvHBCoRP9WgfhVU-VMlXg-1 Received: by mail-wm1-f71.google.com with SMTP id 5b1f17b1804b1-42135f60020so23336145e9.1 for ; Tue, 04 Jun 2024 06:50:44 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717509043; x=1718113843; h=content-transfer-encoding:in-reply-to:organization:autocrypt:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=u/pd06+ksW1iJGXtXxv7mdOfhdSquA4khvqGMWC/0Pw=; b=uJPYB+o5+cz1+yj5sDtRcQUGes79Sun9NohV/GtL5tGOkWDgspuS4g7p9B+egtlveM GWE5AGHCFhDZ0sQi8t1SphGz2QFRALPkMvl6I+kd8ofIr2idYCjB/ZIizKzzxE33UenB 7Sj2oL/AcuPN3UfqqkY2YT1Vyp12rcE2xFMBLfisi46a7EN+XOpXpIIKnN1faj0HkALm wpL8aLJvYLABRADXykEFR+QBGRkejjcsB51H+uW11FBU7nbAIwMBeq76THH3QbyVz0Li 7RImgBPOwXkYqanaNSswwTRRp26cjJdHbRjARAjYGmqLULgIzAoIuHPGoEK18+KK1U7H Q0wg== X-Forwarded-Encrypted: i=1; AJvYcCU4x11oOjPavX0OO+LtPFRlyC8ujUMegF6rQCAMJCbvWk5gDN7rFSdQksyS25nAfwuuFRHfTowWLkCCpqUhnQ5ZNDGounRn4tmlla6j X-Gm-Message-State: AOJu0Yzv82fuUU8rxCj+XUPnpHjZweke6NRU6zl4cXS9to5m446IHday uS86guul46ij/jxmZ5UTnZupS3iWU0yqzxmSPLZ02VYkBXBVabA2MeOXqdvn1Zje50n7cuCmQuc MPhYpUfj1w/uHTjvEIXrL+ktRhb2lB7b07P3HhUW91OGTZ+Jo1X718HQ6RFM1bw== X-Received: by 2002:a05:600c:5026:b0:421:15f:186a with SMTP id 5b1f17b1804b1-4212e0bfe7amr105938545e9.39.1717509043564; Tue, 04 Jun 2024 06:50:43 -0700 (PDT) X-Received: by 2002:a05:600c:5026:b0:421:15f:186a with SMTP id 5b1f17b1804b1-4212e0bfe7amr105938365e9.39.1717509043157; Tue, 04 Jun 2024 06:50:43 -0700 (PDT) Received: from ?IPV6:2003:cb:c73a:3a00:a025:9b06:549e:c16b? (p200300cbc73a3a00a0259b06549ec16b.dip0.t-ipconnect.de. [2003:cb:c73a:3a00:a025:9b06:549e:c16b]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4213709a0d2sm115216505e9.26.2024.06.04.06.50.41 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 04 Jun 2024 06:50:42 -0700 (PDT) Message-ID: Date: Tue, 4 Jun 2024 15:50:41 +0200 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: [BUG] 6.10.0-rc1: segfault at 0 when reboot with kernel config INIT_MLOCKED_ON_FREE_DEFAULT_ON=y To: David Wang <00107082@163.com>, yjnworkstation@gmail.com Cc: akpm@linux-foundation.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, willy@infradead.org References: <20240528151340.4282-1-00107082@163.com> Content-Language: en-US From: David Hildenbrand Autocrypt: addr=david@redhat.com; keydata= xsFNBFXLn5EBEAC+zYvAFJxCBY9Tr1xZgcESmxVNI/0ffzE/ZQOiHJl6mGkmA1R7/uUpiCjJ dBrn+lhhOYjjNefFQou6478faXE6o2AhmebqT4KiQoUQFV4R7y1KMEKoSyy8hQaK1umALTdL QZLQMzNE74ap+GDK0wnacPQFpcG1AE9RMq3aeErY5tujekBS32jfC/7AnH7I0v1v1TbbK3Gp XNeiN4QroO+5qaSr0ID2sz5jtBLRb15RMre27E1ImpaIv2Jw8NJgW0k/D1RyKCwaTsgRdwuK Kx/Y91XuSBdz0uOyU/S8kM1+ag0wvsGlpBVxRR/xw/E8M7TEwuCZQArqqTCmkG6HGcXFT0V9 PXFNNgV5jXMQRwU0O/ztJIQqsE5LsUomE//bLwzj9IVsaQpKDqW6TAPjcdBDPLHvriq7kGjt WhVhdl0qEYB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T9b+MZJk+mZuPxKNVfEQMQ a5SxUEADIPQTPNvBewdeI80yeOCrN+Zzwy/Mrx9EPeu59Y5vSJOx/z6OUImD/GhX7Xvkt3kq Er5KTrJz3++B6SH9pum9PuoE/k+nntJkNMmQpR4MCBaV/J9gIOPGodDKnjdng+mXliF3Ptu6 3oxc2RCyGzTlxyMwuc2U5Q7KtUNTdDe8T0uE+9b8BLMVQDDfJjqY0VVqSUwImzTDLX9S4g/8 kC4HRcclk8hpyhY2jKGluZO0awwTIMgVEzmTyBphDg/Gx7dZU1Xf8HFuE+UZ5UDHDTnwgv7E th6RC9+WrhDNspZ9fJjKWRbveQgUFCpe1sa77LAw+XFrKmBHXp9ZVIe90RMe2tRL06BGiRZr jPrnvUsUUsjRoRNJjKKA/REq+sAnhkNPPZ/NNMjaZ5b8Tovi8C0tmxiCHaQYqj7G2rgnT0kt WNyWQQ== Organization: Red Hat In-Reply-To: <20240528151340.4282-1-00107082@163.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 28.05.24 17:13, David Wang wrote: > Hi, > > My kernel is 6.10.0-rc1 with CONFIG_INIT_MLOCKED_ON_FREE_DEFAULT_ON=y, and > I got following screen when I execute `systemctl reboot` on my system. > (The text was extracted from a console image, there may be some parse error. And my kernel was tainted mostly because of nvidia driver) > > 42.855067] watchdog: watchdog0: watchdog did not stop! > 42.905871] show_signal_msg: 14 callbacks suppressed > 42.905874) systemd-shutdow[1]: segfault at 0 ip 0000000000000000 sp 00007ffcc8af7318 error 14 likely on CPU 6 (core 4, socke 42.906017] Code: Unable to access opcode bytes at 0xffffffffffffffd6. > 42.906080] Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000b > 42.906143] CPU: 6 PID: 1 Comm: systemd-shutdow Tainted: P OE 6.10.0-rc1-linan-0 #244 > 42.906220] Hardware name: Micro-Star International Co., Ltd. MS-7889/B450M MORTAR MAX (MS-7889), BIOS 2.80 06/10/2020 42.906308] Call Trace: > 42.906329] > 42.906346] panic+0x31d/0x350 > 42.906375) ? srso_return_thunk+0x5/0x5f > 42.906411] do_exit+0x968/0xad0 > 42.906441] do_group_exit+0x2c/0x80 > 42.906472] get_signal+0x876/0x8a0 > 42.906502] arch_do_signal_or_restart+0x2a/0x240 > 42.906544] irgentry_exit_to_user_mode+0xc2/0x160 > 42.906585] asm_exc_page_fault+0x22/0x30 > 42.906619] RIP: 0033:0x0 > 42.906640] Code: Unable to access opcode bytes at 0xfffft fffffffd6. > 42.906693] RSP: 002b:00007ffcc8af7318 EFLAGS: 00010206 > 42.906736] RAX: 0000000000000011 RBX: 000000000328adea RCX: 0000000000000005 > 42.906794] RDX: 00007ffcc8af73b0 RSI: 0000000000000ea8 RDI: 0000000000000001 > 42.906852] RBP: 00007ffcc8af73be R08: 003b459fca9238c4 R09: 0000000000000069 > 42.906910] R10: 0000000000000008 R11: 0000000000000202 R12: 00007ffcc8af7330 > 42.906968] R13: 0000000000000ea8 R14: 0000000000000000 R15: 0000000000000000 > 42.907029] > 42.907328] Kernel Offset: 0x21a00000 from 0xffffffff81000000 (relocation range: 0xffffffff80000000-0xffffffffbfffffff) > 43.081928) --- [ end Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000b ]--- > > > I rebuild the kernel with `CONFIG_INIT_MLOCKED_ON_FREE_DEFAULT_ON not set`, the system can reboot normally. > My guess, some memory is zeroed unproperly when reboot? Stumbled over that as well [1], maybe because of the messed up interaction with fork().. This should be reverted. Waiting for Andrews reply on my mail before I send a patch to do that. [1] https://lkml.kernel.org/r/4da9da2f-73e4-45fd-b62f-a8a513314057@redhat.com -- Cheers, David / dhildenb