Bug#1025665: Recent Kerberos upgrade breaks DRM and Xorg startup on Raspberry Pi 4

2022-12-07 Thread Sad Clouds
Please close this bug, I was mistaken. The issue seems to be related to
something else. I have just upgraded again to the latest Kerberos
binaries and cannot reproduce the original issue. Could me intermittent
hardware fault which coincided with recent package upgrade activity.



Bug#1025665: Recent Kerberos upgrade breaks DRM and Xorg startup on Raspberry Pi 4

2022-12-07 Thread Russ Allbery
Sad Clouds  writes:

> The following new kernel errors are logged:

> [   96.222828] [drm:drm_atomic_helper_wait_for_dependencies [drm_kms_helper]] 
> *ERROR* [PLANE:60:plane-3] flip_done timed out
> [  106.463033] [drm:drm_atomic_helper_wait_for_flip_done [drm_kms_helper]] 
> *ERROR* [CRTC:64:crtc-3] flip_done timed out
> [  116.703323] [drm:drm_atomic_helper_wait_for_dependencies [drm_kms_helper]] 
> *ERROR* [CRTC:64:crtc-3] flip_done timed out
> [  126.943416] [drm:drm_atomic_helper_wait_for_dependencies [drm_kms_helper]] 
> *ERROR* [CONNECTOR:32:HDMI-A-1] flip_done timed out
> [  137.183538] [drm:drm_atomic_helper_wait_for_dependencies [drm_kms_helper]] 
> *ERROR* [PLANE:60:plane-3] flip_done timed out

Searching for "drm_kms_helper" will turn up a ton of reports of this
problem going back ten years.  It seems to be some sort of intermittant
timeout in the video driver initialization code in the kernel.  There are
lots of suggestions for grub configuration changes that often seem to
help.

My guess is that this initialization process is borderline for whatever
reason and is sometimes succeeding within its timeout and sometimes
failing, which makes it look correlated with other system events by
accident.

-- 
Russ Allbery (r...@debian.org)  



Bug#1025665: Recent Kerberos upgrade breaks DRM and Xorg startup on Raspberry Pi 4

2022-12-07 Thread Sam Hartman
control: tags -1 moreinfo

This error is not plausible given what libk5crypto3 does and given  the
change between u2 and u3, which didn't impact libk5crypto3 at all.
I'd need to see some actual errors linking the problem to libk5crypto3,
not just circumstantial evidence that the problem happens with the new
packages and not the old.
I mean I appreciate that looks interesting, but it could   be related to
some other environmental factor, like changes in the filesystem caused
by running apt.

No, that's not very likely, but nor is it that a libk5crypto3 change
(especially when there were no code changes to libk5crypto3 between u2
and u3) would cause a drm problem.



Bug#1025665: Recent Kerberos upgrade breaks DRM and Xorg startup on Raspberry Pi 4

2022-12-06 Thread Sad Clouds
Package: libk5crypto3
Version: 1.18.3-6+deb11u3

# uname -a
Linux rp4 5.10.0-19-arm64 #1 SMP Debian 5.10.149-2 (2022-10-21) aarch64
GNU/Linux

The following upgrade on Raspberry Pi 4 seems to break DRM and
Xorg no longer starts on Debian 11:

/var/log/apt/history.log
Start-Date: 2022-12-05  17:06:18
Commandline: apt dist-upgrade
Upgrade: libgssapi-krb5-2:arm64 (1.18.3-6+deb11u2, 1.18.3-6+deb11u3), 
libkrb5support0:arm64 (1.18.3-6+deb11u2, 1.18.3-6+deb11u3), libkrb5-3:arm64 
(1.18.3-6+deb11u2, 1.18.3-6+deb11u3), libk5crypto3:arm64 (1.18.3-6+deb11u2, 
1.18.3-6+deb11u3), vivaldi-stable:arm64 (5.5.2805.44-1, 5.5.2805.50-1)
End-Date: 2022-12-05  17:06:37

The following new kernel errors are logged:

[   96.222828] [drm:drm_atomic_helper_wait_for_dependencies [drm_kms_helper]] 
*ERROR* [PLANE:60:plane-3] flip_done timed out
[  106.463033] [drm:drm_atomic_helper_wait_for_flip_done [drm_kms_helper]] 
*ERROR* [CRTC:64:crtc-3] flip_done timed out
[  116.703323] [drm:drm_atomic_helper_wait_for_dependencies [drm_kms_helper]] 
*ERROR* [CRTC:64:crtc-3] flip_done timed out
[  126.943416] [drm:drm_atomic_helper_wait_for_dependencies [drm_kms_helper]] 
*ERROR* [CONNECTOR:32:HDMI-A-1] flip_done timed out
[  137.183538] [drm:drm_atomic_helper_wait_for_dependencies [drm_kms_helper]] 
*ERROR* [PLANE:60:plane-3] flip_done timed out

Downgrading the above set of packages resolves the issue:

# apt install libk5crypto3:arm64=1.18.3-6+deb11u2 
libkrb5support0:arm64=1.18.3-6+deb11u2 libkrb5-3:arm64=1.18.3-6+deb11u2 
libgssapi-krb5-2:arm64=1.18.3-6+deb11u2
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Suggested packages:
  krb5-doc krb5-user
Recommended packages:
  krb5-locales
The following packages will be DOWNGRADED:
  libgssapi-krb5-2 libk5crypto3 libkrb5-3 libkrb5support0
0 upgraded, 0 newly installed, 4 downgraded, 0 to remove and 0 not upgraded.
Need to get 681 kB of archives.
After this operation, 4,096 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://deb.debian.org/debian bullseye/main arm64 libk5crypto3 arm64 
1.18.3-6+deb11u2 [114 kB]
Get:2 http://deb.debian.org/debian bullseye/main arm64 libkrb5support0 arm64 
1.18.3-6+deb11u2 [64.9 kB]
Get:3 http://deb.debian.org/debian bullseye/main arm64 libkrb5-3 arm64 
1.18.3-6+deb11u2 [346 kB]
Get:4 http://deb.debian.org/debian bullseye/main arm64 libgssapi-krb5-2 arm64 
1.18.3-6+deb11u2 [155 kB]
Fetched 681 kB in 1s (637 kB/s)   
dpkg: warning: downgrading libk5crypto3:arm64 from 1.18.3-6+deb11u3 to 
1.18.3-6+deb11u2
(Reading database ... 166394 files and directories currently installed.)
Preparing to unpack .../libk5crypto3_1.18.3-6+deb11u2_arm64.deb ...
Unpacking libk5crypto3:arm64 (1.18.3-6+deb11u2) over (1.18.3-6+deb11u3) ...
Setting up libk5crypto3:arm64 (1.18.3-6+deb11u2) ...
dpkg: warning: downgrading libkrb5support0:arm64 from 1.18.3-6+deb11u3 to 
1.18.3-6+deb11u2
(Reading database ... 166394 files and directories currently installed.)
Preparing to unpack .../libkrb5support0_1.18.3-6+deb11u2_arm64.deb ...
Unpacking libkrb5support0:arm64 (1.18.3-6+deb11u2) over (1.18.3-6+deb11u3) ...
Setting up libkrb5support0:arm64 (1.18.3-6+deb11u2) ...
dpkg: warning: downgrading libkrb5-3:arm64 from 1.18.3-6+deb11u3 to 
1.18.3-6+deb11u2
(Reading database ... 166394 files and directories currently installed.)
Preparing to unpack .../libkrb5-3_1.18.3-6+deb11u2_arm64.deb ...
Unpacking libkrb5-3:arm64 (1.18.3-6+deb11u2) over (1.18.3-6+deb11u3) ...
Setting up libkrb5-3:arm64 (1.18.3-6+deb11u2) ...
dpkg: warning: downgrading libgssapi-krb5-2:arm64 from 1.18.3-6+deb11u3 to 
1.18.3-6+deb11u2
(Reading database ... 166394 files and directories currently installed.)
Preparing to unpack .../libgssapi-krb5-2_1.18.3-6+deb11u2_arm64.deb ...
Unpacking libgssapi-krb5-2:arm64 (1.18.3-6+deb11u2) over (1.18.3-6+deb11u3) ...
Setting up libgssapi-krb5-2:arm64 (1.18.3-6+deb11u2) ...
Processing triggers for libc-bin (2.31-13+deb11u4) ...