Go to file
Ming Lei e478998ea8 lib: parser: optimize match_NUMBER apis to use local array
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2175212

commit 67222c4ba8afe409d1e049a8f1e687c8a214fec7
Author: Li Lingfeng <lilingfeng3@huawei.com>
Date:   Fri Jan 20 11:23:52 2023 +0800

    lib: parser: optimize match_NUMBER apis to use local array

    Memory will be allocated to store substring_t in match_strdup(), which
    means the caller of match_strdup() may need to be scheduled out to wait
    for reclaiming memory.  smatch complains that this can cuase sleeping in
    an atoic context.

    Using local array to store substring_t to remove the restriction.

    Link: https://lkml.kernel.org/r/20230120032352.242767-1-lilingfeng3@huawei.com
    Link: https://lore.kernel.org/all/20221104023938.2346986-5-yukuai1@huaweicloud.com/
    Link: https://lkml.kernel.org/r/20230120032352.242767-1-lilingfeng3@huawei.com
    Fixes: 2c0647988433 ("blk-iocost: don't release 'ioc->lock' while updating params")
    Signed-off-by: Li Lingfeng <lilingfeng3@huawei.com>
    Reported-by: Yu Kuai <yukuai1@huaweicloud.com>
    Acked-by: Tejun Heo <tj@kernel.org>
    Cc: BingJing Chang <bingjingc@synology.com>
    Cc: Eric Biggers <ebiggers@google.com>
    Cc: Hou Tao <houtao1@huawei.com>
    Cc: James Smart <james.smart@broadcom.com>
    Cc: Jan Kara <jack@suse.cz>
    Cc: Jens Axboe <axboe@kernel.dk>
    Cc: yangerkun <yangerkun@huawei.com>
    Cc: Zhang Yi <yi.zhang@huawei.com>
    Signed-off-by: Andrew Morton <akpm@linux-foundation.org>

Signed-off-by: Ming Lei <ming.lei@redhat.com>
2023-03-11 23:27:35 +08:00
Documentation blk-crypto: don't use struct request_queue for public interfaces 2023-03-11 23:27:30 +08:00
LICENSES LICENSES/dual/CC-BY-4.0: Git rid of "smart quotes" 2021-07-15 06:31:24 -06:00
arch Merge: x86/cpu: Add CPU model numbers for Meteor Lake 2023-03-08 16:54:02 +01:00
block block: Fix the blk_mq_destroy_queue() documentation 2023-03-11 23:27:35 +08:00
certs certs: Move load_certificate_list() to be with the asymmetric keys code 2022-06-23 11:32:02 +01:00
crypto crypto: jitter - consider 32 LSB for APT 2023-02-05 09:40:21 +01:00
drivers block/rnbd-clt: fix wrong max ID in ida_alloc_max 2023-03-11 23:27:35 +08:00
fs writeback: remove obsolete macro EXPIRE_DIRTY_ATIME 2023-03-11 23:27:34 +08:00
include block: don't clear REQ_ALLOC_CACHE for non-polled requests 2023-03-11 23:27:35 +08:00
init printk: add infrastucture for atomic consoles 2023-02-27 13:46:09 +01:00
ipc mm,hugetlb: remove mlock ulimit for SHM_HUGETLB 2022-10-12 07:27:31 -04:00
kernel blktrace: Fix output non-blktrace event when blk_classic option enabled 2023-03-11 23:27:34 +08:00
lib lib: parser: optimize match_NUMBER apis to use local array 2023-03-11 23:27:35 +08:00
mm mm/compaction: Get rid of RT ifdeffery 2023-02-27 13:46:08 +01:00
net Merge: l2tp: Avoid possible recursive deadlock in l2tp_tunnel_register() 2023-03-08 10:14:22 +01:00
redhat [redhat] kernel-5.14.0-286.el9 2023-03-08 17:00:36 +01:00
samples Merge: The Neoverse N2/A710 self hosted trace errata, and updated coresight and spe subsystem 2023-02-21 17:57:29 +00:00
scripts Merge: Attend warnings with gcc 11&12 when building kernel and modules 2023-02-15 18:54:57 +00:00
security crypto: dh - constify struct dh's pointer members 2023-01-09 13:32:41 -05:00
sound ASoC: amd: ps: Add a module parameter to influence pdm_gain 2023-02-14 17:32:53 +01:00
tools tools/testing/scatterlist: add missing defines 2023-02-27 13:46:06 +01:00
usr .gitignore: prefix local generated files with a slash 2021-05-02 00:43:35 +09:00
virt KVM: Drop unnecessary initialization of "ops" in kvm_ioctl_create_device() 2022-10-25 13:53:38 +02:00
.clang-format inet: ping: use hlist_nulls rcu iterator during lookup 2023-01-18 20:48:15 +01:00
.cocciconfig
.get_maintainer.conf get_maintainer.conf: Update with new location of RHMAINTAINERS 2022-01-19 14:26:16 -05: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 CI: Fix kernel-64k DataWarehouse name 2023-03-06 21:20:31 +01:00
.mailmap mailmap: remove my redhat.com address from RHEL9's .mailmap file 2022-09-26 09:34:38 -04: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 Merge: The Neoverse N2/A710 self hosted trace errata, and updated coresight and spe subsystem 2023-02-21 17:57:29 +00:00
Makefile gcc-12: disable '-Warray-bounds' universally for now 2023-01-09 13:32:43 -05:00
Makefile.rhelver [redhat] kernel-5.14.0-286.el9 2023-03-08 17:00:36 +01:00
README
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.