]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commitdiff
KVM: arm/arm64: vgic: constify seq_operations and file_operations
authorArvind Yadav <arvind.yadav.cs@gmail.com>
Wed, 23 Aug 2017 06:55:36 +0000 (12:25 +0530)
committerKhalid Elmously <khalid.elmously@canonical.com>
Tue, 27 Feb 2018 16:32:21 +0000 (11:32 -0500)
vgic_debug_seq_ops and file_operations are not supposed to change
at runtime and none of the structures is modified.

Signed-off-by: Arvind Yadav <arvind.yadav.cs@gmail.com>
Signed-off-by: Christoffer Dall <cdall@linaro.org>
(cherry picked from commit 4aa8bcc93c6a7f327f163292e4146654b54f2086)

CVE-2017-5753
CVE-2017-5715
CVE-2017-5754

Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
Acked-by: Brad Figg <brad.figg@canonical.com>
Acked-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
virt/kvm/arm/vgic/vgic-debug.c

index 7072ab7433322b5d70ae9705ad64572adae71a92..10b38178cff207a9ae1e8d59970e3f19fc7be7f6 100644 (file)
@@ -234,7 +234,7 @@ static int vgic_debug_show(struct seq_file *s, void *v)
        return 0;
 }
 
-static struct seq_operations vgic_debug_seq_ops = {
+static const struct seq_operations vgic_debug_seq_ops = {
        .start = vgic_debug_start,
        .next  = vgic_debug_next,
        .stop  = vgic_debug_stop,
@@ -255,7 +255,7 @@ static int debug_open(struct inode *inode, struct file *file)
        return ret;
 };
 
-static struct file_operations vgic_debug_fops = {
+static const struct file_operations vgic_debug_fops = {
        .owner   = THIS_MODULE,
        .open    = debug_open,
        .read    = seq_read,