mirror of
https://github.com/followmsi/android_kernel_google_msm.git
synced 2024-11-06 23:17:41 +00:00
Merge branch 'lineage-17.1' of https://github.com/LineageOS/android_kernel_google_msm into followmsi-10-test
This commit is contained in:
commit
a09415eac8
7 changed files with 61 additions and 38 deletions
|
@ -106,6 +106,7 @@ tune-$(CONFIG_CPU_XSC3) :=$(call cc-option,-mtune=xscale,-mtune=strongarm110) -
|
|||
tune-$(CONFIG_CPU_FEROCEON) :=$(call cc-option,-mtune=marvell-f,-mtune=xscale)
|
||||
tune-$(CONFIG_CPU_V6) :=$(call cc-option,-mtune=arm1136j-s,-mtune=strongarm)
|
||||
tune-$(CONFIG_CPU_V6K) :=$(call cc-option,-mtune=arm1136j-s,-mtune=strongarm)
|
||||
tune-$(CONFIG_ARCH_MSM8960) :=-mtune=cortex-a15 -mfloat-abi=softfp -mfpu=neon-vfpv4
|
||||
|
||||
ifeq ($(CONFIG_AEABI),y)
|
||||
CFLAGS_ABI :=-mabi=aapcs-linux -mno-thumb-interwork
|
||||
|
|
|
@ -25,6 +25,7 @@ CONFIG_EMBEDDED=y
|
|||
CONFIG_PROFILING=y
|
||||
CONFIG_PARTITION_ADVANCED=y
|
||||
CONFIG_EFI_PARTITION=y
|
||||
# CONFIG_IOSCHED_TEST is not set
|
||||
CONFIG_IOSCHED_BFQ=y
|
||||
CONFIG_CGROUP_BFQIO=y
|
||||
CONFIG_DEFAULT_NOOP=y
|
||||
|
@ -43,7 +44,7 @@ CONFIG_MSM_SMD=y
|
|||
CONFIG_MSM_SMD_PKG4=y
|
||||
CONFIG_MSM_PCIE=y
|
||||
CONFIG_MSM_BAM_DMUX=y
|
||||
CONFIG_MSM_IPC_LOGGING=y
|
||||
# CONFIG_MSM_SMD_LOGGING is not set
|
||||
CONFIG_MSM_HSIC_TTY=y
|
||||
CONFIG_MSM_DSPS=y
|
||||
CONFIG_MSM_IPC_ROUTER=y
|
||||
|
@ -51,6 +52,7 @@ CONFIG_MSM_IPC_ROUTER_SMD_XPRT=y
|
|||
CONFIG_MSM_IPC_ROUTER_SECURITY=y
|
||||
CONFIG_MSM_AVS_HW=y
|
||||
# CONFIG_MSM_HW3D is not set
|
||||
# CONFIG_MSM_DMA_TEST is not set
|
||||
CONFIG_MSM_SUBSYSTEM_RESTART=y
|
||||
CONFIG_MSM_SYSMON_COMM=y
|
||||
CONFIG_MSM_PIL_QDSP6V4=y
|
||||
|
@ -63,17 +65,12 @@ CONFIG_MSM_MODEM_8960=y
|
|||
CONFIG_MSM_LPASS_8960=y
|
||||
CONFIG_MSM_WCNSS_SSR_8960=y
|
||||
CONFIG_MSM_GSS_SSR_8064=y
|
||||
CONFIG_MSM_TZ_LOG=y
|
||||
CONFIG_MSM_RPM_LOG=y
|
||||
CONFIG_MSM_RPM_STATS_LOG=y
|
||||
CONFIG_MSM_RPM_RBCPR_STATS_LOG=y
|
||||
CONFIG_MSM_EVENT_TIMER=y
|
||||
CONFIG_MSM_BUS_SCALING=y
|
||||
CONFIG_MSM_BUS_RPM_MULTI_TIER_ENABLED=y
|
||||
CONFIG_MSM_WATCHDOG=y
|
||||
CONFIG_MSM_DLOAD_MODE=y
|
||||
CONFIG_MSM_ADSP_LOADER=y
|
||||
CONFIG_MSM_EBI_ERP=y
|
||||
CONFIG_MSM_CACHE_ERP=y
|
||||
CONFIG_MSM_L1_ERR_PANIC=y
|
||||
CONFIG_MSM_L1_ERR_LOG=y
|
||||
|
@ -114,7 +111,6 @@ CONFIG_PM_WAKELOCKS=y
|
|||
CONFIG_PM_WAKELOCKS_LIMIT=0
|
||||
# CONFIG_PM_WAKELOCKS_GC is not set
|
||||
CONFIG_PM_RUNTIME=y
|
||||
CONFIG_PM_DEBUG=y
|
||||
CONFIG_NET=y
|
||||
CONFIG_PACKET=y
|
||||
CONFIG_UNIX=y
|
||||
|
@ -162,6 +158,7 @@ CONFIG_NETFILTER_TPROXY=y
|
|||
CONFIG_NETFILTER_XT_TARGET_CLASSIFY=y
|
||||
CONFIG_NETFILTER_XT_TARGET_CONNMARK=y
|
||||
CONFIG_NETFILTER_XT_TARGET_CONNSECMARK=y
|
||||
CONFIG_NETFILTER_XT_TARGET_CT=y
|
||||
CONFIG_NETFILTER_XT_TARGET_HMARK=y
|
||||
CONFIG_NETFILTER_XT_TARGET_IDLETIMER=y
|
||||
CONFIG_NETFILTER_XT_TARGET_LOG=y
|
||||
|
@ -328,6 +325,7 @@ CONFIG_SERIAL_MSM_HS=y
|
|||
CONFIG_SERIAL_MSM_HSL=y
|
||||
CONFIG_SERIAL_MSM_HSL_CONSOLE=y
|
||||
CONFIG_HW_RANDOM_MSM=y
|
||||
# CONFIG_DEVPORT is not set
|
||||
CONFIG_I2C=y
|
||||
CONFIG_I2C_CHARDEV=y
|
||||
# CONFIG_I2C_MSM is not set
|
||||
|
@ -335,7 +333,6 @@ CONFIG_I2C_QUP=y
|
|||
CONFIG_SPI=y
|
||||
CONFIG_SPI_QUP=y
|
||||
CONFIG_SLIMBUS_MSM_CTRL=y
|
||||
CONFIG_DEBUG_GPIO=y
|
||||
CONFIG_GPIO_SYSFS=y
|
||||
CONFIG_GPIO_SX150X=y
|
||||
CONFIG_POWER_SUPPLY=y
|
||||
|
@ -469,20 +466,20 @@ CONFIG_USB_EHCI_MSM_HSIC=y
|
|||
CONFIG_USB_EHCI_MSM_HOST4=y
|
||||
CONFIG_USB_ACM=y
|
||||
CONFIG_USB_STORAGE=y
|
||||
CONFIG_USB_STORAGE_DATAFAB=y
|
||||
CONFIG_USB_STORAGE_FREECOM=y
|
||||
CONFIG_USB_STORAGE_ISD200=y
|
||||
CONFIG_USB_STORAGE_USBAT=y
|
||||
CONFIG_USB_STORAGE_SDDR09=y
|
||||
CONFIG_USB_STORAGE_SDDR55=y
|
||||
CONFIG_USB_STORAGE_JUMPSHOT=y
|
||||
CONFIG_USB_STORAGE_ALAUDA=y
|
||||
CONFIG_USB_STORAGE_ONETOUCH=y
|
||||
CONFIG_USB_STORAGE_KARMA=y
|
||||
CONFIG_USB_STORAGE_CYPRESS_ATACB=y
|
||||
# CONFIG_USB_STORAGE_DATAFAB is not set
|
||||
# CONFIG_USB_STORAGE_FREECOM is not set
|
||||
# CONFIG_USB_STORAGE_ISD200 is not set
|
||||
# CONFIG_USB_STORAGE_USBAT is not set
|
||||
# CONFIG_USB_STORAGE_SDDR09 is not set
|
||||
# CONFIG_USB_STORAGE_SDDR55 is not set
|
||||
# CONFIG_USB_STORAGE_JUMPSHOT is not set
|
||||
# CONFIG_USB_STORAGE_ALAUDA is not set
|
||||
# CONFIG_USB_STORAGE_ONETOUCH is not set
|
||||
# CONFIG_USB_STORAGE_KARMA is not set
|
||||
# CONFIG_USB_STORAGE_CYPRESS_ATACB is not set
|
||||
CONFIG_USB_SERIAL=y
|
||||
CONFIG_USB_SERIAL_CSVT=y
|
||||
CONFIG_USB_EHSET_TEST_FIXTURE=y
|
||||
# CONFIG_USB_EHSET_TEST_FIXTURE is not set
|
||||
CONFIG_USB_QCOM_DIAG_BRIDGE=y
|
||||
CONFIG_USB_QCOM_MDM_BRIDGE=y
|
||||
CONFIG_USB_QCOM_KS_BRIDGE=y
|
||||
|
@ -552,7 +549,6 @@ CONFIG_MAGIC_SYSRQ=y
|
|||
# CONFIG_SCHED_DEBUG is not set
|
||||
# CONFIG_DEBUG_PREEMPT is not set
|
||||
CONFIG_DEBUG_INFO=y
|
||||
CONFIG_DEBUG_MEMORY_INIT=y
|
||||
CONFIG_ENABLE_DEFAULT_TRACERS=y
|
||||
CONFIG_DYNAMIC_DEBUG=y
|
||||
CONFIG_PID_IN_CONTEXTIDR=y
|
||||
|
|
|
@ -593,10 +593,13 @@ config TELCLOCK
|
|||
controlling the behavior of this hardware.
|
||||
|
||||
config DEVPORT
|
||||
bool
|
||||
bool "/dev/port character device"
|
||||
depends on !M68K
|
||||
depends on ISA || PCI
|
||||
default y
|
||||
help
|
||||
Say Y here if you want to support the /dev/port device. The
|
||||
/dev/port device is similar to /dev/mem, but for I/O ports.
|
||||
|
||||
config DCC_TTY
|
||||
tristate "DCC tty driver"
|
||||
|
|
|
@ -2281,8 +2281,16 @@ static void binder_transaction(struct binder_proc *proc,
|
|||
list_add_tail(&t->work.entry, target_list);
|
||||
tcomplete->type = BINDER_WORK_TRANSACTION_COMPLETE;
|
||||
list_add_tail(&tcomplete->entry, &thread->todo);
|
||||
if (target_wait)
|
||||
wake_up_interruptible(target_wait);
|
||||
if (target_wait) {
|
||||
if (reply || !(t->flags & TF_ONE_WAY)) {
|
||||
preempt_disable();
|
||||
wake_up_interruptible_sync(target_wait);
|
||||
sched_preempt_enable_no_resched();
|
||||
}
|
||||
else {
|
||||
wake_up_interruptible(target_wait);
|
||||
}
|
||||
}
|
||||
return;
|
||||
|
||||
err_translate_failed:
|
||||
|
|
|
@ -111,6 +111,8 @@ struct usb_hub {
|
|||
void **port_owners;
|
||||
};
|
||||
|
||||
int deny_new_usb = 0;
|
||||
|
||||
static inline int hub_is_superspeed(struct usb_device *hdev)
|
||||
{
|
||||
return (hdev->descriptor.bDeviceProtocol == USB_HUB_PR_SS);
|
||||
|
@ -3648,6 +3650,11 @@ static void hub_port_connect_change(struct usb_hub *hub, int port1,
|
|||
return;
|
||||
}
|
||||
|
||||
if (deny_new_usb) {
|
||||
dev_err(hub_dev, "denied insert of USB device on port %d\n", port1);
|
||||
goto done;
|
||||
}
|
||||
|
||||
for (i = 0; i < SET_CONFIG_TRIES; i++) {
|
||||
|
||||
/* reallocate for each attempt, since references
|
||||
|
|
|
@ -93,6 +93,9 @@
|
|||
#if defined(CONFIG_SYSCTL)
|
||||
|
||||
/* External variables not in a header file. */
|
||||
#ifdef CONFIG_USB
|
||||
extern int deny_new_usb;
|
||||
#endif
|
||||
extern int sysctl_overcommit_memory;
|
||||
extern int sysctl_overcommit_ratio;
|
||||
extern int max_threads;
|
||||
|
@ -722,6 +725,17 @@ static struct ctl_table kern_table[] = {
|
|||
.extra1 = &zero,
|
||||
.extra2 = &two,
|
||||
},
|
||||
#endif
|
||||
#ifdef CONFIG_USB
|
||||
{
|
||||
.procname = "deny_new_usb",
|
||||
.data = &deny_new_usb,
|
||||
.maxlen = sizeof(int),
|
||||
.mode = 0644,
|
||||
.proc_handler = proc_dointvec_minmax_sysadmin,
|
||||
.extra1 = &zero,
|
||||
.extra2 = &one,
|
||||
},
|
||||
#endif
|
||||
{
|
||||
.procname = "ngroups_max",
|
||||
|
|
|
@ -2,12 +2,12 @@
|
|||
"getattr", "setattr", "lock", "relabelfrom", "relabelto", "append"
|
||||
|
||||
#define COMMON_FILE_PERMS COMMON_FILE_SOCK_PERMS, "unlink", "link", \
|
||||
"rename", "execute", "swapon", "quotaon", "mounton", "audit_access", \
|
||||
"rename", "execute", "quotaon", "mounton", "audit_access", \
|
||||
"open", "execmod"
|
||||
|
||||
#define COMMON_SOCK_PERMS COMMON_FILE_SOCK_PERMS, "bind", "connect", \
|
||||
"listen", "accept", "getopt", "setopt", "shutdown", "recvfrom", \
|
||||
"sendto", "recv_msg", "send_msg", "name_bind"
|
||||
"sendto", "name_bind"
|
||||
|
||||
#define COMMON_IPC_PERMS "create", "destroy", "getattr", "setattr", "read", \
|
||||
"write", "associate", "unix_read", "unix_write"
|
||||
|
@ -44,7 +44,7 @@ struct security_class_mapping secclass_map[] = {
|
|||
"audit_control", "setfcap", NULL } },
|
||||
{ "filesystem",
|
||||
{ "mount", "remount", "unmount", "getattr",
|
||||
"relabelfrom", "relabelto", "transition", "associate", "quotamod",
|
||||
"relabelfrom", "relabelto", "associate", "quotamod",
|
||||
"quotaget", NULL } },
|
||||
{ "file",
|
||||
{ COMMON_FILE_PERMS,
|
||||
|
@ -67,7 +67,7 @@ struct security_class_mapping secclass_map[] = {
|
|||
{ COMMON_SOCK_PERMS, NULL } },
|
||||
{ "tcp_socket",
|
||||
{ COMMON_SOCK_PERMS,
|
||||
"connectto", "newconn", "acceptfrom", "node_bind", "name_connect",
|
||||
"node_bind", "name_connect",
|
||||
NULL } },
|
||||
{ "udp_socket",
|
||||
{ COMMON_SOCK_PERMS,
|
||||
|
@ -76,13 +76,9 @@ struct security_class_mapping secclass_map[] = {
|
|||
{ COMMON_SOCK_PERMS,
|
||||
"node_bind", NULL } },
|
||||
{ "node",
|
||||
{ "tcp_recv", "tcp_send", "udp_recv", "udp_send",
|
||||
"rawip_recv", "rawip_send", "enforce_dest",
|
||||
"dccp_recv", "dccp_send", "recvfrom", "sendto", NULL } },
|
||||
{ "recvfrom", "sendto", NULL } },
|
||||
{ "netif",
|
||||
{ "tcp_recv", "tcp_send", "udp_recv", "udp_send",
|
||||
"rawip_recv", "rawip_send", "dccp_recv", "dccp_send",
|
||||
"ingress", "egress", NULL } },
|
||||
{ "ingress", "egress", NULL } },
|
||||
{ "netlink_socket",
|
||||
{ COMMON_SOCK_PERMS, NULL } },
|
||||
{ "packet_socket",
|
||||
|
@ -90,11 +86,9 @@ struct security_class_mapping secclass_map[] = {
|
|||
{ "key_socket",
|
||||
{ COMMON_SOCK_PERMS, NULL } },
|
||||
{ "unix_stream_socket",
|
||||
{ COMMON_SOCK_PERMS, "connectto", "newconn", "acceptfrom", NULL
|
||||
} },
|
||||
{ COMMON_SOCK_PERMS, "connectto", NULL } },
|
||||
{ "unix_dgram_socket",
|
||||
{ COMMON_SOCK_PERMS, NULL
|
||||
} },
|
||||
{ COMMON_SOCK_PERMS, NULL } },
|
||||
{ "sem",
|
||||
{ COMMON_IPC_PERMS, NULL } },
|
||||
{ "msg", { "send", "receive", NULL } },
|
||||
|
|
Loading…
Reference in a new issue