Skip to content

Commit 3bca5c7

Browse files
author
Rishabh Bhatnagar
committed
Merge remote-tracking branch 'origin/tmp-441e17f' into msm-kona
* origin/tmp-441e17f: ANDROID: xt_qtaguid: Remove unnecessary null checks to device's name ANDROID: qtaguid: Fix the UAF probelm with tag_ref_tree ANDROID: netfilter: xt_qtaguid: Fix 4.14 compilation ANDROID: netfilter: xt_qtaguid: Use sk_uid to replace uid get from socket file ANDROID: netfilter: xt_qtaguid: fix handling for cases where tunnels are used. ANDROID: netfilter: xt_qtaguid: handle properly request sockets ANDROID: netfilter: xt_qtaguid: Add untag hacks to inet_release function ANDROID: netfilter: xt_qtaguid: don't check if embedded arrays are NULL ANDROID: netfilter: xt_qtaguid: fix the deadlock when enable DDEBUG ANDROID: netfilter: xt_qtaguid: Don't show empty tag stats for unprivileged uids ANDROID: netfilter: xt_qtaguid: Fix panic caused by processing non-full socket. ANDROID: netfilter: xt_qtaguid: Fix panic caused by synack processing ANDROID: netfilter: xt_qtaguid: fix a race condition in if_tag_stat_update ANDROID: netfilter: xt_qtaguid: xt_socket: build fixes ANDROID: netfilter: xt_qtaguid: Use sk_callback_lock read locks before reading sk->sk_socket ANDROID: netfilter: xt_qtaguid/xt_socket: Build fixups ANDROID: netfilter: xt_qtaguid: Fix boot panic ANDROID: netfilter: xt_qtaguid: fix bad tcp_time_wait sock handling ANDROID: netfilter: xt_qtaguid: 3.10 fixes ANDROID: netfilter: xt_qtaguid: rate limit some of the printks ANDROID: netfilter: xt_qtaguid: Allow tracking loopback ANDROID: netfilter: xt_qtaguid: extend iface stat to report protocols ANDROID: netfilter: xt_qtaguid: remove AID_* dependency for access control ANDROID: netfilter: xt_qtaguid: Don't BUG_ON if create_if_tag_stat fails ANDROID: netfilter: xt_qtaguid: fix error exit that would keep a spinlock. ANDROID: netfilter: xt_qtaguid: report only uid tags to non-privileged processes ANDROID: netfilter: xt_qtaguid: start tracking iface rx/tx at low level ANDROID: netfilter: xt_qtaguid: fix ipv6 protocol lookup ANDROID: netfilter: xt_qtaguid: add qtaguid matching module RFC: ANDROID: net: ipv6: Flip FIB entries to fib6_info RFC: ANDROID: proc/uid: switch instantiate_t to d_splice_alias() RFC: ANDROID: fs: sdcardfs: Use inode iversion helpers RFC: ANDROID: net: ipv4: sysfs_net_ipv4: Fix TCP window size controlling knobs RFC: ANDROID: net: ipv4: tcp: Namespace-ify sysctl_tcp_default_init_rwnd ANDROID: x86_64_cuttlefish_defconfig: Enable lz4 compression for zram ANDROID: x86_64_cuttlefish_defconfig: Enable zram and zstd ANDROID: AVB error handler to invalidate vbmeta partition. ANDROID: remove android config fragments ANDROID: ftrace: fix function type mismatches ANDROID: sdcardfs: Check stacked filesystem depth ANDROID: verity: really fix android-verity Kconfig x86_64_cuttlefish_defconfig: Enable android-verity x86_64_cuttlefish_defconfig: enable verity cert ANDROID: android-verity: Fix broken parameter handling. ANDROID: android-verity: Make it work with newer kernels ANDROID: android-verity: Add API to verify signature with builtin keys. ANDROID: verity: fix android-verity Kconfig dependencies ANDROID: uid_sys_stats: Replace tasklist lock with RCU in uid_cputime_show ANDROID: mnt: Fix next_descendent ANDROID: Fix massive cpufreq_times memory leaks ANDROID: Reduce use of #ifdef CONFIG_CPU_FREQ_TIMES ANDROID: sdcardfs: fix potential crash when reserved_mb is not zero ANDROID: Add kconfig to make dm-verity check_at_most_once default enabled ANDROID: add extra free kbytes tunable ANDROID: x86_64_cuttlefish_defconfig: Enable F2FS ANDROID: Update x86_64_cuttlefish_defconfig ANDROID: proc: fix undefined behavior in proc_uid_base_readdir ANDROID: x86_64_cuttlefish_defconfig: Disable ORC unwinder. ANDROID: build: cuttlefish: Upgrade clang to newer version. ANDROID: build: cuttlefish: Upgrade clang to newer version. ANDROID: build: cuttlefish: Fix path to clang. ANDROID: sdcardfs: Don't d_drop in d_revalidate ANDROID: goldfish: drop CONFIG_INPUT_KEYCHORD ANDROID: build.config: enforce trace_printk check cfi: print target address on failure ANDROID: fs: gfs2: fix filler function type ANDROID: fs: exofs: fix filler function type ANDROID: fs: afs: fix filler function type ANDROID: fs: nfs: fix filler function type ANDROID: fs: fuse: fix filler function type mismatch ANDROID: mm: fix filler function type mismatch ANDROID: arch/arm64/crypto: fix CFI in SHA CE ANDROID: arm64: kvm: disable CFI ANDROID: arm64: mark kpti_install_ng_mappings as __nocfi ANDROID: arm64: disable CFI for cpu_replace_ttbr1 ANDROID: kallsyms: strip the .cfi postfix from symbols with CONFIG_CFI_CLANG RFC: ANDROID: add support for clang Control Flow Integrity (CFI) ANDROID: sdcardfs: Set s_root to NULL after putting ANDROID: sdcardfs: d_make_root calls iput ANDROID: sdcardfs: Check for private data earlier FROMLIST: arm64: kvm: use -fno-jump-tables with clang ANDROID: Add build server config for cuttlefish. ANDROID: Add defconfig for cuttlefish. ANDROID: cpufreq: Add time_in_state to /proc/uid directories ANDROID: proc: Add /proc/uid directory ANDROID: cpufreq: times: track per-uid time in state ANDROID: cpufreq: track per-task time in state ANDROID: fuse: Add null terminator to path in canonical path to avoid issue ANDROID: sdcardfs: Fix sdcardfs to stop creating cases-sensitive duplicate entries. ANDROID: arm64: Image.gz-dtb build target depends on Image.gz ANDROID: sdcardfs: fix lock issue on 32 bit/SMP architectures ANDROID: uid_sys_stats: Copy task_struct comm field to bigger buffer ANDROID: sdcardfs: Set num in extension_details during make_item ANDROID: sdcardfs: Hold i_mutex for i_size_write ANDROID: sdcardfs: Protect set_top ANDROID: fsnotify: Notify lower fs of open ANDROID: sdcardfs: Use lower getattr times/size ANDROID: Revert "fs: unexport vfs_read and vfs_write" ANDROID: sdcardfs: port to 4.14 ANDROID: fs: Export vfs_rmdir2 ANDROID: mm: Export do_munmap ANDROID: fs: Export d_absolute_path ANDROID: fs: Export free_fs_struct and set_fs_pwd ANDROID: export security_path_chown ANDROID: sdcardfs: Add default_normal option ANDROID: Sdcardfs: Move gid derivation under flag ANDROID: sdcardfs: override credential for ioctl to lower fs ANDROID: sdcardfs: Remove unnecessary lock ANDROID: sdcardfs: use mount_nodev and fix a issue in sdcardfs_kill_sb ANDROID: sdcardfs: remove dead function open_flags_to_access_mode() ANDROID: sdcardfs: d_splice_alias can return error values ANDROID: sdcardfs: Check for NULL in revalidate ANDROID: sdcardfs: Move top to its own struct ANDROID: sdcardfs: fix sdcardfs_destroy_inode for the inode RCU approach ANDROID: sdcardfs: Don't iput if we didn't igrab ANDROID: sdcardfs: Call lower fs's revalidate ANDROID: sdcardfs: Avoid setting GIDs outside of valid ranges ANDROID: sdcardfs: Copy meta-data from lower inode ANDROID: sdcardfs: Use filesystem specific hash ANDROID: sdcardfs: Don't complain in fixup_lower_ownership ANDROID: sdcardfs: Don't do d_add for lower fs ANDROID: sdcardfs: ->iget fixes ANDROID: sdcardfs: Change cache GID value ANDROID: sdcardfs: Directly pass lower file for mmap ANDROID: sdcardfs: update module info ANDROID: sdcardfs: use d_splice_alias ANDROID: sdcardfs: add read_iter/write_iter opeations ANDROID: sdcardfs: fix ->llseek to update upper and lower offset ANDROID: sdcardfs: copy lower inode attributes in ->ioctl ANDROID: sdcardfs: remove unnecessary call to do_munmap ANDROID: sdcardfs: Fix style issues in macros ANDROID: sdcardfs: Use seq_puts over seq_printf ANDROID: sdcardfs: Use to kstrout ANDROID: sdcardfs: Use pr_[...] instead of printk ANDROID: sdcardfs: remove unneeded null check ANDROID: sdcardfs: Fix style issues with comments ANDROID: sdcardfs: Fix formatting ANDROID: sdcardfs: correct order of descriptors ANDROID: sdcardfs: Fix gid issue ANDROID: sdcardfs: Remove uninformative prints ANDROID: sdcardfs: move path_put outside of spinlock ANDROID: sdcardfs: Use case insensitive hash function ANDROID: sdcardfs: declare MODULE_ALIAS_FS ANDROID: sdcardfs: Get the blocksize from the lower fs ANDROID: sdcardfs: Use d_invalidate instead of drop_recurisve ANDROID: sdcardfs: Switch to internal case insensitive compare ANDROID: sdcardfs: Use spin_lock_nested ANDROID: sdcardfs: Replace get/put with d_lock ANDROID: sdcardfs: rate limit warning print ANDROID: sdcardfs: Fix case insensitive lookup ANDROID: sdcardfs: support direct-IO (DIO) operations ANDROID: sdcardfs: implement vm_ops->page_mkwrite ANDROID: sdcardfs: Don't bother deleting freelist ANDROID: sdcardfs: Add missing path_put ANDROID: sdcardfs: Fix incorrect hash ANDROID: sdcardfs: Switch strcasecmp for internal call ANDROID: sdcardfs: switch to full_name_hash and qstr ANDROID: sdcardfs: Add GID Derivation to sdcardfs ANDROID: sdcardfs: Remove redundant operation ANDROID: sdcardfs: add support for user permission isolation ANDROID: sdcardfs: Refactor configfs interface ANDROID: sdcardfs: Allow non-owners to touch ANDROID: sdcardfs: eliminate the offset argument to ->direct_IO ANDROID: sdcardfs: make it use new .rename i_op ANDROID: sdcardfs: Propagate dentry down to inode_change_ok() ANDROID: sdcardfs: get rid of 'parent' argument of ->d_compare() ANDROID: sdcardfs: add parent pointer into dentry name hash ANDROID: sdcardfs: use wrappers to access i_mutex ANDROID: sdcardfs: Fix locking issue with permision fix up ANDROID: sdcardfs: Switch ->d_inode to d_inode() ANDROID: sdcardfs: Change magic value ANDROID: sdcardfs: Use per mount permissions ANDROID: sdcardfs: Add gid and mask to private mount data ANDROID: sdcardfs: User new permission2 functions ANDROID: sdcardfs: Move directory unlock before touch ANDROID: sdcardfs: fix external storage exporting incorrect uid ANDROID: sdcardfs: Added top to sdcardfs_inode_info ANDROID: sdcardfs: Switch package list to RCU ANDROID: sdcardfs: Fix locking for permission fix up ANDROID: sdcardfs: Check for other cases on path lookup ANDROID: sdcardfs: override umask on mkdir and create ANDROID: sdcardfs: fix itnull.cocci warnings ANDROID: sdcardfs: Truncate packages_gid.list on overflow ANDROID: sdcardfs: remove unneeded __init and __exit ANDROID: sdcardfs: Remove unused code ANDROID: sdcardfs: remove effectless config option ANDROID: sdcardfs: Add support for d_canonical_path ANDROID: sdcardfs: Bring up to date with Android M permissions: ANDROID: Changed type-casting in packagelist management ANDROID: Port of sdcardfs to 4.4 ANDROID: xattr: Pass EOPNOTSUPP to permission2 RFC: ANDROID: vfs: Add permission2 for filesystems with per mount permissions ANDROID: vfs: Add setattr2 for filesystems with per mount permissions ANDROID: vfs: Allow filesystems to access their private mount data ANDROID: fuse: Add support for d_canonical_path ANDROID: mnt: Add filesystem private data to mount points ANDROID: vfs: add d_canonical_path for stacked filesystem support ANDROID: Included sdcardfs source code for kernel 3.0 ANDROID: Fix script to fetch android kernel config fragments for 4.14 ANDROID: uid_sys_stats: fix the comment ANDROID: initramfs: call free_initrd() when skipping init ANDROID: memory_state_time: fix undefined behavior with missing DT properties ANDROID: memory_state_time: Implement memory_state_time, used by qcom,cpubw ANDROID: uid_sys_stats: log task io with a debug flag ANDROID: uid_sys_stats: check previous uid_entry before call find_or_register_uid ANDROID: uid_sys_stats: Kconfig: add depends for UID_SYS_STATS ANDROID: uid_sys_stats: defer io stats calulation for dead tasks ANDROID: uid_sys_stats: fix access of task_uid(task) ANDROID: uid_sys_stats: reduce update_io_stats overhead ANDROID: uid_sys_stats: change to use rt_mutex ANDROID: uid_sys_stats: account for fsync syscalls ANDROID: uid_sys_stats: fix negative write bytes. ANDROID: uid_sys_stats: allow writing same state ANDROID: uid_sys_stats: rename uid_cputime.c to uid_sys_stats.c ANDROID: uid_cputime: add per-uid IO usage accounting ANDROID: uid_cputime: Check for the range while removing range of UIDs. ANDROID: uid_cputime: Iterates over all the threads instead of processes. ANDROID: uid_cputime: fix cputime overflow ANDROID: uid_cputime: Adds accounting for the cputimes per uid. CHROMIUM: usb: gadget: f_accessory: add .raw_request callback CHROMIUM: usb: gadget: f_audio_source: add .free_func callback ANDROID: usb: gadget: f_midi: set fi->f to NULL when free f_midi function ANDROID: usb: gadget: f_midi: create F_midi device ANDROID: usb: gadget: f_accessory: assign no-op request complete callbacks ANDROID: usb: gadget: f_accessory: Fix for UsbAccessory clean unbind. ANDROID: usb: gadget: f_accessory: fix false disconnect due to a signal sent to the reading process ANDROID: usb: gadget: f_accessory: Move gadget functions code ANDROID: usb: gadget: f_accessory: Migrate to USB_FUNCTION API ANDROID: usb: gadget: f_audio_source: disable the CPU C-states upon playback ANDROID: usb: gadget: f_audio_source: Move gadget functions code ANDROID: usb: gadget: f_audio_source: Move to USB_FUNCTION API ANDROID: usb: gadget: configfs: fix null ptr in android_disconnect ANDROID: usb: gadget: configfs: Add device attribute to determine gadget state ANDROID: usb: gadget: configfs: Add "state" attribute to android_device ANDROID: usb: gadget: configfs: Add function devices to the parent ANDROID: usb: gadget: configfs: Add Uevent to notify userspace ANDROID: usb: gadget: configfs: Add usb_function ptr to fi struct ANDROID: usb: gadget: f_audio_source: Fixed USB Audio Class Interface Descriptor ANDROID: usb: gadget: f_audio_source: change max ISO packet size ANDROID: usb: gadget: f_audio_source: New gadget driver for audio output ANDROID: usb: gadget: f_accessory: check for accessory device before disconnecting HIDs ANDROID: usb: gadget: f_accessory: Enabled Zero Length Packet (ZLP) for acc_write ANDROID: usb: gadget: f_accessory: move userspace interface to uapi ANDROID: usb: gadget: f_accessory: Add support for HID input devices ANDROID: usb: gadget: f_accessory: Add ACCESSORY_SET_AUDIO_MODE control request and ioctl ANDROID: usb: gadget: f_accessory: Add Android Accessory function ANDROID: trace: sched: add sched blocked tracepoint which dumps out context of sleep. ANDROID: security,perf: Allow further restriction of perf_event_open ANDROID: power: wakeup: Add the guard condition for len in pm_get_active_wakeup_sources ANDROID: power: wakeup: Add last wake up source logging for suspend abort reason. ANDROID: power: wakeup_reason: fix suspend time reporting ANDROID: power: wakeup_reason: Report suspend times from last_suspend_time ANDROID: power: wakeup_reason: Adds functionality to log the last suspend abort reason. ANDROID: power: wakeup_reason: Avoids bogus error messages for the suspend aborts. ANDROID: power: wakeup_reason: Add guard condition for maximum wakeup reasons ANDROID: power: wakeup_reason: add an API to log wakeup reasons ANDROID: power: power_supply: Add property CHARGE_COUNTER_EXT and 64-bit precision properties ANDROID: power: power_supply: add POWER_SUPPLY_PROP_CHARGE_ENABLED ANDROID: power: power_supply: add POWER_SUPPLY_PROP_USB_OTG ANDROID: power: power_supply: Add custom property for USB High Current mode ANDROID: arm64: copy CONFIG_CMDLINE_EXTEND from ARM ANDROID: of: Support CONFIG_CMDLINE_EXTEND config option ANDROID: NFC: st21nfca: Fix memory OOB and leak issues in connectivity events handler ANDROID: NFC: Fix possible memory corruption when handling SHDLC I-Frame commands ANDROID: nfc: fdp: Fix possible buffer overflow in WCS4000 NFC driver ANDROID: NFC: st21nfca: Fix out of bounds kernel access when handling ATR_REQ ANDROID: netfilter: xt_IDLETIMER: Use fullsock when querying uid ANDROID: netfilter: xt_IDLETIMER: Fix use after free condition during work ANDROID: netfilter: xt_IDLETIMER: Adds the uid field in the msg ANDROID: netfilter: xt_IDLETIMER: time-stamp and suspend/resume handling. ANDROID: netfilter: xt_IDLETIMER: Add new netlink msg type ANDROID: netfilter: xt_quota2: fixup the quota2, and enable. ANDROID: netfilter: xt_quota2: adding the original quota2 from xtables-addons ANDROID: net: xfrm: make PF_KEY SHA256 use RFC-compliant truncation. ANDROID: net: wireless: wlcore: Disable filtering in AP role ANDROID: net: wireless: Decrease scan entry expiration to avoid stall results ANDROID: net: rfkill: Introduce CONFIG_RFKILL_PM and use instead of CONFIG_PM to power down ANDROID: net: ipv6: autoconf routes into per-device tables ANDROID: net: ipv6: fix crash caused by ipv6_find_hdr() ANDROID: net: ipv4: tcp: add a sysctl to config the tcp_default_init_rwnd ANDROID: net: ipv4: sysfs_net_ipv4: Add sysfs-based knobs for controlling TCP window size ANDROID: net: ip-sysctl: Document tcp_fwmark_accept ANDROID: net: paranoid: commoncap: Begin to warn users of implicit PARANOID_NETWORK capability grants ANDROID: net: paranoid: security: Add proper checks for Android specific capability checks ANDROID: net: paranoid: Only NET_ADMIN is allowed to fully control TUN interfaces. ANDROID: net: paranoid: Replace AID_NET_RAW checks with capable(CAP_NET_RAW). ANDROID: net: paranoid: security: Add AID_NET_RAW and AID_NET_ADMIN capability check in cap_capable(). ANDROID: net: Paranoid network. ANDROID: mmc: core: Add "ignore mmc pm notify" functionality ANDROID: mm: add a field to store names for private anonymous memory ANDROID: Kbuild, LLVMLinux: allow overriding clang target triple CHROMIUM: kbuild: clang: Disable the 'duplicate-decl-specifier' warning ANDROID: kbuild: Makefile.clean: make Kbuild and Makefile optional ANDROID: kbuild: make it possible to specify the module output dir ANDROID: input: keyreset: switch to orderly_reboot ANDROID: input: keyreset: Made keyreset more robust ANDROID: input: keyreset: Changed keyreset to act as a wrapper for keycombo. ANDROID: input: keycombo: add keycombo, a general key combo driver. ANDROID: input: keyreset: Add keyreset driver. ANDROID: input: gpio_matrix: Remove wakelock.h dependencies ANDROID: input: gpio_input: convert from wakelocks to wakeup sources ANDROID: input: gpio_event: remove early suspend ANDROID: input: Generic GPIO Input devices ANDROID: initramfs: Add skip_initramfs command line option ANDROID: build: add build server configs for goldfish ANDROID: goldfish: add ranchu defconfigs ANDROID: fs: Fix for in kernel emergency remount when loop mounts are used ANDROID: fs: Refactor FS readpage/write tracepoints. ANDROID: fs: FS tracepoints to track IO. ANDROID: fs: sched: add a counter to track fsync ANDROID: fs: epoll: use freezable blocking call ANDROID: dm: verity: add minimum prefetch size ANDROID: dm: android-verity: mark dev as rw for linear target ANDROID: dm: android-verity: allow disable dm-verity for Treble VTS ANDROID: dm: android-verity: fix table_make_digest() error handling ANDROID: dm: android-verity: rebase for 4.9 ANDROID: dm: android-verity: Remove fec_header location constraint ANDROID: dm: android-verity: adopt changes made to dm callbacks ANDROID: dm: android-verity: pack the fec_header structure ANDROID: dm: android-verity: Verify header before fetching table ANDROID: dm: android-verity: allow adb disable-verity only in userdebug ANDROID: dm: android-verity: mount as linear target if eng build ANDROID: dm: android-verity: use default verity public key ANDROID: dm: android-verity: fix signature verification flag ANDROID: dm: android-verity: use name_to_dev_t ANDROID: dm: android-verity: Mounting root as linear device when verity disabled ANDROID: dm: android-verity: Add android verity target ANDROID: dm: do_mounts_dm: Update init/do_mounts_dm.c to the latest ChromiumOS version. ANDROID: dm: do_mounts_dm: fix dm_substitute_devices() ANDROID: dm: do_mounts_dm: Rebase on top of 4.9 CHROMIUM: dm: boot time specification of dm= ANDROID: dm: verity-fec: add sysfs attribute fec/corrected CHROMIUM: cgroups: relax permissions on moving tasks between cgroups ANDROID: cpuset: Make cpusets restore on hotplug ANDROID: cpu: send KOBJ_ONLINE event when enabling cpus ANDROID: cpuidle: governor: menu: don't use loadavg ANDROID: binder: fix node sched policy calculation ANDROID: binder: init desired_prio.sched_policy before use it ANDROID: binder: Add tracing for binder priority inheritance. ANDROID: binder: don't check prio permissions on restore. ANDROID: binder: add RT inheritance flag to node. ANDROID: binder: improve priority inheritance. ANDROID: binder: add min sched_policy to node. ANDROID: binder: add support for RT prio inheritance. ANDROID: kdb: support new lines without carriage returns ANDROID: arm64: Allow to choose appended kernel image ANDROID: arm64: add option to build Image-dtb ANDROID: arm64: add option to build Image.gz/dtb combo ANDROID: arm: convert build of appended dtb zImage to list of dtbs ANDROID: arm: add config option to build zImage/dtb combo ANDROID: arm: Fix dtb list when DTB_IMAGE_NAMES is empty ANDROID: add script to fetch android kernel config fragments Change-Id: Ibaa7c53d9f63499e5e96579a36e178edad19be75 [[email protected]: LLCT tree taken from: https://android-git.linaro.org/kernel/linaro-android.git/log/?h=test/amt-4.19] Signed-off-by: Rishabh Bhatnagar <[email protected]>
2 parents 31e3957 + 441e17f commit 3bca5c7

