clk: samsung: Suppress unbinding to prevent theoretical attacks
authorKrzysztof Kozlowski <k.kozlowski@samsung.com>
Tue, 17 May 2016 07:26:14 +0000 (09:26 +0200)
committerSylwester Nawrocki <s.nawrocki@samsung.com>
Thu, 2 Jun 2016 09:18:18 +0000 (11:18 +0200)
commitf4f4dd0c45676fa3fc7683046f3acc862a088fed
tree723ecfe251835f5c52503b4cd4f34ff079d3e49e
parent34cba900375ec1751a87d3655ad03b9a5b022362
clk: samsung: Suppress unbinding to prevent theoretical attacks

Although unbinding a driver requires root privileges but it still might
be used theoretically in certain attacks (by triggering NULL pointer
exception or memory corruption if driver does not provide proper remove
callbacks or core does not handle it).

Samsung clock drivers are essential for system operation so their
removal is not expected. More over, the Exynos3250 ISP clock driver does
not implement remove() driver callback and it is not buildable as
modules.

Suppress the unbind interface for Exynos3250 ISP and S3C2410 DCLK clock
drivers.

Suggested-by: Marek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
drivers/clk/samsung/clk-exynos3250.c
drivers/clk/samsung/clk-s3c2410-dclk.c