Commit graph

904,770 commits

Author SHA1 Message Date
Mohammed Siddiq
a3bfceb5af cnss2: Add code to address boot timer debug corner case
To handle corner case where mhi power on success and the boot
debug timer handler execution(i.e dumping register) runs parellel.
Even-though the timer is deleted as soon as mhi is powered on,
as this handler is still running it is armed again. Use
del_timer_sync which makes sure the timer is not queued and
the handler is not running upon its exit.

Change-Id: Ie428f3e8af8870018dfed99a5472afca14116bb3
Signed-off-by: Mohammed Siddiq <quic_msiddiq@quicinc.com>
2022-01-07 06:30:14 -08:00
qctecmdr
ced73a7604 Merge "usb: f_fs: Fix Double free from ffs_data_clear" 2022-01-06 20:30:36 -08:00
qctecmdr
48ad9e8cc1 Merge "BTFM SLIM:Add support for pin connectivity test" 2022-01-06 09:56:45 -08:00
Udipto Goswami
4925b858ac usb: f_fs: Fix Double free from ffs_data_clear
Suppose if the userspace using ffs failed to open
ep0, it will issue a ep0_release and continuously try to do
ep0_open until it gets through.
The general operation of ep0_release is the it will destroy
the epfile and free the structures. Whole thing follows this
path:

ffs_ep0_release
	ffs_data_reset
		ffs_data_clear
		kfree(epfiles) mark NULL
		kfree(raw_desc)
	raw_desc =NULL

Now the last few steps of the release process is done without
any mutex. In one functions we do kfree and another we mark
NULL.
This created a potential double free scenario, if a ep0_release
process got preempted before kfree, meanwhile another ep0_release
gets through and freed up the structures but didn't mark NULL
and within that time the preempted process wakes up and tried
to kfree again, due to structure not marked NULL will lead to
double free/invalid free.

Following is the illustration:

     CPU2                                   CPU3

ffs_ep0_release
ffs_data_reset
ffs_data_clear
  kfree(epfiles)
  epfiles = NULL

--preempted--
					ffs_ep0_release
					ffs_data_reset
					ffs_data_clear
					 kfree(epfiles)
					 epfiles = NULL
					 kfree(ffs->raw_descs_data)
					 kfree(ffs->raw_strings)
					 kfree(ffs->stringtabs)
--woke-up--
  kfree(ffs->raw_descs_data)
<use-after-free>
raw_desc =NULL

Fix this by performing kfree and NULL operations under
ffs_data_clear within a mutex lock.

Change-Id: I1c8d92ff99c30165b06bafdd00bc9eb610f3bb76
Signed-off-by: Udipto Goswami <quic_ugoswami@quicinc.com>
2022-01-05 20:27:27 -08:00
Satish Kumar Kodishala
5582182dad BTFM SLIM:Add support for pin connectivity test
Add support for pin connectivity test for BT/FM slimbus

Change-Id: Ia913bcb204f6cccc59790b9a4cef20cbd346f05c
Signed-off-by: Satish Kumar Kodishala <quic_skodisha@quicinc.com>
2022-01-05 04:40:57 -08:00
qctecmdr
a0072c96a9 Merge "usb: f_qdss: Remove usb_request::num_mapped_sgs access" 2022-01-05 00:43:54 -08:00
Pavankumar Kondeti
cb6bfc80a2 arm64: defconfig: Default updates for genericarmv8
Due to changes in Kconfig default options, genericarmv8 is out of sync.
Sync genericarmv8 defconfig to the latest code.

Change-Id: I15d753b9d9429ac623fd7b7e7eaa936b5ed2a8b1
Signed-off-by: Pavankumar Kondeti <quic_pkondeti@quicinc.com>
2022-01-04 13:33:48 +05:30
Pavankumar Kondeti
ea6dfe28c6 usb: f_qdss: Remove usb_request::num_mapped_sgs access
The function drivers have no business accessing usb_request::num_mapped_sgs
field. The UDC will use this field to cache the sgs mapped for a given
request.