File tree

273 files changed

+24019
-703
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

273 files changed

+24019
-703
lines changed

.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -132,3 +132,6 @@ all.config
132132

133133
# Kdevelop4
134134
*.kdev4
135+
136+
# fetched Android config fragments
137+
kernel/configs/android-*.cfg
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
What: /sys/kernel/wakeup_reasons/last_resume_reason
2+
Date: February 2014
3+
Contact: Ruchi Kandoi <[email protected]>
4+
Description:
5+
The /sys/kernel/wakeup_reasons/last_resume_reason is
6+
used to report wakeup reasons after system exited suspend.
7+
8+
What: /sys/kernel/wakeup_reasons/last_suspend_time
9+
Date: March 2015
10+
Contact: jinqian <[email protected]>
11+
Description:
12+
The /sys/kernel/wakeup_reasons/last_suspend_time is
13+
used to report time spent in last suspend cycle. It contains
14+
two numbers (in seconds) separated by space. First number is
15+
the time spent in suspend and resume processes. Second number
16+
is the time spent in sleep state.

Documentation/admin-guide/kernel-parameters.txt

+3
Original file line numberDiff line numberDiff line change
@@ -884,6 +884,9 @@
884884

885885
dis_ucode_ldr [X86] Disable the microcode loader.
886886

