]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
net: udp: fix alignment problem in udp4_seq_show()
authoryangxingwu <xingwu.yang@gmail.com>
Mon, 27 Dec 2021 08:29:51 +0000 (16:29 +0800)
committerStefan Bader <stefan.bader@canonical.com>
Mon, 7 Mar 2022 15:35:01 +0000 (16:35 +0100)
commit9bc5ff10bd2f7e7ea10245d7445ab3d75d9c5f58
treedf76d43494d2fac19895d1c15838e4f6b5fe399f
parenta878857e89c296da4e21e5f48e6e7201ea6e32d5
net: udp: fix alignment problem in udp4_seq_show()

BugLink: https://bugs.launchpad.net/bugs/1959437
[ Upstream commit 6c25449e1a32c594d743df8e8258e8ef870b6a77 ]

$ cat /pro/net/udp

before:

  sl  local_address rem_address   st tx_queue rx_queue tr tm->when
26050: 0100007F:0035 00000000:0000 07 00000000:00000000 00:00000000
26320: 0100007F:0143 00000000:0000 07 00000000:00000000 00:00000000
27135: 00000000:8472 00000000:0000 07 00000000:00000000 00:00000000

after:

   sl  local_address rem_address   st tx_queue rx_queue tr tm->when
26050: 0100007F:0035 00000000:0000 07 00000000:00000000 00:00000000
26320: 0100007F:0143 00000000:0000 07 00000000:00000000 00:00000000
27135: 00000000:8472 00000000:0000 07 00000000:00000000 00:00000000

Signed-off-by: yangxingwu <xingwu.yang@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
net/ipv4/udp.c