af_iucv socket programs with HiperSockets as transport make use of the qdio
completion queue. Running such an af_iucv socket program may result in a
crash:
qeth_qdio_cq_handler() analyzes SBALs on this completion queue, but does
not observe the limit of 16 SBAL elements per SBAL. This patch adds the
additional check to process not more than 16 SBAL elements.
Signed-off-by: Ursula Braun <email address hidden>
Signed-off-by: David S. Miller <email address hidden>
(cherry picked from commit 903e48531e8b5d414c8f1960eacac24c31f60344)
Signed-off-by: Joseph Salisbury <email address hidden>
Acked-by: Khalid Elmously <email address hidden>
Acked-by: Kleber Sacilotto de Souza <email address hidden>
Acked-by: Stefan Bader <email address hidden>
Signed-off-by: Kleber Sacilotto de Souza <email address hidden>
6d401d4...
by
Julian Wiedmann <email address hidden>
On L3, the qeth_hdr struct needs to be filled with the next-hop
IP address.
The current code accesses rtable->rt_gateway without checking that
rtable is a valid address. The accidental access to a lowcore area
results in a random next-hop address in the qeth_hdr.
rtable (or more precisely, skb_dst(skb)) can be NULL in rare cases
(for instance together with AF_PACKET sockets).
This patch adds the missing NULL-ptr checks.
Signed-off-by: Julian Wiedmann <email address hidden>
Signed-off-by: Ursula Braun <email address hidden>
Fixes: 87e7597b5a3 qeth: Move away from using neighbour entries in qeth_l3_fill_header()
Signed-off-by: David S. Miller <email address hidden>
(cherry picked from commit ec2c6726322f0d270bab477e4904bf9496f70ee5)
Signed-off-by: Joseph Salisbury <email address hidden>
Acked-by: Khalid Elmously <email address hidden>
Acked-by: Kleber Sacilotto de Souza <email address hidden>
Signed-off-by: Kleber Sacilotto de Souza <email address hidden>
37debb1...
by
Aleksey Makarov <email address hidden>
This patch adds function pl011_console_match() that implements
method match of struct console. It allows to match consoles against
data specified in a string, for example taken from command line or
compiled by ACPI SPCR table handler.
This patch was merged to tty-next but then reverted because of
conflict with
commit 46e36683f433 ("serial: earlycon: Extend earlycon command line option to support 64-bit addresses")
Now it is fixed.
Signed-off-by: Aleksey Makarov <email address hidden>
Reviewed-by: Peter Hurley <email address hidden>
Acked-by: Russell King <email address hidden>
Tested-by: Christopher Covington <email address hidden>
Signed-off-by: Greg Kroah-Hartman <email address hidden>
(backported from commit 10879ae5f12e9cab3c4e8e9504c1aaa8a033bde7)
[ dannf: undo resource_size_t conversion that didn't occur upstream until
46e36683f433 ("serial: earlycon: Extend earlycon command line option to support 64-bit addresses") ]
Signed-off-by: dann frazier <email address hidden>
Acked-by: Stefan Bader <email address hidden>
Acked-by: Kleber Sacilotto de Souza <email address hidden>
Signed-off-by: Kleber Sacilotto de Souza <email address hidden>
c1e2e22...
by
Aleksey Makarov <email address hidden>
SBBR mentions SPCR as a mandatory ACPI table. So enable it for ARM64
Earlycon should be set up as early as possible. ACPI boot tables are
mapped in arch/arm64/kernel/acpi.c:acpi_boot_table_init() that
is called from setup_arch() and that's where we parse SPCR.
So it has to be opted-in per-arch.
When ACPI_SPCR_TABLE is defined initialization of DT earlycon is
deferred until the DT/ACPI decision is done. Initialize DT earlycon
if ACPI is disabled.
Acked-by: Will Deacon <email address hidden>
Acked-by: Hanjun Guo <email address hidden>
Signed-off-by: Aleksey Makarov <email address hidden>
Tested-by: Kefeng Wang <email address hidden>
Tested-by: Christopher Covington <email address hidden>
Signed-off-by: Greg Kroah-Hartman <email address hidden>
(backported from commit 888125a712986fd0fab99d09f42b307de32d740c)
[ dannf: resolved conflict caused by v4.4 not yet having acpi=on support;
trivial offset fix in Kconfig ]
Signed-off-by: dann frazier <email address hidden>
Acked-by: Stefan Bader <email address hidden>
Acked-by: Kleber Sacilotto de Souza <email address hidden>
Signed-off-by: Kleber Sacilotto de Souza <email address hidden>
'ARM Server Base Boot Requiremets' [1] mentions SPCR (Serial Port
Console Redirection Table) [2] as a mandatory ACPI table that
specifies the configuration of serial console.
Defer initialization of DT earlycon until ACPI/DT decision is made.
Parse the ACPI SPCR table, setup earlycon if required,
enable specified console.
Thanks to Peter Hurley for explaining how this should work.
We have multiple "earlycon" early_param handlers - merge the DT one into
the main earlycon one. It's a cleanup that also will be useful
to defer setting up DT console until ACPI/DT decision is made.
Rename the exported function to avoid clashing with the function from
arch/microblaze/kernel/prom.c
Signed-off-by: Leif Lindholm <email address hidden>
Signed-off-by: Aleksey Makarov <email address hidden>
Acked-by: Rob Herring <email address hidden>
Acked-by: Greg Kroah-Hartman <email address hidden>
Reviewed-by: Peter Hurley <email address hidden>
Tested-by: Kefeng Wang <email address hidden>
Tested-by: Christopher Covington <email address hidden>
Signed-off-by: Greg Kroah-Hartman <email address hidden>
(cherry picked from commit d503187b6cc4e41c21c02e695e0e7b5acdd066de)
[ dannf: Add missing #include <linux/of_fdt.h> ]
Signed-off-by: dann frazier <email address hidden>
Acked-by: Stefan Bader <email address hidden>
Acked-by: Kleber Sacilotto de Souza <email address hidden>
Signed-off-by: Kleber Sacilotto de Souza <email address hidden>
c47ee4f...
by
Aleksey Makarov <email address hidden>
ACPICA: Headers: Add new constants for the DBG2 ACPI table
gicv3_init_bases() is the only caller for its_init(),
also it is a __init function, so mark its_init() as __init too,
then recursively mark the functions called as __init.
This will help to introduce ITS initialization using ACPI tables as
we will use acpi_table_parse_entries family functions there which
belong to __init section as well.
Acked-by: Marc Zyngier <email address hidden>
Signed-off-by: Hanjun Guo <email address hidden>
Signed-off-by: Tomasz Nowicki <email address hidden>
Signed-off-by: Marc Zyngier <email address hidden>
(cherry picked from commit 04a0e4dee85642138dc7bd78f50ebee397e057a8)
Signed-off-by: dann frazier <email address hidden>
Acked-by: Stefan Bader <email address hidden>
Acked-by: Kleber Sacilotto de Souza <email address hidden>
Signed-off-by: Kleber Sacilotto de Souza <email address hidden>