mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-07 20:33:58 -04:00
No description
- C 98.2%
- Assembly 1%
- Makefile 0.3%
- Shell 0.2%
- Python 0.1%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
This problem was observed with a kernel built using clang and LTO. When the section header index of a section that contains mcount calls coincides with SHN_ABS, recordmcount ends up selecting a STT_FILE symbol as the base for mcount offset relocation. Since the STT_FILE symbol value is 0, it's not a suitable candidate as the base for relocation and results in the __mcount_loc table containing an invalid entry causing kernel oops in ftrace_init(): [ 0.000000] ftrace: allocating 45789 entries in 179 pages [ 0.000000] ------------[ cut here ]------------ [ 0.000000] WARNING: CPU: 0 PID: 0 at arch/arm64/kernel/ftrace.c:172 ftrace_make_nop+0x11c/0x150 [ 0.000000] Modules linked in: [ 0.000000] CPU: 0 PID: 0 Comm: swapper Not tainted 5.4.69-0-1pre+ #1 [ 0.000000] Hardware name: BCM972180HB_V20 (DT) [ 0.000000] pstate: 20400085 (nzCv daIf +PAN -UAO) [ 0.000000] pc : ftrace_make_nop+0x11c/0x150 [ 0.000000] lr : ftrace_make_nop+0x5c/0x150 [ 0.000000] sp : ffffffc011a43ef0 [ 0.000000] x29: ffffffc011a43f00 x28: 0000000000000001 [ 0.000000] x27: ffffff8027801380 x26: 0000000000000000 [ 0.000000] x25: ffffff8027880008 x24: 0000000000000000 [ 0.000000] x23: 0000000000000000 x22: 0000000000000008 [ 0.000000] x21: ffffffc010f5acdc x20: 0000000000000000 [ 0.000000] x19: 0000000000000020 x18: ffffffc011a79020 [ 0.000000] x17: 000000000000003c x16: 0000000000000022 [ 0.000000] x15: dead000000000100 x14: 0000000000000001 [ 0.000000] x13: 0000000000000000 x12: 0000000000000000 [ 0.000000] x11: 0000000000000000 x10: 0000000008000000 [ 0.000000] x9 : 0000000000000002 x8 : 0000000000000001 [ 0.000000] x7 : 0000000000000000 x6 : 000000000000003f [ 0.000000] x5 : 00000000000235b8 x4 : 0000000000000001 [ 0.000000] x3 : 0000000000000001 x2 : ffffffc010f5acdc [ 0.000000] x1 : ffffff8027880000 x0 : 0000000000000001 [ 0.000000] Call trace: [ 0.000000] ftrace_make_nop+0x11c/0x150 [ 0.000000] ftrace_process_locs+0x338/0x3e0 [ 0.000000] ftrace_init+0xac/0xdc [ 0.000000] start_kernel+0x194/0x43c [ 0.000000] random: get_random_bytes called from __warn+0xe0/0x138 with crng_init=0 [ 0.000000] ---[ end trace a8999690c4edae16 ]--- [ 0.000000] ------------[ cut here ]------------ [ 0.000000] WARNING: CPU: 0 PID: 0 at kernel/trace/ftrace.c:2008 ftrace_bug+0x94/0x268 [ 0.000000] Modules linked in: [ 0.000000] CPU: 0 PID: 0 Comm: swapper Tainted: G W 5.4.69-0-1pre+ #1 [ 0.000000] Hardware name: BCM972180HB_V20 (DT) [ 0.000000] pstate: 60400085 (nZCv daIf +PAN -UAO) [ 0.000000] pc : ftrace_bug+0x94/0x268 [ 0.000000] lr : ftrace_process_locs+0x364/0x3e0 [ 0.000000] sp : ffffffc011a43ef0 [ 0.000000] x29: ffffffc011a43ef0 x28: 0000000000000001 [ 0.000000] x27: ffffff8027801380 x26: 0000000000000000 [ 0.000000] x25: ffffff8027880008 x24: 0000000000000000 [ 0.000000] x23: 0000000000000000 x22: 0000000000000008 [ 0.000000] x21: ffffffc010f5acdc x20: 0000000000000020 [ 0.000000] x19: ffffff8027880000 x18: ffffffc011a79020 [ 0.000000] x17: 000000000000003c x16: 0000000000000022 [ 0.000000] x15: dead000000000100 x14: 0000000000000001 [ 0.000000] x13: 0000000000000000 x12: ffffffc010f5ed94 [ 0.000000] x11: ffffffc011a4f000 x10: ffffffc011a4f000 [ 0.000000] x9 : 0000000000000001 x8 : ffffffc011a4f000 [ 0.000000] x7 : 0000000000000000 x6 : 000000000000003f [ 0.000000] x5 : 00000000000235b8 x4 : 0000000000000001 [ 0.000000] x3 : 0000000000000001 x2 : ffffffc010f5acdc [ 0.000000] x1 : ffffff8027880000 x0 : ffffffc01151ade2 [ 0.000000] Call trace: [ 0.000000] ftrace_bug+0x94/0x268 [ 0.000000] ftrace_process_locs+0x364/0x3e0 [ 0.000000] ftrace_init+0xac/0xdc [ 0.000000] start_kernel+0x194/0x43c [ 0.000000] ---[ end trace a8999690c4edae17 ]--- [ 0.000000] ftrace failed to modify [ 0.000000] [<0000000000000020>] 0x20 [ 0.000000] actual: [ 0.000000] Unable to handle kernel read from unreadable memory at virtual address 0000000000000020 [ 0.000000] Mem abort info: [ 0.000000] ESR = 0x96000005 [ 0.000000] EC = 0x25: DABT (current EL), IL = 32 bits [ 0.000000] SET = 0, FnV = 0 [ 0.000000] EA = 0, S1PTW = 0 [ 0.000000] Data abort info: [ 0.000000] ISV = 0, ISS = 0x00000005 [ 0.000000] CM = 0, WnR = 0 [ 0.000000] [0000000000000020] user address but active_mm is swapper [ 0.000000] Internal error: Oops: 96000005 [#1] PREEMPT SMP [ 0.000000] Modules linked in: [ 0.000000] CPU: 0 PID: 0 Comm: swapper Tainted: G W 5.4.69-0-1pre+ #1 [ 0.000000] Hardware name: BCM972180HB_V20 (DT) [ 0.000000] pstate: 60400085 (nZCv daIf +PAN -UAO) [ 0.000000] pc : print_ip_ins+0x48/0x80 [ 0.000000] lr : print_ip_ins+0x2c/0x80 [ 0.000000] sp : ffffffc011a43eb0 [ 0.000000] x29: ffffffc011a43eb0 x28: 0000000000000001 [ 0.000000] x27: ffffff8027801380 x26: 0000000000000000 [ 0.000000] x25: ffffff8027880008 x24: 0000000000000000 [ 0.000000] x23: ffffffc0115f1abc x22: ffffffc01160e929 [ 0.000000] x21: 0000000000000000 x20: ffffffc011577a9c [ 0.000000] x19: 0000000000000020 x18: ffffffc011a79028 [ 0.000000] x17: 000000000000002c x16: ffffffc010f33fec [ 0.000000] x15: 0000000000000004 x14: ffff0000ffffff00 [ 0.000000] x13: 0000000000000000 x12: 0000000000000000 [ 0.000000] x11: 0000000000000000 x10: 00000000ffffffff [ 0.000000] x9 : 0000000000000000 x8 : 0000000000000000 [ 0.000000] x7 : 3030303030303030 x6 : ffffffc011c031a3 [ 0.000000] x5 : 000000000000000b x4 : ffffffc011c00866 [ 0.000000] x3 : 0000000000000020 x2 : 000000000000000b [ 0.000000] x1 : ffffffc011c00871 x0 : 000000000000000b [ 0.000000] Call trace: [ 0.000000] print_ip_ins+0x48/0x80 [ 0.000000] ftrace_bug+0xcc/0x268 [ 0.000000] ftrace_process_locs+0x364/0x3e0 [ 0.000000] ftrace_init+0xac/0xdc [ 0.000000] start_kernel+0x194/0x43c [ 0.000000] Code: aa1f03f5 9124a6d6 912af2f7 912a7294 (38756a62) [ 0.000000] ---[ end trace a8999690c4edae18 ]--- [ 0.000000] Kernel panic - not syncing: Attempted to kill the idle task! This can be fixed by avoiding STT_FILE symbols as the base for mcount offset relocation. Bug: 168835511 Signed-off-by: Danesh Petigara <danesh.petigara@broadcom.com> Signed-off-by: Pierre Couillaud <pierre@broadcom.com> Change-Id: I9e73706d5104bfa81bccd091e956660364f294de |
||
| android | ||
| arch | ||
| block | ||
| certs | ||
| crypto | ||
| Documentation | ||
| drivers | ||
| fs | ||
| include | ||
| init | ||
| ipc | ||
| kernel | ||
| lib | ||
| LICENSES | ||
| mm | ||
| net | ||
| samples | ||
| scripts | ||
| security | ||
| sound | ||
| tools | ||
| usr | ||
| virt | ||
| .clang-format | ||
| .cocciconfig | ||
| .get_maintainer.ignore | ||
| .gitattributes | ||
| .gitignore | ||
| .mailmap | ||
| build.config.aarch64 | ||
| build.config.allmodconfig | ||
| build.config.allmodconfig.aarch64 | ||
| build.config.allmodconfig.arm | ||
| build.config.allmodconfig.x86_64 | ||
| build.config.arm | ||
| build.config.common | ||
| build.config.db845c | ||
| build.config.gki | ||
| build.config.gki-debug.aarch64 | ||
| build.config.gki-debug.x86_64 | ||
| build.config.gki.aarch64 | ||
| build.config.gki.x86_64 | ||
| build.config.gki_kasan | ||
| build.config.gki_kasan.aarch64 | ||
| build.config.gki_kasan.x86_64 | ||
| build.config.hikey960 | ||
| build.config.x86_64 | ||
| COPYING | ||
| CREDITS | ||
| Kbuild | ||
| Kconfig | ||
| MAINTAINERS | ||
| Makefile | ||
| README | ||
| README.md | ||
How do I submit patches to Android Common Kernels
-
BEST: Make all of your changes to upstream Linux. If appropriate, backport to the stable releases. These patches will be merged automatically in the corresponding common kernels. If the patch is already in upstream Linux, post a backport of the patch that conforms to the patch requirements below.
-
LESS GOOD: Develop your patches out-of-tree (from an upstream Linux point-of-view). Unless these are fixing an Android-specific bug, these are very unlikely to be accepted unless they have been coordinated with kernel-team@android.com. If you want to proceed, post a patch that conforms to the patch requirements below.
Common Kernel patch requirements
- All patches must conform to the Linux kernel coding standards and pass
script/checkpatch.pl - Patches shall not break gki_defconfig or allmodconfig builds for arm, arm64, x86, x86_64 architectures (see https://source.android.com/setup/build/building-kernels)
- If the patch is not merged from an upstream branch, the subject must be tagged with the type of patch:
UPSTREAM:,BACKPORT:,FROMGIT:,FROMLIST:, orANDROID:. - All patches must have a
Change-Id:tag (see https://gerrit-review.googlesource.com/Documentation/user-changeid.html) - If an Android bug has been assigned, there must be a
Bug:tag. - All patches must have a
Signed-off-by:tag by the author and the submitter
Additional requirements are listed below based on patch type
Requirements for backports from mainline Linux: UPSTREAM:, BACKPORT:
- If the patch is a cherry-pick from Linux mainline with no changes at all
- tag the patch subject with
UPSTREAM:. - add upstream commit information with a
(cherry-picked from ...)line - Example:
- if the upstream commit message is
- tag the patch subject with
important patch from upstream
This is the detailed description of the important patch
Signed-off-by: Fred Jones <fred.jones@foo.org>
- then Joe Smith would upload the patch for the common kernel as
UPSTREAM: important patch from upstream
This is the detailed description of the important patch
Signed-off-by: Fred Jones <fred.jones@foo.org>
Bug: 135791357
Change-Id: I4caaaa566ea080fa148c5e768bb1a0b6f7201c01
(cherry-picked from c31e73121f4c1ec41143423ac6ce3ce6dafdcec1)
Signed-off-by: Joe Smith <joe.smith@foo.org>
- If the patch requires any changes from the upstream version, tag the patch with
BACKPORT:instead ofUPSTREAM:.- use the same tags as
UPSTREAM: - add comments about the changes under the
(cherry-picked from ...)line - Example:
- use the same tags as
BACKPORT: important patch from upstream
This is the detailed description of the important patch
Signed-off-by: Fred Jones <fred.jones@foo.org>
Bug: 135791357
Change-Id: I4caaaa566ea080fa148c5e768bb1a0b6f7201c01
(cherry-picked from c31e73121f4c1ec41143423ac6ce3ce6dafdcec1)
[ Resolved minor conflict in drivers/foo/bar.c ]
Signed-off-by: Joe Smith <joe.smith@foo.org>
Requirements for other backports: FROMGIT:, FROMLIST:,
- If the patch has been merged into an upstream maintainer tree, but has not yet
been merged into Linux mainline
- tag the patch subject with
FROMGIT: - add info on where the patch came from as
(cherry picked from commit <sha1> <repo> <branch>). This must be a stable maintainer branch (not rebased, so don't uselinux-nextfor example). - if changes were required, use
BACKPORT: FROMGIT: - Example:
- if the commit message in the maintainer tree is
- tag the patch subject with
important patch from upstream
This is the detailed description of the important patch
Signed-off-by: Fred Jones <fred.jones@foo.org>
- then Joe Smith would upload the patch for the common kernel as
FROMGIT: important patch from upstream
This is the detailed description of the important patch
Signed-off-by: Fred Jones <fred.jones@foo.org>
Bug: 135791357
(cherry picked from commit 878a2fd9de10b03d11d2f622250285c7e63deace
https://git.kernel.org/pub/scm/linux/kernel/git/foo/bar.git test-branch)
Change-Id: I4caaaa566ea080fa148c5e768bb1a0b6f7201c01
Signed-off-by: Joe Smith <joe.smith@foo.org>
- If the patch has been submitted to LKML, but not accepted into any maintainer tree
- tag the patch subject with
FROMLIST: - add a
Link:tag with a link to the submittal on lore.kernel.org - if changes were required, use
BACKPORT: FROMLIST: - Example:
- tag the patch subject with
FROMLIST: important patch from upstream
This is the detailed description of the important patch
Signed-off-by: Fred Jones <fred.jones@foo.org>
Bug: 135791357
Link: https://lore.kernel.org/lkml/20190619171517.GA17557@someone.com/
Change-Id: I4caaaa566ea080fa148c5e768bb1a0b6f7201c01
Signed-off-by: Joe Smith <joe.smith@foo.org>
Requirements for Android-specific patches: ANDROID:
- If the patch is fixing a bug to Android-specific code
- tag the patch subject with
ANDROID: - add a
Fixes:tag that cites the patch with the bug - Example:
- tag the patch subject with
ANDROID: fix android-specific bug in foobar.c
This is the detailed description of the important fix
Fixes: 1234abcd2468 ("foobar: add cool feature")
Change-Id: I4caaaa566ea080fa148c5e768bb1a0b6f7201c01
Signed-off-by: Joe Smith <joe.smith@foo.org>
- If the patch is a new feature
- tag the patch subject with
ANDROID: - add a
Bug:tag with the Android bug (required for android-specific features)
- tag the patch subject with