openvmm
openvmm copied to clipboard
tdx: Undo hack to fix segfault caused by glibc bug in L1 TDX VMM.
I believe this workaround can now be removed since openvmm-deps is now using glibc 2.35.
https://github.com/microsoft/openvmm/blob/4e26b4e813adba77934b1c1f1752dc2b16507a16/openhcl/diag_server/src/diag_service.rs#L335
doesn't seem to work:
[kmsg]: [164.823916] diag_server::diag_service: INFO exec request command=/bin/sh stdin=0x5 stdout=0x6 stderr=0x7 tty=true
[kmsg]: [164.973735] diag_server::diag_service: INFO spawned child pid=69
[kmsg]: [164.977054] sh[69]: segfault at 55ffce9b40e0 ip 00007f5e95fefcad sp 00007fffc657dc48 error 4 in libc.so.6[7f5e95f65000+16c000] likely on CPU 1 (core 0, socket 0)
[kmsg]: [165.116294] Code: 00 00 0f 18 4e 40 0f 18 8e 40 10 00 00 0f 18 8e 40 20 00 00 0f 18 8e 40 30 00 00 0f 10 06 0f 10 4e 10 0f 10 56 20 0f 10 5e 30 <0f> 10 a6 00 10 00 00 0f 10 ae 10 10 00 00 0f 10 b6 20 10 00 00 0f
[kmsg]: [165.302604] [U] 0.000332651s ERROR underhill_crash: Process crashed crate_revision="4614b171acc7a4aedc7e91c3b93dafd3f1f06fd4" options.comm="sh" options.pid=69 options.tid=69 options.sig=11 os_version_major=6 os_version_minor=6 options.timeout=15s
[kmsg]: [165.573734] [U] 0.271521549s INFO vmbus_user_channel: vmbus channel revoked
[kmsg]: [165.640454] [U] 0.338217658s ERROR underhill_crash: crash dump error e=the channel has been closed
[kmsg]: [165.743683] error writing out the process memory; dumping core failed
[kmsg]: [165.800234] Core dump to |/bin/underhill-crash: vma_count 40, vma_data_size 561152, written 61440 bytes, pos 61440
[kmsg]: [165.891686] diag_server::diag_service: WARN relay error error=read failed: I/O error (os error 5)
[kmsg]: [165.936030] diag_server::diag_service: INFO child exited pid=69 status=ExitStatus(unix_wait_status(8b))