Go to file
Heiko Carstens ee34db3f27 checkstack: fix printed address
All addresses printed by checkstack have an extra incorrect 0 appended at
the end.

This was introduced with commit 677f1410e0 ("scripts/checkstack.pl: don't
display $dre as different entity"): since then the address is taken from
the line which contains the function name, instead of the line which
contains stack consumption. E.g. on s390:

0000000000100a30 <do_one_initcall>:
...
  100a44:       e3 f0 ff 70 ff 71       lay     %r15,-144(%r15)

So the used regex which matches spaces and hexadecimal numbers to extract
an address now matches a different substring. Subsequently replacing spaces
with 0 appends a zero at the and, instead of replacing leading spaces.

Fix this by using the proper regex, and simplify the code a bit.

Link: https://lkml.kernel.org/r/20231120183719.2188479-2-hca@linux.ibm.com
Fixes: 677f1410e0 ("scripts/checkstack.pl: don't display $dre as different entity")
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Cc: Maninder Singh <maninder1.s@samsung.com>
Cc: Masahiro Yamada <masahiroy@kernel.org>
Cc: Vaneet Narang <v.narang@samsung.com>
Cc: <stable@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
2023-12-06 16:12:46 -08:00
arch LoongArch fixes for v6.7-rc3 2023-11-22 10:20:17 -08:00
block vfs-6.7-rc3.fixes 2023-11-24 09:45:40 -08:00
certs
crypto
Documentation Including fixes from bpf. 2023-11-23 10:40:13 -08:00
drivers mm/memory_hotplug: add missing mem_hotplug_lock 2023-12-06 16:12:46 -08:00
fs squashfs: squashfs_read_data need to check if the length is 0 2023-12-06 16:12:45 -08:00
include hugetlb: fix null-ptr-deref in hugetlb_vma_lock_write 2023-12-06 16:12:43 -08:00
init
io_uring io_uring: fix off-by one bvec index 2023-11-20 15:21:38 -07:00
ipc
kernel Including fixes from bpf. 2023-11-23 10:40:13 -08:00
lib vfs-6.7-rc3.fixes 2023-11-24 09:45:40 -08:00
LICENSES
mm mm/memory_hotplug: fix error handling in add_memory_resource() 2023-12-06 16:12:46 -08:00
net tls: fix NULL deref on tls_sw_splice_eof() with empty record 2023-11-23 08:51:45 -08:00
rust
samples
scripts checkstack: fix printed address 2023-12-06 16:12:46 -08:00
security
sound sound fixes for 6.7-rc2 2023-11-17 09:05:31 -05:00
tools mm/selftests: fix pagemap_ioctl memory map test 2023-12-06 16:12:45 -08:00
usr
virt
.clang-format
.cocciconfig
.get_maintainer.ignore
.gitattributes
.gitignore
.mailmap .mailmap: add a new address mapping for Chester Lin 2023-12-06 16:12:45 -08:00
.rustfmt.toml
COPYING
CREDITS
Kbuild
Kconfig
MAINTAINERS MAINTAINERS: add Andrew Morton for lib/* 2023-12-06 16:12:43 -08:00
Makefile Linux 6.7-rc2 2023-11-19 15:02:14 -08: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.