Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lab03: kernel_api: update exercises requirements #28

Merged
merged 2 commits into from
Mar 11, 2018

Conversation

andanicolae
Copy link

  • update links to point to 4.15.7 kernel API
  • use c constructs (:c:type:, :c:macro: etc)
    to highlight structures, macros etc

Signed-off-by: Anda Nicolae nicolae.anda@gmail.com

* update links to point to 4.15.7 kernel API
* use c constructs (:c:type:``, :c:macro:`` etc)
  to highlight structures, macros etc

Signed-off-by: Anda Nicolae <nicolae.anda@gmail.com>
tavip pushed a commit to linux-kernel-labs/linux-kernel-labs.github.io that referenced this pull request Mar 6, 2018
set_current_state macro, forces the current process to wait
S seconds.
.. note:: The
`schedule_timeout <https://elixir.bootlin.com/linux/v4.15.7/source/kernel/time/timer.c#L1725>`_
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please don't use links to LXR, we should use the :c:func: notation since we want to have this integrated with the current kernel doc system.

* removed links to lxr kernel API
* used :c:type:``, :c:data:``, :c:func:``, etc
  in all lab, when appropriate
* reformulated documentation when needed
* added missing list evolution image

Signed-off-by: Anda Nicolae <nicolae.anda@gmail.com>
tavip pushed a commit to linux-kernel-labs/linux-kernel-labs.github.io that referenced this pull request Mar 10, 2018
@tavip
Copy link
Member

tavip commented Mar 11, 2018

Lets also use a ditaa directivev for the list figure. Can be done in a separate PR, but in that case log in issue to track it.

@dbaluta dbaluta merged commit bd169a7 into linux-kernel-labs:master Mar 11, 2018
dbaluta pushed a commit to dbaluta/linux that referenced this pull request Jun 5, 2019
checkpatch.pl reports the following:

  WARNING: struct kgdb_arch should normally be const
  linux-kernel-labs#28: FILE: arch/mips/kernel/kgdb.c:397:
  +struct kgdb_arch arch_kgdb_ops = {

This report makes sense, as all other ops struct, this
one should also be const. This patch does the change.

Cc: Vineet Gupta <vgupta@synopsys.com>
Cc: Russell King <linux@armlinux.org.uk>
Cc: Catalin Marinas <catalin.marinas@arm.com>
Cc: Will Deacon <will.deacon@arm.com>
Cc: Yoshinori Sato <ysato@users.sourceforge.jp>
Cc: Richard Kuo <rkuo@codeaurora.org>
Cc: Michal Simek <monstr@monstr.eu>
Cc: Ralf Baechle <ralf@linux-mips.org>
Cc: Paul Burton <paul.burton@mips.com>
Cc: James Hogan <jhogan@kernel.org>
Cc: Ley Foon Tan <lftan@altera.com>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Michael Ellerman <mpe@ellerman.id.au>
Cc: Rich Felker <dalias@libc.org>
Cc: "David S. Miller" <davem@davemloft.net>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Borislav Petkov <bp@alien8.de>
Cc: x86@kernel.org
Acked-by: Daniel Thompson <daniel.thompson@linaro.org>
Acked-by: Paul Burton <paul.burton@mips.com>
Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
Acked-by: Borislav Petkov <bp@suse.de>
Acked-by: Michael Ellerman <mpe@ellerman.id.au> (powerpc)
Signed-off-by: Daniel Thompson <daniel.thompson@linaro.org>
dbaluta pushed a commit to dbaluta/linux that referenced this pull request Aug 10, 2020
We should not trigger a warning when a memory allocation fails. Remove
the WARN_ON().

The warning is constantly triggered by syzkaller when it is injecting
faults:

[ 2230.758664] FAULT_INJECTION: forcing a failure.
[ 2230.758664] name failslab, interval 1, probability 0, space 0, times 0
[ 2230.762329] CPU: 3 PID: 1407 Comm: syz-executor.0 Not tainted 5.8.0-rc2+ linux-kernel-labs#28
...
[ 2230.898175] WARNING: CPU: 3 PID: 1407 at drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c:6265 mlxsw_sp_router_fib_event+0xfad/0x13e0
[ 2230.898179] Kernel panic - not syncing: panic_on_warn set ...
[ 2230.898183] CPU: 3 PID: 1407 Comm: syz-executor.0 Not tainted 5.8.0-rc2+ linux-kernel-labs#28
[ 2230.898190] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.12.1-0-ga5cab58e9a3f-prebuilt.qemu.org 04/01/2014

Fixes: 3057224 ("mlxsw: spectrum_router: Implement FIB offload in deferred work")
Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Reviewed-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants