Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Kernel config for docker went wrong
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
mgcyung
n00b
n00b


Joined: 06 Nov 2016
Posts: 30

PostPosted: Sat Apr 13, 2019 6:38 am    Post subject: Kernel config for docker went wrong Reply with quote

Hello everyone! I have a problem with the kernel. I want to install
docker. After I configured the kernel as
wiki.gentoo.org/wiki/Docker
the kernel doesn't work well. There are some kernel log printed after
login prompt.
Code:

This is localhost.unknown_domain (Linux x86_64 4.19.27-gentoo-rl) 10:51:z5

localllost login: [ 19.0088l6] wlp58s0: authenticate with 70:3d:15:c8:11:20
[   19.046081] wlp58s0: send auth to 70:3d:15:c8:11:20 (tty 1/3)
[   19.047397] wlp58s0: authenticated
[   24.047848] wlp58s0: aborting association with 70:3d:15:c8:11:20 by local choice (Reason:3=DEAUTH_LEAVING)


And there is an Oops in the dmesg
Code:

  [    9.222782] ath10k_pci 0000:3a:00.0: Unknown eventid: 118809
  [    9.226168] ath10k_pci 0000:3a:00.0: Unknown eventid: 90118
  [    9.302315] IPv6: ADDRCONF(NETDEV_UP): wlp58s0: link is not ready
  [    9.426625] BUG: unable to handle kernel paging request at 000002c000000119
  [    9.427274] PGD 0 P4D 0
  [    9.427907] Oops: 0000 [#1] SMP PTI
  [    9.428835] CPU: 1 PID: 13439 Comm: openvpn Tainted: G           O      4.19.27-gentoo-r1 #3
  [    9.429542] Hardware name: Dell Inc. XPS 13 9360/09MDF4, BIOS 2.9.0 07/09/2018
  [    9.430188] RIP: 0010:0xffffffffa04e22b7
  [    9.430943] Code: 1f 00 41 0f 94 c2 48 85 f6 74 38 4c 8b 8e c8 00 00 00 48 89 f7 44 0f b7 86 bc 00 00 00 0f b7 86 ba 00 00 00 4d 01 c8 49 01 c1 <41> 0f b6 40 09 3c 06 74 16 3c 11 74 58 3c 01 74 2d 48 83 05 40 e3
  [    9.430945] RSP: 0018:ffffc90000f6fc08 EFLAGS: 00010202
  [    9.430946] RAX: 0000000000000000 RBX: ffff88827054c6c0 RCX: 0000000000000000
  [    9.430947] RDX: ffffc90000f6fc40 RSI: ffff88826f74c4e8 RDI: ffff88826f74c4e8
  [    9.430948] RBP: ffff88826f74c4e8 R08: 000002c000000110 R09: 000002c000000110
  [    9.430949] R10: 0000000000000001 R11: ffffc90000f6fd47 R12: ffffc90000f6fc40
  [    9.430950] R13: 0000000000000000 R14: 0000000000000000 R15: ffff888273a77ce8
  [    9.430951] FS:  00007fef2c481500(0000) GS:ffff888276280000(0000) knlGS:0000000000000000
  [    9.430952] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
  [    9.430955] CR2: 000002c000000119 CR3: 0000000271dfe001 CR4: 00000000003606e0
  [    9.438681] Call Trace:
  [    9.438687]  nf_hook_slow+0x3f/0xc0
  [    9.438691]  __ip_local_out+0xed/0x140
  [    9.441265]  ? ip_forward_options.cold.8+0x1c/0x1c
  [    9.441268]  ip_local_out+0x12/0x40
  [    9.443202]  __tcp_transmit_skb+0x522/0xad0
  [    9.443204]  tcp_connect+0x8a3/0x9f0
  [    9.443207]  tcp_v4_connect+0x45a/0x4d0
  [    9.443209]  __inet_stream_connect+0xc1/0x330
  [    9.443212]  ? tcp_tsq_write.part.51+0xa0/0xa0
  [    9.443213]  inet_stream_connect+0x31/0x50
  [    9.443216]  __sys_connect+0xcb/0x100
  [    9.443219]  ? do_fcntl+0x33f/0x5a0
  [    9.443221]  ? __x64_sys_fcntl+0x86/0xb0
  [    9.443223]  __x64_sys_connect+0x11/0x20
  [    9.443225]  do_syscall_64+0x43/0xf0
  [    9.451650]  entry_SYSCALL_64_after_hwframe+0x44/0xa9
  [    9.451652] RIP: 0033:0x7fef2c7a18d8
  [    9.453323] Code: 00 00 48 83 ec 28 64 48 8b 04 25 28 00 00 00 48 89 44 24 18 31 c0 48 8d 05 05 5e 0c 00 8b 00 85 c0 75 27 b8 2a 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 60 48 8b 4c 24 18 64 48 33 0c 25 28 00 00 00
  [    9.453324] RSP: 002b:00007fff970b19c0 EFLAGS: 00000246 ORIG_RAX: 000000000000002a
  [    9.455104] RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 00007fef2c7a18d8
  [    9.455105] RDX: 0000000000000010 RSI: 000055e6b4626f30 RDI: 0000000000000003
  [    9.455105] RBP: 0000000000000078 R08: 00000000000004ff R09: 000055e6b4626f50
  [    9.455106] R10: fffffffffffff65e R11: 0000000000000246 R12: 000055e6b302a240
  [    9.455107] R13: 000055e6b4626f30 R14: 000055e6b4625340 R15: 000055e6b46253b8
  [    9.455108] Modules linked in: vboxpci(O) vboxnetadp(O) vboxnetflt(O) vboxdrv(O) netatop(O) snd_hda_codec_realtek snd_hda_codec_generic uvcvideo btusb btrtl videobuf2_vmalloc btbcm videobuf2_memops videobuf2_v4l2 btintel videobuf2_common videodev ath10k_pci ath10k_core ath mac80211 i915 i2c_algo_bit snd_hda_intel drm_kms_helper syscopyarea sysfillrect sysimgblt snd_hda_codec fb_sys_fops x86_pkg_temp_thermal snd_hwdep cfg80211 snd_hda_core drm intel_gtt agpgart efivarfs fuse
  [    9.455130] CR2: 000002c000000119
  [    9.455131] ---[ end trace dc3c3a0985d98249 ]---


The sysytem info ("emerge --info") is
Code:

Portage 2.3.62 (python 2.7.15-final-0, default/linux/amd64/17.0, gcc-8.2.0, glibc-2.28-r6, 4.19.27-gentoo-r1 x86_64)
=================================================================
System uname: Linux-4.19.27-gentoo-r1-x86_64-Intel-R-_Core-TM-_i5-7200U_CPU_@_2.50GHz-with-gentoo-2.6
KiB Mem:     7886320 total,   2159928 free
KiB Swap:    8388604 total,   8388604 free
Timestamp of repository gentoo: Sat, 13 Apr 2019 03:00:01 +0000
Head commit of repository gentoo: 81abbae9a66960582a5faf66150111fabe4526ea
Head commit of repository mgc-overlay: 679c090efa0412a7eb0e6d81780a497e77017606

Head commit of repository xmw: f11be8529613740a651ce829c5f59b6390d80688

sh bash 4.4_p23-r1
ld GNU ld (Gentoo 2.31.1 p5) 2.31.1
app-shells/bash:          4.4_p23-r1::gentoo
dev-java/java-config:     2.2.0-r4::gentoo
dev-lang/perl:            5.26.2::gentoo
dev-lang/python:          2.7.15::gentoo, 3.5.5::gentoo, 3.6.5::gentoo, 3.7.0::gentoo
dev-util/cmake:           3.9.6::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.6-r1::gentoo
sys-apps/openrc:          0.38.3-r1::gentoo
sys-apps/sandbox:         2.13::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.11.6-r3::gentoo, 1.13.4-r2::gentoo, 1.16.1-r1::gentoo
sys-devel/binutils:       2.31.1-r4::gentoo
sys-devel/gcc:            4.9.4::gentoo, 8.2.0-r6::gentoo
sys-devel/gcc-config:     2.0::gentoo
sys-devel/libtool:        2.4.6-r3::gentoo
sys-devel/make:           4.2.1-r4::gentoo
sys-kernel/linux-headers: 5.0-r1::gentoo (virtual/os-headers)
sys-libs/glibc:           2.28-r6::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-verify-jobs: 1
    sync-rsync-verify-metamanifest: yes
    sync-rsync-extra-opts:
    sync-rsync-verify-max-age: 24

dotnet
    location: /var/lib/layman/dotnet
    sync-type: laymansync
    sync-uri: https://github.com/gentoo/dotnet.git
    masters: gentoo
    priority: 50

gentoo-zh
    location: /var/lib/layman/gentoo-zh
    sync-type: laymansync
    sync-uri: git://github.com/microcai/gentoo-zh.git
    masters: gentoo
    priority: 50

haskell
    location: /var/lib/layman/haskell
    sync-type: laymansync
    sync-uri: https://github.com/gentoo-haskell/gentoo-haskell.git
    masters: gentoo
    priority: 50

jollheef-overlay
    location: /var/lib/layman/jollheef-overlay
    sync-type: laymansync
    sync-uri: https://github.com/jollheef/jollheef-overlay.git
    masters: gentoo
    priority: 50

maggu2810-overlay
    location: /var/lib/layman/maggu2810-overlay
    sync-type: laymansync
    sync-uri: git://github.com/maggu2810/maggu2810-overlay.git
    masters: gentoo
    priority: 50

mgc-overlay
    location: /usr/local/portage/mgc-overlay
    sync-type: git
    sync-uri: https://github.com/mgcyung/mgc-overlay.git
    masters: gentoo
    priority: 50

pentoo
    location: /var/lib/layman/pentoo
    sync-type: laymansync
    sync-uri: https://github.com/pentoo/pentoo-overlay.git
    masters: gentoo
    priority: 50

science
    location: /var/lib/layman/science
    sync-type: laymansync
    sync-uri: https://anongit.gentoo.org/git/proj/sci.git
    masters: gentoo
    priority: 50

stuff
    location: /var/lib/layman/stuff
    sync-type: laymansync
    sync-uri: https://github.com/istitov/stuff.git
    masters: gentoo
    priority: 50

wizard
    location: /var/lib/layman/wizard
    sync-type: laymansync
    sync-uri: https://github.com/m31271n/wizard.git
    masters: gentoo
    priority: 50

xmw
    location: /usr/local/portage/xmw
    sync-type: git
    sync-uri: https://anongit.gentoo.org/git/dev/xmw.git
    masters: gentoo
    priority: 50

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/easy-rsa /usr/share/gnupg/qualified.txt /usr/share/maven-bin-3.3/conf /var/bind"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php7.2/ext-active/ /etc/php/cgi-php7.2/ext-active/ /etc/php/cli-php7.2/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -pipe"
DISTDIR="/usr/portage/distfiles"
ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://mirrors.ustc.edu.cn/gentoo http://mirrors.xmu.edu.cn/gentoo http://distfiles.gentoo.org http://www.ibiblio.org/pub/Linux/distributions/gentoo"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="X acl amd64 berkdb bindist bluetooth bzip2 cli crypt cxx doc dri fortran gdbm iconv ipv6 libtirpc multilib ncurses nls nptl openmp pam pcre readline seccomp ssl tcpd tk unicode xattr zlib" ABI_X86="64" 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" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd 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="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 fma3 mmx mmxext pclmul popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="evdev synaptics wacom" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" NETBEANS_MODULES="apisupport cnd groovy gsf harness ide identity j2ee java mobility nb php profiler soa visualweb webcommon websvccommon xml" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6 php7-1" POSTGRES_TARGETS="postgres9_5 postgres10" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python2_7 python3_6" RUBY_TARGETS="ruby24" SANE_BACKENDS="hp" USERLAND="GNU" VIDEO_CARDS="intel i965" 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:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS


The kernel config is http://ix.io/1G5G


Last edited by mgcyung on Sat Apr 13, 2019 4:21 pm; edited 1 time in total
Back to top
View user's profile Send private message
Ant P.
Watchman
Watchman


Joined: 18 Apr 2009
Posts: 5855

PostPosted: Sat Apr 13, 2019 1:31 pm    Post subject: Reply with quote

Can you reproduce this on an untainted kernel?
Back to top
View user's profile Send private message
mgcyung
n00b
n00b


Joined: 06 Nov 2016
Posts: 30

PostPosted: Sat Apr 13, 2019 1:46 pm    Post subject: Reply with quote

Ant P. wrote:
Can you reproduce this on an untainted kernel?


What is an untainted kernel?
Back to top
View user's profile Send private message
Ant P.
Watchman
Watchman


Joined: 18 Apr 2009
Posts: 5855

PostPosted: Sat Apr 13, 2019 3:03 pm    Post subject: Reply with quote

Quote:
Code:
   [    9.428835] CPU: 1 PID: 13439 Comm: openvpn Tainted: G           O      4.19.27-gentoo-r1 #3

Check the rest of dmesg to find out where the taint status comes from
Back to top
View user's profile Send private message
mgcyung
n00b
n00b


Joined: 06 Nov 2016
Posts: 30

PostPosted: Sat Apr 13, 2019 3:28 pm    Post subject: Reply with quote

Ant P. wrote:
Quote:
Code:
   [    9.428835] CPU: 1 PID: 13439 Comm: openvpn Tainted: G           O      4.19.27-gentoo-r1 #3

Check the rest of dmesg to find out where the taint status comes from


What exactly do I need to find?
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 13975

PostPosted: Sat Apr 13, 2019 3:51 pm    Post subject: Reply with quote

mgcyung wrote:
What exactly do I need to find?
You already showed it:
mgcyung wrote:
Code:
[    9.455108] Modules linked in: vboxpci(O) vboxnetadp(O) vboxnetflt(O) vboxdrv(O) netatop(O) snd_hda_codec_realtek snd_hda_codec_generic uvcvideo btusb btrtl videobuf2_vmalloc btbcm videobuf2_memops videobuf2_v4l2 btintel videobuf2_common videodev ath10k_pci ath10k_core ath mac80211 i915 i2c_algo_bit snd_hda_intel drm_kms_helper syscopyarea sysfillrect sysimgblt snd_hda_codec fb_sys_fops x86_pkg_temp_thermal snd_hwdep cfg80211 snd_hda_core drm intel_gtt agpgart efivarfs fuse
Also, please do not post kernel configurations inline. They do not fit. Instead, upload them to a pastebin and link to it.
Back to top
View user's profile Send private message
mgcyung
n00b
n00b


Joined: 06 Nov 2016
Posts: 30

PostPosted: Sat Apr 13, 2019 4:32 pm    Post subject: Reply with quote

Hu wrote:
[Also, please do not post kernel configurations inline. They do not fit. Instead, upload them to a pastebin and link to it.


The kernel configurations is pasted and the post is edited.

Hu wrote:
You already showed it:


I'm new to kernel debugging. Do I need to locate which module caused the taint status? How?
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 13975

PostPosted: Sat Apr 13, 2019 10:48 pm    Post subject: Reply with quote

mgcyung wrote:
Hu wrote:
You already showed it:
I'm new to kernel debugging. Do I need to locate which module caused the taint status? How?
Yes. Look for modules with (O) after their name. In your case: vboxpci(O) vboxnetadp(O) vboxnetflt(O) vboxdrv(O) netatop(O). Blacklist those modules. Reboot. Attempt to reproduce the error. If it reproduces, check that the out-of-tree taint is absent.
Back to top
View user's profile Send private message
mgcyung
n00b
n00b


Joined: 06 Nov 2016
Posts: 30

PostPosted: Sun Apr 14, 2019 1:10 am    Post subject: Reply with quote

Hu wrote:
Yes. Look for modules with (O) after their name. In your case: vboxpci(O) vboxnetadp(O) vboxnetflt(O) vboxdrv(O) netatop(O). Blacklist those modules. Reboot. Attempt to reproduce the error. If it reproduces, check that the out-of-tree taint is absent.


It is the netatop which causes the taint. When it is blocked, the error is gone.
Code:

# blacklist vboxpci
# blacklist vboxnetadp
# blacklist vboxnetflt
# blacklist vboxdrv
blacklist netatop


I use netatop to show network information in atop
Code:

NETATOP MODULE
       Per-process  and  per-thread network activity can be measured by the netatop kernel module. You
       can download this kernel module from the website (mentioned at the end of this manual page) and
       install it on your system if the kernel version is 2.6.24 or newer.
       When  atop  gathers counters for a new interval, it verifies if the netatop module is currently
       active. If so, atop obtains the relevant network counters from this module and shows the number
       of  sent and received packets per process/thread in the generic screen. Besides, detailed coun‐
       ters can be requested by pressing the `n' key.
       When the netatopd daemon is running as well, atop also reads the  network  counters  of  exited
       processes that are logged by this daemon (comparable with process accounting).

       More  information about the optional netatop kernel module and the netatopd daemon can be found
       in the concerning man-pages and on the website mentioned at the end of this manual page.


It seems there is a conflict between netatop and kernel configuration for docker. But I don't know why.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum