Created attachment 288029 [details] build log CC [M] /var/tmp/portage/app-emulation/vmware-modules-238.4-r1/work/vmci-only/common/vmciContext.o /var/tmp/portage/app-emulation/vmware-modules-238.4-r1/work/vmci-only/linux/driver.c: In function ‘init_module’: /var/tmp/portage/app-emulation/vmware-modules-238.4-r1/work/vmci-only/linux/driver.c:268:4: warning: passing argument 1 of ‘memset’ discards qualifiers from pointer target type /usr/src/linux-3.0.4-hardened-r1/arch/x86/include/asm/string_64.h:55:7: note: expected ‘void *’ but argument is of type ‘const struct file_operations *’ /var/tmp/portage/app-emulation/vmware-modules-238.4-r1/work/vmci-only/linux/driver.c:269:4: error: assignment of read-only variable ‘vmuser_fops’ /var/tmp/portage/app-emulation/vmware-modules-238.4-r1/work/vmci-only/linux/driver.c:270:4: error: assignment of read-only variable ‘vmuser_fops’ /var/tmp/portage/app-emulation/vmware-modules-238.4-r1/work/vmci-only/linux/driver.c:272:4: error: assignment of read-only variable ‘vmuser_fops’ /var/tmp/portage/app-emulation/vmware-modules-238.4-r1/work/vmci-only/linux/driver.c:277:4: error: assignment of read-only variable ‘vmuser_fops’ /var/tmp/portage/app-emulation/vmware-modules-238.4-r1/work/vmci-only/linux/driver.c:279:4: error: assignment of read-only variable ‘vmuser_fops’ /var/tmp/portage/app-emulation/vmware-modules-238.4-r1/work/vmci-only/linux/driver.c:280:4: error: assignment of read-only variable ‘vmuser_fops’ make[3]: *** [/var/tmp/portage/app-emulation/vmware-modules-238.4-r1/work/vmci-only/linux/driver.o] Error 1 emerge --info Portage 2.1.10.11 (hardened/linux/amd64, gcc-4.5.3, glibc-2.12.2-r0, 3.0.4-hardened-r1 x86_64) ================================================================= System uname: Linux-3.0.4-hardened-r1-x86_64-Intel-R-_Core-TM-_i5_CPU_M_520_@_2.40GHz-with-gentoo-2.0.3 Timestamp of tree: Tue, 27 Sep 2011 09:30:01 +0000 app-shells/bash: 4.1_p9 dev-java/java-config: 2.1.11-r3 dev-lang/python: 2.7.1-r1, 3.1.3-r1 dev-util/cmake: 2.8.4-r1 dev-util/pkgconfig: 0.26 sys-apps/baselayout: 2.0.3 sys-apps/openrc: 0.8.3-r1 sys-apps/sandbox: 2.4 sys-devel/autoconf: 2.13, 2.68 sys-devel/automake: 1.9.6-r3, 1.11.1 sys-devel/binutils: 2.21.1-r1 sys-devel/gcc: 4.5.3-r1 sys-devel/gcc-config: 1.4.1-r1 sys-devel/libtool: 2.4-r1 sys-devel/make: 3.82-r1 sys-kernel/linux-headers: 2.6.36.1 (virtual/os-headers) sys-libs/glibc: 2.12.2 Repositories: gentoo ikelos local-overlay pentoo ACCEPT_KEYWORDS="amd64" ACCEPT_LICENSE="* -@EULA PUEL AdobeFlash-10.1 google-talkplugin dlj-1.1 google-chrome" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=core2 -mtune=generic -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/maven-bin-2.2/conf /var/bind /var/lib/hsqldb" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo" CXXFLAGS="-march=core2 -mtune=generic -O2 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="assume-digests binpkg-logs distlocks ebuild-locks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch" FFLAGS="" GENTOO_MIRRORS="http://ftp.jaist.ac.jp/pub/Linux/Gentoo/" INSTALL_MASK="*.la" LANG="C" LDFLAGS="-Wl,-O1 -Wl,--as-needed" LINGUAS="en ru" MAKEOPTS="-j5" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/var/lib/layman/ikelos /usr/local/portage /pentoo" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X acl alsa amd64 avahi bash-completion berkdb branding bzip2 cli consolekit cracklib crypt cups cxx dbus dri exif flac fuse gdbm gnome gnome-keyring gphoto2 gstreamer gtk hardened iconv java jpeg justify libnotify mmx modules mp3 mudflap multilib ncurses networkmanager nls nptl nptlonly opengl openmp oss pam pax_kernel pcre perl policykit pppd python qt3support qt4 readline samba sdl session spell sse sse2 ssl sysfs syslog tcpd udev unicode urandom vaapi x264 xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan stage tables krita karbon braindump" CAMERAS="ptp2 canon" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev keyboard mouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en ru" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="fbdev vesa intel" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Created attachment 288173 [details] 238-gcc-4.5.3.patch I have moved the initialisation of the "file_operations" structure to the static initialiser. It compiles fine now, however I don't have a test machine and can not verify if it's really working.
FYI, the vmware overlay has app-emulation/vmware-modules-238.5 where the problem is fixed.
Created attachment 290023 [details] the diff file between 238.4 and 238.5 ok, my patch is wrong, don't use it. Sadly, version 4.0 has the same problem, so I have created a diff file between 238.4 and 238.5. It should give a clue how to fix it in the latest version.
Sorry, it could be the compatibility problem with kernel 3.0.1 instead, similar with the bug #386721. My first patch looks the same too.
*** Bug 390077 has been marked as a duplicate of this bug. ***
I've created patches for vmware-modules-264.1, similar to patch used for open-vm-tools-kmod in bug 386721. With these 3 patches I've successfully build vmware-modules-264.1 and run vmware-workstation-8.0.1.528992-r1 with kernel 3.0.4-hardened-r5. Probably these 3 patches should be joined in one.
Created attachment 295017 [details, diff] make vmci-only/linux/driver.c compatible with kernel 3.0.4
Created attachment 295019 [details, diff] make vmmon-only/linux/driver.c compatible with kernel 3.0.4
Created attachment 295021 [details, diff] make vmnet-only/driver.c compatible with kernel 3.0.4
Created attachment 301473 [details, diff] fix compile errors with 3.2.2-hardened-r1 I've found this patch on http://weltall.heliohost.org/wordpress/2012/01/26/vmware-workstation-8-0-2-player-4-0-2-fix-for-linux-kernel-3-2-and-3-3/ and it fixes compile issue with 3.2 kernels.
I've added patched ebuild for app-emulation/vmware-modules-264.1 to my overlay 'powerman' - until these patches will be added to 'vmware' overlay or main portage.
I'm closing this bug because the problem is solved in the latest 264.4 version. vmware@gentoo: your idleness worked out just fine.
The same bug hits me with x86_64 3.4.2-hardened-r1 kernel and vmware-modules-264.4. MODULEBUILDDIR= modules make[1]: Entering directory `/usr/src/linux-3.4.2-hardened-r1' CC [M] /var/tmp/portage/app-emulation/vmware-modules-264.4/work/vmci-only/linux/driver.o CC [M] /var/tmp/portage/app-emulation/vmware-modules-264.4/work/vmci-only/linux/vmciKernelIf.o CC [M] /var/tmp/portage/app-emulation/vmware-modules-264.4/work/vmci-only/common/vmciDriver.o CC [M] /var/tmp/portage/app-emulation/vmware-modules-264.4/work/vmci-only/common/vmciResource.o /var/tmp/portage/app-emulation/vmware-modules-264.4/work/vmci-only/linux/driver.c: In function 'vmci_host_init': /var/tmp/portage/app-emulation/vmware-modules-264.4/work/vmci-only/linux/driver.c:387:4: warning: passing argument 1 of 'memset' discards qualifiers from pointer target type /usr/src/linux-3.4.2-hardened-r1/arch/x86/include/asm/string_64.h:55:7: note: expected 'void *' but argument is of type 'const struct file_operations *' /var/tmp/portage/app-emulation/vmware-modules-264.4/work/vmci-only/linux/driver.c:388:4: error: assignment of read-only variable 'vmuser_fops' /var/tmp/portage/app-emulation/vmware-modules-264.4/work/vmci-only/linux/driver.c:389:4: error: assignment of read-only variable 'vmuser_fops' /var/tmp/portage/app-emulation/vmware-modules-264.4/work/vmci-only/linux/driver.c:391:4: error: assignment of read-only variable 'vmuser_fops' /var/tmp/portage/app-emulation/vmware-modules-264.4/work/vmci-only/linux/driver.c:396:4: error: assignment of read-only variable 'vmuser_fops' /var/tmp/portage/app-emulation/vmware-modules-264.4/work/vmci-only/linux/driver.c:398:4: error: assignment of read-only variable 'vmuser_fops' /var/tmp/portage/app-emulation/vmware-modules-264.4/work/vmci-only/linux/driver.c:399:4: error: assignment of read-only variable 'vmuser_fops' /var/tmp/portage/app-emulation/vmware-modules-264.4/work/vmci-only/linux/driver.c: In function '__check_disable_host': /var/tmp/portage/app-emulation/vmware-modules-264.4/work/vmci-only/linux/driver.c:2498:1: warning: return from incompatible pointer type /var/tmp/portage/app-emulation/vmware-modules-264.4/work/vmci-only/linux/driver.c: In function '__check_disable_guest': /var/tmp/portage/app-emulation/vmware-modules-264.4/work/vmci-only/linux/driver.c:2501:1: warning: return from incompatible pointer type /var/tmp/portage/app-emulation/vmware-modules-264.4/work/vmci-only/linux/driver.c: In function '__check_disable_msi': /var/tmp/portage/app-emulation/vmware-modules-264.4/work/vmci-only/linux/driver.c:2504:1: warning: return from incompatible pointer type /var/tmp/portage/app-emulation/vmware-modules-264.4/work/vmci-only/linux/driver.c: In function '__check_disable_msix': /var/tmp/portage/app-emulation/vmware-modules-264.4/work/vmci-only/linux/driver.c:2507:1: warning: return from incompatible pointer type make[3]: *** [/var/tmp/portage/app-emulation/vmware-modules-264.4/work/vmci-only/linux/driver.o] Error 1 make[3]: *** Waiting for unfinished jobs.... make[2]: *** [_module_/var/tmp/portage/app-emulation/vmware-modules-264.4/work/vmci-only] Error 2 make[1]: *** [sub-make] Error 2 make[1]: Leaving directory `/usr/src/linux-3.4.2-hardened-r1' make: *** [vmci.ko] Error 2 * ERROR: app-emulation/vmware-modules-264.4 failed (compile phase): * emake failed * * If you need support, post the output of `emerge --info '=app-emulation/vmware-modules-264.4'`, * the complete build log and the output of `emerge -pqv '=app-emulation/vmware-modules-264.4'`. * The complete build log is located at '/var/tmp/portage/app-emulation/vmware-modules-264.4/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/app-emulation/vmware-modules-264.4/temp/environment'. * Working directory: '/var/tmp/portage/app-emulation/vmware-modules-264.4/work/vmci-only' * S: '/var/tmp/portage/app-emulation/vmware-modules-264.4/work'
(In reply to comment #13) > The same bug hits me with x86_64 3.4.2-hardened-r1 kernel and > vmware-modules-264.4. with USE=pax_kernel?
don't using pax in kernel and use flag pax-kernel was set off with USE="pax-kernel" it works.
now i can crash my machine with starting a vm.
(In reply to comment #16) > now i can crash my machine with starting a vm. That is the dead end, a long term and very annoying bug #382793