Leon Romanovsky
9a624a5f95
RDMA/mlx5: Fix fortify source warning while accessing Eth segment
[ Upstream commit 4d5e86a566 ]
------------[ cut here ]------------
memcpy: detected field-spanning write (size 56) of single field "eseg->inline_hdr.start" at /var/lib/dkms/mlnx-ofed-kernel/5.8/build/drivers/infiniband/hw/mlx5/wr.c:131 (size 2)
WARNING: CPU: 0 PID: 293779 at /var/lib/dkms/mlnx-ofed-kernel/5.8/build/drivers/infiniband/hw/mlx5/wr.c:131 mlx5_ib_post_send+0x191b/0x1a60 [mlx5_ib]
Modules linked in: 8021q garp mrp stp llc rdma_ucm(OE) rdma_cm(OE) iw_cm(OE) ib_ipoib(OE) ib_cm(OE) ib_umad(OE) mlx5_ib(OE) ib_uverbs(OE) ib_core(OE) mlx5_core(OE) pci_hyperv_intf mlxdevm(OE) mlx_compat(OE) tls mlxfw(OE) psample nft_fib_inet nft_fib_ipv4 nft_fib_ipv6 nft_fib nft_reject_inet nf_reject_ipv4 nf_reject_ipv6 nft_reject nft_ct nft_chain_nat nf_nat nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 ip_set nf_tables libcrc32c nfnetlink mst_pciconf(OE) knem(OE) vfio_pci vfio_pci_core vfio_iommu_type1 vfio iommufd irqbypass cuse nfsv3 nfs fscache netfs xfrm_user xfrm_algo ipmi_devintf ipmi_msghandler binfmt_misc crct10dif_pclmul crc32_pclmul polyval_clmulni polyval_generic ghash_clmulni_intel sha512_ssse3 snd_pcsp aesni_intel crypto_simd cryptd snd_pcm snd_timer joydev snd soundcore input_leds serio_raw evbug nfsd auth_rpcgss nfs_acl lockd grace sch_fq_codel sunrpc drm efi_pstore ip_tables x_tables autofs4 psmouse virtio_net net_failover failover floppy
[last unloaded: mlx_compat(OE)]
CPU: 0 PID: 293779 Comm: ssh Tainted: G OE 6.2.0-32-generic #32~22.04.1-Ubuntu
Hardware name: Red Hat KVM, BIOS 0.5.1 01/01/2011
RIP: 0010:mlx5_ib_post_send+0x191b/0x1a60 [mlx5_ib]
Code: 0c 01 00 a8 01 75 25 48 8b 75 a0 b9 02 00 00 00 48 c7 c2 10 5b fd c0 48 c7 c7 80 5b fd c0 c6 05 57 0c 03 00 01 e8 95 4d 93 da <0f> 0b 44 8b 4d b0 4c 8b 45 c8 48 8b 4d c0 e9 49 fb ff ff 41 0f b7
RSP: 0018:ffffb5b48478b570 EFLAGS: 00010046
RAX: 0000000000000000 RBX: 0000000000000001 RCX: 0000000000000000
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: ffffb5b48478b628 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: ffffb5b48478b5e8
R13: ffff963a3c609b5e R14: ffff9639c3fbd800 R15: ffffb5b480475a80
FS: 00007fc03b444c80(0000) GS:ffff963a3dc00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000556f46bdf000 CR3: 0000000006ac6003 CR4: 00000000003706f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
<TASK>
? show_regs+0x72/0x90
? mlx5_ib_post_send+0x191b/0x1a60 [mlx5_ib]
? __warn+0x8d/0x160
? mlx5_ib_post_send+0x191b/0x1a60 [mlx5_ib]
? report_bug+0x1bb/0x1d0
? handle_bug+0x46/0x90
? exc_invalid_op+0x19/0x80
? asm_exc_invalid_op+0x1b/0x20
? mlx5_ib_post_send+0x191b/0x1a60 [mlx5_ib]
mlx5_ib_post_send_nodrain+0xb/0x20 [mlx5_ib]
ipoib_send+0x2ec/0x770 [ib_ipoib]
ipoib_start_xmit+0x5a0/0x770 [ib_ipoib]
dev_hard_start_xmit+0x8e/0x1e0
? validate_xmit_skb_list+0x4d/0x80
sch_direct_xmit+0x116/0x3a0
__dev_xmit_skb+0x1fd/0x580
__dev_queue_xmit+0x284/0x6b0
? _raw_spin_unlock_irq+0xe/0x50
? __flush_work.isra.0+0x20d/0x370
? push_pseudo_header+0x17/0x40 [ib_ipoib]
neigh_connected_output+0xcd/0x110
ip_finish_output2+0x179/0x480
? __smp_call_single_queue+0x61/0xa0
__ip_finish_output+0xc3/0x190
ip_finish_output+0x2e/0xf0
ip_output+0x78/0x110
? __pfx_ip_finish_output+0x10/0x10
ip_local_out+0x64/0x70
__ip_queue_xmit+0x18a/0x460
ip_queue_xmit+0x15/0x30
__tcp_transmit_skb+0x914/0x9c0
tcp_write_xmit+0x334/0x8d0
tcp_push_one+0x3c/0x60
tcp_sendmsg_locked+0x2e1/0xac0
tcp_sendmsg+0x2d/0x50
inet_sendmsg+0x43/0x90
sock_sendmsg+0x68/0x80
sock_write_iter+0x93/0x100
vfs_write+0x326/0x3c0
ksys_write+0xbd/0xf0
? do_syscall_64+0x69/0x90
__x64_sys_write+0x19/0x30
do_syscall_64+0x59/0x90
? do_user_addr_fault+0x1d0/0x640
? exit_to_user_mode_prepare+0x3b/0xd0
? irqentry_exit_to_user_mode+0x9/0x20
? irqentry_exit+0x43/0x50
? exc_page_fault+0x92/0x1b0
entry_SYSCALL_64_after_hwframe+0x72/0xdc
RIP: 0033:0x7fc03ad14a37
Code: 10 00 f7 d8 64 89 02 48 c7 c0 ff ff ff ff eb b7 0f 1f 00 f3 0f 1e fa 64 8b 04 25 18 00 00 00 85 c0 75 10 b8 01 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 51 c3 48 83 ec 28 48 89 54 24 18 48 89 74 24
RSP: 002b:00007ffdf8697fe8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 0000000000008024 RCX: 00007fc03ad14a37
RDX: 0000000000008024 RSI: 0000556f46bd8270 RDI: 0000000000000003
RBP: 0000556f46bb1800 R08: 0000000000007fe3 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000002
R13: 0000556f46bc66b0 R14: 000000000000000a R15: 0000556f46bb2f50
</TASK>
---[ end trace 0000000000000000 ]---
Link: https://lore.kernel.org/r/8228ad34bd1a25047586270f7b1fb4ddcd046282.1706433934.git.leon@kernel.org
Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-03-26 18:19:11 -04:00
..
2023-09-20 09:39:03 +02:00
2023-08-16 09:14:14 -07:00
2023-07-28 09:45:25 +02:00
2024-03-15 10:48:13 -04:00
2023-08-22 14:13:11 -07:00
2023-08-07 20:55:27 +02:00
2023-07-04 19:42:27 +01:00
2023-09-01 09:53:54 -07:00
2024-01-25 15:35:39 -08:00
2023-08-22 16:32:35 +02:00
2024-02-23 09:25:06 +01:00
2023-08-29 17:45:22 -04:00
2023-11-20 11:59:23 +01:00
2023-08-23 08:25:28 +01:00
2024-03-26 18:19:11 -04:00
2023-11-28 17:20:01 +00:00
2024-01-31 16:18:50 -08:00
2024-02-23 09:25:18 +01:00
2023-08-25 07:42:58 +01:00
2023-08-16 10:54:46 -06:00
2023-09-01 08:09:48 -07:00
2023-09-07 16:07:35 -07:00
2023-07-19 23:15:21 +02:00
2023-08-23 08:21:37 +01:00
2023-09-06 22:53:55 +08:00
2023-08-18 13:58:05 +01:00
2023-12-03 07:33:06 +01:00
2023-08-30 19:53:39 -07:00
2024-01-31 16:18:47 -08:00
2023-11-28 17:19:55 +00:00
2023-11-28 17:19:49 +00:00
2023-12-20 17:01:42 +01:00
2023-08-15 12:50:53 +01:00
2023-10-04 16:31:27 +01:00
2023-09-11 15:24:16 -07:00
2023-08-07 14:55:33 +02:00
2023-12-08 08:52:24 +01:00
2023-08-18 10:18:56 -07:00
2023-08-04 17:35:33 +01:00
2023-09-12 13:07:37 +01:00
2024-01-31 16:18:49 -08:00
2023-08-31 01:29:28 +02:00
2024-02-23 09:25:16 +01:00
2023-08-21 13:38:01 -07:00
2024-01-25 15:35:46 -08:00
2024-01-20 11:51:38 +01:00
2023-07-05 16:36:12 -06:00
2023-08-30 17:35:54 +08:00
2024-01-05 15:19:42 +01:00
2023-07-08 09:29:31 -07:00
2024-01-25 15:35:28 -08:00
2023-07-31 14:44:02 -07:00
2024-01-31 16:18:59 -08:00
2024-01-31 16:19:04 -08:00
2024-01-25 15:35:22 -08:00
2023-07-17 07:39:04 +01:00
2023-09-15 12:08:27 -07:00
2023-09-02 11:10:50 -07:00
2023-09-17 10:33:53 -07:00
2024-03-06 14:48:44 +00:00
2023-08-24 16:20:25 -07:00
2023-08-02 16:27:07 +02:00
2023-10-12 07:22:56 -10:00
2024-01-25 15:35:38 -08:00
2023-08-04 18:18:19 -07:00
2023-08-17 16:46:35 -07:00
2024-02-23 09:24:47 +01:00
2024-02-23 09:24:47 +01:00
2023-07-17 16:08:08 -07:00
2023-07-23 11:34:22 +01:00
2023-07-20 13:06:22 +02:00
2023-07-26 16:46:25 +01:00
2023-08-16 09:41:29 -04:00
2023-07-28 09:53:37 +02:00
2024-03-15 10:48:22 -04:00
2023-08-29 20:51:40 +02:00
2023-12-13 18:44:56 +01:00
2023-07-17 15:47:21 -07:00
2023-08-24 16:25:13 -07:00
2023-12-20 17:01:51 +01:00
2024-01-01 12:42:23 +00:00
2024-01-10 17:16:53 +01:00
2023-08-05 08:31:41 +02:00
2024-01-20 11:51:44 +01:00
2023-07-20 17:25:04 -05:00
2023-08-25 16:07:30 -07:00
2023-12-08 08:52:19 +01:00
2023-07-31 17:54:28 +02:00
2023-08-01 18:02:20 +02:00
2024-02-16 19:10:42 +01:00
2023-08-09 17:46:19 +02:00
2023-07-10 14:36:12 +02:00
2023-08-04 15:28:41 +02:00
2023-08-30 13:34:34 -07:00
2023-08-23 14:17:42 -07:00
2023-11-28 17:20:11 +00:00
2023-07-10 13:59:38 -04:00
2024-01-05 15:19:41 +01:00
2023-07-25 00:59:32 +09:00
2023-07-24 04:39:16 +09:00
2023-11-28 17:19:45 +00:00
2023-09-01 00:29:34 +02:00
2023-07-10 14:36:11 +02:00
2024-01-31 16:19:04 -08:00
2023-07-04 11:02:34 -07:00
2023-10-12 18:53:36 +03:00
2023-07-24 10:30:07 +02:00
2024-03-01 13:34:59 +01:00
2023-08-01 23:46:17 +02:00
2023-08-22 05:20:34 -04:00
2023-07-07 16:53:48 -07:00
2023-11-28 17:19:35 +00:00
2023-08-18 10:18:57 -07:00
2023-08-18 10:18:57 -07:00
2023-08-14 11:23:35 +02:00
2023-12-03 07:33:04 +01:00
2023-12-13 18:45:21 +01:00
2024-01-25 15:35:17 -08:00
2024-02-16 19:10:55 +01:00
2023-08-21 14:28:43 -07:00
2023-12-13 18:45:24 +01:00
2023-08-16 23:54:50 +10:00
2023-11-20 11:59:18 +01:00
2023-09-04 11:26:29 -07:00
2023-07-14 13:11:44 +02:00
2023-09-13 10:48:48 +02:00
2023-07-14 08:27:33 +01:00
2023-11-20 11:59:35 +01:00
2024-01-20 11:51:37 +01:00
2023-08-25 08:08:27 +01:00
2023-09-19 16:28:37 +02:00
2023-08-04 11:02:46 +01:00
2024-02-23 09:25:03 +01:00
2023-09-12 17:50:53 +02:00
2023-07-09 22:47:50 +01:00
2023-08-01 13:45:08 +02:00
2023-07-14 15:24:45 +02:00
2023-08-22 01:11:32 +03:00
2023-09-27 16:54:03 +02:00
2024-03-26 18:19:09 -04:00
2024-03-26 18:19:09 -04:00
2023-08-29 20:21:42 -07:00
2023-12-08 08:52:19 +01:00
2023-07-28 13:31:24 -03:00
2023-08-18 10:12:35 -07:00
2023-09-01 08:11:51 +01:00
2024-02-05 20:14:17 +00:00
2023-11-28 17:19:56 +00:00
2023-07-08 10:07:14 +01:00
2024-01-20 11:51:42 +01:00
2023-07-14 13:47:07 -06:00
2023-10-18 12:12:41 -07:00
2023-08-21 13:46:24 -07:00
2023-08-05 08:31:42 +02:00
2023-08-24 16:25:14 -07:00
2024-01-01 12:42:33 +00:00
2023-08-18 10:12:39 -07:00
2023-08-05 08:31:41 +02:00
2023-12-13 18:45:31 +01:00
2023-08-18 10:12:10 -07:00
2023-08-18 10:18:59 -07:00
2023-08-31 13:48:50 -04:00
2023-08-17 09:00:34 +01:00
2023-09-28 21:23:03 +09:00
2023-08-18 10:19:00 -07:00
2023-08-15 14:57:25 -07:00
2023-08-07 13:05:53 -07:00
2024-02-23 09:25:02 +01:00
2023-07-10 13:59:37 -04:00
2023-09-29 17:20:46 -07:00
2023-07-20 12:24:06 +02:00
2023-08-18 10:18:59 -07:00
2024-01-31 16:18:56 -08:00
2023-10-05 09:50:14 +02:00
2023-07-14 08:51:48 +01:00
2024-03-01 13:35:06 +01:00
2023-09-19 13:21:34 -07:00
2023-08-21 13:37:48 -07:00
2023-08-18 10:12:11 -07:00
2023-08-21 13:37:49 -07:00
2024-01-25 15:35:53 -08:00
2023-08-04 12:09:56 +05:30
2023-09-06 20:49:04 -07:00
2024-02-05 20:14:21 +00:00
2023-07-18 12:10:00 -10:00
2023-12-20 17:02:02 +01:00
2023-08-18 10:12:36 -07:00
2023-08-24 16:20:28 -07:00
2023-08-31 12:20:12 -07:00
2023-07-11 14:12:19 -07:00
2023-08-18 10:12:46 -07:00
2023-08-18 10:12:41 -07:00
2024-02-05 20:14:38 +00:00
2023-07-24 12:09:47 -07:00
2023-08-03 13:42:02 -07:00
2023-11-28 17:19:56 +00:00
2023-08-02 19:11:06 -07:00
2023-08-09 15:32:43 -07:00
2023-12-03 07:33:04 +01:00
2024-01-25 15:35:59 -08:00
2024-03-06 14:48:36 +00:00
2023-07-23 11:34:22 +01:00
2023-09-13 11:51:11 -04:00
2023-09-13 11:51:11 -04:00
2023-07-25 00:30:02 -05:00
2023-08-18 10:19:00 -07:00
2023-08-16 14:27:01 -07:00
2023-08-21 11:29:12 -07:00
2023-11-20 11:58:53 +01:00
2023-09-05 05:34:14 -04:00
2023-07-10 09:12:31 -07:00
2023-08-23 16:34:02 +02:00
2023-12-20 17:02:06 +01:00
2023-08-04 11:36:33 -06:00
2023-09-05 13:02:13 -05:00
2023-09-09 08:18:16 -05:00
2023-08-21 13:37:31 -07:00
2023-08-18 10:12:25 -07:00
2023-08-24 16:20:18 -07:00
2023-08-21 14:28:45 -07:00
2023-12-03 07:33:03 +01:00
2023-08-21 13:07:20 -07:00
2024-02-05 20:14:27 +00:00
2024-01-25 15:35:50 -08:00
2023-08-04 16:21:30 +02:00
2023-08-25 08:06:53 -07:00
2023-07-18 10:07:47 +02:00
2023-11-28 17:19:54 +00:00
2023-09-29 17:20:46 -07:00
2023-08-14 08:12:53 +01:00
2023-08-02 19:11:06 -07:00
2023-09-06 07:46:49 +01:00
2023-08-21 13:37:59 -07:00
2024-01-31 16:19:09 -08:00
2023-07-18 15:19:00 +01:00
2023-07-24 13:27:12 +05:30
2023-08-22 21:31:57 +02:00
2023-07-24 09:51:51 +02:00
2023-08-22 22:03:43 +02:00
2023-11-20 11:58:57 +01:00
2023-11-08 11:56:20 +01:00
2023-11-28 17:19:48 +00:00
2023-08-12 09:18:47 -07:00
2023-08-02 15:01:51 -07:00
2023-07-10 09:52:30 +02:00
2023-07-10 09:52:30 +02:00
2023-07-20 22:14:21 +12:00
2023-08-09 15:59:21 -07:00
2024-02-23 09:24:53 +01:00
2023-11-28 17:19:48 +00:00
2023-10-06 11:01:23 +02:00
2023-10-06 11:01:23 +02:00
2023-08-24 21:34:28 -04:00
2023-08-18 10:19:00 -07:00
2023-07-19 09:43:58 +02:00
2023-08-16 14:27:41 -07:00
2023-07-14 15:01:49 -07:00
2023-07-19 13:19:41 -07:00
2024-01-25 15:35:49 -08:00
2023-07-12 23:45:23 +02:00
2023-07-12 23:45:23 +02:00
2023-07-18 15:05:10 +01:00
2023-07-15 12:56:48 -07:00
2023-09-19 13:21:34 -07:00
2023-12-13 18:45:19 +01:00
2024-01-31 16:18:56 -08:00
2023-07-15 11:34:49 -07:00
2023-08-27 23:50:22 +02:00
2023-08-30 10:08:38 +02:00
2023-12-13 18:45:15 +01:00
2023-08-24 16:20:31 -07:00
2024-01-31 16:18:54 -08:00
2023-08-22 11:10:26 -06:00
2023-07-27 08:48:12 -07:00
2023-09-21 08:37:44 +02:00
2024-02-23 09:25:10 +01:00
2023-08-09 09:15:51 +02:00
2024-01-25 15:35:59 -08:00
2024-01-31 16:19:01 -08:00
2023-07-18 10:07:47 +02:00
2023-07-26 21:24:40 -07:00
2023-11-28 17:19:38 +00:00
2023-08-21 13:46:24 -07:00
2024-01-25 15:35:49 -08:00
2023-08-16 14:27:01 -07:00
2024-01-31 16:18:47 -08:00
2023-07-28 17:05:47 +02:00
2023-08-04 18:21:50 -07:00
2023-11-28 17:19:40 +00:00
2023-07-17 16:08:08 -07:00
2024-03-01 13:35:00 +01:00
2023-08-21 13:37:26 -07:00
2023-08-18 10:12:16 -07:00
2023-09-27 11:19:15 +02:00
2023-08-09 14:16:44 -05:00
2024-01-31 16:19:14 -08:00
2023-11-28 17:19:57 +00:00
2023-07-08 20:26:39 +02:00
2023-07-25 19:21:03 +02:00
2023-07-28 18:04:14 -07:00
2023-08-06 08:24:55 +01:00
2024-02-05 20:14:15 +00:00
2023-08-11 21:12:45 +02:00
2023-11-20 11:58:51 +01:00
2023-11-28 17:20:08 +00:00
2023-08-07 17:55:54 +00:00
2024-02-23 09:25:19 +01:00
2024-02-23 09:25:21 +01:00
2023-08-22 14:58:15 +02:00
2023-08-11 21:12:46 +02:00
2023-08-22 14:58:15 +02:00
2023-08-11 21:12:47 +02:00
2023-08-11 21:12:44 +02:00
2023-08-27 11:47:44 +02:00
2023-11-20 11:58:56 +01:00
2023-07-24 18:03:58 -04:00
2023-08-09 14:17:06 +02:00
2023-08-18 10:12:16 -07:00
2023-09-03 18:10:22 -04:00
2023-11-20 11:59:18 +01:00
2023-12-08 08:52:25 +01:00
2023-08-24 13:27:47 -05:00
2024-01-25 15:35:57 -08:00
2024-01-25 15:35:26 -08:00
2023-09-04 13:44:11 -07:00
2023-07-17 16:08:08 -07:00
2023-11-28 17:19:36 +00:00
2023-08-21 14:52:16 +02:00
2023-09-05 19:01:38 -04:00
2023-08-10 12:06:04 +02:00
2023-08-21 13:37:27 -07:00