[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Are there still machines with PAGE_SHIFT 16 or larger ?



On Wed, Nov 11, 2020 at 8:13 PM Thomas Schmitt <scdbackup@gmx.net> wrote:
>
> Hi,
>
> Anatoly Pugachev wrote directly to me:
> > sent you an ISO file with another account...
>
> Now that's embrassing. My zisofs compressor did put out the zisofs
> block pointers into the file as big-endian 32-bit numbers, where
> everybody expects little-endian.
> So the bread() call in the kernel which shall fetch the first piece of
> compressed data gets sent to byte offset 0x94000000 rather than 0x94 = 148.
>
> Great catch. Congrats.
>
> I sent you a mail with my test.iso as attachment. But i got it back
> from GMX with this quote:
>
>   matorola@gmail.com:
>   SMTP error from remote server for TEXT command, host:
>   gmail-smtp-in.l.google.com (74.125.140.27) reason:
>   552-5.7.0 This message was blocked because its content presents a potential
>   552-5.7.0 security issue. Please visit
>   552-5.7.0  https://support.google.com/mail/?p=BlockedMessage to review our
>   552 5.7.0 message content and attachment content guidelines. o2si2723031wru.291 - gsmtp
>
> Just make the ISO on the little-endian machine and copy it to the
> big-endian one. Then it should really work ... i hope ...

copied (freshly generated) test.iso from x86_64 VM to ppc64 host:

root@chubaka:/home/mator# umount /mnt
root@chubaka:/home/mator# mount -o loop,ro test.iso /mnt
mator@chubaka:~$ md5sum /tmp/1mb
5e8131627edf05ecdd02f26b28aa6f8f  /tmp/1mb
mator@chubaka:~$ ls -l /mnt
total 2
-rw-r--r-- 1 mator users 1024000 Nov 11 16:12 1mb
mator@chubaka:~$ md5sum /mnt/1mb
5e8131627edf05ecdd02f26b28aa6f8f  /mnt/1mb

works


Reply to: