summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorSaeed Mahameed <saeedm@nvidia.com>2020-09-11 11:48:55 -0700
committerSaeed Mahameed <saeedm@nvidia.com>2020-10-02 10:59:55 -0700
commitb898ce7bccf13087719c021d829dab607c175246 (patch)
tree6eede790ef6c6f876882547766480b964dd5aa28 /scripts
parent410bd754cd73c4a2ac3856d9a03d7b08f9c906bf (diff)
downloadkernel-b898ce7bccf13087719c021d829dab607c175246.tar.gz
net/mlx5: cmdif, Avoid skipping reclaim pages if FW is not accessible
In case of pci is offline reclaim_pages_cmd() will still try to call the FW to release FW pages, cmd_exec() in this case will return a silent success without actually calling the FW. This is wrong and will cause page leaks, what we should do is to detect pci offline or command interface un-available before tying to access the FW and manually release the FW pages in the driver. In this patch we share the code to check for FW command interface availability and we call it in sensitive places e.g. reclaim_pages_cmd(). Alternative fix: 1. Remove MLX5_CMD_OP_MANAGE_PAGES form mlx5_internal_err_ret_value, command success simulation list. 2. Always Release FW pages even if cmd_exec fails in reclaim_pages_cmd(). Reviewed-by: Moshe Shemesh <moshe@nvidia.com> Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions
18 12:56:58 +0100'>2023-09-18ax25: Kconfig: Update link for linux-ax25.orgPeter Lafreniere 2023-08-15ax.25: Update to register_net_sysctl_szJoel Granados 2023-06-24sock: Remove ->sendpage*() in favour of sendmsg(MSG_SPLICE_PAGES)David Howells 2022-11-16ax25: af_ax25: Remove unnecessary (void*) conversionsLi zeming 2022-08-22ax25: move from strlcpy with unused retval to strscpyWolfram Sang 2022-08-05net: avoid overflow when rose /proc displays timer information.Francois Romieu 2022-08-03Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/netPaolo Abeni 2022-07-28ax25: fix incorrect dev_tracker usageEric Dumazet 2022-06-17ax25: use GFP_KERNEL in ax25_dev_device_up()Peter Lafreniere 2022-06-16Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/netJakub Kicinski 2022-06-15net: ax25: Fix deadlock caused by skb_recv_datagram in ax25_recvmsgDuoming Zhou 2022-06-09net: rename reference+tracking helpersJakub Kicinski 2022-06-02ax25: Fix ax25 session cleanup problemsDuoming Zhou 2022-05-17ax25: merge repeat codes in ax25_dev_device_down()Lu Wei 2022-04-06net: remove noblock parameter from skb_recv_datagram()Oliver Hartkopp 2022-03-29ax25: Fix UAF bugs in ax25 timersDuoming Zhou 2022-03-29ax25: fix UAF bug in ax25_send_control()Duoming Zhou 2022-03-23Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/netJakub Kicinski 2022-03-21ax25: Fix NULL pointer dereferences in ax25 timersDuoming Zhou 2022-03-21ax25: Fix refcount leaks caused by ax25_cb_del()Duoming Zhou 2022-03-10Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/netJakub Kicinski 2022-03-09ax25: Fix NULL pointer dereference in ax25_kill_by_deviceDuoming Zhou 2022-02-10Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/netJakub Kicinski 2022-02-09ax25: fix UAF bugs of net_device caused by rebinding operationDuoming Zhou 2022-02-09ax25: fix NPD bug in ax25_disconnectDuoming Zhou 2022-02-03Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/netJakub Kicinski 2022-02-03ax25: fix reference count leaks of ax25_devDuoming Zhou 2022-01-28ax25: add refcount in ax25_dev to avoid UAF bugsDuoming Zhou 2022-01-28ax25: improve the incomplete fix to avoid UAF and NPD bugsDuoming Zhou 2022-01-27net: ax25: remove route refcountJakub Kicinski 2022-01-09Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/netJakub Kicinski 2022-01-07ax25: uninitialized variable in ax25_setsockopt()Dan Carpenter 2021-12-23Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/netJakub Kicinski 2021-12-18ax25: NPD bug when detaching AX25 deviceLin Ma