From owner-freebsd-net@freebsd.org Wed Jun 13 15:56:23 2018 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 637F210180B6 for ; Wed, 13 Jun 2018 15:56:23 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id EF9EA6A894 for ; Wed, 13 Jun 2018 15:56:22 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id B35F210180B1; Wed, 13 Jun 2018 15:56:22 +0000 (UTC) Delivered-To: net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 8F29B10180B0 for ; Wed, 13 Jun 2018 15:56:22 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 206976A88D for ; Wed, 13 Jun 2018 15:56:22 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id 62050244FF for ; Wed, 13 Jun 2018 15:56:21 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id w5DFuL2K098334 for ; Wed, 13 Jun 2018 15:56:21 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id w5DFuLWG098333 for net@FreeBSD.org; Wed, 13 Jun 2018 15:56:21 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: net@FreeBSD.org Subject: [Bug 228854] dynamically loading ipsec module broken for VIMAGE/VNET enabled kernel Date: Wed, 13 Jun 2018 15:56:21 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 11.1-STABLE X-Bugzilla-Keywords: vimage X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: zarychtam@plan-b.pwste.edu.pl X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: net@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Jun 2018 15:56:23 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D228854 --- Comment #10 from Marek Zarychta --- (In reply to Andrey V. Elsukov from comment #8) I attempted to load ipsec module through ktrace.=20 Maybe output from kdump will shed some light on it. 4988 ktrace RET ktrace 0 4988 ktrace CALL execve(0x7fffffffe570,0x7fffffffeb00,0x7fffffffeb20) 4988 ktrace NAMI "/sbin/kldload" 4988 ktrace NAMI "/libexec/ld-elf.so.1" 4988 kldload RET execve 0 4988 kldload CALL=20 mmap(0,0x8000,0x3,0x1002,0xffff= ffff,0) 4988 kldload RET mmap 34366160896/0x800620000 4988 kldload CALL issetugid 4988 kldload RET issetugid 0 4988 kldload CALL lstat(0x800624000,0x7fffffffd2a8) 4988 kldload NAMI "/etc" 4988 kldload STRU struct stat {dev=3D3966367049, ino=3D34, mode=3D04075= 5, nlink=3D27, uid=3D0, gid=3D0, rdev=3D4294967295, atime=3D1488438738, mtime=3D1528894917.915542000, ctime=3D1528894917.915542000, birthtime=3D1488438738.121758000, size=3D124, blksize=3D8192, blocks=3D17, = flags=3D0x800 } 4988 kldload RET lstat 0 4988 kldload CALL lstat(0x800624000,0x7fffffffd2a8) 4988 kldload NAMI "/etc/libmap.conf" 4988 kldload STRU struct stat {dev=3D3966367049, ino=3D129, mode=3D0100= 644, nlink=3D1, uid=3D0, gid=3D0, rdev=3D4294967295, atime=3D1488438738, mtime= =3D1486757987, ctime=3D1488438738.133604000, birthtime=3D1488438738.133580000, size=3D107, blksize=3D4096, blocks=3D9, flags=3D0x800 } 4988 kldload RET lstat 0 4988 kldload CALL openat(AT_FDCWD,0x800624000,0x100000) 4988 kldload NAMI "/etc/libmap.conf" 4988 kldload RET openat 3 4988 kldload CALL fstat(0x3,0x7fffffffdf68) 4988 kldload STRU struct stat {dev=3D3966367049, ino=3D129, mode=3D0100= 644, nlink=3D1, uid=3D0, gid=3D0, rdev=3D4294967295, atime=3D1488438738, mtime= =3D1486757987, ctime=3D1488438738.133604000, birthtime=3D1488438738.133580000, size=3D107, blksize=3D4096, blocks=3D9, flags=3D0x800 } 4988 kldload RET fstat 0 4988 kldload CALL mmap(0,0x6b,0x1,0x2,0x3,0) 4988 kldload RET mmap 34366193664/0x800628000 4988 kldload CALL close(0x3) 4988 kldload RET close 0 4988 kldload CALL lstat(0x800624800,0x7fffffffc648) 4988 kldload NAMI "/usr" 4988 kldload STRU struct stat {dev=3D3966367049, ino=3D9, mode=3D040755, nlink=3D17, uid=3D0, gid=3D0, rdev=3D4294967295, atime=3D1488438765, mtime=3D1491851814.556537000, ctime=3D1491851814.556537000, birthtime=3D1488438727.012480000, size=3D17, blksize=3D4096, blocks=3D17, f= lags=3D0x800 } 4988 kldload RET lstat 0 4988 kldload CALL lstat(0x800624800,0x7fffffffc648) 4988 kldload NAMI "/usr/local" 4988 kldload STRU struct stat {dev=3D3966367049, ino=3D481, mode=3D0407= 55, nlink=3D18, uid=3D0, gid=3D0, rdev=3D4294967295, atime=3D1488438738, mtime=3D1528385864.682621000, ctime=3D1528385864.682621000, birthtime=3D1488438738.192704000, size=3D18, blksize=3D4096, blocks=3D17, f= lags=3D0x800 } 4988 kldload RET lstat 0 4988 kldload CALL lstat(0x800624800,0x7fffffffc648) 4988 kldload NAMI "/usr/local/etc" 4988 kldload STRU struct stat {dev=3D3966367049, ino=3D32834, mode=3D04= 0755, nlink=3D53, uid=3D0, gid=3D0, rdev=3D4294967295, atime=3D1488441079.8995480= 00, mtime=3D1528385863.622125000, ctime=3D1528385863.622125000, birthtime=3D1488441079.899548000, size=3D90, blksize=3D6144, blocks=3D17, f= lags=3D0x800 } 4988 kldload RET lstat 0 4988 kldload CALL lstat(0x800624800,0x7fffffffc648) 4988 kldload NAMI "/usr/local/etc/libmap.d" 4988 kldload RET lstat -1 errno 2 No such file or directory 4988 kldload CALL munmap(0x800628000,0x6b) 4988 kldload RET munmap 0 4988 kldload CALL openat(AT_FDCWD,0x80061b429,0x100000) 4988 kldload NAMI "/var/run/ld-elf.so.hints" 4988 kldload RET openat 3 4988 kldload CALL read(0x3,0x800821628,0x80) 4988 kldload GIO fd 3 read 128 bytes 0x0000 4568 6e74 0100 0000 8000 0000 4301 0000 0000 0000 4201 0000 0= 000 0000 0000 0000 0000 |Ehnt........C.......B.............| 0x0022 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0= 000 0000 0000 0000 0000 |..................................| 0x0044 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0= 000 0000 0000 0000 0000 |..................................| 0x0066 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0= 000=20 |..........................| 4988 kldload RET read 128/0x80 4988 kldload CALL fstat(0x3,0x7fffffffd7f0) 4988 kldload STRU struct stat {dev=3D3966367049, ino=3D721374, mode=3D0= 100444, nlink=3D1, uid=3D0, gid=3D0, rdev=3D4294967295, atime=3D1528903774.82024500= 0, mtime=3D1528903774.820294000, ctime=3D1528903774.820317000, birthtime=3D1528903774.820245000, size=3D451, blksize=3D4096, blocks=3D9, f= lags=3D0x800 } 4988 kldload RET fstat 0 4988 kldload CALL lseek(0x3,0x80,SEEK_SET) 4988 kldload RET lseek 128/0x80 4988 kldload CALL read(0x3,0x800625000,0x143) 4988 kldload GIO fd 3 read 323 bytes =20=20=20=20=20=20 "/lib:/usr/lib:/usr/lib/compat:/usr/local/lib:/usr/local/lib/R/lib:/usr/loc= al/lib/compat:/usr/local/lib/gcc6:/usr/local/lib/graphvi\ =20=20=20=20=20=20=20 z:/usr/local/lib/nss:/usr/local/lib/opencollada:/usr/local/lib/perl5/5.26/m= ach/CORE:/usr/local/lib/qt5:/usr/local/lib/samba4:/usr/\ local/lib/xrdp:/usr/local/llvm60/lib:/usr/local/share/chromium\0" 4988 kldload RET read 323/0x143 4988 kldload CALL close(0x3) 4988 kldload RET close 0 4988 kldload CALL access(0x800624800,0) 4988 kldload NAMI "/lib/libc.so.7" 4988 kldload RET access 0 4988 kldload CALL=20 openat(AT_FDCWD,0x800621060,0x300000) 4988 kldload NAMI "/lib/libc.so.7" 4988 kldload RET openat 3 4988 kldload CALL fstat(0x3,0x7fffffffdb28) 4988 kldload STRU struct stat {dev=3D3966367049, ino=3D655658, mode=3D0= 100444, nlink=3D1, uid=3D0, gid=3D0, rdev=3D4294967295, atime=3D1528875590.64398500= 0, mtime=3D1528875590.644651000, ctime=3D1528875590.645044000, birthtime=3D1528875590.643985000, size=3D1769376, blksize=3D131072, blocks= =3D2169, flags=3D0x20000 } 4988 kldload RET fstat 0 4988 kldload CALL=20 mmap(0,0x1000,0x1,0x40002,0x3,0) 4988 kldload RET mmap 34366193664/0x800628000 4988 kldload CALL=20 mmap(0,0x3ba000,0,0x2000,0xffffffff,0) 4988 kldload RET mmap 34368266240/0x800822000 4988 kldload CALL=20 mmap(0x800822000,0x195000,0x5,0x60012,0x3,0) 4988 kldload RET mmap 34368266240/0x800822000 4988 kldload CALL=20 mmap(0x800bb6000,0xd000,0x3,0x40012,0x3,0x194000) 4988 kldload RET mmap 34372018176/0x800bb6000 4988 kldload CALL=20 mmap(0x800bc3000,0x19000,0x3,0x1012,0xffffffff,0) 4988 kldload RET mmap 34372071424/0x800bc3000 4988 kldload CALL munmap(0x800628000,0x1000) 4988 kldload RET munmap 0 4988 kldload CALL close(0x3) 4988 kldload RET close 0 4988 kldload CALL=20 mmap(0,0x19000,0x3,0x1002,0xfff= fffff,0) 4988 kldload RET mmap 34366193664/0x800628000 4988 kldload CALL sigprocmask(SIG_BLOCK,0x800821738,0x7fffffffdfd0) 4988 kldload RET sigprocmask 0 4988 kldload CALL sigprocmask(SIG_SETMASK,0x80082174c,0) 4988 kldload RET sigprocmask 0 4988 kldload CALL readlink(0x800987a18,0x7fffffffd700,0x400) 4988 kldload NAMI "/etc/malloc.conf" 4988 kldload RET readlink -1 errno 2 No such file or directory 4988 kldload CALL issetugid 4988 kldload RET issetugid 0 4988 kldload CALL=20 __sysctl(0x7fffffffd5a0,0x2,0x7fffffffd5f0,0x7fffffffd5e8,0x8009864ab,0xd) 4988 kldload SCTL "sysctl.name2oid" 4988 kldload RET __sysctl 0 4988 kldload CALL=20 __sysctl(0x7fffffffd5f0,0x2,0x7fffffffd6b4,0x7fffffffd6a8,0,0) 4988 kldload SCTL "vm.overcommit" 4988 kldload RET __sysctl 0 4988 kldload CALL=20 mmap(0,0x200000,0x3,0x1002,0xff= ffffff,0) 4988 kldload RET mmap 34372173824/0x800bdc000 4988 kldload CALL munmap(0x800bdc000,0x200000) 4988 kldload RET munmap 0 4988 kldload CALL=20 mmap(0,0x3ff000,0x3,0x1002,0xff= ffffff,0) 4988 kldload RET mmap 34372173824/0x800bdc000 4988 kldload CALL munmap(0x800bdc000,0x24000) 4988 kldload RET munmap 0 4988 kldload CALL munmap(0x800e00000,0x1db000) 4988 kldload RET munmap 0 4988 kldload CALL sigprocmask(SIG_BLOCK,0x800821738,0x7fffffffdb50) 4988 kldload RET sigprocmask 0 4988 kldload CALL sigprocmask(SIG_SETMASK,0x80082174c,0) 4988 kldload RET sigprocmask 0 4988 kldload CALL sigprocmask(SIG_BLOCK,0x800821738,0x7fffffffdb50) 4988 kldload RET sigprocmask 0 4988 kldload CALL sigprocmask(SIG_SETMASK,0x80082174c,0) 4988 kldload RET sigprocmask 0 4988 kldload CALL kldload(0x7fffffffedab) 4988 kldload NAMI "/boot/kernel/linker.hints" 4988 kldload NAMI "/boot/kernel/ipsec.ko" 4988 kldload NAMI "/boot/kernel/ipsec.ko" 4988 kldload NAMI "/boot/kernel/ipsec.ko" 4988 kldload RET kldload -1 errno 8 Exec format error 4988 kldload CALL write(0x2,0x7fffffffdda0,0x9) 4988 kldload GIO fd 2 wrote 9 bytes "kldload: " 4988 kldload RET write 9 4988 kldload CALL write(0x2,0x7fffffffdea0,0x53) 4988 kldload GIO fd 2 wrote 83 bytes "an error occurred while loading the module. Please check dmesg(8) f= or more details." 4988 kldload RET write 83/0x53 4988 kldload CALL write(0x2,0x800bc1c67,0x1) 4988 kldload GIO fd 2 wrote 1 byte " " 4988 kldload RET write 1 4988 kldload CALL sigprocmask(SIG_BLOCK,0x800821738,0x7fffffffe910) 4988 kldload RET sigprocmask 0 4988 kldload CALL sigprocmask(SIG_SETMASK,0x80082174c,0) 4988 kldload RET sigprocmask 0 4988 kldload CALL sigprocmask(SIG_BLOCK,0x800821738,0x7fffffffe480) 4988 kldload RET sigprocmask 0 4988 kldload CALL sigprocmask(SIG_SETMASK,0x80082174c,0) 4988 kldload RET sigprocmask 0 4988 kldload CALL sigprocmask(SIG_BLOCK,0x800821738,0x7fffffffe480) 4988 kldload RET sigprocmask 0 4988 kldload CALL sigprocmask(SIG_SETMASK,0x80082174c,0) 4988 kldload RET sigprocmask 0 4988 kldload CALL exit(0x1) --=20 You are receiving this mail because: You are the assignee for the bug.=