Commit Graph

663367 Commits

Author SHA1 Message Date
Mauro (mdrjr) Ribeiro
594bb17de0 Merge tag 'v4.9.301' of git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable into odroidg12-4.9.y
This is the 4.9.301 stable release

Change-Id: Ibc47f56e0b1c4f45dc2e4f51d424ee409abc1ce8
2022-04-27 16:35:16 -03:00
Mauro (mdrjr) Ribeiro
5a77e1424f Merge tag 'v4.9.300' of git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable into odroidg12-4.9.y
This is the 4.9.300 stable release

Change-Id: Ib555b4887d387d6a4f4169744d43ea199146d22b
2022-04-27 16:34:59 -03:00
Mauro (mdrjr) Ribeiro
5046e09cb0 Merge tag 'v4.9.299' of git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable into odroidg12-4.9.y
This is the 4.9.299 stable release
2022-04-27 16:34:25 -03:00
Mauro (mdrjr) Ribeiro
1d935a4ade Merge tag 'v4.9.298' of git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable into odroidg12-4.9.y
This is the 4.9.298 stable release
2022-04-27 16:31:25 -03:00
Mauro (mdrjr) Ribeiro
3794c7a7fc Merge tag 'v4.9.297' of git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable into odroidg12-4.9.y
This is the 4.9.297 stable release

Change-Id: I7722da84bd06df7790ff6251eea11ba0cd66a527
2022-04-27 16:21:41 -03:00
Mauro (mdrjr) Ribeiro
99e78f4d8c Merge tag 'v4.9.296' of git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable into odroidg12-4.9.y
This is the 4.9.296 stable release

Change-Id: Ide52bed24067d709b1b773973690576840b9a989
2022-04-27 16:21:28 -03:00
Mauro (mdrjr) Ribeiro
4980007d89 Merge tag 'v4.9.295' of git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable into odroidg12-4.9.y
This is the 4.9.295 stable release

Change-Id: Ib8161b875a2269e122e57096005176208eb087bc
2022-04-27 16:20:57 -03:00
Mauro (mdrjr) Ribeiro
b40970f8db Merge tag 'v4.9.294' of git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable into odroidg12-4.9.y
This is the 4.9.294 stable release

Change-Id: Ie3366fd2080806d3f9ddb75cdb69704eacee021e
2022-04-27 16:20:29 -03:00
Mauro (mdrjr) Ribeiro
deacf402d2 Merge tag 'v4.9.293' of git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable into odroidg12-4.9.y
This is the 4.9.293 stable release

Change-Id: I1a5a1e8f3fd64f48f8987c395a99f174b7022889
2022-04-27 16:20:18 -03:00
Mauro (mdrjr) Ribeiro
59e87eafe3 Merge tag 'v4.9.292' of git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable into odroidg12-4.9.y
This is the 4.9.292 stable release

Change-Id: I2ba8788797a5c36a55061dfca4c3a6cf4e656ed2
2022-04-27 16:20:06 -03:00
Mauro (mdrjr) Ribeiro
bb773b5835 Merge tag 'v4.9.291' of git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable into odroidg12-4.9.y
This is the 4.9.291 stable release
2022-04-27 14:59:17 -03:00
Mauro (mdrjr) Ribeiro
dfd7a8ca2f Merge tag 'v4.9.290' of git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable into odroidg12-4.9.y
This is the 4.9.290 stable release

Change-Id: Ib4889d4db19821476912824b74d2fea68a9cfe96
2022-04-27 14:58:11 -03:00
Mauro (mdrjr) Ribeiro
023b0aab50 Merge tag 'v4.9.289' of git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable into odroidg12-4.9.y
This is the 4.9.289 stable release

Change-Id: I28c49312d1d98e94de244184d73a52bf130c197f
2022-04-27 14:57:58 -03:00
Mauro (mdrjr) Ribeiro
dde6855ce0 Merge tag 'v4.9.288' of git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable into odroidg12-4.9.y
This is the 4.9.288 stable release

Change-Id: Id2104401bef29fbcc57f84f94cda228e1cf66d75
2022-04-27 14:57:40 -03:00
Mauro (mdrjr) Ribeiro
6b31e43d07 Merge tag 'v4.9.287' of git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable into odroidg12-4.9.y
This is the 4.9.287 stable release

