Skip to content

Instantly share code, notes, and snippets.

View keybase
### Keybase proof
I hereby claim:
* I am tklengyel on github.
* I am tklengyel (https://keybase.io/tklengyel) on keybase.
* I have a public key ASD50vxdEoWYuReInvNWgepHpXT0_QYaFTTR3NQOnSg9qgo
To claim this, I am signing this object:
View gist:9121be14b5614eadff7d07b50dfe76fd
0x68747470733a2f2f7777772e796f75747562652e636f6d2f77617463683f763d4854646e4d436b506f3377
View gist:30243e339eafb7104de1db7a6fce57fd
root@t2:/shared/xtf# make
root@t2:/shared/xtf# cd tests/kfx
root@t2:/shared/xtf/tests/kfx# xl create -p xen.cfg
Parsing config from xen.cfg
root@t2:/shared/xtf/tests/kfx# xl list
Name ID Mem VCPUs State Time(s)
Domain-0 0 8192 8 r----- 210894.3
test-pv64-xen-kfx 71 1024 1 --p--- 0.0
root@t2:/shared/xtf/tests/kfx# /shared/kernel-fuzzer-for-xen-project/kfx --setup --domain test-pv64-xen-kfx -c
Init vmi, init_events: 1 init_paging 0 domain test-pv64-xen-kfx domid 0 json (null)
View gist:bc4a86e0f20b7c50c730c1b9429d4e2c
This file has been truncated, but you can view the full file.
diff --git a/xen/arch/arm/acpi/boot.c b/xen/arch/arm/acpi/boot.c
index 9b29769a10..d3f9b7fde5 100644
--- a/xen/arch/arm/acpi/boot.c
+++ b/xen/arch/arm/acpi/boot.c
@@ -64,13 +64,15 @@ acpi_map_gic_cpu_interface(struct acpi_madt_generic_interrupt *processor)
total_cpus++;
if ( !enabled )
{
- printk("Skipping disabled CPU entry with 0x%"PRIx64" MPIDR\n", mpidr);
+ printk("Skipping disabled CPU entry with 0x%" PRIx64 " MPIDR\n",
View astyle.diff
This file has been truncated, but you can view the full file.
diff --git a/xen/arch/arm/acpi/boot.c b/xen/arch/arm/acpi/boot.c
index 9b29769a10..83fe847d67 100644
--- a/xen/arch/arm/acpi/boot.c
+++ b/xen/arch/arm/acpi/boot.c
@@ -128,7 +128,7 @@ acpi_parse_gic_cpu_interface(struct acpi_subtable_header *header,
const unsigned long end)
{
struct acpi_madt_generic_interrupt *processor =
- container_of(header, struct acpi_madt_generic_interrupt, header);
+ container_of(header, struct acpi_madt_generic_interrupt, header);
@tklengyel
tklengyel / gist:6082a4227ab824cfebd9101e9e8f8095
Last active Sep 21, 2017
Compile Linux with initrd and cmdline baked in
View gist:6082a4227ab824cfebd9101e9e8f8095
Linux initrd and cmdline bake-in (on Debian stretch)
wget https://git.kernel.org/torvalds/t/linux-4.14-rc1.tar.gz
tar xvf linux-4.14-rc1.tar.gz
cp /boot/config-4.9.0-3-amd64 .config
make oldconfig # choosing all default options is fine
make -j8 deb-pkg
sudo dpkg -i ../linux-image-4.14.0-rc1_4.14.0-rc1-1_amd64.deb
mkdir initramfs
@tklengyel
tklengyel / xen_memmap.c
Created Aug 25, 2017
Xen foreign memory mapping
View xen_memmap.c
/*
* gcc -o xen_memmap -lxenctrl xen_memmap.c
*/
#include <stdio.h>
#include <stdlib.h>
#include <sys/mman.h>
#define XC_WANT_COMPAT_MAP_FOREIGN_API 1
#include <xenctrl.h>
int main(int argc, char **argv) {
@tklengyel
tklengyel / bptest.c
Created Dec 15, 2016
Make breakpoint instruction (0xCC) length 4
View bptest.c
/*
* Make 0xCC instruction length larger then 1
*/
#include <stdio.h>
#include <sys/mman.h>
#include <stdlib.h>
typedef void(*FUN)(void);
char * myFunc;
View keybase.md

Keybase proof

I hereby claim:

  • I am tklengyel on github.
  • I am tklengyel (https://keybase.io/tklengyel) on keybase.
  • I have a public key whose fingerprint is 988D 675C 1DA8 BBF5 F3C6 E37C 59DD E405 E032 AC59

To claim this, I am signing this object: