Bug#1037138: linux-image-6.0.0-4-amd64: Linux kernel appears to not be respecting sysctl config value "net.ipv6.conf.all.disable_ipv6=1"

2023-06-06 Thread Salvatore Bonaccorso
Control: tags -1 + unreproducible moreinfo

Hi Dylan,

On Tue, Jun 06, 2023 at 05:19:38AM -0400, Dylan Morrison wrote:
> Package: src:linux
> Version: 6.0.8-1
> Severity: normal
> Tags: ipv6
> X-Debbugs-Cc: dizzy@domad.science

First a note on the version, 6.0.8-1 is not in testing, please update
to 6.1.27-1. 

> Dear Maintainer,
> 
> I am attempting to disable ipv6 entirely on this machine as it being enabled 
> is causing multiple issues with long connection timeouts etc, and I do not 
> have ipv6 support from my ISP nor do I use it locally. However, the generally 
> given advice to set net.ipv6.conf.all.disable_ipv6 to 1 is having no effect, 
> neither setting it in /etc/sysctl.conf nor using command line sysctl. Setting 
> net.conf.ipv6..disable_ipv6 works, and is what I am currently doing 
> for my primary network interface, but I would like ipv6 disabled globally.
> This appears to be a kernel issue afaict, I'm not 100% up on how the sysctl 
> mechanism works, but yeah.

After updating to 6.1.27, can you elaborate how IPv6 not disabled is
observed? Note that reading net.ipv6.conf.all.disable_ipv6 and getting
1 is not an indicator of IPv6 beeing not disabled, cf.
https://www.kernel.org/doc/html/latest/networking/ip-sysctl.html?highlight=conf/all/disable_ipv6
.

What does 'ip add show' shows, and what does it show after executing
sysctl net.ipv6.conf.all.disable_ipv6=1 ?

ipv6 can as well entirely be disabled by using the disable_ipv6 kernel
parameter, cf. 
https://www.kernel.org/doc/html/latest/admin-guide/kernel-parameters.html?highlight=disable_ipv6=
that is e.g. adding ipv6.disable=1 to the kernel command line. Trough
grub2 you could add 

# cat /etc/default/grub.d/ipv6.cfg 
GRUB_CMDLINE_LINUX="$GRUB_CMDLINE_LINUX ipv6.disable_ipv6=1"

and run update-grub2.

I would like to understand what makes for you disabling it trough
net.ipv6.conf.all.disable_ipv6 not work.

Regards,
Salvatore



Bug#1037138: linux-image-6.0.0-4-amd64: Linux kernel appears to not be respecting sysctl config value "net.ipv6.conf.all.disable_ipv6=1"

2023-06-06 Thread Dylan Morrison
Package: src:linux
Version: 6.0.8-1
Severity: normal
Tags: ipv6
X-Debbugs-Cc: dizzy@domad.science

Dear Maintainer,

I am attempting to disable ipv6 entirely on this machine as it being enabled is 
causing multiple issues with long connection timeouts etc, and I do not have 
ipv6 support from my ISP nor do I use it locally. However, the generally given 
advice to set net.ipv6.conf.all.disable_ipv6 to 1 is having no effect, neither 
setting it in /etc/sysctl.conf nor using command line sysctl. Setting 
net.conf.ipv6..disable_ipv6 works, and is what I am currently doing 
for my primary network interface, but I would like ipv6 disabled globally.
This appears to be a kernel issue afaict, I'm not 100% up on how the sysctl 
mechanism works, but yeah.


-- Package-specific info:
** Version:
Linux version 6.0.0-4-amd64 (debian-ker...@lists.debian.org) (gcc-12 (Debian 
12.2.0-9) 12.2.0, GNU ld (GNU Binutils for Debian) 2.39) #1 SMP PREEMPT_DYNAMIC 
Debian 6.0.8-1 (2022-11-11)

** Command line:
root=UUID=9195fe01-470b-4e23-8bec-110cf1aa12cc ro quiet splash 
initrd=boot\initrd.img-6.0.0-4-amd64

** Tainted: OE (12288)
 * externally-built ("out-of-tree") module was loaded
 * unsigned module was loaded

** Kernel log:
[652201.887641] I/O error, dev sr0, sector 0 op 0x0:(READ) flags 0x0 phys_seg 1 
prio class 2
[652201.887644] Buffer I/O error on dev sr0, logical block 0, async page read
[652201.887653] sr 2:0:0:0: [sr0] tag#7 unaligned transfer
[652201.887654] I/O error, dev sr0, sector 1 op 0x0:(READ) flags 0x0 phys_seg 1 
prio class 2
[652201.887656] Buffer I/O error on dev sr0, logical block 1, async page read
[652201.887661] sr 2:0:0:0: [sr0] tag#8 unaligned transfer
[652201.887661] I/O error, dev sr0, sector 2 op 0x0:(READ) flags 0x0 phys_seg 1 
prio class 2
[652201.887662] Buffer I/O error on dev sr0, logical block 2, async page read
[652201.887666] sr 2:0:0:0: [sr0] tag#9 unaligned transfer
[652201.887667] I/O error, dev sr0, sector 3 op 0x0:(READ) flags 0x0 phys_seg 1 
prio class 2
[652201.887668] Buffer I/O error on dev sr0, logical block 3, async page read
[652201.887672] sr 2:0:0:0: [sr0] tag#10 unaligned transfer
[652201.887673] I/O error, dev sr0, sector 4 op 0x0:(READ) flags 0x0 phys_seg 1 
prio class 2
[652201.887674] Buffer I/O error on dev sr0, logical block 4, async page read
[652201.887678] sr 2:0:0:0: [sr0] tag#11 unaligned transfer
[652201.887678] I/O error, dev sr0, sector 5 op 0x0:(READ) flags 0x0 phys_seg 1 
prio class 2
[652201.887679] Buffer I/O error on dev sr0, logical block 5, async page read
[652201.887683] sr 2:0:0:0: [sr0] tag#12 unaligned transfer
[652201.887684] I/O error, dev sr0, sector 6 op 0x0:(READ) flags 0x0 phys_seg 1 
prio class 2
[652201.887685] Buffer I/O error on dev sr0, logical block 6, async page read
[652201.887689] sr 2:0:0:0: [sr0] tag#13 unaligned transfer
[652201.887690] I/O error, dev sr0, sector 7 op 0x0:(READ) flags 0x0 phys_seg 1 
prio class 2
[652201.887691] Buffer I/O error on dev sr0, logical block 7, async page read
[660275.943849] input: Microsoft X-Box 360 pad 0 as 
/devices/virtual/input/input68
[661843.954123] usb 1-3: USB disconnect, device number 24
[661844.358016] usb 1-3: new full-speed USB device number 25 using xhci_hcd
[661844.757670] usb 1-3: New USB device found, idVendor=045e, idProduct=02ea, 
bcdDevice= 5.0f
[661844.757676] usb 1-3: New USB device strings: Mfr=1, Product=2, 
SerialNumber=3
[661844.757677] usb 1-3: Product: Controller
[661844.757679] usb 1-3: Manufacturer: Microsoft
[661844.757680] usb 1-3: SerialNumber: 303336303030383234323338
[661844.769591] input: Microsoft X-Box One S pad as 
/devices/pci:00/:00:02.1/:16:00.0/usb1/1-3/1-3:1.0/input/input69
[663457.496690] usb 1-3: USB disconnect, device number 25
[663457.905293] usb 1-3: new full-speed USB device number 26 using xhci_hcd
[663458.237568] usb 1-3: New USB device found, idVendor=045e, idProduct=02ea, 
bcdDevice= 5.0f
[663458.237574] usb 1-3: New USB device strings: Mfr=1, Product=2, 
SerialNumber=3
[663458.237576] usb 1-3: Product: Controller
[663458.237577] usb 1-3: Manufacturer: Microsoft
[663458.237578] usb 1-3: SerialNumber: 303336303030383234323338
[663458.247343] input: Microsoft X-Box One S pad as 
/devices/pci:00/:00:02.1/:16:00.0/usb1/1-3/1-3:1.0/input/input70
[672383.489343] usb 1-3: USB disconnect, device number 26
[672384.599744] usb 1-3: new full-speed USB device number 27 using xhci_hcd
[672384.930355] usb 1-3: New USB device found, idVendor=045e, idProduct=02ea, 
bcdDevice= 5.0f
[672384.930361] usb 1-3: New USB device strings: Mfr=1, Product=2, 
SerialNumber=3
[672384.930363] usb 1-3: Product: Controller
[672384.930364] usb 1-3: Manufacturer: Microsoft
[672384.930366] usb 1-3: SerialNumber: 303336303030383234323338
[672384.940759] input: Microsoft X-Box One S pad as 
/devices/pci:00/:00:02.1/:16:00.0/usb1/1-3/1-3:1.0/input/input71
[672631.293810] usb 1-3: USB disconnect, device number 27
[672631.933067] usb 1-3: