Kicksecure Wiki Download Docs News Support Tips Issues Contribute DONATE

Problem with hardended_malloc

Problem with hardended_malloc

Installed packages kicksecure-xfce and hardened malloc following instructions from website, original system is debian stable, kernel from backports.

When using hardened malloc light does not start xorg, throws in CLI. Logs attached. When I run ld-system-preload-disable startx from the CLI, xorg works. It also works if I remove the hardened malloc light. What to do?

[   278.006] (II) LoadModule: "glx"
[   278.006] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[   278.007] (II) Module glx: vendor="X.Org Foundation"
[   278.007] 	compiled for 1.20.11, module version = 1.0.0
[   278.007] 	ABI class: X.Org Server Extension, version 10.0
[   278.007] (II) Applying OutputClass "AMDgpu" to /dev/dri/card0
[   278.007] 	loading driver: amdgpu
[   278.066] (==) Matched amdgpu as autoconfigured driver 0
[   278.066] (==) Matched ati as autoconfigured driver 1
[   278.066] (==) Matched modesetting as autoconfigured driver 2
[   278.066] (==) Matched fbdev as autoconfigured driver 3
[   278.066] (==) Matched vesa as autoconfigured driver 4
[   278.066] (==) Assigned the driver to the xf86ConfigLayout
[   278.066] (II) LoadModule: "amdgpu"
[   278.067] (II) Loading /usr/lib/xorg/modules/drivers/amdgpu_drv.so
[   278.067] (II) Module amdgpu: vendor="X.Org Foundation"
[   278.067] 	compiled for 1.20.9, module version = 19.1.0
[   278.067] 	Module class: X.Org Video Driver
[   278.067] 	ABI class: X.Org Video Driver, version 24.1
[   278.067] (II) LoadModule: "ati"
[   278.067] (II) Loading /usr/lib/xorg/modules/drivers/ati_drv.so
[   278.067] (II) Module ati: vendor="X.Org Foundation"
[   278.067] 	compiled for 1.20.9, module version = 19.1.0
[   278.067] 	Module class: X.Org Video Driver
[   278.067] 	ABI class: X.Org Video Driver, version 24.1
[   278.067] (II) LoadModule: "modesetting"
[   278.068] (II) Loading /usr/lib/xorg/modules/drivers/modesetting_drv.so
[   278.068] (II) Module modesetting: vendor="X.Org Foundation"
[   278.068] 	compiled for 1.20.11, module version = 1.20.11
[   278.068] 	Module class: X.Org Video Driver
[   278.068] 	ABI class: X.Org Video Driver, version 24.1
[   278.068] (II) LoadModule: "fbdev"
[   278.068] (II) Loading /usr/lib/xorg/modules/drivers/fbdev_drv.so
[   278.068] (II) Module fbdev: vendor="X.Org Foundation"
[   278.068] 	compiled for 1.20.0, module version = 0.5.0
[   278.068] 	Module class: X.Org Video Driver
[   278.068] 	ABI class: X.Org Video Driver, version 24.0
[   278.068] (II) LoadModule: "vesa"
[   278.069] (II) Loading /usr/lib/xorg/modules/drivers/vesa_drv.so
[   278.069] (II) Module vesa: vendor="X.Org Foundation"
[   278.069] 	compiled for 1.20.9, module version = 2.5.0
[   278.069] 	Module class: X.Org Video Driver
[   278.069] 	ABI class: X.Org Video Driver, version 24.1
[   278.069] (II) AMDGPU: Driver for AMD Radeon:
	All GPUs supported by the amdgpu kernel driver
[   278.069] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
[   278.069] (II) FBDEV: driver for framebuffer: fbdev
[   278.069] (II) VESA: driver for VESA chipsets: vesa
[   278.069] xf86EnableIOPorts: failed to set IOPL for I/O (Operation not permitted)
[   278.071] (WW) Falling back to old probe method for modesetting
[   278.071] (WW) Falling back to old probe method for fbdev
[   278.071] (II) Loading sub module "fbdevhw"
[   278.071] (II) LoadModule: "fbdevhw"
[   278.072] (II) Loading /usr/lib/xorg/modules/libfbdevhw.so
[   278.072] (II) Module fbdevhw: vendor="X.Org Foundation"
[   278.072] 	compiled for 1.20.11, module version = 0.0.2
[   278.072] 	ABI class: X.Org Video Driver, version 24.1
[   278.072] (II) modeset(G0): using drv /dev/dri/card1
[   278.072] (WW) VGA arbiter: cannot open kernel arbiter, no multi-card support
[   278.072] (II) AMDGPU(0): Creating default Display subsection in Screen section
	"Default Screen Section" for depth/fbbpp 24/32
[   278.072] (==) AMDGPU(0): Depth 24, (--) framebuffer bpp 32
[   278.072] (II) AMDGPU(0): Pixel depth = 24 bits stored in 4 bytes (32 bpp pixmaps)
[   278.072] (==) AMDGPU(0): Default visual is TrueColor
[   278.072] (==) AMDGPU(0): RGB weight 888
[   278.072] (II) AMDGPU(0): Using 8 bits per RGB (8 bit DAC)
[   278.072] (--) AMDGPU(0): Chipset: "Unknown AMD Radeon GPU" (ChipID = 0x1638)
[   278.072] (II) Loading sub module "fb"
[   278.072] (II) LoadModule: "fb"
[   278.073] (II) Loading /usr/lib/xorg/modules/libfb.so
[   278.073] (II) Module fb: vendor="X.Org Foundation"
[   278.073] 	compiled for 1.20.11, module version = 1.0.0
[   278.073] 	ABI class: X.Org ANSI C Emulation, version 0.4
[   278.073] (II) Loading sub module "dri2"
[   278.073] (II) LoadModule: "dri2"
[   278.073] (II) Module "dri2" already built-in
[   278.104] (II) Loading sub module "glamoregl"
[   278.104] (II) LoadModule: "glamoregl"
[   278.104] (II) Loading /usr/lib/xorg/modules/libglamoregl.so
[   278.106] (II) Module glamoregl: vendor="X.Org Foundation"
[   278.106] 	compiled for 1.20.11, module version = 1.0.1
[   278.106] 	ABI class: X.Org ANSI C Emulation, version 0.4
[   278.115] (EE) 
[   278.115] (EE) Backtrace:
[   278.115] (EE) 0: /usr/lib/xorg/Xorg (OsLookupColor+0x135) [0x62e7cf07f845]
[   278.116] (EE) 1: /lib/x86_64-linux-gnu/libpthread.so.0 (funlockfile+0x50) [0x7a352c549140]
[   278.116] (EE) 2: /usr/lib/x86_64-linux-gnu/dri/radeonsi_dri.so (__driDriverGetExtensions_zink+0x3bb168) [0x6dc27169abc8]
[   278.116] (EE) 3: /usr/lib/x86_64-linux-gnu/dri/radeonsi_dri.so (__driDriverGetExtensions_zink+0x3bb64f) [0x6dc27169b0af]
[   278.117] (EE) 4: /lib/x86_64-linux-gnu/libpthread.so.0 (__pthread_once_slow+0xbf) [0x7a352c54634f]
[   278.117] (EE) 5: /usr/lib/x86_64-linux-gnu/dri/radeonsi_dri.so (nouveau_drm_screen_create+0x219aa7) [0x6dc271d26a97]
[   278.117] (EE) 6: /usr/lib/x86_64-linux-gnu/dri/radeonsi_dri.so (radeon_drm_winsys_create+0x11648f) [0x6dc271a5ffef]
[   278.117] (EE) 7: /usr/lib/x86_64-linux-gnu/dri/radeonsi_dri.so (__driDriverGetExtensions_zink+0x106ac) [0x6dc2712f010c]
[   278.117] (EE) 8: /usr/lib/x86_64-linux-gnu/dri/radeonsi_dri.so (__driDriverGetExtensions_zink+0x4c62) [0x6dc2712e46c2]
[   278.117] (EE) 9: /usr/lib/x86_64-linux-gnu/dri/radeonsi_dri.so (__driDriverGetExtensions_zink+0x5045bb) [0x6dc2717e401b]
[   278.118] (EE) unw_get_proc_name failed: no unwind info found [-10]
[   278.118] (EE) 10: /lib/x86_64-linux-gnu/libEGL_mesa.so.0 (?+0x0) [0x6dc262ac9d5d]
[   278.118] (EE) unw_get_proc_name failed: no unwind info found [-10]
[   278.118] (EE) 11: /lib/x86_64-linux-gnu/libEGL_mesa.so.0 (?+0x0) [0x6dc262ac1734]
[   278.118] (EE) 12: /usr/lib/xorg/modules/libglamoregl.so (glamor_egl_init+0x1ea) [0x6dc262c3d46a]
[   278.118] (EE) unw_get_proc_name failed: no unwind info found [-10]
[   278.118] (EE) 13: /usr/lib/xorg/modules/drivers/amdgpu_drv.so (?+0x0) [0x6dc272b2468b]
[   278.118] (EE) unw_get_proc_name failed: no unwind info found [-10]
[   278.118] (EE) 14: /usr/lib/xorg/modules/drivers/amdgpu_drv.so (?+0x0) [0x6dc272b191dd]
[   278.118] (EE) 15: /usr/lib/xorg/Xorg (InitOutput+0x9ae) [0x62e7cef5d8ae]
[   278.119] (EE) 16: /usr/lib/xorg/Xorg (InitFonts+0x1cc) [0x62e7cef1f39c]
[   278.119] (EE) 17: /lib/x86_64-linux-gnu/libc.so.6 (__libc_start_main+0xea) [0x7a352c384d0a]
[   278.119] (EE) 18: /usr/lib/xorg/Xorg (_start+0x2a) [0x62e7cef08d1a]
[   278.119] (EE) 
[   278.119] (EE) Segmentation fault at address 0x6dc4bc3d2000
[   278.119] (EE) 
Fatal server error:
[   278.119] (EE) Caught signal 11 (Segmentation fault). Server aborting
[   278.119] (EE) 
[   278.119] (EE) 
Please consult the The X.Org Foundation support 
	 at http://wiki.x.org
 for help. 
[   278.119] (EE) Please also check the log file at "/home/user/.local/share/xorg/Xorg.1.log" for additional information.
[   278.119] (EE) 
[   278.125] (EE) Server terminated with error (1). Closing log file.

The logs are not copied from the beginning. If there is no sensitive information in the logs of XORG I can provide the full log file

Thanks for the report!

If you like this bug fixed, you would need to report this against upstream. → https://www.x.org

A feature request similar to this

https://bugzilla.mindrot.org/show_bug.cgi?id=3245

would be helpful and might avoid this issue if upstream implements it.


related:
https://www.kicksecure.com/wiki/Hardened_Malloc#Graphical_Desktop_Environment_Xorg