Change-Id: Ia8e6244fdfcd9558651d10380891e8bfdc48238a
2022-04-27 14:56:48 -03:00
Mauro (mdrjr) Ribeiro
563580baf3 Merge tag 'v4.9.286' of git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable into odroidg12-4.9.y
This is the 4.9.286 stable release
2022-04-27 13:41:11 -03:00
Mauro (mdrjr) Ribeiro
27edde62b8 Merge tag 'v4.9.285' of git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable into odroidg12-4.9.y
This is the 4.9.285 stable release

Change-Id: Ie17a1ac89b9b6f9e5797f9cea230a2ae0d323201
2022-04-27 13:39:38 -03:00
Mauro (mdrjr) Ribeiro
7c5628bb57 Merge tag 'v4.9.284' of git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable into odroidg12-4.9.y
This is the 4.9.284 stable release
2022-04-27 13:38:04 -03:00
Mauro (mdrjr) Ribeiro
43c55a77e9 Merge tag 'v4.9.283' of git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable into odroidg12-4.9.y
This is the 4.9.283 stable release

Change-Id: I6cf9304183b00aff4c3b47c3fc072cc95ff18c6b
2022-04-27 13:37:12 -03:00
Mauro (mdrjr) Ribeiro
0d94d781dd Merge tag 'v4.9.282' of git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable into odroidg12-4.9.y
This is the 4.9.282 stable release

Change-Id: I1e01924618ba6f1697a74081d4eb73cb97c3ef0c
2022-04-27 13:37:05 -03:00
Mauro (mdrjr) Ribeiro
0267274e51 Merge tag 'v4.9.281' of git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable into odroidg12-4.9.y
Linux 4.9.281

Change-Id: I896a65b7e289f53ad7ebd232aa4069e840e71c8f
2022-04-27 13:37:00 -03:00
Mauro (mdrjr) Ribeiro
62d77c6836 Merge tag 'v4.9.280' of git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable into odroidg12-4.9.y
This is the 4.9.280 stable release

Change-Id: Ie6399895549f1a654c91a752251a89a873c659af
2022-04-27 13:36:55 -03:00
Mauro (mdrjr) Ribeiro
02e7864e9e Merge tag 'v4.9.279' of git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable into odroidg12-4.9.y
This is the 4.9.279 stable release

Change-Id: Ic12b27f770acde37a7687c08c866b4e013926298
2022-04-27 13:36:49 -03:00
Mauro (mdrjr) Ribeiro
b91f57ca25 Merge tag 'v4.9.278' of git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable into odroidg12-4.9.y
This is the 4.9.278 stable release

Change-Id: Icfb8a3b0a9dd19eb26aff1c04cd1a5eea67a4d3a
2022-04-27 13:36:40 -03:00
Mauro (mdrjr) Ribeiro
32a7374a32 Makefile: patch to build on gcc-11
Change-Id: I36004f3b68898e56011d037107ff56eb7d7c443d
2022-04-17 17:51:23 -03:00
ckkim
89b73666cb ODROID-COMMON:HDMI HPLL clk accuracy Improvements (800x600p60hz)
Signed-off-by: ckkim <changkon12@gmail.com>
Change-Id: I46a743df83a05943b09a02ea5a7b5606ba404869
4.9.277-83 4.9.277-122
2022-02-28 16:53:10 +09:00
ckkim
05f8b3c5de ODROID-COMMON:HDMI HPLL clk accuracy Improvements (1024x768p60hz)
Signed-off-by: ckkim <changkon12@gmail.com>
Change-Id: I73f8ff6a1c561887c8956f50cd5908f0d47c0c3b
2022-02-28 15:41:09 +09:00
ckkim
77f43ff5e7 ODROID-COMMON:HDMI HPLL clk accuracy Improvements (1440x900p60hz)
Signed-off-by: ckkim <changkon12@gmail.com>
Change-Id: If1fa18137c264e4936045d9e0b9e9c415464162c
2022-02-28 15:26:44 +09:00
ckkim
868cd56a97 ODROID-COMMON:HDMI HPLL clk accuracy Improvements (1280x800p60hz)
Signed-off-by: ckkim <changkon12@gmail.com>
Change-Id: I906a330c0c590f7e39e7eaaae60418cf6f0aa656
2022-02-28 15:05:35 +09:00
ckkim
6bc17f7c93 ODROID-COMMON:HDMI HPLL clk accuracy Improvements (1680x1050p60hz)
Signed-off-by: ckkim <changkon12@gmail.com>
Change-Id: I4ecfdebca4bbcf31b71c37eb9e10c029c86470d9
2022-02-28 14:31:32 +09:00
ckkim
746e63c981 ODROID-COMMON:HDMI HPLL clk accuracy Improvements (1920x1200p60hz)
Signed-off-by: ckkim <changkon12@gmail.com>
Change-Id: Iba9220c8ac65acecbc786747100330a8126d0d59
2022-02-28 11:12:27 +09:00
ckkim
60fe335561 ODROID-COMMON:VU7C EDID modify.
Display Product name : HK_VU7C

Signed-off-by: ckkim <changkon12@gmail.com>
Change-Id: Ib3f7c6421b1694f35b9763480b1c3a866e305ff8
4.9.277-82 4.9.277-121
2022-02-16 14:31:03 +09:00
ckkim
c109dec94e ODROID-N2:dts/dtbo:dts/dtbo:Add support display_vu7c
Signed-off-by: ckkim <changkon12@gmail.com>
Change-Id: Ie4825eb589e19b30094ebc62aafd85b21bd9bf3b
2022-02-14 10:34:33 +09:00
ckkim
b8f7dd9b25 ODROID-C4:defconfig:Add support display_vu7c
Signed-off-by: ckkim <changkon12@gmail.com>
Change-Id: I209f52a287bf2fd0ef4d5290abe5ed3347fcbb98
2022-02-14 10:34:33 +09:00
ckkim
fcac2406de ODROID-C4:dts/dtbo:Add support display_vu7c
1024x600p60hz TFT display
	goodix.gt911 touch panel
	pwm-backlight
	i2s_to_hdmi audio + Boom Bonnet

Signed-off-by: ckkim <changkon12@gmail.com>
Change-Id: Ie9c74d0ef52e0851bc8af8b018e392dc22f7ab67
2022-02-14 10:34:33 +09:00
ckkim
68717677f1 ODROID-COMMON:touchscreen gpio interrupt for amlogic INTC
Signed-off-by: ckkim <changkon12@gmail.com>
Change-Id: I013b0640fd9d32f641170562829d05bb9336772b
2022-02-14 10:34:33 +09:00
ckkim
86321280a0 ODROID-COMMON:Add LT8619C HDMI to LVDS converter driver
Signed-off-by: ckkim <changkon12@gmail.com>
Change-Id: I82fee6b8bf8c308d7da0fa521333b6bc55d1c8f5
2022-02-14 10:34:33 +09:00
Greg Kroah-Hartman
ad3dfaf3e8 Linux 4.9.301
Link: https://lore.kernel.org/r/20220209191247.830371456@linuxfoundation.org
Tested-by: Shuah Khan <skhan@linuxfoundation.org>
Tested-by: Florian Fainelli <f.fainelli@gmail.com>
Tested-by: Jon Hunter <jonathanh@nvidia.com>
Tested-by: Linux Kernel Functional Testing <lkft@linaro.org>
Tested-by: Slade Watkins <slade@sladewatkins.com>
Tested-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2022-02-11 08:41:17 +01:00
Jon Maloy
175db196e4 tipc: improve size validations for received domain records
commit 9aa422ad32 upstream.

The function tipc_mon_rcv() allows a node to receive and process
domain_record structs from peer nodes to track their views of the
network topology.

This patch verifies that the number of members in a received domain
record does not exceed the limit defined by MAX_MON_DOMAIN, something
that may otherwise lead to a stack overflow.

tipc_mon_rcv() is called from the function tipc_link_proto_rcv(), where
we are reading a 32 bit message data length field into a uint16.  To
avert any risk of bit overflow, we add an extra sanity check for this in
that function.  We cannot see that happen with the current code, but
future designers being unaware of this risk, may introduce it by
allowing delivery of very large (> 64k) sk buffers from the bearer
layer.  This potential problem was identified by Eric Dumazet.

