News for hackers. Stuff that matters.
Re:Regression in Linux 4.14 – using bcache can destroy the f... by caf on Tuesday November 21, 2017 @05:57PM (#15752426)
In this case the memory isn't uninitialised - it's been initialised by bio_init(), which sets bi_partno to 0.
Re:Regression in Linux 4.14 – using bcache can destroy the f... by masklinn on Wednesday November 22, 2017 @05:39AM (#15755815)
> it's been initialised by bio_init(), which sets bi_partno to 0.

It just memsets the entire thing to 0, which in Rust would

1. require unsafe{}

2. most likely be UB as the struct looks like it has a bunch of pointers which would not be nullable (e.g. arrays)

And therefore not be done at all, or rejected by reviewers if attempted.