Debian Buster: Denkwürdige Fehlermeldungen

Debian auf Notebooks und speziellen Geräten wie eingebetteten Systemen, Routern, Set-Top-Boxen, ...
Antworten
Benutzeravatar
whisper
Beiträge: 3151
Registriert: 23.09.2002 14:32:21
Lizenz eigener Beiträge: GNU Free Documentation License
Kontaktdaten:

Debian Buster: Denkwürdige Fehlermeldungen

Beitrag von whisper » 06.05.2018 11:30:29

Weil irgendwo die Diskussion um den 16er Kernel in Buster war. Hier mein Senf.
<r>Kernel: 4.16.0-1-amd64<br/>
etliche Fehler
<CODE><s>

Code: Alles auswählen

</s>[So Mai  6 09:34:27 2018] nvidia-modeset: Allocated GPU:0 (GPU-a119ca30-313c-8859-dd20-ecc39f723346) @ PCI:0000:01:00.0
[So Mai  6 09:34:28 2018] ------------[ cut here ]------------
[So Mai  6 09:34:28 2018] Bad or missing usercopy whitelist? Kernel memory exposure attempt detected from SLUB object 'nvidia_stack_cache' (offset 11440, size 3)!
[So Mai  6 09:34:28 2018] WARNING: CPU: 3 PID: 1028 at /build/linux-hny3SU/linux-4.16.5/mm/usercopy.c:81 usercopy_warn+0x7e/0xa0
[So Mai  6 09:34:28 2018] Modules linked in: cmac bnep binfmt_misc snd_hda_codec_hdmi arc4 intel_rapl x86_pkg_temp_thermal intel_powerclamp coretemp iwlmvm kvm_intel snd_hda_codec_realtek snd_hda_codec_generic mac80211 kvm btusb btrtl btbcm btintel mxm_wmi wmi_bmof irqbypass bluetooth crct10dif_pclmul crc32_pclmul iwlwifi snd_hda_intel ghash_clmulni_intel drbg intel_cstate snd_hda_codec ansi_cprng snd_hda_core cfg80211 snd_hwdep rtsx_pci_ms snd_pcm ecdh_generic snd_timer memstick rfkill evdev iTCO_wdt joydev snd intel_uncore mei_me intel_rapl_perf serio_raw soundcore pcspkr iTCO_vendor_support mei sg intel_pch_thermal shpchp battery video wmi acpi_pad ac button nvidia_drm(PO) drm_kms_helper drm nvidia_modeset(PO) nvidia(PO) ipmi_devintf ipmi_msghandler ip_tables x_tables autofs4 ext4 crc16 mbcache jbd2 crc32c_generic
[So Mai  6 09:34:28 2018]  fscrypto ecb dm_mod sd_mod crc32c_intel rtsx_pci_sdmmc mmc_core ahci xhci_pci aesni_intel libahci aes_x86_64 crypto_simd xhci_hcd nvme cryptd glue_helper libata psmouse r8169 i2c_i801 nvme_core usbcore rtsx_pci mii scsi_mod usb_common thermal
[So Mai  6 09:34:28 2018] CPU: 3 PID: 1028 Comm: Xorg Tainted: P           O     4.16.0-1-amd64 #1 Debian 4.16.5-1
[So Mai  6 09:34:28 2018] Hardware name: TUXEDO P65_P67RGRERA/P65_P67RGRERA, BIOS 1.05.12 01/05/2016
[So Mai  6 09:34:28 2018] RIP: 0010:usercopy_warn+0x7e/0xa0
[So Mai  6 09:34:28 2018] RSP: 0018:ffffb5efc3ae3b60 EFLAGS: 00010282
[So Mai  6 09:34:28 2018] RAX: 0000000000000000 RBX: ffff9af8d035dcb0 RCX: 0000000000000006
[So Mai  6 09:34:28 2018] RDX: 0000000000000007 RSI: 0000000000000096 RDI: ffff9af8f64d6730
[So Mai  6 09:34:28 2018] RBP: 0000000000000003 R08: 0000000000000315 R09: 0000000000000004
[So Mai  6 09:34:28 2018] R10: ffffffff95a769d0 R11: 0000000000000001 R12: 0000000000000001
[So Mai  6 09:34:28 2018] R13: ffff9af8d035dcb3 R14: 0000000000000000 R15: ffff9af8d035dcf8
[So Mai  6 09:34:28 2018] FS:  00007fef5071ba40(0000) GS:ffff9af8f64c0000(0000) knlGS:0000000000000000
[So Mai  6 09:34:28 2018] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[So Mai  6 09:34:28 2018] CR2: 00007fef48813010 CR3: 000000044c58c005 CR4: 00000000003606e0
[So Mai  6 09:34:28 2018] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[So Mai  6 09:34:28 2018] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
[So Mai  6 09:34:28 2018] Call Trace:
[So Mai  6 09:34:28 2018]  __check_object_size+0x9c/0x1a0
[So Mai  6 09:34:28 2018]  os_memcpy_to_user+0x21/0x40 [nvidia]
[So Mai  6 09:34:28 2018]  _nv009377rm+0xbf/0xe0 [nvidia]
[So Mai  6 09:34:28 2018]  ? _nv028067rm+0x79/0x90 [nvidia]
[So Mai  6 09:34:28 2018]  ? _nv028067rm+0x55/0x90 [nvidia]
[So Mai  6 09:34:28 2018]  ? _nv013694rm+0xee/0x100 [nvidia]
[So Mai  6 09:34:28 2018]  ? _nv015342rm+0x154/0x270 [nvidia]
[So Mai  6 09:34:28 2018]  ? _nv008310rm+0x134/0x1a0 [nvidia]
[So Mai  6 09:34:28 2018]  ? _nv008289rm+0x29c/0x2b0 [nvidia]
[So Mai  6 09:34:28 2018]  ? _nv001072rm+0xe/0x20 [nvidia]
[So Mai  6 09:34:28 2018]  ? _nv007316rm+0xd8/0x100 [nvidia]
[So Mai  6 09:34:28 2018]  ? _nv001171rm+0x627/0x830 [nvidia]
[So Mai  6 09:34:28 2018]  ? rm_ioctl+0x73/0x100 [nvidia]
[So Mai  6 09:34:28 2018]  ? nvidia_ioctl+0xf0/0x720 [nvidia]
[So Mai  6 09:34:28 2018]  ? nvidia_ioctl+0x519/0x720 [nvidia]
[So Mai  6 09:34:28 2018]  ? kmem_cache_free+0x19c/0x1d0
[So Mai  6 09:34:28 2018]  ? nvidia_frontend_unlocked_ioctl+0x3e/0x50 [nvidia]
[So Mai  6 09:34:28 2018]  ? do_vfs_ioctl+0xa4/0x630
[So Mai  6 09:34:28 2018]  ? __fput+0x164/0x1e0
[So Mai  6 09:34:28 2018]  ? SyS_ioctl+0x74/0x80
[So Mai  6 09:34:28 2018]  ? do_syscall_64+0x6c/0x130
[So Mai  6 09:34:28 2018]  ? entry_SYSCALL_64_after_hwframe+0x3d/0xa2
[So Mai  6 09:34:28 2018] Code: 48 c7 c0 f0 cb a3 95 48 0f 44 c2 41 50 51 41 51 48 89 f9 49 89 f1 4d 89 d8 4c 89 d2 48 89 c6 48 c7 c7 38 cc a3 95 e8 a2 50 e4 ff <0f> 0b 48 83 c4 18 c3 48 c7 c6 63 cb a4 95 49 89 f1 49 89 f3 eb 
[So Mai  6 09:34:28 2018] ---[ end trace 9bc1f4e215bd9f6e ]---
[So Mai  6 09:34:29 2018] IPv6: ADDRCONF(NETDEV_UP): wlp3s0: link is not ready
[So Mai  6 09:34:30 2018] Bluetooth: RFCOMM TTY layer initialized
[So Mai  6 09:34:30 2018] Bluetooth: RFCOMM socket layer initialized
[So Mai  6 09:34:30 2018] Bluetooth: RFCOMM ver 1.11
[So Mai  6 09:34:33 2018] wlp3s0: authenticate with 80:1f:02:7d:e7:d8
[So Mai  6 09:34:33 2018] wlp3s0: send auth to 80:1f:02:7d:e7:d8 (try 1/3)
[So Mai  6 09:34:33 2018] wlp3s0: authenticated
[So Mai  6 09:34:33 2018] wlp3s0: associate with 80:1f:02:7d:e7:d8 (try 1/3)
[So Mai  6 09:34:33 2018] wlp3s0: RX AssocResp from 80:1f:02:7d:e7:d8 (capab=0x411 status=0 aid=5)
[So Mai  6 09:34:33 2018] wlp3s0: associated
[So Mai  6 09:34:33 2018] IPv6: ADDRCONF(NETDEV_CHANGE): wlp3s0: link becomes ready
[So Mai  6 09:34:38 2018] vboxdrv: Found 8 processor cores
[So Mai  6 09:34:38 2018] vboxdrv: TSC mode is Invariant, tentative frequency 2591934422 Hz
[So Mai  6 09:34:38 2018] vboxdrv: Successfully loaded version 5.2.10_Debian (interface 0x00290001)
[So Mai  6 09:34:38 2018] VBoxNetFlt: Successfully started.
[So Mai  6 09:34:38 2018] VBoxNetAdp: Successfully started.
[So Mai  6 09:34:38 2018] VBoxPciLinuxInit
[So Mai  6 09:34:38 2018] vboxpci: IOMMU not found (not registered)
[So Mai  6 09:34:38 2018] fuse init (API version 7.26)
[So Mai  6 09:34:42 2018] rfkill: input handler disabled
<e>
</e></CODE></r>

Offensichtlich betroffen ist
rfkill und Backlight des Displays sind nicht mehr per Fn Tasten steuerbar
z.B. unter "/sys/class/backlight/" ist kein acpi_video0/* mehr.
xbacklightmon -set 35 o.ä. geht aber.
Mit dem Kernel 15.2 ging das noch, beginnend mit 15.3 nicht mehr.
Ich dachte mir, dass es nur temporär ist und wieder Einzug in den Standard Kernel findet, Müsste man mal forschen, steht bestimmt in einem Readme zum Kernel.
Das rfkill ist nicht nutzbar, sonst finde ich bisher nix. Die Nvidia Grafikbeschleuningung funktioniert.
Weiß jemand, was (ganz am Anfang des Quotes) Bad or missing usercopy whitelist? meint?
Edith: https://devtalk.nvidia.com/default/topi ... 0x7e-0xa0/

breakthewall
Beiträge: 507
Registriert: 30.12.2016 23:48:51

Re: Debian Buster: Denkwürdige Fehlermeldungen

Beitrag von breakthewall » 06.05.2018 12:24:10

Die Fehlermeldung bezüglich "usercopy", betrifft die Arbeit vom Kernel-Self-Protection-Project. Denn seit geraumer Zeit wird der Linux-Kernel um präventive Schutzmaßnahmen erweitert, und die "usercopy whitelist" kam mit Linux 4.16 neu hinzu.

Weitere Informationen:
https://outflux.net/slides/2018/lca/kspp.pdf

Benutzeravatar
whisper
Beiträge: 3151
Registriert: 23.09.2002 14:32:21
Lizenz eigener Beiträge: GNU Free Documentation License
Kontaktdaten:

Re: Debian Buster: Denkwürdige Fehlermeldungen

Beitrag von whisper » 14.05.2018 17:59:55

Ich nutze jetzt mal meinen Thread, um auf eine Lösung für mein backlight Problem hinzuweisen.
Ich habe den Stable Kernel 4.16.8 gebacken, eine kleine Änderung bei den NVIDIA Settings gemacht u.a.
Ich schreibe dies nun mit dem Custom Kernel und kann wieder mit den Fn Tasten die Helligkeit regeln.


Im Kern ist das offenbar der Schlüssel:

Code: Alles auswählen

  > CONFIG_FB_NVIDIA=m
            > CONFIG_FB_NVIDIA_I2C=y                                         
            > CONFIG_FB_NVIDIA_BACKLIGHT=y
Diese Config Optionen fehlen in der config-4.16.0-1-amd64
Würde man also den Original Debian Kernel Source nehmen und diese Optionen einschalten, hätte man wahrscheinlich das gleiche Ergebnis, wie ich mit dem Kernel 4.16.8
Edith sagt: Hier mein vorläufiger Artikel.
http://zockertown.de/s9y/index.php?/arc ... leich.html

Antworten