887+
dm= [DM] Allows early creation of a device-mapper device.
888+
See Documentation/device-mapper/boot.txt.
889+
887890
dma_debug=off If the kernel is compiled with DMA_API_DEBUG support,
888891
this option disables the debugging code at boot.
889892

Documentation/device-mapper/boot.txt

+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
Boot time creation of mapped devices
2+
===================================
3+
4+
It is possible to configure a device mapper device to act as the root
5+
device for your system in two ways.
6+
7+
The first is to build an initial ramdisk which boots to a minimal
8+
userspace which configures the device, then pivot_root(8) in to it.
9+
10+
For simple device mapper configurations, it is possible to boot directly
11+
using the following kernel command line:
12+
13+
dm="<name> <uuid> <ro>,table line 1,...,table line n"
14+
15+
name = the name to associate with the device
16+
after boot, udev, if used, will use that name to label
17+
the device node.
18+
uuid = may be 'none' or the UUID desired for the device.
19+
ro = may be "ro" or "rw". If "ro", the device and device table will be
20+
marked read-only.
21+
22+
Each table line may be as normal when using the dmsetup tool except for
23+
two variations:
24+
1. Any use of commas will be interpreted as a newline
25+
2. Quotation marks cannot be escaped and cannot be used without
26+
terminating the dm= argument.
27+
28+
Unless renamed by udev, the device node created will be dm-0 as the
29+
first minor number for the device-mapper is used during early creation.
30+
31+
Example
32+
=======
33+
34+
- Booting to a linear array made up of user-mode linux block devices:
35+
36+
dm="lroot none 0, 0 4096 linear 98:16 0, 4096 4096 linear 98:32 0" \
37+
root=/dev/dm-0
38+
39+
Will boot to a rw dm-linear target of 8192 sectors split across two
40+
block devices identified by their major:minor numbers. After boot, udev
41+
will rename this target to /dev/mapper/lroot (depending on the rules).
42+
No uuid was assigned.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
Memory bandwidth and frequency state tracking
2+
3+
Required properties:
4+
- compatible : should be:
5+
"memory-state-time"
6+
- freq-tbl: Should contain entries with each frequency in Hz.
7+
- bw-buckets: Should contain upper-bound limits for each bandwidth bucket in Mbps.
8+
Must match the framework power_profile.xml for the device.