Change-Id: I6a8c8c2e52a36caedfe977f517b4c04b1ad0045c
Signed-off-by: Pavankumar Kondeti <quic_pkondeti@quicinc.com>
2022-01-03 19:54:31 -08:00
qctecmdr
6c2909cd85 Merge "mmc: sdhci: Dump registers in case of DATA CRC/timeout errors" 2022-01-02 20:11:32 -08:00
qctecmdr
cace14e427 Merge "input: qcom-hv-haptics: delay hBoost turning off" 2022-01-02 20:11:30 -08:00
qctecmdr
1ebc5a867d Merge "net: macsec: add support for specifying offload upon link creation" 2022-01-02 09:00:23 -08:00
qctecmdr
f885eea1d5 Merge "Merge android11-5.4.147+ (983a7e7) into msm-5.4" 2021-12-31 03:14:52 -08:00
Sarthak Garg
e9a8ea4493 mmc: sdhci: Dump registers in case of DATA CRC/timeout errors
Dump registers in case of Data CRC/timeout errors and print other
useful information.

This contains below patches as well:

4c196de7e0fd mmc: sdhci: rate limit sdhci_dumpregs() prints
16dabee056d4 mmc: sdhci: Add timestamp debug info for data timeout error
e00d878df07e mmc: sdhci: Avoid dumping registers when SD card removed.

Change-Id: I5efe8ff4bacc5da3a05829be7cac4ce40f9fc584
Signed-off-by: Sarthak Garg <quic_sartgarg@quicinc.com>
2021-12-31 13:09:15 +05:30
Mark Starovoytov
a00bf2b8d6 net: macsec: add support for specifying offload upon link creation
This patch adds new netlink attribute to allow a user to (optionally)
specify the desired offload mode immediately upon MACSec link creation.

Separate iproute patch will be required to support this from user space.

Change-Id: I3aa8c9c2eb65763707487267a23ea2e645d1afde
Signed-off-by: Mark Starovoytov <mstarovoitov@marvell.com>
Signed-off-by: Igor Russkikh <irusskikh@marvell.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Git-commit: 791bb3fcafcedd11f9066da9fee9342ecb6904d0
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
Signed-off-by: Karthik Rudrapatna <quic_krudrapa@quicinc.com>
2021-12-28 09:52:18 -08:00
qctecmdr
8cd841af1b Merge "defconfig: sdxlemur: Enable SHA512 crypto in kernel" 2021-12-28 00:41:19 -08:00
Fenglin Wu
8c194abb0e input: qcom-hv-haptics: delay hBoost turning off
Extend hBoost PBS control to all play modes, so hBoost disabling
will be always handled in the driver by triggering the PBS. Also,
delay hBoost turning off 2 seconds after the stop command to
prevent hBoost being enabled/disabled too frequently in repeated
short vibration case, this help to avoid hBoost lockup when it's
enabled and disabled very quickly.

