Re: [PATCH v3 RESEND] fcntl: Add 32bit filesystem mode

2021-11-15 Thread Peter Maydell
On Tue, 17 Nov 2020 at 23:38, Linus Walleij wrote: > > On Tue, Oct 13, 2020 at 11:22 AM Dave Martin wrote: > > > > case F_SETFD: > > > err = 0; > > > set_close_on_exec(fd, arg & FD_CLOEXEC); > > > + if (arg & FD_32BIT_MODE) > > > +

Re: [PATCH v3 RESEND] fcntl: Add 32bit filesystem mode

2020-11-18 Thread Arnd Bergmann
On Wed, Nov 18, 2020 at 12:38 AM Linus Walleij wrote: > > On Tue, Oct 13, 2020 at 11:22 AM Dave Martin wrote: > > > > case F_SETFD: > > > err = 0; > > > set_close_on_exec(fd, arg & FD_CLOEXEC); > > > + if (arg & FD_32BIT_MODE) > > > +

Re: [PATCH v3 RESEND] fcntl: Add 32bit filesystem mode

2020-11-17 Thread Linus Walleij
On Tue, Oct 13, 2020 at 11:22 AM Dave Martin wrote: > > case F_SETFD: > > err = 0; > > set_close_on_exec(fd, arg & FD_CLOEXEC); > > + if (arg & FD_32BIT_MODE) > > + filp->f_mode |= FMODE_32BITHASH; > > + else > > +

Re: [PATCH v3 RESEND] fcntl: Add 32bit filesystem mode

2020-10-13 Thread Yonggang Luo
On Tue, Oct 13, 2020 at 6:09 AM Linus Walleij wrote: > > It was brought to my attention that this bug from 2018 was > still unresolved: 32 bit emulators like QEMU were given > 64 bit hashes when running 32 bit emulation on 64 bit systems. > > This adds a flag to the fcntl() F_GETFD and F_SETFD

Re: [PATCH v3 RESEND] fcntl: Add 32bit filesystem mode

2020-10-13 Thread Dave Martin
On Tue, Oct 13, 2020 at 12:06:20AM +0200, Linus Walleij wrote: > It was brought to my attention that this bug from 2018 was > still unresolved: 32 bit emulators like QEMU were given > 64 bit hashes when running 32 bit emulation on 64 bit systems. > > This adds a flag to the fcntl() F_GETFD and

Re: [PATCH v3 RESEND] fcntl: Add 32bit filesystem mode

2020-10-12 Thread Eric Blake
On 10/12/20 5:06 PM, Linus Walleij wrote: It was brought to my attention that this bug from 2018 was still unresolved: 32 bit emulators like QEMU were given 64 bit hashes when running 32 bit emulation on 64 bit systems. This adds a flag to the fcntl() F_GETFD and F_SETFD operations to set the

[PATCH v3 RESEND] fcntl: Add 32bit filesystem mode

2020-10-12 Thread Linus Walleij
It was brought to my attention that this bug from 2018 was still unresolved: 32 bit emulators like QEMU were given 64 bit hashes when running 32 bit emulation on 64 bit systems. This adds a flag to the fcntl() F_GETFD and F_SETFD operations to set the underlying filesystem into 32bit mode even if