mirror of
https://github.com/hardkernel/kernel_common_drivers.git
synced 2026-06-25 12:03:48 +09:00
e2ab106c2c
PD#SWPL-136207 Problem: use kprobe to forbid free module init text Solution: record module base and use offset to parse this module symbol Verify: SC2_AH212 Change-Id: I43bd306e94e9a6a5afe6411a9cd9e93db0342b7a Signed-off-by: song.han <song.han@amlogic.com>
35 lines
682 B
C
35 lines
682 B
C
// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
|
|
/*
|
|
* Copyright (c) 2019 Amlogic, Inc. All rights reserved.
|
|
*/
|
|
#include <linux/cdev.h>
|
|
#include <linux/types.h>
|
|
#include <linux/fs.h>
|
|
#include <linux/device.h>
|
|
#include <linux/slab.h>
|
|
#include <linux/platform_device.h>
|
|
#include <linux/err.h>
|
|
#include <linux/module.h>
|
|
#include <linux/uaccess.h>
|
|
#include <linux/of.h>
|
|
#include <linux/ctype.h>
|
|
#include <linux/kallsyms.h>
|
|
|
|
#include "gki_tool.h"
|
|
|
|
static int __init gki_tool_init(void)
|
|
{
|
|
gki_module_init();
|
|
return 0;
|
|
}
|
|
|
|
static void __exit gki_tool_exit(void)
|
|
{
|
|
}
|
|
|
|
module_init(gki_tool_init);
|
|
module_exit(gki_tool_exit);
|
|
|
|
MODULE_DESCRIPTION("Amlogic GKI tool");
|
|
MODULE_LICENSE("GPL v2");
|