tootlog

Masanori Ogino 𓀁 [email protected]

詳しくは知らないけれどコンピューター将棋のアルゴリズムって割とコア数に応じてスケールするのかな

Masanori Ogino 𓀁 [email protected]

Togetterになおたさんまとめられてて笑った

Masanori Ogino 𓀁 [email protected]

1800X買ったけどThreadripperにしとけばよかった、今はZen2が気になるとか藤井七段ガチすぎる……

Masanori Ogino 𓀁 [email protected]

Zen2が気になる藤井七段推せる(?)

Masanori Ogino 𓀁 Masanori Ogino 𓀁 reblogged at 7 years ago
Masanori Ogino 𓀁 Masanori Ogino 𓀁 reblogged at 7 years ago
Masanori Ogino 𓀁 Masanori Ogino 𓀁 reblogged at 7 years ago

otto@openbsd [email protected]

Why does #OpenBSD's #malloc do so much randomization? 1) to catch bugs. If you memory layout differs each run, bugs that would otherwise be hidden are exposed. 2) it makes lives of attackers harder. They cannot rely on certain allocations always to be next to each other.

Masanori Ogino 𓀁 Masanori Ogino 𓀁 reblogged at 7 years ago

otto@openbsd [email protected]

A common bug is to leave sensitive mem uncleared and reuse memory (e.g. via #malloc’s cache) without proper initialisation, leading to secret leakage. The purpose of freezero() and recallocarray() is to protect against that threat. Big threat to the application is the application.

Masanori Ogino 𓀁 Masanori Ogino 𓀁 reblogged at 7 years ago

otto@openbsd [email protected]

#malloc is a general purpose allocator. If you know more about your typical memory usage, you can probably write a faster special purpose allocator. But wait with writing your own until you have evidence that malloc is the bottleneck, remember the features of #OpenBSD's malloc.

Masanori Ogino 𓀁 Masanori Ogino 𓀁 reblogged at 7 years ago

otto@openbsd [email protected]

Sensitive data? memset(p, 0, sz); free(p); does not do want you think it does. The compiler is allowed to optimise the memset away. Use freezero(p, sz). For large allocations #OpenBSD just unmaps the pages, avoiding the clearing and still making the memory inaccessible.

Masanori Ogino 𓀁 Masanori Ogino 𓀁 reblogged at 7 years ago

otto@openbsd [email protected]

A lot of malloc implementations hold on to memory pages received from the kernel. #openbsd's #malloc is reasonably aggressive with unmapping pages that are unused, catching use-after-free bugs with segmentation violations.

Masanori Ogino 𓀁 Masanori Ogino 𓀁 reblogged at 7 years ago

otto@openbsd [email protected]

#openbsd's #malloc stores meta-data separated from the memory returned to the caller, making it harder to use heap overflows to achieve code injection and execution. See e.g. mathyvanhoef.com/2013/02/under … and references. Having malloc meta-data near program data is dangerous!

Masanori Ogino 𓀁 [email protected]

年に9冊(相当)出せるおるか?おるな……となったので電撃文庫はこわい

Masanori Ogino 𓀁 [email protected]

読者は上中下に分割されて受け取るけれど、担当編集には年に1回「1巻分」まとめて送られてくるらしいですね

Masanori Ogino 𓀁 Masanori Ogino 𓀁 reblogged at 7 years ago

神父牧師 Otakyuline

平均して一巻辺り三冊分だとして30巻

Masanori Ogino 𓀁 Masanori Ogino 𓀁 reblogged at 7 years ago
Masanori Ogino 𓀁 Masanori Ogino 𓀁 reblogged at 7 years ago

神父牧師 Otakyuline

少なくともまだ10巻は読めるのか

Masanori Ogino 𓀁 [email protected]

9巻、10巻にも1巻まで繋がるデカいネタがあるのであまり表で話せない気持ちがある

Masanori Ogino 𓀁 [email protected]

三方ヶ原の戦いなら3巻ですね