Go to file
Waiman Long 1f50357d24 mm/memcg: Exclude mem_cgroup pointer from kABI signature computation
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2036995
MR: https://gitlab.com/redhat/centos-stream/src/kernel/centos-stream-9/-/merge_requests/326
Upstream Status: RHEL only

The mem_cgroup structure is allocated dynamically, self-contained and
is not embedded in other data structures. Third-party kernel modules
are not supposed to access mem_cgroup structure directly.

To support new features, mem_cgroup structure often changes quite a
lot over time. However, a number of other important data structures
like the task_struct contain pointers to mem_cgroup. So any change to
mem_cgroup can affect the kABI signatures of the other data structures
leading to kABI breakage.

Instead of carefully messaging the mem_cgroup structure every time
when change is needed in order not to break kABI signature, it is more
efficient to just decouple changes to mem_cgroup from affecting kABI
signatures of other data structures by using the RH_KABI_EXCLUDE() macro
to exclude mem_cgroup pointers from being included in the computation
of kABI signature.

This macro is applied to mem_cgroup pointers in the task_struct, bpf_map,
fsnotify_group and sock data structures.

Signed-off-by: Waiman Long <longman@redhat.com>
2022-01-06 13:33:06 -05:00
Documentation Merge: Enable AMX(TMUL) for Sapphire Rapids 2021-12-22 19:34:58 -03:00
LICENSES LICENSES/dual/CC-BY-4.0: Git rid of "smart quotes" 2021-07-15 06:31:24 -06:00
arch Merge: powerpc/mce: Fix access error in mce handler 2021-12-23 20:12:18 -03:00
block block: call rq_qos_done() before ref check in batch completions 2021-12-06 16:54:39 +08:00
certs Kbuild updates for v5.13 (2nd) 2021-05-08 10:00:11 -07:00
crypto crypto: rng - Override drivers/char/random in FIPS mode 2021-08-30 15:44:54 -04:00
drivers Merge: cpuidle: pseries: Fixup CEDE0 latency only for POWER10 onwards 2021-12-23 22:38:22 -03:00
fs Merge: sched: backports from 5.16 merge window 2021-12-22 10:22:13 -03:00
include mm/memcg: Exclude mem_cgroup pointer from kABI signature computation 2022-01-06 13:33:06 -05:00
init init: make unknown command line param message clearer 2021-12-22 08:37:24 -06:00
ipc memcg: enable accounting for new namesapces and struct nsproxy 2021-11-29 11:41:20 -05:00
kernel Merge: cgroup: Make rebind_subsystems() disable v2 controllers all at once 2021-12-23 19:48:41 -03:00
lib Merge: sched: backports from 5.16 merge window 2021-12-22 10:22:13 -03:00
mm Merge: sched: backports from 5.16 merge window 2021-12-22 10:22:13 -03:00
net Merge: udp: GRO forwarding improvements 2021-12-21 19:37:20 -03:00
redhat [redhat] kernel-5.14.0-39.el9 2021-12-24 01:42:00 +00:00
samples nitro_enclaves: Add fixes for checkpatch blank line reports 2021-11-08 10:24:22 +01:00
scripts Merge: Enable AMX(TMUL) for Sapphire Rapids 2021-12-22 19:34:58 -03:00
security mm/pagemap: add mmap_assert_locked() annotations to find_vma*() 2021-11-29 11:41:34 -05:00
sound another sound-fixes for 5.14-rc7 2021-08-20 12:31:10 -07:00
tools Merge: Enable AMX(TMUL) for Sapphire Rapids 2021-12-22 19:34:58 -03:00
usr .gitignore: prefix local generated files with a slash 2021-05-02 00:43:35 +09:00
virt KVM: Remove tlbs_dirty 2021-12-08 10:43:21 +01:00
.clang-format clang-format: Update with the latest for_each macro list 2021-05-12 23:32:39 +02:00
.cocciconfig
.get_maintainer.conf Add RHMAINTAINERS file and supporting conf 2021-08-30 10:50:06 -04:00
.get_maintainer.ignore Opt out of scripts/get_maintainer.pl 2019-05-16 10:53:40 -07:00
.gitattributes gitattributes: Remove unnecesary export restrictions 2021-08-30 10:50:35 -04:00
.gitignore gitlab: Add CI job for packaging scripts 2021-08-30 10:49:13 -04:00
.gitlab-ci.yml Add automotive CI jobs 2021-11-24 16:34:00 +01:00
.mailmap m68k updates for v5.14 2021-06-28 14:01:03 -07:00
COPYING COPYING: state that all contributions really are covered by this file 2020-02-10 13:32:20 -08:00
CREDITS MAINTAINERS: move Murali Karicheri to credits 2021-04-29 15:47:30 -07:00
Kbuild kbuild: rename hostprogs-y/always to hostprogs/always-y 2020-02-04 01:53:07 +09:00
Kconfig Introduce CONFIG_RH_DISABLE_DEPRECATED 2021-08-30 10:50:55 -04:00
Kconfig.redhat Rename RH_DISABLE_DEPRECATED to RHEL_DIFFERENCES 2021-08-30 14:29:36 -04:00
MAINTAINERS block: move fs/block_dev.c to block/bdev.c 2021-12-06 16:38:56 +08:00
Makefile block: move CONFIG_BLOCK guard to top Makefile 2021-12-06 16:42:52 +08:00
Makefile.rhelver [redhat] kernel-5.14.0-39.el9 2021-12-24 01:42:00 +00:00
README Drop all 00-INDEX files from Documentation/ 2018-09-09 15:08:58 -06:00
makefile redhat: Change Makefile target names to dist- 2021-08-30 10:50:11 -04:00

README

Linux kernel
============

There are several guides for kernel developers and users. These guides can
be rendered in a number of formats, like HTML and PDF. Please read
Documentation/admin-guide/README.rst first.

In order to build the documentation, use ``make htmldocs`` or
``make pdfdocs``.  The formatted documentation can also be read online at:

    https://www.kernel.org/doc/html/latest/

There are various text files in the Documentation/ subdirectory,
several of them using the Restructured Text markup notation.

Please read the Documentation/process/changes.rst file, as it contains the
requirements for building and running the kernel, and information about
the problems which may result by upgrading your kernel.