All of lore.kernel.org
 help / color / mirror / Atom feed
From: Edward Shishkin <edward.shishkin@gmail.com>
To: Metztli Information Technology <jose.r.r@metztli.com>,
	reiserfs-devel@vger.kernel.org
Subject: Re: [reiser4 SFRN 5.1.3] kernel [5.10.x] read not supported for file /test-exec \(pid: 10094 comm: debootstrap\)
Date: Sun, 20 Jun 2021 19:45:23 +0200	[thread overview]
Message-ID: <1f342fdd-0c30-06df-012c-4425d94d942f@gmail.com> (raw)
In-Reply-To: <e37d5585-318e-3130-82c9-7a740b9af8af@gmail.com>

On 02/08/2021 05:03 PM, Edward Shishkin wrote:
> On 02/08/2021 01:54 PM, Metztli Information Technology wrote:
>> On Wed, Dec 23, 2020 at 3:40 PM Edward Shishkin 
[...]

>>>
>>>
>>> Hello.
>>>
>>> This is because of VFS changes in Linux-5.10.X.
>>> Specifically, because of the following patch:
>>> https://lkml.org/lkml/2020/8/17/174
>>> In the upstream git repository it is commit 4d03e3cc59828c82ee89ea6e2
>>>
>>> So, Christoph, what to do now for file systems which implement
>>> ->read() method of file operations?
>>
>> *deafening silence* it appears that -- in the best of cases -- 
>> Christoph engaged in an act of _iter masturbation [1];
>> and in the worst of cases, the gentleman was aiming straight at reiser4.
>>
>>> ... It seems that chroot doesn't work
>>> for them. And people are not able to release distros with upgraded
>>> kernels..
>>
>> Not only 'chroot doesn't work' for us, but even after replacing the 
>> kernel in a reiser4 (proper SFRN ;) instance and
>>   upon an initial Linux 5.10.x kernel boot:
>> ...
>> kernel read not supported for file usr/lib/systemd/systemd (pid: 1 
>> comm: run-init)
>> kernel panic -- not syncing: Attempted to kill init! exitcod=0x00000100
>> ...
>>
>> Fact is some of us have commercial interests when deploying reiser4, 
>> both in cloud instances, baremetal, and on-premises.
>>
>> In the future if -- and only if -- our reiser4 efforts come to 
>> successful fruition, quite likely in due time we will be
>>   able to financially commit to the Penguin's Linux Foundation temple, 
>> just like large corporations do
>>   in exchange for indulgences[2] which virtue-wash their past and/or 
>> current corp. officers' *substantially darker deeds*;
>>   heck, 'indulgence trafficking' seems to assuage->numb->arg(STFU) 
>> that 'virtuous' cult of GNU/Linux
>>   developers/gatekeepers/maintainers' frivolous, *narcissist*, ethics 
>> and/or moralities so often piled up against
>>   Reiser's work --which, paradoxically(!?), actually was largely 
>> implemented by Russian developers ;)
>>
>> In the meantime, I hacked a reverse patch that undoes some(all) of the 
>> surreptitious lethal attack on reiser4 fs
>>   -- at least on AMD64 architectures (I did away with other 
>> arch/Kconfigs).
>> And no, I am not a git pro-, undoing what I could of commit 
>> 4d03e3cc59828c82ee89ea6e27a2f3cdf95aaadf (as your hinted, Ed)
>>   does not fix the 'kernel read' issue.
>>
>> Notwithstanding, I would appreciate if you can take a look at the 
>> attached patch. Probably it can be streamlined and/or improved
>>   further to minimize pain on subsequent Linux kernel upgrades.
> 
> 
> That patch is an attempt to swim against the current ;)
> 
> I no longer remember, why they want to get rid of set_fs for already 15
> years, but ->read() and ->write() methods seem to be deprecated, and the
> correct way would be to implement the new ->read_iter() and write_iter()
> methods, where reiser4 works with "chunked" streams, represented by
> iov_iter structure, rather than with "continuous" streams, represented
> by char __user *buf. The task is not that difficult, but rather time
> consuming - I don't have a time for this right now..


So, I have implemented ->read_iter() for all plugins (*). It is included
to reiser4-for-5.12 stuff. Not sure if it is enough to make distro with
root over reiser4 though: ->write_iter() is not yet implemented (not so
trivial because of transactions).

(*)
https://github.com/edward6/reiser4/commit/ac72aba7e8bb16a28755c1b2b762971927d17c3c

https://github.com/edward6/reiser4/commit/4d3200fbcb2003c680cdb822e3f616d3fa83c391

Edward.

  parent reply	other threads:[~2021-06-20 17:45 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-02-08 12:54 [reiser4 SFRN 5.1.3] kernel [5.10.x] read not supported for file /test-exec \(pid: 10094 comm: debootstrap\) Metztli Information Technology
2021-02-08 12:54 ` Metztli Information Technology
2021-02-08 16:03 ` Edward Shishkin
2021-02-16 15:56   ` Jose R Rodriguez
2021-02-16 20:02     ` Edward Shishkin
2021-02-19  8:12       ` Jose R Rodriguez
2021-02-26  7:33         ` Jose R Rodriguez
2021-06-20 17:45   ` Edward Shishkin [this message]
2021-08-04 10:17   ` Metztli Information Technology
2021-08-13 15:20   ` Metztli Information Technology
2021-08-14 11:00     ` Edward Shishkin
2021-08-16 19:22       ` Metztli Information Technology
  -- strict thread matches above, loose matches on Subject: below --
2021-01-08  7:43 Metztli Information Technology
2021-01-08  7:43 ` Metztli Information Technology
2020-12-25 16:42 Metztli Information Technology
2020-12-25 16:42 ` Metztli Information Technology
2020-12-23 16:01 Metztli Information Technology
2020-12-23 23:40 ` Edward Shishkin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1f342fdd-0c30-06df-012c-4425d94d942f@gmail.com \
    --to=edward.shishkin@gmail.com \
    --cc=jose.r.r@metztli.com \
    --cc=reiserfs-devel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.