lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20230803191554.205599-1-afranji@google.com>
Date:   Thu,  3 Aug 2023 19:15:54 +0000
From:   Ryan Afranji <afranji@...gle.com>
To:     seanjc@...gle.com
Cc:     ackerleytng@...gle.com, akpm@...ux-foundation.org,
        anup@...infault.org, aou@...s.berkeley.edu,
        chao.p.peng@...ux.intel.com, chenhuacai@...nel.org,
        david@...hat.com, isaku.yamahata@...il.com, jarkko@...nel.org,
        jmorris@...ei.org, kirill.shutemov@...ux.intel.com,
        kvm-riscv@...ts.infradead.org, kvm@...r.kernel.org,
        kvmarm@...ts.linux.dev, liam.merwick@...cle.com,
        linux-arm-kernel@...ts.infradead.org,
        linux-fsdevel@...r.kernel.org, linux-kernel@...r.kernel.org,
        linux-mips@...r.kernel.org, linux-mm@...ck.org,
        linux-riscv@...ts.infradead.org,
        linux-security-module@...r.kernel.org,
        linuxppc-dev@...ts.ozlabs.org, mail@...iej.szmigiero.name,
        maz@...nel.org, michael.roth@....com, mpe@...erman.id.au,
        oliver.upton@...ux.dev, palmer@...belt.com,
        paul.walmsley@...ive.com, paul@...l-moore.com, pbonzini@...hat.com,
        qperret@...gle.com, serge@...lyn.com, tabba@...gle.com,
        vannapurve@...gle.com, vbabka@...e.cz, wei.w.wang@...el.com,
        willy@...radead.org, yu.c.zhang@...ux.intel.com
Subject: Re: [RFC PATCH v11 12/29] KVM: Add KVM_CREATE_GUEST_MEMFD ioctl() for
 guest-specific backing memory

> +static struct folio *kvm_gmem_get_folio(struct file *file, pgoff_t index)
> +{
> +	struct folio *folio;
> +
> +	/* TODO: Support huge pages. */
> +	folio = filemap_grab_folio(file->f_mapping, index);
> +	if (!folio)
> +		return NULL;

In Linux 6.4, filemap_grab_folio() may also return an error value.
Instead of just checking for NULL, "IS_ERR_OR_NULL(folio)" will be needed.

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