Documentation/filesystems/proc.txt

+6
Original file line numberDiff line numberDiff line change
@@ -398,6 +398,8 @@ is not associated with a file:
398398
[stack] = the stack of the main process
399399
[vdso] = the "virtual dynamic shared object",
400400
the kernel system call handler
401+
[anon:<name>] = an anonymous mapping that has been
402+
named by userspace
401403

402404
or if empty, the mapping is anonymous.
403405

@@ -426,6 +428,7 @@ KernelPageSize: 4 kB
426428
MMUPageSize: 4 kB
427429
Locked: 0 kB
428430
VmFlags: rd ex mr mw me dw
431+
Name: name from userspace
429432

430433
the first of these lines shows the same information as is displayed for the
431434
mapping in /proc/PID/maps. The remaining lines show the size of the mapping
@@ -498,6 +501,9 @@ Note that there is no guarantee that every flag and associated mnemonic will
498501
be present in all further kernel releases. Things get changed, the flags may
499502
be vanished or the reverse -- new added.
500503

504+
The "Name" field will only be present on a mapping that has been named by
505+
userspace, and will show the name passed in by userspace.
506+
501507
This file is only present if the CONFIG_MMU kernel configuration option is
502508
enabled.
503509

Documentation/networking/ip-sysctl.txt

