Posts
4104
Following
279
Followers
427
Software Engineer at Opinsys Oy (starting 03/2025)
Entrepreneur at Siltakatu Solutions Oy

OpenPGP: 3AB05486C7752FE1

Jarkko Sakkinen

Attached to NT kernel ;-)

Preparatory steps:

  1. winget install microsoft.windbg
  2. Reboot and disable secure boot.
  3. bcdedit -debug on
  4. Reboot.

#windows #nt #kernel #debug

0
0
1
@mikko Se oli luksusta, kun sai olla yksin kotona. Pienimmästäkin yskästä aloin valittamaan, että nyt ei varmaan ole hyvä lähteä muita tartuttamaan :-)
1
0
2
@mikko Tykkäsin olla kipeänä, koska ei tarvinnut mennä kouluun.
1
0
3

Jarkko Sakkinen

Edited 27 days ago
I just mastered Windows kernel debugging and learned how to dig globally all environment data from EPROCESS globally in the system using WinDbg :-)

It can side-effect free (except slowing down) to intervene process creation of NT kernel. I'll post the script as I test it more.

Victory in debugging after two weeks. Now I have at least proper weapons to nail the build issue in PolkaVM guest programs.

The most important skill to write e.g. Windows drivers for what is worth but also do global system tracing.

I tried all other methods but they all suck in some way.

As much I dislike Windows I have to admit that this brings me weird satisfaction ;-)

https://learn.microsoft.com/en-us/windows-hardware/drivers/debugger/

#windows #nt #windbg
0
0
0

Jarkko Sakkinen

No T-shirt - no buy-in

https://shop.joinmastodon.org/
0
0
0
It's also viral advertising at the same time.
0
0
0

Sort of like saying GoogleMaps worked well until we tried to find the Gulf of Mexico?

1
9
0

Jarkko Sakkinen

I'd wish #Codeberg had official #merch too.
1
3
0

World Wide Web Consortium

On International Privacy Day we invite you to check out "Privacy Principles" for the web by @tag

"Privacy is an essential part of the web. This document provides definitions for privacy and related concepts that are applicable worldwide as well as a set of privacy principles that should guide the development of the web as a trustworthy platform."
https://www.w3.org/TR/privacy-principles/

0
3
0
Related:

1.The PR in trouble: https://github.com/paritytech/polkavm/pull/240
2. NINE years old Rust bug: https://github.com/rust-lang/rust/issues/37868

I even went on sending email to Jack who reported the Rust bug, and also is author of this crate: https://docs.rs/duct/latest/duct/.

Well, he did not have off-the-shelf answer but he did say that I should probably remove env_clear(). In Linux actually removing it breaks the build and makes it behave like the Windows build.

I'm a bit pessimistic ATM ;-)
0
0
0

Jarkko Sakkinen

Any known examples in open source products doing the following pattern with Rust:

1. You have a Rust crate that you compile to you compile as usual host-to-host.
2. You have a build.rs that spawns cargo to a directory with rust-toolchain.xml defining nightly target.
3. You pass options (e.g. --target) for cargo to compile for a different target than the host.

Obviously Command is used to create the process together with current_directory() to change the directory to the one with Cargo.toml and rust-toolchain.xml. It is not a sub-crate per se topologically but a disjoint crate.

In Linux and macOS this can be made to work. With Windows cargo is acting like --target etc. options did not exist at all and ignores rust-toolchain.xml.

Any ideas how to make this type of pattern work?

#rust #rustlang #cargo #windows #riscv
2
0
0

Jarkko Sakkinen

Edited 27 days ago
Maybe I'm a fool but personally I think that this thing called "integrity" is at the core of open source. Do as you say. LITERALLY.
0
0
0

Stock market chaos as China reveals secret snake oil refinery, threatening US snake oil monopoly.

4
12
0
I've heard that eBPF is coming for Windows but given how sensitive the whole card house is I stick with this working approach at least next five years forward ;-)
0
0
1
In sadomasochistic way, hacking Win32 is fun torture from time to time...
1
0
0

Jarkko Sakkinen

Lessons learned from capturing Windows environment variables of launched processed with Python.

1. WMI: it's difficult path for short living processes. I could not make this work. Either I run into privilege issues or I have a racy monitoring.
2. sysmon: This is the way to go. Period ;-)

I will never try WMI again, that's for sure. And luckily Windows build issues are not every day thing...

[1] https://learn.microsoft.com/en-us/sysinternals/downloads/sysmon
[2] https://pypi.org/project/pywin32/

#windows #wmi #sysmon #win32 #cargo #rust
1
0
3

Jarkko Sakkinen

Edited 28 days ago
@fosdem_countdown @igb Also: even Netflix is essentially closed source platform. Yes, there are open source tools but I cannot download the full source code of Netflix. So please stop bitching. You are developing a proprietary product.
1
0
0

Jarkko Sakkinen

Edited 28 days ago
@fosdem_countdown @igb And most of the visitors are from multi-billion companies such as... Netflix :D What a hypocrisy. Send the middlemen, right? I don't even know that much about the guy but this type of corrupted moral and ethics make me sick.

Personally, I'd let both Mozilla's CEO and Jack to speak but perhaps the audience at FOSDEM is easily brainwashed, right? I could not know because personally I don't pay attention keynotes in the first place.

It's a double standard by definition.
1
0
0
Show older