This fixes CVE-2022-0435

Reported-by: Samuel Page <samuel.page@appgate.com>
Reported-by: Eric Dumazet <edumazet@google.com>
Fixes: 35c55c9877 ("tipc: add neighbor monitoring framework")
Signed-off-by: Jon Maloy <jmaloy@redhat.com>
Reviewed-by: Xin Long <lucien.xin@gmail.com>
Reviewed-by: Samuel Page <samuel.page@appgate.com>
Reviewed-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2022-02-11 08:41:17 +01:00
Greg Kroah-Hartman
f5dc193167 moxart: fix potential use-after-free on remove path
commit bd2db32e7c upstream.

It was reported that the mmc host structure could be accessed after it
was freed in moxart_remove(), so fix this by saving the base register of
the device and using it instead of the pointer dereference.

Cc: Ulf Hansson <ulf.hansson@linaro.org>
Cc: Xiyu Yang <xiyuyang19@fudan.edu.cn>
Cc: Xin Xiong <xiongx18@fudan.edu.cn>
Cc: Xin Tan <tanxin.ctf@gmail.com>
Cc: Tony Lindgren <tony@atomide.com>
Cc: Yang Li <yang.lee@linux.alibaba.com>
Cc: linux-mmc@vger.kernel.org
Cc: stable <stable@vger.kernel.org>
Reported-by: whitehat002 <hackyzh002@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Link: https://lore.kernel.org/r/20220127071638.4057899-1-gregkh@linuxfoundation.org
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2022-02-11 08:41:17 +01:00
Eric W. Biederman
7e33a0ad79 cgroup-v1: Require capabilities to set release_agent
commit 24f6008564 upstream.

The cgroup release_agent is called with call_usermodehelper.  The function
call_usermodehelper starts the release_agent with a full set fo capabilities.
Therefore require capabilities when setting the release_agaent.

Reported-by: Tabitha Sable <tabitha.c.sable@gmail.com>
Tested-by: Tabitha Sable <tabitha.c.sable@gmail.com>
Fixes: 81a6a5cdd2 ("Task Control Groups: automatic userspace notification of idle cgroups")
Cc: stable@vger.kernel.org # v2.6.24+
Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
[mkoutny: Adjust for pre-fs_context, duplicate mount/remount check, drop log messages.]
Acked-by: Michal Koutný <mkoutny@suse.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2022-02-11 08:41:17 +01:00
Greg Kroah-Hartman
7a66c04808 Linux 4.9.300
Link: https://lore.kernel.org/r/20220207103752.341184175@linuxfoundation.org
Tested-by: Shuah Khan <skhan@linuxfoundation.org>
Tested-by: Guenter Roeck <linux@roeck-us.net>
Tested-by: Florian Fainelli <f.fainelli@gmail.com>
Tested-by: Slade Watkins <slade@sladewatkins.com>
Tested-by: Jon Hunter <jonathanh@nvidia.com>
Tested-by: Linux Kernel Functional Testing <lkft@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2022-02-08 18:15:30 +01:00
Ritesh Harjani
48d64974be ext4: fix error handling in ext4_restore_inline_data()
commit 897026aaa7 upstream.

While running "./check -I 200 generic/475" it sometimes gives below
kernel BUG(). Ideally we should not call ext4_write_inline_data() if
ext4_create_inline_data() has failed.

<log snip>
[73131.453234] kernel BUG at fs/ext4/inline.c:223!