+10
Original file line numberDiff line numberDiff line change
@@ -630,6 +630,16 @@ tcp_fastopen_blackhole_timeout_sec - INTEGER
630630
0 to disable the blackhole detection.
631631
By default, it is set to 1hr.
632632

633+
tcp_fwmark_accept - BOOLEAN
634+
If set, incoming connections to listening sockets that do not have a
635+
socket mark will set the mark of the accepting socket to the fwmark of
636+
the incoming SYN packet. This will cause all packets on that connection
637+
(starting from the first SYNACK) to be sent with that fwmark. The
638+
listening socket's mark is unchanged. Listening sockets that already
639+
have a fwmark set via setsockopt(SOL_SOCKET, SO_MARK, ...) are
640+
unaffected.
641+
Default: 0
642+
633643
tcp_syn_retries - INTEGER
634644
Number of times initial SYNs for an active TCP connection attempt
635645
will be retransmitted. Should not be higher than 127. Default value

Documentation/sysctl/kernel.txt

+3-1
Original file line numberDiff line numberDiff line change
@@ -693,14 +693,16 @@ allowed to execute.
693693
perf_event_paranoid:
694694

695695
Controls use of the performance events system by unprivileged
696-
users (without CAP_SYS_ADMIN). The default value is 2.
696+
users (without CAP_SYS_ADMIN). The default value is 3 if
697+
CONFIG_SECURITY_PERF_EVENTS_RESTRICT is set, or 2 otherwise.
697698

698699
-1: Allow use of (almost) all events by all users
699700
Ignore mlock limit after perf_event_mlock_kb without CAP_IPC_LOCK
700701
>=0: Disallow ftrace function tracepoint by users without CAP_SYS_ADMIN
701702
Disallow raw tracepoint access by users without CAP_SYS_ADMIN
702703
>=1: Disallow CPU event access by users without CAP_SYS_ADMIN
703704
>=2: Disallow kernel profiling by users without CAP_SYS_ADMIN
705+
>=3: Disallow all event access by users without CAP_SYS_ADMIN
704706

705707
==============================================================
706708

Documentation/sysctl/vm.txt

+16
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ Currently, these files are in /proc/sys/vm:
3131
- dirty_writeback_centisecs
3232
- drop_caches
3333
- extfrag_threshold
34+
- extra_free_kbytes
3435
- hugetlb_shm_group
3536
- laptop_mode
3637
- legacy_va_layout
@@ -274,6 +275,21 @@ any throttling.
274275

275276
==============================================================
276277

278+
extra_free_kbytes
279+
280+
This parameter tells the VM to keep extra free memory between the threshold
281+
where background reclaim (kswapd) kicks in, and the threshold where direct
282+
reclaim (by allocating processes) kicks in.
283+
284+
This is useful for workloads that require low latency memory allocations
285+
and have a bounded burstiness in memory allocations, for example a
286+
realtime application that receives and transmits network traffic
287+
(causing in-kernel memory allocations) with a maximum total message burst
288+
size of 200MB may need 200MB of extra free memory to avoid direct reclaim
289+
related latencies.
290+
291+
==============================================================
292+
277293
hugetlb_shm_group
278294

