Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.bugs.dist > #1118853

Bug#1020534: sgx: EPC section 0x50200000-0x55f7ffff (crash)

From Diederik de Haas <didi.debian@cknow.org>
Newsgroups linux.debian.bugs.dist, linux.debian.kernel
Subject Bug#1020534: sgx: EPC section 0x50200000-0x55f7ffff (crash)
Date 2022-09-26 20:20 +0200
Message-ID <Fa0RX-aggn-3@gated-at.bofh.it> (permalink)
References <F8B9f-9n0U-1@gated-at.bofh.it> <F9YQa-af7x-3@gated-at.bofh.it> <F8B9f-9n0U-1@gated-at.bofh.it> <F9YQa-af7x-3@gated-at.bofh.it>
Organization Connecting Knowledge

Cross-posted to 2 groups.

Show all headers | View raw


[Multipart message — attachments visible in raw view] - view raw

Control: tag -1 help

On Monday, 26 September 2022 17:56:31 CEST Diederik de Haas wrote:
> On Thursday, 22 September 2022 22:24:31 CEST Diederik de Haas wrote:
> > It does NOT occur with version 5.17.3-1 and 5.18-1~exp1, but it does
> > occur with 5.18.2-1, 5.18.16-1, 5.19.6-1
> 
> This is interesting...
> 
> Then I build a new kernel based on 5.18.0 (the release by Linus) ... and
> that also showed the error!!
> Booting into 5.18.0-trunk-amd64 (=5.18-1~exp1) did NOT show the issue!
> 
> The '.config' was obtained by "cp /boot/config-5.18.0-4-amd64 .config"
> 
> IOW: the Debian provided 5.18.0 kernel did not show the issue, while the
> self compiled 5.18.0 kernel did!

I rebuild the 5.18.0 kernel, but this time with config-5.18.0-trunk-amd64 as
the source for `.config`.

First thing I noticed (the -3 is the newest built):
```
$ ls -lh linux-image-5.18.0_5.18.0-*
-rw-r--r-- 1 diederik diederik 69M sep 26 17:22 linux-image-5.18.0_5.18.0-2_amd64.deb
-rw-r--r-- 1 diederik diederik 56M sep 26 19:21 linux-image-5.18.0_5.18.0-3_amd64.deb
```
But I did use ``scripts/config --disable DEBUG_INFO_DWARF_TOOLCHAIN_DEFAULT 
--disable DEBUG_INFO_DWARF4 --disable DEBUG_INFO_DWARF5 
--enable DEBUG_INFO_NONE --disable DEBUG_INFO`` this time.

Booting into it and I did NOT get the error!

So apparently between ``-trunk`` and ``-4`` something relevant changed in the config.

I have attached the full diff, but I'm pretty sure I found the relevant change:
$ grep SGX config-5.18-diff-trunk-ABI4.diff 
-# CONFIG_X86_SGX is not set
+CONFIG_X86_SGX=y
+# CONFIG_X86_SGX_KVM is not set

The changelog from 5.18.1-1~exp1 has this item: ``[amd64] Enable X86_SGX``.

I'd need help/guidance on how to proceed from here, hence the 'help' tag.

Back to linux.debian.bugs.dist | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

Bug#1020534: sgx: EPC section 0x50200000-0x55f7ffff (crash) Diederik de Haas <didi.debian@cknow.org> - 2022-09-22 22:40 +0200
  Bug#1020534: sgx: EPC section 0x50200000-0x55f7ffff (crash) Diederik de Haas <didi.debian@cknow.org> - 2022-09-22 22:50 +0200
  Bug#1020534: sgx: EPC section 0x50200000-0x55f7ffff (crash) Diederik de Haas <didi.debian@cknow.org> - 2022-09-26 18:10 +0200
    Bug#1020534: sgx: EPC section 0x50200000-0x55f7ffff (crash) Diederik de Haas <didi.debian@cknow.org> - 2022-09-26 20:20 +0200

csiph-web