From: Greg Kroah-Hartman Date: Fri, 19 Jan 2018 09:06:03 +0000 (+0100) Subject: ACPI: sbshc: remove raw pointer from printk() message X-Git-Tag: v4.1.12-124.31.3~793 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=9973154d014f4e69efefcaca31d304cc29429fb8;p=users%2Fjedix%2Flinux-maple.git ACPI: sbshc: remove raw pointer from printk() message Orabug: 27501257 CVE: CVE-2018-5750 There's no need to be printing a raw kernel pointer to the kernel log at every boot. So just remove it, and change the whole message to use the correct dev_info() call at the same time. Reported-by: Wang Qize Cc: All applicable Signed-off-by: Greg Kroah-Hartman Signed-off-by: Rafael J. Wysocki (cherry picked from commit 43cdd1b716b26f6af16da4e145b6578f98798bf6) Reviewed-by: Shan Hai Signed-off-by: Allen Pais Signed-off-by: Brian Maly --- diff --git a/drivers/acpi/sbshc.c b/drivers/acpi/sbshc.c index bf034f8b7c1a..030ab2f543df 100644 --- a/drivers/acpi/sbshc.c +++ b/drivers/acpi/sbshc.c @@ -309,8 +309,8 @@ static int acpi_smbus_hc_add(struct acpi_device *device) device->driver_data = hc; acpi_ec_add_query_handler(hc->ec, hc->query_bit, NULL, smbus_alarm, hc); - printk(KERN_INFO PREFIX "SBS HC: EC = 0x%p, offset = 0x%0x, query_bit = 0x%0x\n", - hc->ec, hc->offset, hc->query_bit); + dev_info(&device->dev, "SBS HC: offset = 0x%0x, query_bit = 0x%0x\n", + hc->offset, hc->query_bit); return 0; }