279295
hugetlb_shm_group contains group id that is allowed to create SysV

Makefile

+32-2
Original file line numberDiff line numberDiff line change
@@ -498,7 +498,8 @@ endif
498498

499499
ifeq ($(cc-name),clang)
500500
ifneq ($(CROSS_COMPILE),)
501-
CLANG_TARGET := --target=$(notdir $(CROSS_COMPILE:%-=%))
501+
CLANG_TRIPLE ?= $(CROSS_COMPILE)
502+
CLANG_TARGET := --target=$(notdir $(CLANG_TRIPLE:%-=%))
502503
GCC_TOOLCHAIN := $(realpath $(dir $(shell which $(LD)))/..)
503504
endif
504505
ifneq ($(GCC_TOOLCHAIN),)
@@ -722,7 +723,6 @@ KBUILD_CFLAGS += $(call cc-disable-warning, format-invalid-specifier)
722723
KBUILD_CFLAGS += $(call cc-disable-warning, gnu)
723724
KBUILD_CFLAGS += $(call cc-disable-warning, address-of-packed-member)
724725
KBUILD_CFLAGS += $(call cc-disable-warning, duplicate-decl-specifier)
725-
726726
KBUILD_CFLAGS += -Wno-asm-operand-widths
727727
KBUILD_CFLAGS += -Wno-initializer-overrides
728728
KBUILD_CFLAGS += -fno-builtin
@@ -821,6 +821,30 @@ KBUILD_CFLAGS_KERNEL += -ffunction-sections -fdata-sections
821821
LDFLAGS_vmlinux += --gc-sections
822822
endif
823823

824+
ifdef CONFIG_CFI_CLANG
825+
cfi-clang-flags += -fsanitize=cfi
826+
DISABLE_CFI_CLANG := -fno-sanitize=cfi
827+
ifdef CONFIG_MODULES
828+
cfi-clang-flags += -fsanitize-cfi-cross-dso
829+
DISABLE_CFI_CLANG += -fno-sanitize-cfi-cross-dso
830+
endif
831+
ifdef CONFIG_CFI_PERMISSIVE
832+
cfi-clang-flags += -fsanitize-recover=cfi -fno-sanitize-trap=cfi
833+
endif
834+
835+
# allow disabling only clang CFI where needed
836+
export DISABLE_CFI_CLANG
837+
endif
838+
839+
ifdef CONFIG_CFI
840+
# cfi-flags are re-tested in prepare-compiler-check
841+
cfi-flags := $(cfi-clang-flags)
842+
KBUILD_CFLAGS += $(cfi-flags)
843+
844+
DISABLE_CFI := $(DISABLE_CFI_CLANG)
845+
export DISABLE_CFI
846+
endif
847+
824848
# arch Makefile may override CC so keep this after arch Makefile is included
825849
NOSTDINC_FLAGS += -nostdinc -isystem $(shell $(CC) -print-file-name=include)
826850

@@ -1144,6 +1168,12 @@ uapi-asm-generic:
11441168
PHONY += prepare-objtool
11451169
prepare-objtool: $(objtool_target)
11461170

1171+
ifdef cfi-flags
1172+
ifeq ($(call cc-option, $(cfi-flags)),)
1173+
@echo Cannot use CONFIG_CFI: $(cfi-flags) not supported by compiler >&2 && exit 1
1174+
endif
1175+
endif
1176+
11471177
# Generate some files
11481178
# ---------------------------------------------------------------------------
11491179

arch/Kconfig

+28
Original file line numberDiff line numberDiff line change
@@ -474,6 +474,34 @@ config STACKPROTECTOR_STRONG
474474
about 20% of all kernel functions, which increases the kernel code
475475
size by about 2%.
476476

477+
config CFI
478+
bool
479+
480+
config CFI_PERMISSIVE
481+
bool "Use CFI in permissive mode"
482+
depends on CFI
483+
help
484+
When selected, Control Flow Integrity (CFI) violations result in a
485+
warning instead of a kernel panic. This option is useful for finding
486+
CFI violations in drivers during development.
487+
488+
config CFI_CLANG
489+
bool "Use clang Control Flow Integrity (CFI) (EXPERIMENTAL)"
490+
depends on LTO_CLANG
491+
depends on KALLSYMS
492+
select CFI
493+
help
494+
This option enables clang Control Flow Integrity (CFI), which adds
495+
runtime checking for indirect function calls.
496+
497+
config CFI_CLANG_SHADOW
498+
bool "Use CFI shadow to speed up cross-module checks"
499+
default y
500+
depends on CFI_CLANG
501+
help
502+
If you select this option, the kernel builds a fast look-up table of
503+
CFI check functions in loaded modules to reduce overhead.
504+
477505
config HAVE_ARCH_WITHIN_STACK_FRAMES
478506
bool
479507
help

arch/arm/boot/Makefile

+1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ OBJCOPYFLAGS :=-O binary -R .comment -S
1616
ifneq ($(MACHINE),)
1717
include $(MACHINE)/Makefile.boot
1818
endif
19+
include $(srctree)/arch/arm/boot/dts/Makefile
1920

2021
# Note: the following conditions must always be true:
2122
# ZRELADDR == virt_to_phys(PAGE_OFFSET + TEXT_OFFSET)

0 commit comments

Comments
 (0)