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: <7a0c2e488e024c0694fd730f95ba98fb@AcuMS.aculab.com>
Date:   Fri, 21 Aug 2020 08:39:45 +0000
From:   David Laight <David.Laight@...LAB.COM>
To:     'Yue Hu' <zbestahu@...il.com>,
        "rui.zhang@...el.com" <rui.zhang@...el.com>,
        "daniel.lezcano@...aro.org" <daniel.lezcano@...aro.org>,
        "amit.kucheria@...durent.com" <amit.kucheria@...durent.com>,
        "viresh.kumar@...aro.org" <viresh.kumar@...aro.org>
CC:     "linux-pm@...r.kernel.org" <linux-pm@...r.kernel.org>,
        "linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
        "huyue2@...ong.com" <huyue2@...ong.com>,
        "zhangwen@...ong.com" <zhangwen@...ong.com>
Subject: RE: [PATCH] thermal: sysfs: Fall back to vmalloc() for cooling
 device's statistics

From: Yue Hu
> Sent: 21 August 2020 03:44
> 
> From: Yue Hu <huyue2@...ong.com>
> 
> We observed warning about kzalloc() when register thermal cooling device
> in backlight_device_register(). backlight display can be a cooling device
> since reducing screen brightness will can help reduce temperature.
> 
> However, ->get_max_state of backlight will assign max brightness of 1024
> to states. The memory size can be getting 1MB+ due to states * states.
> That is so large to trigger kmalloc() warning.

I can't help feeling that there is an 'adequate' implementation
that doesn't require anywhere near 1MB of memory.

	David

-
Registered Address Lakeside, Bramley Road, Mount Farm, Milton Keynes, MK1 1PT, UK
Registration No: 1397386 (Wales)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