[#101179] Spectre Mitigations — Amel <amel.smajic@...>
Hi there!
5 messages
2020/12/01
[#101180] Re: Spectre Mitigations
— Chris Seaton <chris@...>
2020/12/01
I wouldn’t recommend using Ruby to run in-process untrusted code in the first place. Are people doing that?
[#101694] Ruby 3.0.0 Released — "NARUSE, Yui" <naruse@...>
We are pleased to announce the release of Ruby 3.0.0. From 2015 we
4 messages
2020/12/25
[ruby-core:101193] [Ruby master Feature#17356] Alignment of memory allocated through Fiddle struct's malloc
From:
kou@...
Date:
2020-12-01 20:11:13 UTC
List:
ruby-core #101193
Issue #17356 has been updated by kou (Kouhei Sutou). How about introducing new APIs like `ruby_xaligned_malloc()` and `ruby_xaligned_free()` that wraps existing `rb_aligned_malloc()` and `rb_aligned_free()` with `objspace_*()` and `TRY_WITH_GC()` like `objspace_xmalloc0()` and `objspace_xfree0()`? If Fiddle uses `posix_memalign()` directly, Fiddle needs to implement `TRY_WITH_GC()` like code in Fiddle. And Fiddle also implements portable `posix_memalign()` function like `rb_aligned_malloc()`. We can implement all of them in Fiddle. But Ruby already has some pieces of them. If Ruby provides new APIs for aligned malloc, Fiddle can just use them instead of implementing them in Fiddle. ---------------------------------------- Feature #17356: Alignment of memory allocated through Fiddle struct's malloc https://bugs.ruby-lang.org/issues/17356#change-88874 * Author: AndreaRibuoli (Andrea Ribuoli) * Status: Open * Priority: Normal ---------------------------------------- I am testing a low-level patch for **Ruby 3** that inside *gc.c* replaces: `TRY_WITH_GC(size, mem = malloc(size));` with: `TRY_WITH_GC(size, mem = aligned_alloc(16,size));` This should allow me to control that Fiddle returns pointers quad-words aligned. Is it possible to introduce a configure parameter to control this kind of setting? Refer to [issue opened on Fiddle](https://github.com/ruby/fiddle/issues/53). Kind regards, Andrea Ribuoli -- https://bugs.ruby-lang.org/ Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe> <http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>