Change-Id: I76263e51ad00a01d95ff7fd7b08c1655031516e6
Signed-off-by: Fenglin Wu <fenglinw@codeaurora.org>
2021-12-28 09:19:53 +08:00
qctecmdr
cfad8c4755 Merge "haven: hh_msgq: Use GFP_ATOMIC allocations in hh_msgq_alloc_entry()" 2021-12-27 16:41:35 -08:00
qctecmdr
b9da8780f6 Merge "icnss: Add check for valid SMEM handler" 2021-12-27 16:41:35 -08:00
qctecmdr
adc0cdd599 Merge "msm: npu: remove asynchronous network execution support" 2021-12-27 16:41:34 -08:00
Ashok Gummadidala
c22e096303 haven: hh_msgq: Use GFP_ATOMIC allocations in hh_msgq_alloc_entry()
Commit 81d6b86bd96e ("haven: hh_msgq: Disallow multiple
registrations with same label") makes the entire gh_msgq_alloc_entry()
function a critical section by calling it with the gh_msgq_cap_list_lock
spinlock held. It also changed the allocation flags of one of the three
memory allocation operations from GFP_KERNEL to GFP_ATOMIC for this
reason, leaving the other two intact. This sometimes leads to the
following:
[    0.052850][    T1] BUG: sleeping function called from invalid context at mm/slab.h:557
[    0.052852][    T1] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 1, name: swapper/0
[    0.052854][    T1] Preemption disabled at:
[    0.052861][    T1] [<ffffffc010578698>] gh_msgq_populate_cap_info+0x3c/0x26c
[    0.052864][    T1] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 5.10.43-debug-04611-g00783572e88c-dirty #1
[    0.052866][    T1] Hardware name: Qualcomm Technologies, Inc. Waipio SVM MTP (DT)
[    0.052868][    T1] Call trace:
[    0.052873][    T1]  dump_backtrace+0x0/0x20c
[    0.052875][    T1]  show_stack+0x18/0x24
[    0.052880][    T1]  dump_stack_lvl+0xbc/0x134
[    0.052883][    T1]  ___might_sleep+0x16c/0x1c0
[    0.052884][    T1]  __might_sleep+0x50/0x88
[    0.052887][    T1]  __kmalloc_track_caller+0x6c/0x388
[    0.052891][    T1]  kvasprintf+0xa8/0x134
[    0.052892][    T1]  kasprintf+0x54/0x7c
[    0.052894][    T1]  hh_msgq_alloc_entry+0x98/0x128
[    0.052896][    T1]  hh_msgq_populate_cap_info+0x74/0x26c
[    0.052897][    T1]  hh_msgq_probe_direction+0x78/0xf0
[    0.052899][    T1]  hh_msgq_probe+0x4c/0xdc
[    0.052901][    T1]  hh_rm_drv_probe+0x34/0x310
[    0.052904][    T1]  platform_drv_probe+0x3c/0x9c
[    0.052906][    T1]  really_probe+0x11c/0x4c8
[    0.052909][    T1]  driver_probe_device+0x84/0xec
[    0.052911][    T1]  device_driver_attach+0x4c/0x70
[    0.052913][    T1] __driver_attach.llvm.3781602661191075997+0x40/0x154
[    0.052915][    T1]  bus_for_each_dev+0x7c/0xc8
[    0.052917][    T1]  bus_add_driver+0x110/0x20c
[    0.052919][    T1]  driver_register+0x64/0x104
[    0.052921][    T1]  __platform_driver_register+0x44/0x50
[    0.052926][    T1] __initstub__kmod_gh_rm_drv__334_1315_gh_rm_driver_init6+0x1c/0x28
[    0.052928][    T1]  do_one_initcall+0x50/0x29c
[    0.052931][    T1]  do_initcall_level+0xa4/0x16c
[    0.052933][    T1]  do_initcalls+0x60/0xa0
[    0.052934][    T1]  do_basic_setup+0x20/0x2c
[    0.052936][    T1]  kernel_init_freeable+0x8c/0xdc
[    0.052939][    T1]  kernel_init+0x14/0x110
[    0.052941][    T1]  ret_from_fork+0x10/0x30
Even though the error signature says "BUG:" it isn't really a kernel
panic. It only dumps the stack and then carries on, courtesy
CONFIG_DEBUG_ATOMIC_SLEEP.
Change the remaining two memory allocation operations to use GFP_ATOMIC
as well and thereby fix the appearance of this error message.

Change-Id: If7f91e67541b1e925313eeb96f58cc4e2280dba2
Signed-off-by: Ashok Gummadidala <agumma@codeaurora.org>
2021-12-27 02:54:20 -08:00
Srinivasarao Pathipati
8a6924048b Merge android11-5.4.147+ (983a7e7) into msm-5.4
* refs/heads/tmp-983a7e7:
  FROMGIT: USB: gadget: bRequestType is a bitfield, not a enum
  UPSTREAM: aio: fix use-after-free due to missing POLLFREE handling
  UPSTREAM: aio: keep poll requests on waitqueue until completed
  UPSTREAM: signalfd: use wake_up_pollfree()
  UPSTREAM: binder: use wake_up_pollfree()
  UPSTREAM: wait: add wake_up_pollfree()
  UPSTREAM: USB: gadget: zero allocate endpoint 0 buffers
  UPSTREAM: USB: gadget: detect too-big endpoint 0 requests
  UPSTREAM: HID: check for valid USB device for many HID drivers
  UPSTREAM: HID: wacom: fix problems when device is not a valid USB device
  UPSTREAM: HID: bigbenff: prevent null pointer dereference
  UPSTREAM: HID: add USB_HID dependancy on some USB HID drivers
  UPSTREAM: HID: add USB_HID dependancy to hid-chicony
  UPSTREAM: HID: add USB_HID dependancy to hid-prodikeys
  UPSTREAM: HID: add hid_is_usb() function to make it simpler for USB detection
  BACKPORT: f2fs: relocate inline conversion from mmap() to mkwrite()
  BACKPORT: f2fs: support RO feature
  BACKPORT: f2fs: fix wrong total_sections check and fsmeta check
  BACKPORT: FROMGIT: binder: fix freeze race
  FROMGIT: binder: BINDER_GET_FROZEN_INFO ioctl
  FROMGIT: binder: use EINTR for interrupted wait for work
  BACKPORT: FROMGIT: binder: BINDER_FREEZE ioctl
  ANDROID: usb: gadget: f_accessory: Mitgate handling of non-existent USB request
  FROMGIT: binder: fix test regression due to sender_euid change
  BACKPORT: binder: use cred instead of task for getsecid
  BACKPORT: binder: use cred instead of task for selinux checks
  BACKPORT: binder: use euid from cred instead of using task
  ANDROID: setlocalversion: make KMI_GENERATION optional

Change-Id: I00cf067e7b2e31eb3ad074ede720c087a7647959
Signed-off-by: Srinivasarao Pathipati <quic_spathi@quicinc.com>
2021-12-27 12:53:30 +05:30
Karthik Rudrapatna
7657f700dc net: macsec: Clones skb when netdev is in Primiscous mode
When bridge0 is in Primiscous mode, passed the packets to macsec

Change-Id: Ib325e0bb19cee792a8dd3759a4e752581e48827b
Signed-off-by: Karthik Rudrapatna <quic_krudrapa@quicinc.com>
2021-12-23 15:03:10 -08:00
Jilai Wang
77f9dec046 msm: npu: remove asynchronous network execution support
Remove asynchronous network execution related code since it's
not used.

Change-Id: I9e9b54fddbbe9a0a1c0721983ae65e464fd49c0f
Signed-off-by: Jilai Wang <quic_jilaiw@quicinc.com>
2021-12-23 10:18:06 -08:00
qctecmdr
6cd9ac9ba6 Merge "usb: dwc: Release wakeup source if vbus_active is cleared" 2021-12-23 02:30:45 -08:00
qctecmdr
b0035a4a04 Merge "msm: ipa: Includes QMI structure changes for IPA Peripheral stats" 2021-12-23 02:30:45 -08:00
qctecmdr
f0d0122ca7 Merge "net: macsec: add support for getting offloaded stats" 2021-12-23 02:30:44 -08:00
qctecmdr
8a7cea516a Merge "msm: npu: fix driver warnings" 2021-12-23 02:30:42 -08:00
Liangwei Dong
eb096485ea defconfig: sdxlemur: Enable SHA512 crypto in kernel
Enable SHA512 crypto in kernel.
Fix typo of CTR config flags.

Change-Id: I168d331ddc526c58f652a228ee11c0e38b1170b0
Signed-off-by: Liangwei Dong <quic_liangwei@quicinc.com>
2021-12-23 13:24:44 +08:00
qctecmdr
ab87e2bacc Merge "mtd: msm_qpic_nand: Enable clocks while accessing BAM registers" 2021-12-21 22:52:31 -08:00
qctecmdr
c744619c9b Merge "net: macsec: allow multiple macsec devices with offload" 2021-12-21 22:52:31 -08:00
qctecmdr
c2c11092c7 Merge "f2fs: don't sleep while grabing nat_tree_lock" 2021-12-21 22:52:30 -08:00
Pratham Pratap
f5f85bb96c usb: dwc: Release wakeup source if vbus_active is cleared
Commit 980a25b5c2 ("usb: dwc3: Dont release wakeup source
during usb restart") introduced a check in dwc3_msm_suspend
for in_restart before releasing the wakeup source to ensure
that driver doesn't release the wakeup source if suspend is
kicked while restart session was executing. Now consider a
case where, due to some reason, erratic event is seen on the
controller and restart session is kicked. While restart work
was running, physical cable disconnect happened which will
call suspend routine eventually but due to in_restart flag
being set driver will not release the wakeup source and will
end up consuming power even though cable got disconnected.

Fix this by adding one more level of judgement of vbus_active
to ensure that wakeup source is released when cable gets
disconnected during restart usb work.

Change-Id: Ie54618640d08c4f2e3f0dc1d38260e0aa2d309c2
Signed-off-by: Pratham Pratap <quic_ppratap@quicinc.com>
2021-12-21 10:21:20 +05:30
Jaegeuk Kim
a3aabaa61d f2fs: don't sleep while grabing nat_tree_lock
This tries to fix priority inversion in the below condition resulting in
long checkpoint delay.

f2fs_get_node_info()
 - nat_tree_lock
  -> sleep to grab journal_rwsem by contention

                                     checkpoint
                                     - waiting for nat_tree_lock

In order to let checkpoint go, let's release nat_tree_lock, if there's a
journal_rwsem contention.

Change-Id: I72ca6cf52908a08976c200be32a09fb3105e726e
Signed-off-by: Daeho Jeong <daehojeong@google.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Git-commit: 2eeb0dce728a7eac3e4dfe355d98af40d61f7a26
Git-repo: https://git.kernel.org/pub/scm/linux/kernel/git/jaegeuk/f2fs.git
Signed-off-by: Sayali Lokhande <sayalil@codeaurora.org>
2021-12-19 22:19:48 -08:00
qctecmdr
b02a89590b Merge "pci: msm: Return -EDEFER when i2c is not probed" 2021-12-19 20:08:35 -08:00
Jilai Wang
f4c81064a7 msm: npu: fix driver warnings
This change is to fix warnings generated when running sparse check.

Change-Id: I67bc66d1fc6d3fe39cd3d566e00b67e14e61bb7d
Signed-off-by: Jilai Wang <jilaiw@codeaurora.org>
2021-12-19 11:46:51 -08:00
qctecmdr
7fbe930d38 Merge "msm: npu: fix network and misc commands race condition problem" 2021-12-19 03:19:34 -08:00
Michael Adisumarta
0c9617b5de msm: ipa: Includes QMI structure changes for IPA Peripheral stats
QMI structure definition for sending per_stats_smem info.

Change-Id: I072075547b5921072e14711d1076c04fe25434b6
Signed-off-by: Michael Adisumarta <quic_madisuma@quicinc.com>
2021-12-16 11:21:46 -08:00
Naman Padhiar
dc75b47b7c icnss: Add check for valid SMEM handler
Validate SMEM state handler before using it.

Change-Id: I762cef00daa267ff7e411a5c740556d7f235d383
Signed-off-by: Naman Padhiar <quic_npadhiar@quicinc.com>
2021-12-16 23:13:58 +05:30
Pradeep P V K
3e1f68e991 mtd: msm_qpic_nand: Enable clocks while accessing BAM registers
A NOC was seen while dumping BAM registers information. To avoid this,
always enable qpic clocks before accessing BAM registers.

Change-Id: I7a8799d742dc1fcc066512aba1537d7d48797a73
Signed-off-by: Pradeep P V K <quic_pragalla@quicinc.com>
2021-12-16 03:21:47 -08:00
Greg Kroah-Hartman
983a7e7c98 FROMGIT: USB: gadget: bRequestType is a bitfield, not a enum
Szymon rightly pointed out that the previous check for the endpoint
direction in bRequestType was not looking at only the bit involved, but
rather the whole value.  Normally this is ok, but for some request
types, bits other than bit 8 could be set and the check for the endpoint
length could not stall correctly.

Fix that up by only checking the single bit.

Fixes: 153a2d7e3350 ("USB: gadget: detect too-big endpoint 0 requests")
Cc: Felipe Balbi <balbi@kernel.org>
Reported-by: Szymon Heidrich <szymon.heidrich@gmail.com>
Link: https://lore.kernel.org/r/20211214184621.385828-1-gregkh@linuxfoundation.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit f08adf5add9a071160c68bb2a61d697f39ab0758
 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-linus)
Bug: 210292376
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Change-Id: I7e708b2b94433009c87f697346e0515d93454f48
2021-12-15 21:27:11 +01:00
Jilai Wang
90811ee5b8 msm: npu: fix network and misc commands race condition problem
misc command doesn't do npu_init before sending to firmware, so
it's possible that npu will be turned off while npu firmware is
handling misc commands which causes times out in host driver.
To fix this issue, npu_init/npu_deinit need to be called before
and after misc commands are handled. In addition, only one misc
command should be handled at any moment. The misc command should
be failed right away while the other one is being handled.

Change-Id: I523255da15fa4e3b8b21d74b28f90d3458ebeb3c
Signed-off-by: Jilai Wang <jilaiw@codeaurora.org>
2021-12-15 06:45:10 -08:00
qctecmdr
e4c620112c Merge "usb: f_cdev: Handle the serial state properly" 2021-12-15 05:53:08 -08:00
Subramanian Ananthanarayanan
8bf3347530 pci: msm: Return -EDEFER when i2c is not probed
Change is to reutrn -EDEFER error when i2c is not probed and delay
PCIE probe. I2C probe is gettting called post pcie enumeration
and this results in i2c de-emphasis settings not being applied.
Pine doesn't enumerate as these settings are not applied.

Change-Id: I1ac966b26c65f44afb32987927558209bf8787a7
Signed-off-by: Subramanian Ananthanarayanan <quic_skananth@quicinc.com>
2021-12-15 12:47:03 +05:30
qctecmdr
78d3775595 Merge "i2c: i2c-msm-geni: Change the high and low time for SCL" 2021-12-13 20:43:36 -08:00
qctecmdr
83f68ed045 Merge "msm: synx: Prevent accessing valid but released handles" 2021-12-13 20:43:35 -08:00
Dmitry Bogdanov
f8451bfe63 net: macsec: add support for getting offloaded stats
When HW offloading is enabled, offloaded stats should be used, because
s/w stats are wrong and out of sync with the HW in this case.

Change-Id: I83ed6f427ae03d6624602e8763a8799f03cd5246
Signed-off-by: Dmitry Bogdanov <dbogdanov@marvell.com>
Signed-off-by: Mark Starovoytov <mstarovoitov@marvell.com>
Signed-off-by: Igor Russkikh <irusskikh@marvell.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Git-commit: b62c3624500a7e1cc081e75973299c1f7901a438
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
Signed-off-by: Karthik Rudrapatna <quic_krudrapa@quicinc.com>
2021-12-13 15:49:45 -08:00
Mark Starovoytov
811cdefef1 net: macsec: support multicast/broadcast when offloading
The idea is simple. If the frame is an exact match for the controlled port
(based on DA comparison), then we simply divert this skb to matching port.

Multicast/broadcast messages are delivered to all ports.

Change-Id: Iaa716e14c1a178a99b51b1104e7c68eb2f8e592e
Signed-off-by: Mark Starovoytov <mstarovoitov@marvell.com>
Signed-off-by: Igor Russkikh <irusskikh@marvell.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Git-commit: f428011b90ec0de7429886f753b7c3293392761c
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
Signed-off-by: Karthik Rudrapatna <quic_krudrapa@quicinc.com>
2021-12-13 15:49:40 -08:00
Dmitry Bogdanov
93e3092501 net: macsec: allow multiple macsec devices with offload
Offload engine can setup several SecY. Each macsec interface shall have
its own mac address. It will filter a traffic by dest mac address.

Change-Id: Ic0e971c8061eb7ce74e1ddab4b76374571da5a8c
Signed-off-by: Dmitry Bogdanov <dbogdanov@marvell.com>
Signed-off-by: Mark Starovoytov <mstarovoitov@marvell.com>
Signed-off-by: Igor Russkikh <irusskikh@marvell.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Git-commit: A249f8050624f92f844605274de3367e2c8ac706
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
Signed-off-by: Karthik Rudrapatna <quic_krudrapa@quicinc.com>
2021-12-13 15:49:35 -08:00
Dmitry Bogdanov
ac0f651428 net: macsec: init secy pointer in macsec_context
This patch adds secy pointer initialization in the macsec_context.
It will be used by MAC drivers in offloading operations.

Change-Id: I59c0d751f2b026096dcbe57355b47d7f940b0a94
Signed-off-by: Dmitry Bogdanov <dbogdanov@marvell.com>
Signed-off-by: Mark Starovoytov <mstarovoitov@marvell.com>
Signed-off-by: Igor Russkikh <irusskikh@marvell.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Git-commit: 182879f89b858fede98136ea3ad45fe9c7178387
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
Signed-off-by: Karthik Rudrapatna <quic_krudrapa@quicinc.com>
2021-12-13 15:49:29 -08:00
Era Mayflower
d02cb3a2fb macsec: Netlink support of XPN cipher suites (IEEE 802.1AEbw)
Netlink support of extended packet number cipher suites,
allows adding and updating XPN macsec interfaces.

Added support in:
    * Creating interfaces with GCM-AES-XPN-128 and GCM-AES-XPN-256 suites.
    * Setting and getting 64bit packet numbers with of SAs.
    * Setting (only on SA creation) and getting ssci of SAs.
    * Setting salt when installing a SAK.

Added 2 cipher suite identifiers according to 802.1AE-2018 table 14-1:
    * MACSEC_CIPHER_ID_GCM_AES_XPN_128
    * MACSEC_CIPHER_ID_GCM_AES_XPN_256

In addition, added 2 new netlink attribute types:
    * MACSEC_SA_ATTR_SSCI
    * MACSEC_SA_ATTR_SALT

Depends on: macsec: Support XPN frame handling - IEEE 802.1AEbw.

Change-Id: Ia7efe40e1c9f7434a025faec075020717220327d
Signed-off-by: Era Mayflower <mayflowerera@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Git-commit: 48ef50fa866aae087f63c7de8a47e76537f88691
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
Signed-off-by: Karthik Rudrapatna <quic_krudrapa@quicinc.com>
2021-12-13 15:49:24 -08:00