Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp530637pxb; Mon, 16 Aug 2021 10:57:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzXGMjeootzELt49EU/nojT3/184ap9w1AmWvi2MyJ4TmpRW9S1o2kDsRJxjgDXT+f81LVr X-Received: by 2002:a17:906:584b:: with SMTP id h11mr17358006ejs.209.1629136623885; Mon, 16 Aug 2021 10:57:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629136623; cv=none; d=google.com; s=arc-20160816; b=OcKmf3CQHbHHB0J2MORhBc23RYs/2ZKL7HWz7RgbtnYkjHByiFRXfqYpYNfbsXpzsA x2FJjvT7vofn6s3TtjzyMkTXBCi4yWwCn8W1UWV6BkRQT+MleXfcztY7cCjPbLRS52uJ /YlEfoB+TzR6fiXk5v+9F+wBPITWjOS8yJpozwh6ouZPnnR91fhlgT7FMMxV4FwHH8Ay poZGg53awHhFvHVyDolQrjGlArl/GWnuDoitoVir0e69lJybpiAm2LHG8/d0hkdKH78z 4wwOUfS5nxbYBbZejX9muLVzhDrzb9bkc11o6Qn5owiCC5Ww3BS2a6VQthNEhal6Zvk8 YYWA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:organization :references:cc:to:from:subject:dkim-signature; bh=2v98zOI2BiyS+Z7E5GTSTF3ORDqhfzMWN2Ky3NfunAk=; b=Wjb+BvbI2/s5MuCEypLUq9VaOh+pYk3nk5BcwBFXDCz2KcA1SbMN/ya8Su2hPAzq5m DMpSKr/jdIPry0Pg9SwTtyTBQLECiZ2FIVAvyEXfRZdIHh5Ml7F9XAKsj8qcx8KUJESx aBEBZJhoi6g+Ayjw00mxEuJiO1p7RJWwKzaOTjdQ/YsU2wJgZPMLpCgX3lnXVgL/4IwN xQp1i98OZ43LMdVIOgRraWgxy4M6L3C4FzMO8zTw1++sjWkkTQvDbr1XWXgV/Js9UPgL aliXmJrbOiLJIMH9blL4oYG7Ip74ZaFuDfBOhuZX2jCIgFkbTNNZlY7K7kHaB+flPbrO HVkg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=hMMBa1c+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id us9si6609790ejb.567.2021.08.16.10.56.40; Mon, 16 Aug 2021 10:57:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=hMMBa1c+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231307AbhHPRzB (ORCPT + 99 others); Mon, 16 Aug 2021 13:55:01 -0400 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:28003 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229755AbhHPRzA (ORCPT ); Mon, 16 Aug 2021 13:55:00 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1629136468; 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; bh=2v98zOI2BiyS+Z7E5GTSTF3ORDqhfzMWN2Ky3NfunAk=; b=hMMBa1c+mrzWBLMcme/7uju3/tpoJUf3Nk+s61ByGQkR7MggVQ0RB9BT2wsbdzJoo8hgXa emf3WE1STqRxULvcJ+sm5Bq0IPqd8GvLFmYfADC+oG1fhU76pcY+bO7H0lfv6BeEd/erNk MkWKrKBZr5MRmCiEjzHVCirc2GdRNg4= Received: from mail-wm1-f69.google.com (mail-wm1-f69.google.com [209.85.128.69]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-485-Do63lE_3NVm-sBaBMresAA-1; Mon, 16 Aug 2021 13:54:26 -0400 X-MC-Unique: Do63lE_3NVm-sBaBMresAA-1 Received: by mail-wm1-f69.google.com with SMTP id y23-20020a7bcd97000000b002e6e4a2a332so698500wmj.0 for ; Mon, 16 Aug 2021 10:54:26 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:from:to:cc:references:organization :message-id:date:user-agent:mime-version:in-reply-to :content-language:content-transfer-encoding; bh=2v98zOI2BiyS+Z7E5GTSTF3ORDqhfzMWN2Ky3NfunAk=; b=GZjnf969En8S+jMeAyv6dJ7S3oODvWfhlw+cOJAX6DNjdDbsf1GLI8CijLQX3JZS38 k90CeEUSGG2haqMcXC2NeqD1jyGXern96O0vKHdmAH6D9c4LTJvsGP6I8pVyW1mdvftS atM0tr3iw84nLyVHQktk5ucsjTXAAM5poTMVLvr2kYkszPiSAasZG5tlLDbnd8TXFOkL sE+8C2Wqo0PRDZjipvJvy218JV5czz+Fnmh069HzBgaJE9l1kzQSgixQhO+m3yk8eK+6 hUw6voj/39v/kB316WeSc2wGegMADdYv0BP0s3vCkhCrdqi8Qwr3hup65C1apKrcU8Sq urYg== X-Gm-Message-State: AOAM53347vDOyzAf1WxFsDPJ4CQQxcg5VgD4tHJpwMe2q2wGVhdUC6Ln XHn9qHVPOUh71JL+gG17slzXcXse8VmoetqqKrjLifnPz6v31UXYJtS+vA6TfwZOBUsOkW1VrKd r2S40aKvCi/Hxe8e3XhQPN+Pc X-Received: by 2002:a1c:f206:: with SMTP id s6mr279792wmc.15.1629136465793; Mon, 16 Aug 2021 10:54:25 -0700 (PDT) X-Received: by 2002:a1c:f206:: with SMTP id s6mr279784wmc.15.1629136465644; Mon, 16 Aug 2021 10:54:25 -0700 (PDT) Received: from [192.168.3.132] (p5b0c67f1.dip0.t-ipconnect.de. [91.12.103.241]) by smtp.gmail.com with ESMTPSA id h4sm12872990wrm.42.2021.08.16.10.54.24 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 16 Aug 2021 10:54:25 -0700 (PDT) Subject: Re: [BUG] general protection fault when reading /proc/kcore From: David Hildenbrand To: Jiri Olsa , Mike Rapoport , Andrew Morton , Oscar Salvador Cc: linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org References: <1a05d147-e249-7682-2c86-bbd157bc9c7d@redhat.com> Organization: Red Hat Message-ID: Date: Mon, 16 Aug 2021 19:54:24 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: <1a05d147-e249-7682-2c86-bbd157bc9c7d@redhat.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 16.08.21 19:49, David Hildenbrand wrote: > On 16.08.21 19:34, Jiri Olsa wrote: >> hi, >> I'm getting fault below when running: >> >> # cat /proc/kallsyms | grep ksys_read >> ffffffff8136d580 T ksys_read >> # objdump -d --start-address=0xffffffff8136d580 --stop-address=0xffffffff8136d590 /proc/kcore >> >> /proc/kcore: file format elf64-x86-64 >> >> Segmentation fault >> >> any idea? config is attached > > Just tried with a different config on 5.14.0-rc6+ > > [root@localhost ~]# cat /proc/kallsyms | grep ksys_read > ffffffff8927a800 T ksys_readahead > ffffffff89333660 T ksys_read > > [root@localhost ~]# objdump -d --start-address=0xffffffff89333660 > --stop-address=0xffffffff89333670 > > a.out: file format elf64-x86-64 Sorry, missed the /proc/kcore part: [root@localhost ~]# cat /proc/kallsyms | grep ksys_read ffffffffba27a800 T ksys_readahead ffffffffba333660 T ksys_read [root@localhost ~]# objdump -d --start-address=0xffffffffba333660 --stop-address=0xffffffffba333670 /proc/kcore /proc/kcore: file format elf64-x86-64 Disassembly of section load1: ffffffffba333660 : ffffffffba333660: 0f 1f 44 00 00 nopl 0x0(%rax,%rax,1) ffffffffba333665: 41 55 push %r13 ffffffffba333667: 49 89 d5 mov %rdx,%r13 ffffffffba33366a: 41 54 push %r12 ffffffffba33366c: 49 89 f4 mov %rsi,%r12 ffffffffba33366f: 55 push %rbp -- Thanks, David / dhildenb