-
Bug
-
Resolution: Done-Errata
-
Undefined
-
rhel-9.3.0
-
kernel-5.14.0-370.el9
-
None
-
Low
-
rhel-sst-networking-core
-
ssg_networking
-
4
-
6
-
None
-
QE ack
-
False
-
-
None
-
None
-
If docs needed, set a value
-
-
Unspecified
-
None
Description of problem:
These functions:
inet6_addr_add()
ipv6_add_addr()
inet6_addr_del()
don't set the extack in case of failure. In some situations, the extack would be useful for users to understand the problem without having to read kernel code.
Version-Release number of selected component (if applicable):
any version (tested on 6.2)
Actual results:
- ip addr add dev enp1s0 fd01::1/60 mngtmpaddr
RTNETLINK answers: Invalid argument
- echo 1 > /proc/sys/net/ipv6/conf/enp7s0/disable_ipv6
- ip addr add dev enp7s0 fd01::1
RTNETLINK answers: Permission denied
- ip addr del dev enp1s0 fd01::1234/64
RTNETLINK answers: Cannot assign requested address
Expected results:
Something like:
- ip addr add dev enp1s0 fd01::1/60 mngtmpaddr
Error: ipv6: addresses with mngtmpaddr flag must have prefix length 64
- echo 1 > /proc/sys/net/ipv6/conf/enp7s0/disable_ipv6
- ip addr add dev enp7s0 fd01::1
Error: ipv6: IPv6 is disabled on the interface
- ip addr del dev enp1s0 fd01::1234/64
Error: ipv6: address not found