Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp2918082rwe; Mon, 29 Aug 2022 02:37:53 -0700 (PDT) X-Google-Smtp-Source: AA6agR6YBday2TtB0zx+OyTr8c+Usd31vC7LL2IYfV5Jfg0wF3jXofACRZIvaGKs7DMor3kmaeEU X-Received: by 2002:a63:6643:0:b0:42b:c05e:e3a9 with SMTP id a64-20020a636643000000b0042bc05ee3a9mr6950550pgc.513.1661765873555; Mon, 29 Aug 2022 02:37:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661765873; cv=none; d=google.com; s=arc-20160816; b=soM6ukB2yPWfLCa6qQ5+jrAF8UZqlgnekW7Xt9nhdalStBlcoFebeUn/EdPYV25gDE FrEvd1yKkBKgRmuSbiOf0cpL+AWr0iyqygVl4PbiW9GyLV5sZNdavoYlPK79/3lMF36z HNflyXXr53dxcMx6+/kK2RSedZRfd1KFyg6vwZq3A9Fi/ygfz0c5wp5U2sPVIKt723ha Cydvf21vHw09+1apIbWPHgopHVXlejsDOl6plIMYggyHFOZZe4rtiMRL6Tyz9p+9V+7F pWLsi460p9omJ8THFEXiL0iOxZrV/fWt4n4/RK0cepr8AlkPj+Y5Lg7ZluZaJC8lZ9S/ TlOA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:to:content-language:subject:user-agent:mime-version:date :message-id; bh=EZyAKGxDJWQWEgkfKzptYNGJYnD9auk8Xlm/WrZ7jdU=; b=SjM7n1GnmBN2phgIlWpE0wtfZUqQViZy7QsPP30LBh97D9lZWNefqfI2Og1e1amYav 5i4a9Y7f9j6TsTERGtFUMzxgOL3YpJTCKzlOdfah9ndVTDjCtESu2eHqlu3mQsFAwqT8 2eLQJdroUCXZyPhFYJ+ADb+cFQo26roQMAVFnYMmNn2Icl0EmkxwbU36xyk3KhvvbnvE ANH74NJ2keRPAX48ztBuaAXtBmH9gkOIbv5hNLDPZVgvDpg8DZXfA7wripMmVyRV3PKk TxaOft3RKdsXf5MHbQ7E9WvzvJPMkGtKuRqt/p6l2gTI5pvFj6DnMaX+ZEXehkO4hm0k U9wQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h7-20020a170902b94700b00172a117cbcfsi8366760pls.324.2022.08.29.02.37.42; Mon, 29 Aug 2022 02:37:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229480AbiH2JQl (ORCPT + 99 others); Mon, 29 Aug 2022 05:16:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41642 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229447AbiH2JQi (ORCPT ); Mon, 29 Aug 2022 05:16:38 -0400 Received: from mail-ej1-f54.google.com (mail-ej1-f54.google.com [209.85.218.54]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BBD915281A for ; Mon, 29 Aug 2022 02:16:37 -0700 (PDT) Received: by mail-ej1-f54.google.com with SMTP id kk26so14379067ejc.11 for ; Mon, 29 Aug 2022 02:16:37 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc; bh=EZyAKGxDJWQWEgkfKzptYNGJYnD9auk8Xlm/WrZ7jdU=; b=d1aqREwB7C2c1lguMj7cO3Fo+Im3ujyrobnrfIY2VqxxMGlcAxB0spySQteOm9fSsy N/05PcdFeVMrlE5TLB9WRStdBWJCzHDyaC968vVKy98bi2YqLJMQ8DDi0kKW6z/fN7dw HKZJ1UxGsRzqGfFzvPr7RA0o+e+UoXqitmpIiJb3nzPVnQlNNixVow3PWud3GQY4KW8u 2gpRJYTqQS6jFLOmBFrV2s8q9QdoljvkkeJ0/syk6IspnaOXeh8qWf5i1tzwSheeUWaT ZQDvKuKpEX4ixAMpQTlUbqK9T+vi50HmL7Xl3VsUG9CF3H+HSIzqNNY7hUgD3lGxbCLz BT0A== X-Gm-Message-State: ACgBeo0qMpu7qbB1gyGiqf2/jciwJnfcOtvvmDh+Qf884dogfwJs8OWU /jDqgjI0ZCo1+/NdsPED4OkKqtsh0jA3yg== X-Received: by 2002:a17:906:9752:b0:738:364a:4ac with SMTP id o18-20020a170906975200b00738364a04acmr13022013ejy.759.1661764596299; Mon, 29 Aug 2022 02:16:36 -0700 (PDT) Received: from ?IPV6:2a0b:e7c0:0:107::70f? ([2a0b:e7c0:0:107::70f]) by smtp.gmail.com with ESMTPSA id c15-20020a056402120f00b0043bbb3535d6sm5398344edw.66.2022.08.29.02.16.35 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 29 Aug 2022 02:16:35 -0700 (PDT) Message-ID: Date: Mon, 29 Aug 2022 11:16:34 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.2.0 Subject: Weird RIP printed in BUGs [was: 6.0 tty regression, NULL pointer deref in flush_to_ldisc] Content-Language: en-US To: Hans de Goede , =?UTF-8?Q?Ilpo_J=c3=a4rvinen?= , Greg Kroah-Hartman , Linux Kernel Mailing List , Linux regressions mailing list , Thomas Gleixner , Borislav Petkov , Oleg Nesterov References: <4b4bba5d-d291-d9fa-8382-cdc197b7ed35@redhat.com> From: Jiri Slaby In-Reply-To: <4b4bba5d-d291-d9fa-8382-cdc197b7ed35@redhat.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On 29. 08. 22, 10:37, Hans de Goede wrote: > [ 28.626537] BUG: kernel NULL pointer dereference, address: 0000000000000000 > [ 28.626555] #PF: supervisor instruction fetch in kernel mode > [ 28.626563] #PF: error_code(0x0010) - not-present page > [ 28.626569] PGD 0 P4D 0 > [ 28.626580] Oops: 0010 [#1] PREEMPT SMP PTI > [ 28.626589] CPU: 2 PID: 8 Comm: kworker/u8:0 Tainted: G C E 6.0.0-rc2+ #102 > [ 28.626598] Hardware name: MPMAN Converter9/Converter9, BIOS 5.6.5 07/28/2015 > [ 28.626604] Workqueue: events_unbound flush_to_ldisc > [ 28.626617] RIP: 0010:0x0 > [ 28.626633] Code: Unable to access opcode bytes at RIP 0xffffffffffffffd6. Irrelevant to the original report, this new message format (the old being "Bad RIP value") confuses me. It always makes me think how can RIP be -42. So can we either: 1) print regs->ip value (0x0000000000000000) instead of prologue value (regs->ip - 42 = 0xffffffffffffffd6) here? Even though we really pass "regs->ip - 42" to copy_code()), or 2) don't print "RIP" in that message. So only "at 0xffffffffffffffd6" ? (I can send a patch for whichever is preferred, if anything.) thanks, -- js suse labs