Linux 6.1.32
Greg Kroah-Hartman
maintainerI'm announcing the release of the 6.1.32 kernel.
All users of the 6.1 kernel series must upgrade.
The updated 6.1.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-6.1.y
and can be browsed at the normal kernel.org git web browser:
https://git.kernel.org/?p=linux/kernel/git/stable/linux-stable.git;a=summary
thanks,
greg k-h
------------
Makefile | 2 block/blk-map.c | 2 block/blk-mq-tag.c | 12 drivers/cpufreq/amd-pstate.c | 45 ++ drivers/firmware/arm_ffa/driver.c | 3 drivers/gpio/Kconfig | 2 drivers/gpio/gpio-f7188x.c | 28 - drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c | 3 drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | 7 drivers/infiniband/sw/rxe/rxe_qp.c | 7 drivers/net/ethernet/marvell/octeontx2/af/cgx.c | 8 drivers/net/ethernet/mellanox/mlx5/core/eswitch.h | 1 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c | 9 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c | 209 ++++++++++--- drivers/net/phy/mscc/mscc.h | 1 drivers/net/phy/mscc/mscc_main.c | 54 +-- drivers/net/wireless/intel/iwlwifi/fw/api/d3.h | 37 ++ drivers/net/wireless/intel/iwlwifi/mvm/d3.c | 35 ++ drivers/net/wireless/realtek/rtw89/rtw8852c.c | 9 drivers/platform/x86/amd/pmf/core.c | 32 + drivers/vfio/vfio_iommu_type1.c | 5 include/linux/skbuff.h | 10 include/linux/skmsg.h | 3 include/net/inet_sock.h | 4 include/net/ip.h | 5 include/net/page_pool.h | 18 - include/net/tcp.h | 10 include/net/tls.h | 1 include/uapi/linux/in.h | 2 net/bluetooth/hci_sock.c | 28 + net/core/page_pool.c | 34 +- net/core/skmsg.c | 81 ++--- net/core/sock_map.c | 3 net/ipv4/inet_connection_sock.c | 25 + net/ipv4/inet_hashtables.c | 2 net/ipv4/ip_sockglue.c | 30 + net/ipv4/raw.c | 5 net/ipv4/tcp.c | 11 net/ipv4/tcp_bpf.c | 79 ++++ net/ipv4/udp.c | 9 net/ipv6/raw.c | 3 net/netfilter/nf_conntrack_netlink.c | 8 net/sctp/socket.c | 2 net/tls/tls.h | 5 net/tls/tls_device.c | 22 - net/tls/tls_strp.c | 185 +++++++++-- net/unix/af_unix.c | 7 tools/include/uapi/linux/in.h | 1 tools/testing/selftests/bpf/Makefile | 2 49 files changed, 826 insertions(+), 280 deletions(-)
Anuj Gupta (1):
block: fix bio-cache for passthru IO
David Epping (1):
net: phy: mscc: enable VSC8501/2 RGMII RX clock
Eric Huang (1):
wifi: rtw89: correct 5 MHz mask setting
Gautham R. Shenoy (1):
cpufreq: amd-pstate: Add ->fast_switch() callback
Greg Kroah-Hartman (1):
Linux 6.1.32
Haim Dreyfuss (1):
wifi: iwlwifi: mvm: support wowlan info notification version 2
Hariprasad Kelam (1):
octeontx2-af: Add validation for lmac type
Henning Schild (1):
gpio-f7188x: fix chip name and pin count on Nuvoton chip
Ido Schimmel (1):
Revert "thermal/drivers/mellanox: Use generic thermal_zone_get_trip() function"
Jakub Kicinski (6):
tls: rx: device: fix checking decryption status
tls: rx: strp: set the skb->len of detached / CoW'ed skbs
tls: rx: strp: fix determining record length in copy mode
tls: rx: strp: force mixed decrypted records into copy mode
tls: rx: strp: factor out copying skb data
tls: rx: strp: preserve decryption status of skbs when needed
Jakub Sitnicki (1):
inet: Add IP_LOCAL_PORT_RANGE socket option
Jeremy Sowden (1):
selftests/bpf: Fix pkg-config call building sign-file
Johannes Berg (1):
wifi: iwlwifi: mvm: fix potential memory leak
John Fastabend (8):
bpf, sockmap: Pass skb ownership through read_skb bpf, sockmap: Convert schedule_work into delayed_work bpf, sockmap: Reschedule is now done through backlog bpf, sockmap: Improved check for empty queue bpf, sockmap: Handle fin correctly
bpf, sockmap: TCP data stall on recv before accept bpf, sockmap: Wake up polling after data copy bpf, sockmap: Incorrectly handling copied_seq
Mario Limonciello (2):
platform/x86/amd/pmf: Fix CnQF and auto-mode after resume drm/amd: Don't allow s0ix on APUs older than Raven
Nicolas Dichtel (1):
ipv{4,6}/raw: fix output xfrm lookup wrt protocol
Paul Blakey (1):
netfilter: ctnetlink: Support offloaded conntrack entry deletion
Qingfang DENG (1):
net: page_pool: use in_softirq() instead
Ruihan Li (1):
bluetooth: Add cmd validity checks at the start of hci_sock_ioctl()
Shay Drory (1):
net/mlx5: E-switch, Devcom, sync devcom events and devcom comp register
Sudeep Holla (1):
firmware: arm_ffa: Fix usage of partition info get count flag
Tian Lan (1):
blk-mq: fix race condition in active queue accounting
Wyes Karny (1):
cpufreq: amd-pstate: Update policy->cur in amd_pstate_adjust_perf()
Yan Zhao (1):
vfio/type1: check pfn valid before converting to struct page
Yanteng Si (1):
tools headers UAPI: Sync the linux/in.h with the kernel sources
Yunsheng Lin (1):
page_pool: fix inconsistency for page_pool_ring_[un]lock()
Zhu Yanjun (1):
RDMA/rxe: Fix the error "trying to register non-static key in rxe_cleanup_task"
Greg Kroah-Hartman
maintainerMakefile +1 -1
@@ -1,7 +1,7 @@ # SPDX-License-Identifier: GPL-2.0 VERSION = 6 PATCHLEVEL = 1 -SUBLEVEL = 31 +SUBLEVEL = 32 EXTRAVERSION = NAME = Curry Ramen
block/blk-map.c +1 -1
@@ -246,7 +246,7 @@ static struct bio *blk_rq_map_bio_alloc(struct request *rq, {struct bio *bio; -if (rq->cmd_flags &REQ_POLLED ) { +if (rq->cmd_flags &REQ_POLLED && (nr_vecs <=BIO_INLINE_VECS )) {blk_opf_t opf = rq->cmd_flags |REQ_ALLOC_CACHE ; bio = bio_alloc_bioset(NULL, nr_vecs, opf, gfp_mask,
block/blk-mq-tag.c +8 -4
@@ -41,16 +41,20 @@ void __blk_mq_tag_busy(struct blk_mq_hw_ctx *hctx) {unsigned int users; +/* +* calling test_bit() prior to test_and_set_bit() is intentional, +* it avoids dirtying the cacheline if the queue is already active. +*/ if (blk_mq_is_shared_tags (hctx->flags)) {struct request_queue *q = hctx->queue; -if (test_bit (QUEUE_FLAG_HCTX_ACTIVE , &q->queue_flags)) +if (test_bit (QUEUE_FLAG_HCTX_ACTIVE , &q->queue_flags) || +test_and_set_bit (QUEUE_FLAG_HCTX_ACTIVE , &q->queue_flags))return ; -set_bit (QUEUE_FLAG_HCTX_ACTIVE , &q->queue_flags); }else { -if (test_bit (BLK_MQ_S_TAG_ACTIVE , &hctx->state)) +if (test_bit (BLK_MQ_S_TAG_ACTIVE , &hctx->state) || +test_and_set_bit (BLK_MQ_S_TAG_ACTIVE , &hctx->state))return ; -set_bit (BLK_MQ_S_TAG_ACTIVE , &hctx->state); } users =atomic_inc_return (&hctx->tags->active_queues);
drivers/cpufreq/amd-pstate.c +37 -8
90 lines not on this page · raw message
drivers/firmware/arm_ffa/driver.c +2 -1
@@ -274,7 +274,8 @@ __ffa_partition_info_get(u32 uuid0, u32 uuid1, u32 uuid2, u32 uuid3,int idx, count, flags =0 , sz, buf_sz;ffa_value_t partition_info; -if (!buffer || !num_partitions)/* Just get the count for now */ +if (drv_info->version >FFA_VERSION_1_0 && + (!buffer || !num_partitions))/* Just get the count for now */ flags =PARTITION_INFO_GET_RETURN_COUNT_ONLY ;mutex_lock (&drv_info->rx_lock);
drivers/gpio/Kconfig +1 -1
@@ -882,7 +882,7 @@ config GPIO_F7188X help This option enables support for GPIOs found on Fintek Super-I/O chips F71869, F71869A, F71882FG, F71889F and F81866. - As well as Nuvoton Super-I/O chip NCT6116D. + As well as Nuvoton Super-I/O chip NCT6126D. To compile this driver as a module, choose M here: the module will be called f7188x-gpio.
drivers/gpio/gpio-f7188x.c +14 -14
@@ -48,7 +48,7 @@/* * Nuvoton devices. */ -#define SIO_NCT6116D_ID 0xD283/* NCT6116D chipset ID */ +#define SIO_NCT6126D_ID 0xD283/* NCT6126D chipset ID */ #define SIO_LD_GPIO_NUVOTON 0x07/* GPIO logical device */
@@ -62,7 +62,7 @@ enum chips { f81866, f81804, f81865, - nct6116d, + nct6126d, }; static const char * const f7188x_names[] = {
@@ -74,7 +74,7 @@ static const char * const f7188x_names[] = {"f81866" ,"f81804" ,"f81865" , - "nct6116d", + "nct6126d", }; struct f7188x_sio {
@@ -187,8 +187,8 @@ static int f7188x_gpio_set_config(struct gpio_chip *chip, unsigned offset,/* Output mode register (0:open drain 1:push-pull). */ #define f7188x_gpio_out_mode (base) ((base) + 3) -#define f7188x_gpio_dir_invert (type) ((type) == nct6116d) -#define f7188x_gpio_data_single (type) ((type) == nct6116d) +#define f7188x_gpio_dir_invert (type) ((type) == nct6126d) +#define f7188x_gpio_data_single (type) ((type) == nct6126d)static struct f7188x_gpio_bank f71869_gpio_bank[] = {F7188X_GPIO_BANK (0 ,6 ,0xF0 ,DRVNAME "-0" ),
@@ -274,7 +274,7 @@ static struct f7188x_gpio_bank f81865_gpio_bank[] = { F7188X_GPIO_BANK(60, 5, 0x90, DRVNAME "-6"), }; -static struct f7188x_gpio_bank nct6116d_gpio_bank[] = { +static struct f7188x_gpio_bank nct6126d_gpio_bank[] = {F7188X_GPIO_BANK (0 ,8 ,0xE0 ,DRVNAME "-0" ),F7188X_GPIO_BANK (10 ,8 ,0xE4 ,DRVNAME "-1" ),F7188X_GPIO_BANK (20 ,8 ,0xE8 ,DRVNAME "-2" ),
@@ -282,7 +282,7 @@ static struct f7188x_gpio_bank nct6116d_gpio_bank[] = {F7188X_GPIO_BANK (40 ,8 ,0xF0 ,DRVNAME "-4" ),F7188X_GPIO_BANK (50 ,8 ,0xF4 ,DRVNAME "-5" ),F7188X_GPIO_BANK (60 ,8 ,0xF8 ,DRVNAME "-6" ), - F7188X_GPIO_BANK(70, 1, 0xFC, DRVNAME "-7"), + F7188X_GPIO_BANK(70, 8, 0xFC, DRVNAME "-7"), };static int f7188x_gpio_get_direction (struct gpio_chip *chip,unsigned offset)
@@ -490,9 +490,9 @@ static int f7188x_gpio_probe(struct platform_device *pdev) data->nr_bank =ARRAY_SIZE (f81865_gpio_bank); data->bank = f81865_gpio_bank;break ; -case nct6116d: - data->nr_bank =ARRAY_SIZE (nct6116d_gpio_bank); - data->bank = nct6116d_gpio_bank; +case nct6126d: + data->nr_bank =ARRAY_SIZE (nct6126d_gpio_bank); + data->bank = nct6126d_gpio_bank;break ;default :return -ENODEV ;
@@ -559,9 +559,9 @@ static int __init f7188x_find(int addr, struct f7188x_sio *sio)case SIO_F81865_ID : sio->type = f81865;break ; -case SIO_NCT6116D_ID : +case SIO_NCT6126D_ID : sio->device =SIO_LD_GPIO_NUVOTON ; - sio->type = nct6116d; + sio->type = nct6126d;break ;default :pr_info ("Unsupported Fintek device 0x%04x\n" , devid);
@@ -569,7 +569,7 @@ static int __init f7188x_find(int addr, struct f7188x_sio *sio) }/* double check manufacturer where possible */ -if (sio->type != nct6116d) { +if (sio->type != nct6126d) { manid =superio_inw (addr,SIO_FINTEK_MANID );if (manid !=SIO_FINTEK_ID ) {pr_debug ("Not a Fintek device at 0x%08x\n" , addr);
@@ -581,7 +581,7 @@ static int __init f7188x_find(int addr, struct f7188x_sio *sio) err =0 ;pr_info ("Found %s at %#x\n" , f7188x_names[sio->type], (unsigned int )addr); -if (sio->type != nct6116d) +if (sio->type != nct6126d)pr_info (" revision %d\n" ,superio_inb (addr,SIO_FINTEK_DEVREV )); err:
drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c +3 -0
@@ -1083,6 +1083,9 @@ bool amdgpu_acpi_is_s0ix_active(struct amdgpu_device *adev) (pm_suspend_target_state != PM_SUSPEND_TO_IDLE))return false; +if (adev->asic_type <CHIP_RAVEN ) +return false; +/* * If ACPI_FADT_LOW_POWER_S0 is not set in the FADT, it is generally * risky to do any special firmware-related preparations for entering
drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c +6 -1
@@ -2402,8 +2402,10 @@ static int amdgpu_pmops_suspend(struct device *dev)if (amdgpu_acpi_is_s0ix_active (adev)) adev->in_s0ix = true; -else +else if (amdgpu_acpi_is_s3_active (adev)) adev->in_s3 = true; +if (!adev->in_s0ix && !adev->in_s3) +return 0 ;return amdgpu_device_suspend (drm_dev, true); }
@@ -2424,6 +2426,9 @@ static int amdgpu_pmops_resume(struct device *dev)struct amdgpu_device *adev =drm_to_adev (drm_dev);int r; +if (!adev->in_s0ix && !adev->in_s3) +return 0 ; +/* Avoids registers access if device is physically gone */ if (!pci_device_is_present (adev->pdev)) adev->no_hw_access = true;
drivers/infiniband/sw/rxe/rxe_qp.c +5 -2
@@ -792,8 +792,11 @@ static void rxe_qp_do_cleanup(struct work_struct *work)del_timer_sync (&qp->rnr_nak_timer); } -rxe_cleanup_task (&qp->req.task); -rxe_cleanup_task (&qp->comp.task); +if (qp->req.task.func) +rxe_cleanup_task (&qp->req.task); + +if (qp->comp.task.func) +rxe_cleanup_task (&qp->comp.task);/* flush out any receive wr's or pending requests */ if (qp->req.task.func)
drivers/net/ethernet/marvell/octeontx2/af/cgx.c +8 -0
@@ -1225,6 +1225,14 @@ static inline void link_status_user_format(u64 lstat, linfo->an =FIELD_GET (RESP_LINKSTAT_AN , lstat); linfo->fec =FIELD_GET (RESP_LINKSTAT_FEC , lstat); linfo->lmac_type_id =cgx_get_lmac_type (cgx, lmac_id); + +if (linfo->lmac_type_id >=LMAC_MODE_MAX ) { +dev_err (&cgx->pdev->dev,"Unknown lmac_type_id %d reported by firmware on cgx port%d:%d" , + linfo->lmac_type_id, cgx->cgx_id, lmac_id); +strncpy (linfo->lmac_type,"Unknown" ,LMACTYPE_STR_LEN -1 ); +return ; + } + lmac_string = cgx_lmactype_string[linfo->lmac_type_id];strncpy (linfo->lmac_type, lmac_string,LMACTYPE_STR_LEN -1 ); }
drivers/net/ethernet/mellanox/mlx5/core/eswitch.h +1 -0
@@ -340,6 +340,7 @@ struct mlx5_eswitch { } params;struct blocking_notifier_head n_head;struct dentry *dbgfs; +bool paired[MLX5_MAX_PORTS ]; };void esw_offloads_disable (struct mlx5_eswitch *esw);
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c +8 -1
@@ -2827,6 +2827,9 @@ static int mlx5_esw_offloads_devcom_event(int event, mlx5_eswitch_vport_match_metadata_enabled(peer_esw)) break; +if (esw->paired[mlx5_get_dev_index (peer_esw->dev)]) +break ; + err =mlx5_esw_offloads_set_ns_peer (esw, peer_esw, true);if (err) goto err_out;
@@ -2838,14 +2841,18 @@ static int mlx5_esw_offloads_devcom_event(int event,if (err) goto err_pair; + esw->paired[mlx5_get_dev_index (peer_esw->dev)] = true; + peer_esw->paired[mlx5_get_dev_index (esw->dev)] = true;mlx5_devcom_set_paired (devcom,MLX5_DEVCOM_ESW_OFFLOADS , true);break ;case ESW_OFFLOADS_DEVCOM_UNPAIR : -if (!mlx5_devcom_is_paired (devcom,MLX5_DEVCOM_ESW_OFFLOADS )) +if (!esw->paired[mlx5_get_dev_index (peer_esw->dev)])break ;mlx5_devcom_set_paired (devcom,MLX5_DEVCOM_ESW_OFFLOADS , false); + esw->paired[mlx5_get_dev_index (peer_esw->dev)] = false; + peer_esw->paired[mlx5_get_dev_index (esw->dev)] = false;mlx5_esw_offloads_unpair (peer_esw);mlx5_esw_offloads_unpair (esw);mlx5_esw_offloads_set_ns_peer (esw, peer_esw, false);
drivers/net/ethernet/mellanox/mlxsw/core_thermal.c +161 -48
334 lines not on this page · raw message
drivers/net/phy/mscc/mscc.h +1 -0
@@ -179,6 +179,7 @@ enum rgmii_clock_delay {#define VSC8502_RGMII_CNTL 20#define VSC8502_RGMII_RX_DELAY_MASK 0x0070#define VSC8502_RGMII_TX_DELAY_MASK 0x0007 +#define VSC8502_RGMII_RX_CLK_DISABLE 0x0800#define MSCC_PHY_WOL_LOWER_MAC_ADDR 21#define MSCC_PHY_WOL_MID_MAC_ADDR 22
drivers/net/phy/mscc/mscc_main.c +28 -26
84 lines not on this page · raw message
drivers/net/wireless/intel/iwlwifi/fw/api/d3.h +35 -2
@@ -767,7 +767,7 @@ struct iwl_wowlan_status_v12 { } __packed;/* WOWLAN_STATUSES_RSP_API_S_VER_12 */ /** -* struct iwl_wowlan_info_notif - WoWLAN information notification +* struct iwl_wowlan_info_notif_v1 - WoWLAN information notification * @gtk: GTK data * @igtk: IGTK data * @replay_ctr: GTK rekey replay counter
@@ -785,7 +785,7 @@ struct iwl_wowlan_status_v12 {* @station_id: station id * @reserved2: reserved */ -struct iwl_wowlan_info_notif { +struct iwl_wowlan_info_notif_v1 {struct iwl_wowlan_gtk_status_v3 gtk[WOWLAN_GTK_KEYS_NUM ];struct iwl_wowlan_igtk_status igtk[WOWLAN_IGTK_KEYS_NUM ];__le64 replay_ctr;
@@ -803,6 +803,39 @@ struct iwl_wowlan_info_notif {u8 reserved2[2 ]; } __packed;/* WOWLAN_INFO_NTFY_API_S_VER_1 */ +/** +* struct iwl_wowlan_info_notif - WoWLAN information notification +* @gtk: GTK data +* @igtk: IGTK data +* @replay_ctr: GTK rekey replay counter +* @pattern_number: number of the matched patterns +* @reserved1: reserved +* @qos_seq_ctr: QoS sequence counters to use next +* @wakeup_reasons: wakeup reasons, see &enum iwl_wowlan_wakeup_reason +* @num_of_gtk_rekeys: number of GTK rekeys +* @transmitted_ndps: number of transmitted neighbor discovery packets +* @received_beacons: number of received beacons +* @tid_tear_down: bit mask of tids whose BA sessions were closed +* in suspend state +* @station_id: station id +* @reserved2: reserved +*/ +struct iwl_wowlan_info_notif { +struct iwl_wowlan_gtk_status_v3 gtk[WOWLAN_GTK_KEYS_NUM ]; +struct iwl_wowlan_igtk_status igtk[WOWLAN_IGTK_KEYS_NUM ]; +__le64 replay_ctr; +__le16 pattern_number; +__le16 reserved1; +__le16 qos_seq_ctr[8 ]; +__le32 wakeup_reasons; +__le32 num_of_gtk_rekeys; +__le32 transmitted_ndps; +__le32 received_beacons; +u8 tid_tear_down; +u8 station_id; +u8 reserved2[2 ]; +} __packed;/* WOWLAN_INFO_NTFY_API_S_VER_2 */ +/** * struct iwl_wowlan_wake_pkt_notif - WoWLAN wake packet notification * @wake_packet_length: wakeup packet length
drivers/net/wireless/intel/iwlwifi/mvm/d3.c +34 -1
@@ -2011,6 +2011,12 @@ static void iwl_mvm_parse_wowlan_info_notif(struct iwl_mvm *mvm, {u32 i; +if (!data) { +IWL_ERR (mvm,"iwl_wowlan_info_notif data is NULL\n" ); + status =NULL ; +return ; + } +if (len <sizeof (*data)) {IWL_ERR (mvm,"Invalid WoWLAN info notification!\n" ); status =NULL ;
@@ -2698,10 +2704,15 @@ static bool iwl_mvm_wait_d3_notif(struct iwl_notif_wait_data *notif_wait,struct iwl_d3_data *d3_data = data;u32 len;int ret; +int wowlan_info_ver =iwl_fw_lookup_notif_ver (mvm->fw, +PROT_OFFLOAD_GROUP , +WOWLAN_INFO_NOTIFICATION , +IWL_FW_CMD_VER_UNKNOWN ); +switch (WIDE_ID (pkt->hdr.group_id, pkt->hdr.cmd)) {case WIDE_ID (PROT_OFFLOAD_GROUP ,WOWLAN_INFO_NOTIFICATION ): { -struct iwl_wowlan_info_notif *notif = (void *)pkt->data; +struct iwl_wowlan_info_notif *notif;if (d3_data->notif_received &IWL_D3_NOTIF_WOWLAN_INFO ) {/* We might get two notifications due to dual bss */
@@ -2710,10 +2721,32 @@ static bool iwl_mvm_wait_d3_notif(struct iwl_notif_wait_data *notif_wait,break ; } +if (wowlan_info_ver <2 ) { +struct iwl_wowlan_info_notif_v1 *notif_v1 = (void *)pkt->data; + + notif =kmemdup (notif_v1, + offsetofend(struct iwl_wowlan_info_notif, + received_beacons), +GFP_ATOMIC ); + +if (!notif) +return false; + + notif->tid_tear_down = notif_v1->tid_tear_down; + notif->station_id = notif_v1->station_id; + + }else { + notif = (void *)pkt->data; + } + d3_data->notif_received |=IWL_D3_NOTIF_WOWLAN_INFO ; len =iwl_rx_packet_payload_len (pkt);iwl_mvm_parse_wowlan_info_notif (mvm, notif, d3_data->status, len); + +if (wowlan_info_ver <2 ) +kfree (notif); +if (d3_data->status && d3_data->status->wakeup_reasons &IWL_WOWLAN_WAKEUP_REASON_HAS_WAKEUP_PKT )/* We are supposed to get also wake packet notif */
drivers/net/wireless/realtek/rtw89/rtw8852c.c +5 -4
@@ -1484,18 +1484,19 @@ static void rtw8852c_5m_mask(struct rtw89_dev *rtwdev,const struct rtw89_chan *chan, enum rtw89_phy_idx phy_idx) { - u8 pri_ch = chan->primary_channel; + u8 pri_ch = chan->pri_ch_idx;bool mask_5m_low;bool mask_5m_en;switch (chan->band_width) {case RTW89_CHANNEL_WIDTH_40 : mask_5m_en = true; - mask_5m_low = pri_ch ==2 ; + mask_5m_low = pri_ch ==RTW89_SC_20_LOWER ;break ;case RTW89_CHANNEL_WIDTH_80 : - mask_5m_en = ((pri_ch ==3 ) || (pri_ch ==4 )); - mask_5m_low = pri_ch ==4 ; + mask_5m_en = pri_ch ==RTW89_SC_20_UPMOST || + pri_ch ==RTW89_SC_20_LOWEST ; + mask_5m_low = pri_ch ==RTW89_SC_20_LOWEST ;break ;default : mask_5m_en = false;
drivers/platform/x86/amd/pmf/core.c +25 -7
@@ -245,24 +245,29 @@ static const struct pci_device_id pmf_pci_ids[] = { { } }; -int amd_pmf_init_metrics_table (struct amd_pmf_dev *dev) +static void amd_pmf_set_dram_addr (struct amd_pmf_dev *dev) {u64 phys_addr;u32 hi, low; -INIT_DELAYED_WORK (&dev->work_buffer, amd_pmf_get_metrics); + phys_addr =virt_to_phys (dev->buf); + hi = phys_addr >>32 ; + low = phys_addr &GENMASK (31 ,0 ); + +amd_pmf_send_cmd (dev,SET_DRAM_ADDR_HIGH ,0 , hi,NULL ); +amd_pmf_send_cmd (dev,SET_DRAM_ADDR_LOW ,0 , low,NULL ); +} +int amd_pmf_init_metrics_table (struct amd_pmf_dev *dev) +{/* Get Metrics Table Address */ dev->buf =kzalloc (sizeof (dev->m_table),GFP_KERNEL );if (!dev->buf)return -ENOMEM ; - phys_addr =virt_to_phys (dev->buf); - hi = phys_addr >>32 ; - low = phys_addr &GENMASK (31 ,0 ); +INIT_DELAYED_WORK (&dev->work_buffer, amd_pmf_get_metrics); -amd_pmf_send_cmd (dev,SET_DRAM_ADDR_HIGH ,0 , hi,NULL ); -amd_pmf_send_cmd (dev,SET_DRAM_ADDR_LOW ,0 , low,NULL ); +amd_pmf_set_dram_addr (dev);/* * Start collecting the metrics data after a small delay
@@ -273,6 +278,18 @@ int amd_pmf_init_metrics_table(struct amd_pmf_dev *dev)return 0 ; } +static int amd_pmf_resume_handler (struct device *dev) +{ +struct amd_pmf_dev *pdev =dev_get_drvdata (dev); + +if (pdev->buf) +amd_pmf_set_dram_addr (pdev); + +return 0 ; +} + +static DEFINE_SIMPLE_DEV_PM_OPS(amd_pmf_pm, NULL, amd_pmf_resume_handler); +static void amd_pmf_init_features (struct amd_pmf_dev *dev) {int ret;
@@ -414,6 +431,7 @@ static struct platform_driver amd_pmf_driver = { .name = "amd-pmf", .acpi_match_table = amd_pmf_acpi_ids, .dev_groups = amd_pmf_driver_groups, + .pm = pm_sleep_ptr(&amd_pmf_pm), }, .probe = amd_pmf_probe, .remove = amd_pmf_remove,
drivers/vfio/vfio_iommu_type1.c +5 -0
@@ -936,6 +936,11 @@ static int vfio_iommu_type1_pin_pages(void *iommu_data,if (ret) goto pin_unwind; +if (!pfn_valid (phys_pfn)) { + ret = -EINVAL ; + goto pin_unwind; + } + ret =vfio_add_to_pfn_list (dma, iova, phys_pfn);if (ret) {if (put_pfn (phys_pfn, dma->prot) && do_accounting)
include/linux/skbuff.h +10 -0
@@ -1567,6 +1567,16 @@ static inline void skb_copy_hash(struct sk_buff *to, const struct sk_buff *from) to->l4_hash = from->l4_hash; }; +static inline int skb_cmp_decrypted (const struct sk_buff *skb1, +const struct sk_buff *skb2) +{ +#ifdef CONFIG_TLS_DEVICE +return skb2->decrypted - skb1->decrypted; +#else +return 0 ; +#endif +} +static inline void skb_copy_decrypted (struct sk_buff *to,const struct sk_buff *from) {
include/linux/skmsg.h +1 -2
@@ -71,7 +71,6 @@ struct sk_psock_link { };struct sk_psock_work_state { -struct sk_buff *skb;u32 len;u32 off; };
@@ -105,7 +104,7 @@ struct sk_psock {struct proto *sk_proto;struct mutex work_mutex;struct sk_psock_work_state work_state; -struct work_struct work; +struct delayed_work work;struct rcu_work rwork; };
include/net/inet_sock.h +4 -0
@@ -249,6 +249,10 @@ struct inet_sock {__be32 mc_addr;struct ip_mc_socklist __rcu *mc_list;struct inet_cork_full cork; +struct { +__u16 lo; +__u16 hi; + } local_port_range; };#define IPCORK_OPT 1/* ip-options has been held in ipcork.opt */
include/net/ip.h +4 -1
@@ -76,6 +76,7 @@ struct ipcm_cookie {__be32 addr;int oif;struct ip_options_rcu *opt; +__u8 protocol;__u8 ttl;__s16 tos;char priority;
@@ -96,6 +97,7 @@ static inline void ipcm_init_sk(struct ipcm_cookie *ipcm, ipcm->sockc.tsflags = inet->sk.sk_tsflags; ipcm->oif =READ_ONCE (inet->sk.sk_bound_dev_if); ipcm->addr = inet->inet_saddr; + ipcm->protocol = inet->inet_num; }#define IPCB (skb) ((struct inet_skb_parm*)((skb)->cb))
@@ -340,7 +342,8 @@ static inline u64 snmp_fold_field64(void __percpu *mib, int offt, size_t syncp_o } \ } -void inet_get_local_port_range (struct net *net,int *low,int *high); +void inet_get_local_port_range (const struct net *net,int *low,int *high); +void inet_sk_get_local_port_range (const struct sock *sk,int *low,int *high);#ifdef CONFIG_SYSCTL static inline bool inet_is_local_reserved_port (struct net *net,unsigned short port)
include/net/page_pool.h +0 -18
@@ -383,22 +383,4 @@ static inline void page_pool_nid_changed(struct page_pool *pool, int new_nid) page_pool_update_nid(pool, new_nid); } -static inline void page_pool_ring_lock(struct page_pool *pool) - __acquires(&pool->ring.producer_lock) -{ -if (in_serving_softirq ()) -spin_lock (&pool->ring.producer_lock); -else -spin_lock_bh (&pool->ring.producer_lock); -} - -static inline void page_pool_ring_unlock (struct page_pool *pool) - __releases(&pool->ring.producer_lock) -{ -if (in_serving_softirq ()) -spin_unlock (&pool->ring.producer_lock); -else -spin_unlock_bh (&pool->ring.producer_lock); -} -#endif /* _NET_PAGE_POOL_H */
include/net/tcp.h +10 -0
@@ -1467,6 +1467,8 @@ static inline void tcp_adjust_rcv_ssthresh(struct sock *sk) }void tcp_cleanup_rbuf (struct sock *sk,int copied); +void __tcp_cleanup_rbuf (struct sock *sk,int copied); +/* We provision sk_rcvbuf around 200% of sk_rcvlowat. * If 87.5 % (7/8) of the space has been consumed, we want to override
@@ -2291,6 +2293,14 @@ int tcp_bpf_update_proto(struct sock *sk, struct sk_psock *psock, bool restore);void tcp_bpf_clone (const struct sock *sk,struct sock *newsk);#endif /* CONFIG_BPF_SYSCALL */ +#ifdef CONFIG_INET +void tcp_eat_skb (struct sock *sk,struct sk_buff *skb); +#else +static inline void tcp_eat_skb (struct sock *sk,struct sk_buff *skb) +{ +} +#endif +int tcp_bpf_sendmsg_redir (struct sock *sk,bool ingress,struct sk_msg *msg,u32 bytes,int flags);#endif /* CONFIG_NET_SOCK_MSG */
include/net/tls.h +1 -0
@@ -124,6 +124,7 @@ struct tls_strparser { u32 mark : 8; u32 stopped : 1; u32 copy_mode : 1; + u32 mixed_decrypted : 1; u32 msg_ready : 1;struct strp_msg stm;
include/uapi/linux/in.h +2 -0
@@ -162,6 +162,8 @@ struct in_addr {#define MCAST_MSFILTER 48#define IP_MULTICAST_ALL 49#define IP_UNICAST_IF 50 +#define IP_LOCAL_PORT_RANGE 51 +#define IP_PROTOCOL 52#define MCAST_EXCLUDE 0#define MCAST_INCLUDE 1
net/bluetooth/hci_sock.c +28 -0
@@ -987,6 +987,34 @@ static int hci_sock_ioctl(struct socket *sock, unsigned int cmd,BT_DBG ("cmd %x arg %lx" , cmd, arg); +/* Make sure the cmd is valid before doing anything */ +switch (cmd) { +case HCIGETDEVLIST : +case HCIGETDEVINFO : +case HCIGETCONNLIST : +case HCIDEVUP : +case HCIDEVDOWN : +case HCIDEVRESET : +case HCIDEVRESTAT : +case HCISETSCAN : +case HCISETAUTH : +case HCISETENCRYPT : +case HCISETPTYPE : +case HCISETLINKPOL : +case HCISETLINKMODE : +case HCISETACLMTU : +case HCISETSCOMTU : +case HCIINQUIRY : +case HCISETRAW : +case HCIGETCONNINFO : +case HCIGETAUTHINFO : +case HCIBLOCKADDR : +case HCIUNBLOCKADDR : +break ; +default : +return -ENOIOCTLCMD ; + } +lock_sock (sk);if (hci_pi (sk)->channel !=HCI_CHANNEL_RAW ) {
net/core/page_pool.c +29 -5
@@ -133,6 +133,29 @@ EXPORT_SYMBOL(page_pool_ethtool_stats_get);#define recycle_stat_add (pool, __stat, val)#endif +static bool page_pool_producer_lock (struct page_pool *pool) + __acquires(&pool->ring.producer_lock) +{ +bool in_softirq =in_softirq (); + +if (in_softirq) +spin_lock (&pool->ring.producer_lock); +else +spin_lock_bh (&pool->ring.producer_lock); + +return in_softirq; +} + +static void page_pool_producer_unlock (struct page_pool *pool, +bool in_softirq) + __releases(&pool->ring.producer_lock) +{ +if (in_softirq) +spin_unlock (&pool->ring.producer_lock); +else +spin_unlock_bh (&pool->ring.producer_lock); +} +static int page_pool_init (struct page_pool *pool,const struct page_pool_params *params) {
@@ -511,8 +534,8 @@ static void page_pool_return_page(struct page_pool *pool, struct page *page)static bool page_pool_recycle_in_ring (struct page_pool *pool,struct page *page) {int ret; -/* BH protection not needed if current is serving softirq */ -if (in_serving_softirq ()) +/* BH protection not needed if current is softirq */ +if (in_softirq ()) ret =ptr_ring_produce (&pool->ring, page);else ret =ptr_ring_produce_bh (&pool->ring, page);
@@ -570,7 +593,7 @@ __page_pool_put_page(struct page_pool *pool, struct page *page,page_pool_dma_sync_for_device (pool, page, dma_sync_size); -if (allow_direct &&in_serving_softirq () && +if (allow_direct &&in_softirq () &&page_pool_recycle_in_cache (page, pool))return NULL ;
@@ -615,6 +638,7 @@ void page_pool_put_page_bulk(struct page_pool *pool, void **data, int count) {int i, bulk_len =0 ; +bool in_softirq;for (i =0 ; i < count; i++) {struct page *page =virt_to_head_page (data[i]);
@@ -633,7 +657,7 @@ void page_pool_put_page_bulk(struct page_pool *pool, void **data,return ;/* Bulk producer into ptr_ring page_pool cache */ -page_pool_ring_lock (pool); + in_softirq =page_pool_producer_lock (pool);for (i =0 ; i < bulk_len; i++) {if (__ptr_ring_produce (&pool->ring, data[i])) {/* ring full */
@@ -642,7 +666,7 @@ void page_pool_put_page_bulk(struct page_pool *pool, void **data, } }recycle_stat_add (pool, ring, i); -page_pool_ring_unlock (pool); +page_pool_producer_unlock (pool, in_softirq);/* Hopefully all pages was return into ptr_ring */ if (likely (i == bulk_len))
net/core/skmsg.c +38 -43
225 lines not on this page · raw message
net/core/sock_map.c +2 -1
@@ -1624,9 +1624,10 @@ void sock_map_close(struct sock *sk, long timeout)rcu_read_unlock ();sk_psock_stop (psock);release_sock (sk); -cancel_work_sync (&psock->work); +cancel_delayed_work_sync (&psock->work);sk_psock_put (sk, psock); } +/* Make sure we do not recurse. This is a bug. * Leak the socket instead of crashing on a stack overflow. */
net/ipv4/inet_connection_sock.c +23 -2
@@ -117,7 +117,7 @@ bool inet_rcv_saddr_any(const struct sock *sk)return !sk->sk_rcv_saddr; } -void inet_get_local_port_range (struct net *net,int *low,int *high) +void inet_get_local_port_range (const struct net *net,int *low,int *high) {unsigned int seq;
@@ -130,6 +130,27 @@ void inet_get_local_port_range(struct net *net, int *low, int *high) }EXPORT_SYMBOL (inet_get_local_port_range); +void inet_sk_get_local_port_range (const struct sock *sk,int *low,int *high) +{ +const struct inet_sock *inet =inet_sk (sk); +const struct net *net =sock_net (sk); +int lo, hi, sk_lo, sk_hi; + +inet_get_local_port_range (net, &lo, &hi); + + sk_lo = inet->local_port_range.lo; + sk_hi = inet->local_port_range.hi; + +if (unlikely (lo <= sk_lo && sk_lo <= hi)) + lo = sk_lo; +if (unlikely (lo <= sk_hi && sk_hi <= hi)) + hi = sk_hi; + + *low = lo; + *high = hi; +} +EXPORT_SYMBOL (inet_sk_get_local_port_range); +static bool inet_use_bhash2_on_bind (const struct sock *sk) {#if IS_ENABLED (CONFIG_IPV6 )
@@ -316,7 +337,7 @@ inet_csk_find_open_port(const struct sock *sk, struct inet_bind_bucket **tb_ret, ports_exhausted: attempt_half = (sk->sk_reuse ==SK_CAN_REUSE ) ?1 :0 ; other_half_scan: -inet_get_local_port_range (net, &low, &high); +inet_sk_get_local_port_range (sk, &low, &high); high++;/* [32768, 60999] -> [32768, 61000[ */ if (high - low <4 ) attempt_half =0 ;
net/ipv4/inet_hashtables.c +1 -1
@@ -1022,7 +1022,7 @@ int __inet_hash_connect(struct inet_timewait_death_row *death_row, l3mdev =inet_sk_bound_l3mdev (sk); -inet_get_local_port_range (net, &low, &high); +inet_sk_get_local_port_range (sk, &low, &high); high++;/* [32768, 60999] -> [32768, 61000[ */ remaining = high - low;if (likely (remaining >1 ))
net/ipv4/ip_sockglue.c +29 -1
@@ -317,7 +317,14 @@ int ip_cmsg_send(struct sock *sk, struct msghdr *msg, struct ipcm_cookie *ipc, ipc->tos = val; ipc->priority =rt_tos2priority (ipc->tos);break ; - +case IP_PROTOCOL : +if (cmsg->cmsg_len !=CMSG_LEN (sizeof (int ))) +return -EINVAL ; + val = *(int *)CMSG_DATA (cmsg); +if (val <1 || val >255 ) +return -EINVAL ; + ipc->protocol = val; +break ;default :return -EINVAL ; }
@@ -922,6 +929,7 @@ int do_ip_setsockopt(struct sock *sk, int level, int optname,case IP_CHECKSUM :case IP_RECVFRAGSIZE :case IP_RECVERR_RFC4884 : +case IP_LOCAL_PORT_RANGE :if (optlen >=sizeof (int )) {if (copy_from_sockptr (&val, optval,sizeof (val)))return -EFAULT ;
@@ -1364,6 +1372,20 @@ int do_ip_setsockopt(struct sock *sk, int level, int optname,WRITE_ONCE (inet->min_ttl, val);break ; +case IP_LOCAL_PORT_RANGE : + { +const __u16 lo = val; +const __u16 hi = val >>16 ; + +if (optlen !=sizeof (__u32)) + goto e_inval; +if (lo !=0 && hi !=0 && lo > hi) + goto e_inval; + + inet->local_port_range.lo = lo; + inet->local_port_range.hi = hi; +break ; + }default : err = -ENOPROTOOPT ;break ;
@@ -1742,6 +1764,12 @@ int do_ip_getsockopt(struct sock *sk, int level, int optname,case IP_MINTTL : val = inet->min_ttl;break ; +case IP_LOCAL_PORT_RANGE : + val = inet->local_port_range.hi <<16 | inet->local_port_range.lo; +break ; +case IP_PROTOCOL : + val =inet_sk (sk)->inet_num; +break ;default :sockopt_release_sock (sk);return -ENOPROTOOPT ;
net/ipv4/raw.c +4 -1
@@ -530,6 +530,9 @@ static int raw_sendmsg(struct sock *sk, struct msghdr *msg, size_t len) }ipcm_init_sk (&ipc, inet); +/* Keep backward compat */ +if (hdrincl) + ipc.protocol =IPPROTO_RAW ;if (msg->msg_controllen) { err =ip_cmsg_send (sk, msg, &ipc, false);
@@ -597,7 +600,7 @@ static int raw_sendmsg(struct sock *sk, struct msghdr *msg, size_t len)flowi4_init_output (&fl4, ipc.oif, ipc.sockc.mark, tos,RT_SCOPE_UNIVERSE , - hdrincl ?IPPROTO_RAW : sk->sk_protocol, + hdrincl ? ipc.protocol : sk->sk_protocol,inet_sk_flowi_flags (sk) | (hdrincl ?FLOWI_FLAG_KNOWN_NH :0 ), daddr, saddr,0 ,0 , sk->sk_uid);
net/ipv4/tcp.c +1 -10
@@ -1570,7 +1570,7 @@ static int tcp_peek_sndq(struct sock *sk, struct msghdr *msg, int len)* calculation of whether or not we must ACK for the sake of * a window update. */ -static void __tcp_cleanup_rbuf (struct sock *sk,int copied) +void __tcp_cleanup_rbuf (struct sock *sk,int copied) {struct tcp_sock *tp =tcp_sk (sk);bool time_to_ack = false;
@@ -1772,7 +1772,6 @@ int tcp_read_skb(struct sock *sk, skb_read_actor_t recv_actor)WARN_ON_ONCE (!skb_set_owner_sk_safe (skb, sk)); tcp_flags =TCP_SKB_CB (skb)->tcp_flags; used =recv_actor (sk, skb); -consume_skb (skb);if (used <0 ) {if (!copied) copied = used;
@@ -1786,14 +1785,6 @@ int tcp_read_skb(struct sock *sk, skb_read_actor_t recv_actor)break ; } } -WRITE_ONCE (tp->copied_seq, seq); - -tcp_rcv_space_adjust (sk); - -/* Clean up data we have read: This will do ACK frames. */ -if (copied >0 ) -__tcp_cleanup_rbuf (sk, copied); -return copied; }EXPORT_SYMBOL (tcp_read_skb);
net/ipv4/tcp_bpf.c +78 -1
112 lines not on this page · raw message
net/ipv4/udp.c +3 -6
@@ -243,7 +243,7 @@ int udp_lib_get_port(struct sock *sk, unsigned short snum,int low, high, remaining;unsigned int rand; -inet_get_local_port_range (net, &low, &high); +inet_sk_get_local_port_range (sk, &low, &high); remaining = (high - low) +1 ; rand =get_random_u32 ();
@@ -1806,7 +1806,7 @@ EXPORT_SYMBOL(__skb_recv_udp);int udp_read_skb (struct sock *sk,skb_read_actor_t recv_actor) {struct sk_buff *skb; -int err, copied; +int err; try_again: skb =skb_recv_udp (sk,MSG_DONTWAIT , &err);
@@ -1825,10 +1825,7 @@ int udp_read_skb(struct sock *sk, skb_read_actor_t recv_actor) }WARN_ON_ONCE (!skb_set_owner_sk_safe (skb, sk)); - copied =recv_actor (sk, skb); -kfree_skb (skb); - -return copied; +return recv_actor (sk, skb); }EXPORT_SYMBOL (udp_read_skb);
net/ipv6/raw.c +2 -1
@@ -791,7 +791,8 @@ static int rawv6_sendmsg(struct sock *sk, struct msghdr *msg, size_t len)if (!proto) proto = inet->inet_num; -else if (proto != inet->inet_num) +else if (proto != inet->inet_num && + inet->inet_num !=IPPROTO_RAW )return -EINVAL ;if (proto >255 )
net/netfilter/nf_conntrack_netlink.c +0 -8
@@ -1559,9 +1559,6 @@ static const struct nla_policy ct_nla_policy[CTA_MAX+1] = {static int ctnetlink_flush_iterate (struct nf_conn *ct,void *data) { -if (test_bit (IPS_OFFLOAD_BIT , &ct->status)) -return 0 ; -return ctnetlink_filter_match (ct, data); }
@@ -1631,11 +1628,6 @@ static int ctnetlink_del_conntrack(struct sk_buff *skb, ct =nf_ct_tuplehash_to_ctrack (h); -if (test_bit (IPS_OFFLOAD_BIT , &ct->status)) { -nf_ct_put (ct); -return -EBUSY ; - } -if (cda[CTA_ID ]) {__be32 id =nla_get_be32 (cda[CTA_ID ]);
net/sctp/socket.c +1 -1
@@ -8325,7 +8325,7 @@ static int sctp_get_port_local(struct sock *sk, union sctp_addr *addr)int low, high, remaining, index;unsigned int rover; -inet_get_local_port_range (net, &low, &high); +inet_sk_get_local_port_range (sk, &low, &high); remaining = (high - low) +1 ; rover =prandom_u32_max (remaining) + low;
net/tls/tls.h +5 -0
@@ -165,6 +165,11 @@ static inline bool tls_strp_msg_ready(struct tls_sw_context_rx *ctx)return ctx->strp.msg_ready; } +static inline bool tls_strp_msg_mixed_decrypted (struct tls_sw_context_rx *ctx) +{ +return ctx->strp.mixed_decrypted; +} +#ifdef CONFIG_TLS_DEVICE int tls_device_init (void );void tls_device_cleanup (void );
net/tls/tls_device.c +8 -14
@@ -1007,20 +1007,14 @@ int tls_device_decrypted(struct sock *sk, struct tls_context *tls_ctx)struct tls_sw_context_rx *sw_ctx =tls_sw_ctx_rx (tls_ctx);struct sk_buff *skb =tls_strp_msg (sw_ctx);struct strp_msg *rxm =strp_msg (skb); -int is_decrypted = skb->decrypted; -int is_encrypted = !is_decrypted; -struct sk_buff *skb_iter; -int left; - - left = rxm->full_len - skb->len; -/* Check if all the data is decrypted already */ - skb_iter =skb_shinfo (skb)->frag_list; -while (skb_iter && left >0 ) { - is_decrypted &= skb_iter->decrypted; - is_encrypted &= !skb_iter->decrypted; - - left -= skb_iter->len; - skb_iter = skb_iter->next; +int is_decrypted, is_encrypted; + +if (!tls_strp_msg_mixed_decrypted (sw_ctx)) { + is_decrypted = skb->decrypted; + is_encrypted = !is_decrypted; + }else { + is_decrypted =0 ; + is_encrypted =0 ; } trace_tls_device_decrypted(sk, tcp_sk(sk)->copied_seq - rxm->full_len,
net/tls/tls_strp.c +149 -36
267 lines not on this page · raw message
net/unix/af_unix.c +2 -5
@@ -2552,7 +2552,7 @@ static int unix_read_skb(struct sock *sk, skb_read_actor_t recv_actor) {struct unix_sock *u =unix_sk (sk);struct sk_buff *skb; -int err, copied; +int err;mutex_lock (&u->iolock); skb =skb_recv_datagram (sk,MSG_DONTWAIT , &err);
@@ -2560,10 +2560,7 @@ static int unix_read_skb(struct sock *sk, skb_read_actor_t recv_actor)if (!skb)return err; - copied =recv_actor (sk, skb); -kfree_skb (skb); - -return copied; +return recv_actor (sk, skb); }/*
tools/include/uapi/linux/in.h +1 -0
@@ -162,6 +162,7 @@ struct in_addr {#define MCAST_MSFILTER 48#define IP_MULTICAST_ALL 49#define IP_UNICAST_IF 50 +#define IP_LOCAL_PORT_RANGE 51#define MCAST_EXCLUDE 0#define MCAST_INCLUDE 1
tools/testing/selftests/bpf/Makefile +1 -1
@@ -193,7 +193,7 @@ $(OUTPUT)/urandom_read: urandom_read.c urandom_read_aux.c $(OUTPUT)/liburandom_r $(OUTPUT)/sign-file: ../../../../scripts/sign-file.c $(call msg,SIGN-FILE,,$@) - $(Q)$(CC) $(shell $(HOSTPKG_CONFIG)--cflags libcrypto 2> /dev/null) \ + $(Q)$(CC) $(shell $(HOSTPKG_CONFIG) --cflags libcrypto 2> /dev/null) \ $< -o $@ \ $(shell $(HOSTPKG_CONFIG) --libs libcrypto 2> /dev/null || echo -lcrypto)