<code snip>
 212 static void ext4_write_inline_data(struct inode *inode, struct ext4_iloc *iloc,
 213                                    void *buffer, loff_t pos, unsigned int len)
 214 {
<...>
 223         BUG_ON(!EXT4_I(inode)->i_inline_off);
 224         BUG_ON(pos + len > EXT4_I(inode)->i_inline_size);

This patch handles the error and prints out a emergency msg saying potential
data loss for the given inode (since we couldn't restore the original
inline_data due to some previous error).

[ 9571.070313] EXT4-fs (dm-0): error restoring inline_data for inode -- potential data loss! (inode 1703982, error -30)

Reported-by: Eric Whitney <enwlinux@gmail.com>
Signed-off-by: Ritesh Harjani <riteshh@linux.ibm.com>
Reviewed-by: Jan Kara <jack@suse.cz>
Link: https://lore.kernel.org/r/9f4cd7dfd54fa58ff27270881823d94ddf78dd07.1642416995.git.riteshh@linux.ibm.com
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Cc: stable@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2022-02-08 18:15:30 +01:00
Sergey Shtylyov
4b5fc3acd8 EDAC/xgene: Fix deferred probing
commit dfd0dfb9a7 upstream.

The driver overrides error codes returned by platform_get_irq_optional()
to -EINVAL for some strange reason, so if it returns -EPROBE_DEFER, the
driver will fail the probe permanently instead of the deferred probing.
Switch to propagating the proper error codes to platform driver code
upwards.

  [ bp: Massage commit message. ]

Fixes: 0d4429301c ("EDAC: Add APM X-Gene SoC EDAC driver")
Signed-off-by: Sergey Shtylyov <s.shtylyov@omp.ru>
Signed-off-by: Borislav Petkov <bp@suse.de>
Cc: <stable@vger.kernel.org>
Link: https://lore.kernel.org/r/20220124185503.6720-3-s.shtylyov@omp.ru
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2022-02-08 18:15:30 +01:00
Sergey Shtylyov
7d16424235 EDAC/altera: Fix deferred probing
commit 279eb8575f upstream.

The driver overrides the error codes returned by platform_get_irq() to
-ENODEV for some strange reason, so if it returns -EPROBE_DEFER, the
driver will fail the probe permanently instead of the deferred probing.
Switch to propagating the proper error codes to platform driver code
upwards.

  [ bp: Massage commit message. ]

Fixes: 71bcada88b ("edac: altera: Add Altera SDRAM EDAC support")
Signed-off-by: Sergey Shtylyov <s.shtylyov@omp.ru>
Signed-off-by: Borislav Petkov <bp@suse.de>
Acked-by: Dinh Nguyen <dinguyen@kernel.org>
Cc: <stable@vger.kernel.org>
Link: https://lore.kernel.org/r/20220124185503.6720-2-s.shtylyov@omp.ru
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2022-02-08 18:15:30 +01:00
Riwen Lu
617bb6fc12 rtc: cmos: Evaluate century appropriate
commit ff164ae39b upstream.

There's limiting the year to 2069. When setting the rtc year to 2070,
reading it returns 1970. Evaluate century starting from 19 to count the
correct year.

$ sudo date -s 20700106
Mon 06 Jan 2070 12:00:00 AM CST
$ sudo hwclock -w
$ sudo hwclock -r
1970-01-06 12:00:49.604968+08:00

Fixes: 2a4daadd4d ("rtc: cmos: ignore bogus century byte")

Signed-off-by: Riwen Lu <luriwen@kylinos.cn>
Acked-by: Eric Wong <e@80x24.org>
Reviewed-by: Mateusz Jończyk <mat.jonczyk@o2.pl>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Link: https://lore.kernel.org/r/20220106084609.1223688-1-luriwen@kylinos.cn
Signed-off-by: Mateusz Jończyk <mat.jonczyk@o2.pl> # preparation for stable
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2022-02-08 18:15:29 +01:00
Dai Ngo
72a16cde69 nfsd: nfsd4_setclientid_confirm mistakenly expires confirmed client.
commit ab451ea952 upstream.

From RFC 7530 Section 16.34.5:

o  The server has not recorded an unconfirmed { v, x, c, *, * } and
   has recorded a confirmed { v, x, c, *, s }.  If the principals of
   the record and of SETCLIENTID_CONFIRM do not match, the server
   returns NFS4ERR_CLID_INUSE without removing any relevant leased
   client state, and without changing recorded callback and
   callback_ident values for client { x }.

The current code intends to do what the spec describes above but
it forgot to set 'old' to NULL resulting to the confirmed client
to be expired.

Fixes: 2b63482185 ("nfsd: fix clid_inuse on mount with security change")
Signed-off-by: Dai Ngo <dai.ngo@oracle.com>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Reviewed-by: Bruce Fields <bfields@fieldses.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2022-02-08 18:15:29 +01:00
John Meneghini
3a345198a7 scsi: bnx2fc: Make bnx2fc_recv_frame() mp safe
commit 936bd03405 upstream.

Running tests with a debug kernel shows that bnx2fc_recv_frame() is
modifying the per_cpu lport stats counters in a non-mpsafe way.  Just boot
a debug kernel and run the bnx2fc driver with the hardware enabled.

[ 1391.699147] BUG: using smp_processor_id() in preemptible [00000000] code: bnx2fc_
[ 1391.699160] caller is bnx2fc_recv_frame+0xbf9/0x1760 [bnx2fc]
[ 1391.699174] CPU: 2 PID: 4355 Comm: bnx2fc_l2_threa Kdump: loaded Tainted: G    B
[ 1391.699180] Hardware name: HP ProLiant DL120 G7, BIOS J01 07/01/2013
[ 1391.699183] Call Trace:
[ 1391.699188]  dump_stack_lvl+0x57/0x7d
[ 1391.699198]  check_preemption_disabled+0xc8/0xd0
[ 1391.699205]  bnx2fc_recv_frame+0xbf9/0x1760 [bnx2fc]
[ 1391.699215]  ? do_raw_spin_trylock+0xb5/0x180
[ 1391.699221]  ? bnx2fc_npiv_create_vports.isra.0+0x4e0/0x4e0 [bnx2fc]
[ 1391.699229]  ? bnx2fc_l2_rcv_thread+0xb7/0x3a0 [bnx2fc]
[ 1391.699240]  bnx2fc_l2_rcv_thread+0x1af/0x3a0 [bnx2fc]
[ 1391.699250]  ? bnx2fc_ulp_init+0xc0/0xc0 [bnx2fc]
[ 1391.699258]  kthread+0x364/0x420
[ 1391.699263]  ? _raw_spin_unlock_irq+0x24/0x50
[ 1391.699268]  ? set_kthread_struct+0x100/0x100
[ 1391.699273]  ret_from_fork+0x22/0x30

Restore the old get_cpu/put_cpu code with some modifications to reduce the
size of the critical section.

Link: https://lore.kernel.org/r/20220124145110.442335-1-jmeneghi@redhat.com
Fixes: d576a5e80c ("bnx2fc: Improve stats update mechanism")
Tested-by: Guangwu Zhang <guazhang@redhat.com>
Acked-by: Saurav Kashyap <skashyap@marvell.com>
Signed-off-by: John Meneghini <jmeneghi@redhat.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2022-02-08 18:15:29 +01:00
Miaoqian Lin
695cb16c66 ASoC: fsl: Add missing error handling in pcm030_fabric_probe
commit fb25621da5 upstream.

Add the missing platform_device_put() and platform_device_del()
before return from pcm030_fabric_probe in the error handling case.

Fixes: c912fa9134 ("ASoC: fsl: register the wm9712-codec")
Signed-off-by: Miaoqian Lin <linmq006@gmail.com>
Link: https://lore.kernel.org/r/20220127131336.30214-1-linmq006@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2022-02-08 18:15:29 +01:00
Lior Nahmanson
14b2834992 net: macsec: Verify that send_sci is on when setting Tx sci explicitly
commit d0cfa548db upstream.

When setting Tx sci explicit, the Rx side is expected to use this
sci and not recalculate it from the packet.However, in case of Tx sci
is explicit and send_sci is off, the receiver is wrongly recalculate
the sci from the source MAC address which most likely be different
than the explicit sci.

Fix by preventing such configuration when macsec newlink is established
and return EINVAL error code on such cases.

Fixes: c09440f7dc ("macsec: introduce IEEE 802.1AE driver")
Signed-off-by: Lior Nahmanson <liorna@nvidia.com>
Reviewed-by: Raed Salem <raeds@nvidia.com>
Signed-off-by: Raed Salem <raeds@nvidia.com>
Link: https://lore.kernel.org/r/1643542672-29403-1-git-send-email-raeds@nvidia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2022-02-08 18:15:29 +01:00