Posts
4432
Following
316
Followers
471
Linux kernel hacker and maintainer etc.

OpenPGP: 3AB05486C7752FE1

Jarkko Sakkinen

Edited 1 year ago
@orsinium BTW, I'd suggest you to do some day comparison with your tool and https://www.kernel.org/doc/html/latest/process/maintainer-pgp-guide.html.

That sets the bar for considering alternative tool. That is not to say that the current version does not but I don't have that information. If it can do equivalent management and is fully compatible with the existing management, then it can be potentially used for kernel development.
1
0
1
@orsinium I've yet to meet a person who would describe gpg command-line as "approachable", so even "approachable to someone" would be a level up...
1
0
1
@orsinium OK, cool, sounds interesting!

Does it play together with hardware such as Yubikey?
1
0
0

Jarkko Sakkinen

Learned a bit o #python #gnupg bindings to automate tasks, as gpg command line can be sometimes a bit confusing and ambiguous.

E.g. this is how to purge revoked keys after gpg --refresh-keys:

#!/usr/bin/env python3

import gnupg

if __name__ == "__main__":
    gpg = gnupg.GPG()
    keys = gpg.list_keys(True)
    for k in keys:
        info_db = k['subkey_info']
        for subk in k['subkeys']:
            info = info_db[subk[0]]
            if info['trust'] == 'r':
                fp = subk[2]
                print(f"{fp} {gpg.delete_keys(fp, expect_passphrase=False, exclamation_mode=True)}")

Definitely worth of trouble because I’m super-talented on making destructive mistakes with command-line arguments :-)

1
1
2

Jarkko Sakkinen

have to admit that i’ve missed this before but better late than never: https://libguestfs.org/. super useful #qemu

0
2
8
@sgued When I started programing, I used Turbo Pascal and Turbo Assembler a lot. Turbo Pascal was basically like Rust, and Rust is like modern take on Niklas Wirth's ideas. Ideas in Rust are not new in computer science, it was more like that there was two decades of strongly typed languages not trending.
0
0
0
@sgued Kernel is a resource manager if you strip down the gist of it.

Anything else with some sort of resource manager benefits from more stringent memory management.

Most of the stuff that make money-wise sense to do in Rust ends up being some sort of resource manager in any kind of commercial setting.

For stuff that is not resource manager it is cheaper to use something like Python or (ugh) JavaScript. For non-trivial orchestration something like Go is factors more productive than Rust. Where Rust makes generally sense is where you want to pay more from R&D.

E.g. if you strip down the gist of something like Unreal Engine, it is a resource manager.

Not really much to do with kernel in that sense. It is just that Rust does not support all features where it is profitable for business to invest in Rust.
1
0
0
@sgued Optimal would be if Rust would require explicit allocations and checks for OOM conditions. The way heap works in Rust's stdlib is not how I would like it to work and heapless is best suboptimal solution for that to this date...

Rust's borrow checker is essentially solution for only one vector of memory conditions, i.e. it does not deal with over-consumption of memory.
0
0
0

Jarkko Sakkinen

In addition to looking how #Ubuntu #TPM2 boots I'm also somewhat interested on how e.g. #Fedora and #OpenSUSE are approaching this, or will do so in future. I have OpenSUSE in my main desktop but it is still using traditional passphrase style...
0
0
2

Jarkko Sakkinen

Edited 1 year ago
IMHO best way to address AI plagiarism would be to educate the staff on the topic.

E.g. just with human eye and simple comparison you can often spot snippets of wikipedia articles.

Also, models always lag behind so by adding as up to date stuff as possible to assignments the applicability of AI will decrease by factors.

Generally speaking AI risks should be dealt same way as vulnerabilities and malware, i.e. you should think it as a process rather than a something ending up with some final solution.
1
0
0
What puzzles me here is that 0x81010001 is reserved handle by TCG for the endorsement key so why would Ubuntu ever pick that as the NV index?

I'm confused but I barely skimmed the tpm2 tools outputs (tpm2_readpublic etc.).

For any Linux distribution builders out there, please read carefully before making any non-compliant changes: https://trustedcomputinggroup.org/resource/tcg-tpm-v2-0-provisioning-guidance/

That said I did not investigate this yet properly so forgive me I missed something essential :-)

This is way way too whitepaper'ish and lacks all the details: https://ubuntu.com/blog/tpm-backed-full-disk-encryption-is-coming-to-ubuntu
0
0
0

Jarkko Sakkinen

Just looking at what #Ubuntu installation stores #NVRAM of #TPM chip when installed with #TPM2 sealed #encrypted boot:

$ sudo tpm2_getcap handles-persistent
- 0x81000001
- 0x81010001

So: I guess the 2nd key, which has a policy bind, is what is “the fast path” with #PCR unsealing, and the first key is “the slow path” unsealed with the value given by snap recovery --show-keys.

Is this how it is laid out?

1
0
0
@peterkorsgaard can hold over weekend np i just thought that it would be good put it to the loop, so downshifting with this is totally fine! At least I don't want you to waste your weekend on this :-)
0
0
0

Jarkko Sakkinen

Edited 1 year ago

heapless is by far my favorite #Rust #crate as it fixes things that annoy me the most in the current standard library. I.e. it enforces explicit checks. #rustlang

0
0
4

Jarkko Sakkinen

Edited 1 year ago
I've found my first useful application for 'deep" AI: a plain spell check #aspell style. I underline not to produce to the text content itself but just correct spelling and comma mistakes.

IMHO, it is pretty good application for working in open source project such as #Linux #kernel because it improves fairness and equality between native and non-native #English speakers.

You have to remember that #English is one of the tedious #language's if you analyze it objectively. It has vast amount of corner cases and exceptions. It is dead easy only because at least in #Finland you hear throughout your life by playing video games and watching TV series (we do not dub) :-)

Still, in written English e.g. comma rules are so strange that I doubt whether I will ever really can master them....

Also I have a minor #dyslexia which makes me read sentences sometimes incorrectly in any language. This can be often seen at LKML but what can you do :-)
0
0
2
@peterkorsgaard I did send it, did not address this issue tho :-( I remembered this thread after sending it unfortunately. Can you remark this and other possible issues? I'm not that experienced with BuildRoot contributions (if I recall correctly I've only contributed quota in the past, and that is like decade ago or over). Added RFC tag for the reason that I don't exactly know what I'm doing.
1
0
0
@hasheddan wow, love this type of youtube material, definitely going to check it out!
0
0
1
@catsalad must be from Rust's stdlib :-)
0
0
0

CatSalad🐈🥗 (D.Burch) blobcatrainbow

Going to need slightly bigger truth table... calculator

1
6
1

Jori Hulkkonen - Unelmaelämää koneiden keskellä [artikkeli & video] (20.3. 2024).

"30 vuotta musiikkia tehnyt Hulkkonen kokee, että musiikkialan suuri teknologiamurros on hyödyttänyt häntä."

Video: https://areena.yle.fi/1-66455452

https://yle.fi/a/74-20078272

0
2
2
Show older