Skip to content
Snippets Groups Projects
Select Git revision
  • 593ee20766921fec643194dff829e17f30552220
  • vme-testing default
  • ci-test
  • master
  • remoteproc
  • am625-sk-ov5640
  • pcal6534-upstreaming
  • lps22df-upstreaming
  • msc-upstreaming
  • imx8mp
  • iio/noa1305
  • vme-next
  • vme-next-4.14-rc4
  • v4.14-rc4
  • v4.14-rc3
  • v4.14-rc2
  • v4.14-rc1
  • v4.13
  • vme-next-4.13-rc7
  • v4.13-rc7
  • v4.13-rc6
  • v4.13-rc5
  • v4.13-rc4
  • v4.13-rc3
  • v4.13-rc2
  • v4.13-rc1
  • v4.12
  • v4.12-rc7
  • v4.12-rc6
  • v4.12-rc5
  • v4.12-rc4
  • v4.12-rc3
32 results

pci-acpi.c

Blame
    • Kristen Accardi's avatar
      593ee207
      [PATCH] pci: correctly allocate return buffers for osc calls · 593ee207
      Kristen Accardi authored
      
      The OSC set and query functions do not allocate enough space for return
      values, and set the output buffer length to a false, too large value.  This
      causes the acpi-ca code to assume that the output buffer is larger than it
      actually is, and overwrite memory when copying acpi return buffers into
      this caller provided buffer.  In some cases this can cause kernel oops if
      the memory that is overwritten is a pointer.  This patch will change these
      calls to use a dynamically allocated output buffer, thus allowing the
      acpi-ca code to decide how much space is needed.
      
      Signed-off-by: default avatarKristen Carlson Accardi <kristen.c.accardi@intel.com>
      Cc: "Brown, Len" <len.brown@intel.com>
      Cc: "Yu, Luming" <luming.yu@intel.com>
      Cc: Greg KH <greg@kroah.com>
      Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
      593ee207
      History
      [PATCH] pci: correctly allocate return buffers for osc calls
      Kristen Accardi authored
      
      The OSC set and query functions do not allocate enough space for return
      values, and set the output buffer length to a false, too large value.  This
      causes the acpi-ca code to assume that the output buffer is larger than it
      actually is, and overwrite memory when copying acpi return buffers into
      this caller provided buffer.  In some cases this can cause kernel oops if
      the memory that is overwritten is a pointer.  This patch will change these
      calls to use a dynamically allocated output buffer, thus allowing the
      acpi-ca code to decide how much space is needed.
      
      Signed-off-by: default avatarKristen Carlson Accardi <kristen.c.accardi@intel.com>
      Cc: "Brown, Len" <len.brown@intel.com>
      Cc: "Yu, Luming" <luming.yu@intel.com>
      Cc: Greg KH <greg@kroah.com>
      Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
    hardware.h 4.13 KiB