lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAE8T=_Go-A_W9j18oO+5S52pXKwgFDcR8XgHiywwSRSZmO2LEw@mail.gmail.com>
Date: Tue, 25 Feb 2025 08:37:07 -0800
From: Jean-François Roy <jf@...klog.net>
To: netdev@...r.kernel.org
Subject: mlx5e_xmit: detected field-spanning write (6.12.16)

I'm regularly seeing field-spanning write dumps from the mlx5 driver
on one of my Talos Linux + Cilium nodes running Linux 6.12.16. I don't
know if this is caused by a bug in one of Cilum's bpf programs or if
it's a legitimate issue with the driver.

kantai1: kern: warning: [2025-02-25T16:19:43.741311529Z]:
------------[ cut here ]------------
kantai1: kern: warning: [2025-02-25T16:19:43.741322529Z]: memcpy:
detected field-spanning write (size 32) of single field "h6 + 1" at
drivers/net/ethernet/mellanox/mlx5/core/en_tx.c:469 (size 0)
kantai1: kern: warning: [2025-02-25T16:19:43.741350529Z]: WARNING:
CPU: 2 PID: 5273 at
drivers/net/ethernet/mellanox/mlx5/core/en_tx.c:469
mlx5e_xmit+0x99b/0xe00 [mlx5_core]
kantai1: kern: warning: [2025-02-25T16:19:43.741401529Z]: Modules
linked in: nbd nvme_tcp nvme_fabrics nvme_keyring nvidia_uvm(O)
nvidia_modeset(O) nvidia(O) zfs(PO) spl(O) mlx5_ib nvme mlx5_core ahci
ixgbe sp5100_tco nvme_core mpt3sas ccp mlxfw libahci mdio watchdog
k10temp
kantai1: kern: warning: [2025-02-25T16:19:43.741426529Z]: CPU: 2 UID:
50 PID: 5273 Comm: apid Tainted: P           O       6.12.16-talos #1
kantai1: kern: warning: [2025-02-25T16:19:43.741433529Z]: Tainted:
[P]=PROPRIETARY_MODULE, [O]=OOT_MODULE
kantai1: kern: warning: [2025-02-25T16:19:43.741435529Z]: Hardware
name: To Be Filled By O.E.M. ROMED8-2T/ROMED8-2T, BIOS P3.80
08/01/2023
kantai1: kern: warning: [2025-02-25T16:19:43.741439529Z]: RIP:
0010:mlx5e_xmit+0x99b/0xe00 [mlx5_core]
kantai1: kern: warning: [2025-02-25T16:19:43.741470529Z]: Code: 48 c7
c2 30 98 52 c0 4c 89 ce 89 04 24 48 c7 c7 78 98 52 c0 44 89 44 24 18
4c 89 5c 24 10 c6 05 08 1d 0c 00 01 e8 25 63 72 f2 <0f> 0b 44 8b 44 24
18 4c 8b 5c 24 10 8b 04 24 e9 9a fe ff ff 48 8b
kantai1: kern: warning: [2025-02-25T16:19:43.741474529Z]: RSP:
0018:ffffb42af65274f0 EFLAGS: 00010282
kantai1: kern: warning: [2025-02-25T16:19:43.741478529Z]: RAX:
0000000000000000 RBX: ffff8ebf75968840 RCX: 0000000000000027
kantai1: kern: warning: [2025-02-25T16:19:43.741482529Z]: RDX:
ffff8efd8d91bbc8 RSI: 0000000000000001 RDI: ffff8efd8d91bbc0
kantai1: kern: warning: [2025-02-25T16:19:43.741484529Z]: RBP:
ffff8ec29b976ee8 R08: 0000000000000000 R09: 732d646c65696620
kantai1: kern: warning: [2025-02-25T16:19:43.741487529Z]: R10:
ffffb42af6527290 R11: 203a7970636d656d R12: ffff8ebf7596f930
kantai1: kern: warning: [2025-02-25T16:19:43.741489529Z]: R13:
ffffb42ac29a34c0 R14: ffffb42ac29a34e0 R15: ffff8ebfc8411040
kantai1: kern: warning: [2025-02-25T16:19:43.741492529Z]: FS:
000000c000102e98(0000) GS:ffff8efd8d900000(0000)
knlGS:0000000000000000
kantai1: kern: warning: [2025-02-25T16:19:43.741495529Z]: CS:  0010
DS: 0000 ES: 0000 CR0: 0000000080050033
kantai1: kern: warning: [2025-02-25T16:19:43.741498529Z]: CR2:
000000c0116fd000 CR3: 0000000174728002 CR4: 0000000000f70ef0
kantai1: kern: warning: [2025-02-25T16:19:43.741501529Z]: PKRU: 55555554
kantai1: kern: warning: [2025-02-25T16:19:43.741503529Z]: Call Trace:
kantai1: kern: warning: [2025-02-25T16:19:43.741507529Z]:  <TASK>
kantai1: kern: warning: [2025-02-25T16:19:43.741509529Z]:  ?
mlx5e_xmit+0x99b/0xe00 [mlx5_core]
kantai1: kern: warning: [2025-02-25T16:19:43.741533529Z]:  ?
__warn.cold+0x93/0xe0
kantai1: kern: warning: [2025-02-25T16:19:43.741539529Z]:  ?
mlx5e_xmit+0x99b/0xe00 [mlx5_core]
kantai1: kern: warning: [2025-02-25T16:19:43.741568529Z]:  ?
report_bug+0xeb/0x130
kantai1: kern: warning: [2025-02-25T16:19:43.741573529Z]:  ?
handle_bug+0x53/0x90
kantai1: kern: warning: [2025-02-25T16:19:43.741578529Z]:  ?
exc_invalid_op+0x17/0x70
kantai1: kern: warning: [2025-02-25T16:19:43.741581529Z]:  ?
asm_exc_invalid_op+0x1a/0x20
kantai1: kern: warning: [2025-02-25T16:19:43.741588529Z]:  ?
mlx5e_xmit+0x99b/0xe00 [mlx5_core]
kantai1: kern: warning: [2025-02-25T16:19:43.741611529Z]:  ?
netif_skb_features+0xc1/0x2e0
kantai1: kern: warning: [2025-02-25T16:19:43.741616529Z]:
dev_hard_start_xmit+0x64/0x1a0
kantai1: kern: warning: [2025-02-25T16:19:43.741622529Z]:
sch_direct_xmit+0xb0/0x360
kantai1: kern: warning: [2025-02-25T16:19:43.741627529Z]:
__qdisc_run+0x143/0x590
kantai1: kern: warning: [2025-02-25T16:19:43.741630529Z]:
__dev_queue_xmit+0x578/0xe00
kantai1: kern: warning: [2025-02-25T16:19:43.741636529Z]:
ip6_finish_output2+0x2b7/0x600
kantai1: kern: warning: [2025-02-25T16:19:43.741641529Z]:  ?
nf_nat_ipv6_out+0x18/0x100
kantai1: kern: warning: [2025-02-25T16:19:43.741644529Z]:  ?
nf_hook_slow+0x41/0xe0
kantai1: kern: warning: [2025-02-25T16:19:43.741650529Z]:
ip6_finish_output+0x186/0x340
kantai1: kern: warning: [2025-02-25T16:19:43.741654529Z]:  ip6_xmit+0x2cd/0x630
kantai1: kern: warning: [2025-02-25T16:19:43.741657529Z]:  ?
ip6_output+0x150/0x150
kantai1: kern: warning: [2025-02-25T16:19:43.741661529Z]:  ?
__sk_dst_check+0x39/0xa0
kantai1: kern: warning: [2025-02-25T16:19:43.741665529Z]:  ?
inet6_csk_route_socket+0x138/0x200
kantai1: kern: warning: [2025-02-25T16:19:43.741671529Z]:
inet6_csk_xmit+0xce/0x130
kantai1: kern: warning: [2025-02-25T16:19:43.741676529Z]:
__tcp_transmit_skb+0x583/0xca0
kantai1: kern: warning: [2025-02-25T16:19:43.741682529Z]:
tcp_write_xmit+0x495/0x1580
kantai1: kern: warning: [2025-02-25T16:19:43.741688529Z]:
__tcp_push_pending_frames+0x32/0xc0
kantai1: kern: warning: [2025-02-25T16:19:43.741693529Z]:
tcp_sendmsg_locked+0xb0b/0xf50
kantai1: kern: warning: [2025-02-25T16:19:43.741699529Z]:  tcp_sendmsg+0x2b/0x40
kantai1: kern: warning: [2025-02-25T16:19:43.741703529Z]:
sock_write_iter+0x12d/0x1a0
kantai1: kern: warning: [2025-02-25T16:19:43.741709529Z]:  vfs_write+0x37e/0x430
kantai1: kern: warning: [2025-02-25T16:19:43.741716529Z]:  ksys_write+0xb9/0xf0
kantai1: kern: warning: [2025-02-25T16:19:43.741721529Z]:
do_syscall_64+0x6b/0xa60
kantai1: kern: warning: [2025-02-25T16:19:43.741729529Z]:
entry_SYSCALL_64_after_hwframe+0x55/0x5d
kantai1: kern: warning: [2025-02-25T16:19:43.741736529Z]: RIP: 0033:0x480c0e
kantai1: kern: warning: [2025-02-25T16:19:43.741741529Z]: Code: 24 28
44 8b 44 24 2c e9 70 ff ff ff cc cc cc cc cc cc cc cc cc cc cc cc cc
cc cc cc 49 89 f2 48 89 fa 48 89 ce 48 89 df 0f 05 <48> 3d 01 f0 ff ff
76 15 48 f7 d8 48 89 c1 48 c7 c0 ff ff ff ff 48
kantai1: kern: warning: [2025-02-25T16:19:43.741747529Z]: RSP:
002b:000000c00087d730 EFLAGS: 00000212 ORIG_RAX: 0000000000000001
kantai1: kern: warning: [2025-02-25T16:19:43.741753529Z]: RAX:
ffffffffffffffda RBX: 000000000000000d RCX: 0000000000480c0e
kantai1: kern: warning: [2025-02-25T16:19:43.741756529Z]: RDX:
0000000000004016 RSI: 000000c000b4a000 RDI: 000000000000000d
kantai1: kern: warning: [2025-02-25T16:19:43.741760529Z]: RBP:
000000c00087d770 R08: 0000000000000000 R09: 0000000000000000
kantai1: kern: warning: [2025-02-25T16:19:43.741764529Z]: R10:
0000000000000000 R11: 0000000000000212 R12: 000000c00087d8a0
kantai1: kern: warning: [2025-02-25T16:19:43.741768529Z]: R13:
000000000000000a R14: 000000c000685a40 R15: 000000c00067c640
kantai1: kern: warning: [2025-02-25T16:19:43.741773529Z]:  </TASK>
kantai1: kern: warning: [2025-02-25T16:19:43.741777529Z]: ---[ end
trace 0000000000000000 ]---

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