From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-yw0-f178.google.com (mail-yw0-f178.google.com [209.85.161.178]) by dpdk.org (Postfix) with ESMTP id 6BDF037A0 for ; Thu, 14 Apr 2016 00:26:24 +0200 (CEST) Received: by mail-yw0-f178.google.com with SMTP id d68so86078203ywe.1 for ; Wed, 13 Apr 2016 15:26:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to; bh=xNca7QN0nxeGL8y+oMxGRMki9svZMu3jRprXkEorMQE=; b=sDOoo1hvQT3bttBgBeWQfOIwHcU0BLQ8JSAr5AJKa1ptZyYVvAVG8CnUv6s370tvV4 4x6DuNa+bWRvAbYeq2eU3ILNwYje8wD9/PryoU6/nZJ/IJSNRThVajgSiuIAllRGa2st xruMAEUuQ0IP9SUa9cEnRSr3LD1sanBXWlAUolGI0ggr2QpAAVV1bPRYBlB3Yu9h4OuG bpNjsS7W0Tp5NTpwVoz1DZ3ttaZPitZ0VcFXq2b5NzIt73CzNROxr3xDIAManB1RY0KU 4yRrsEoT03j6cbYryiRYeSQImOnBxoDMY+Yw5kJsdq4tTD9DsORYyETYJ2135ZMh0eSO dNRA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to; bh=xNca7QN0nxeGL8y+oMxGRMki9svZMu3jRprXkEorMQE=; b=ITiwEz+BQkDM0f7RaoKwIYLire+DA5IDVLU+06B619RvXU8UV4BhAfabP3ELbqN0qf UAnF1ixuRwqP+WqQCpMbjkRpvTj3Gg69YOlScvZTIRWZRzSctP357rmUNjJtmYTrF713 rOAFCA1SB7ZdyIm8IdKNKjXfQEqnmVdqsiMg88NT+pfKw8UuWZ9dWL7zbk8B1dyj0Wvk 0myrUcpfDxlh/bPzhwzlod+9NkQSL4d3xkP5LfHvetIXbBhmzFFPv42h7Lx3t66SGo39 8VNZdUo7BJFUne6UgKfcnjDX/Jcjw0nGF0MrktjGhu8P9TAPuZcS4qp2TydcyvfLog96 TuuA== X-Gm-Message-State: AOPr4FVibggkVBadyeD2748lWnEJaDcVHd9543hskYIVNxjchxlOcETl3+98sNqQ9iARdYio0CE/aeQlb3RI4w== MIME-Version: 1.0 X-Received: by 10.129.109.195 with SMTP id i186mr6998042ywc.255.1460586383808; Wed, 13 Apr 2016 15:26:23 -0700 (PDT) Received: by 10.129.70.194 with HTTP; Wed, 13 Apr 2016 15:26:23 -0700 (PDT) In-Reply-To: References: Date: Wed, 13 Apr 2016 15:26:23 -0700 Message-ID: From: ALeX Wang To: dev@dpdk.org Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: Re: [dpdk-dev] [4.4 kernel] kni lockup, kernel dump X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Apr 2016 22:26:24 -0000 Did more experiment, found that it has nothing to do with the kernel version, It only happens when using kni module with '--no-huge' eal flag... Is that expected? Thanks, Alex Wang, On 12 April 2016 at 17:28, ALeX Wang wrote: > I tried compiling both dpdk-2.2 and dpdk-16.04, all have the issue, > > Thanks, > > On 12 April 2016 at 17:19, ALeX Wang wrote: > >> Hi, >> >> I recently upgraded my debian/jessie to 4.4 kernel, and my application >> uses kni to >> create test interface, >> >> However, when doing 'rte_kni_alloc()', i observed the following log in >> syslog... >> If i go on trying setting interface via ifconfig, the execution locks >> up... >> >> [ 888.051427] BUG: unable to handle kernel paging request at >> 0000073b010bcb88 >> [ 888.051972] IP: [] kni_net_rx_normal+0x3a/0x290 >> [rte_kni] >> [ 888.052371] PGD 0 >> [ 888.052638] Oops: 0000 [#1] SMP >> [ 888.053041] Modules linked in: rte_kni(O) xt_conntrack ipt_MASQUERADE >> nf_nat_masquerade_ipv4 iptable_nat nf_conntrack_ipv4 nf_defrag_ipv4 >> nf_nat_ipv4 xt_addrtype iptable_filter ip_tables x_tables nf_nat >> nf_conntrack br_netfilter bridge stp llc dm_thin_pool dm_persistent_data >> dm_bio_prison dm_bufio libcrc32c crc32c_generic loop dm_mod nfsd >> auth_rpcgss oid_registry nfs_acl nfs lockd grace fscache sunrpc >> crct10dif_pclmul crc32_pclmul jitterentropy_rng sha256_ssse3 sha256_generic >> hmac drbg ansi_cprng ppdev parport_pc i2c_piix4 aesni_intel aes_x86_64 >> parport acpi_cpufreq tpm_tis tpm lrw gf128mul glue_helper ablk_helper evdev >> cryptd 8250_fintek psmouse processor serio_raw video battery button ac >> pcspkr autofs4 ext4 crc16 mbcache jbd2 sg sd_mod ata_generic ahci >> crc32c_intel libahci ata_piix fjes libata >> [ 888.065118] e1000 scsi_mod >> [ 888.065476] CPU: 1 PID: 2226 Comm: kni_single Tainted: G O >> 4.4.0-0.bpo.1-amd64 #1 Debian 4.4.6-1~bpo8+1 >> [ 888.065861] Hardware name: innotek GmbH VirtualBox/VirtualBox, BIOS >> VirtualBox 12/01/2006 >> [ 888.066183] task: ffff88011ab9e0c0 ti: ffff8800b2fb8000 task.ti: >> ffff8800b2fb8000 >> [ 888.066666] RIP: 0010:[] [] >> kni_net_rx_normal+0x3a/0x290 [rte_kni] >> [ 888.094268] RSP: 0018:ffff8800b2fbbd40 EFLAGS: 00010246 >> [ 888.094879] RAX: ffff8800da073000 RBX: ffff8800d88bc2f8 RCX: >> 0000000000000000 >> [ 888.095392] RDX: 0000073b010bcb80 RSI: 0000000000000282 RDI: >> ffff8800da073840 >> [ 888.095929] RBP: 00000000000003e8 R08: ffff8800b2fb8000 R09: >> 000000cec3fd1e2c >> [ 888.096425] R10: 0000000000000002 R11: 0000000000000000 R12: >> ffff8800d88bc2c0 >> [ 888.096913] R13: ffff8800d88bc2d0 R14: ffff8800da073840 R15: >> ffff8800da073840 >> [ 888.097382] FS: 0000000000000000(0000) GS:ffff88011fc80000(0000) >> knlGS:0000000000000000 >> [ 888.098052] CS: 0010 DS: 0000 ES: 0000 CR0: 000000008005003b >> [ 888.098490] CR2: 0000073b010bcb88 CR3: 0000000000044000 CR4: >> 00000000000406e0 >> [ 888.098958] Stack: >> [ 888.099294] ffff8800b2fb8000 ffff88011fc95d80 ffff88011ab9e0c0 >> 0000000000000000 >> [ 888.100428] ffffffff810bc311 0000000000000000 0000000000000002 >> 000000cec3fd1e2c >> [ 888.101629] ffff8800b2fb8000 ffff88011fc8df80 0000000000000282 >> 0000000000000001 >> [ 888.103134] Call Trace: >> [ 888.103607] [] ? >> __raw_callee_save___pv_queued_spin_unlock+0x11/0x20 >> [ 888.104553] [] ? try_to_del_timer_sync+0x59/0x80 >> [ 888.105290] [] ? del_timer_sync+0x44/0x50 >> [ 888.105722] [] ? schedule_timeout+0x169/0x2d0 >> [ 888.106159] [] ? >> trace_event_raw_event_tick_stop+0x100/0x100 >> [ 888.106816] [] ? kni_thread_single+0x4c/0xa0 >> [rte_kni] >> [ 888.107279] [] ? kni_init_net+0x50/0x50 [rte_kni] >> [ 888.107754] [] ? kthread+0xdf/0x100 >> [ 888.108177] [] ? kthread_park+0x50/0x50 >> [ 888.108600] [] ? ret_from_fork+0x3f/0x70 >> [ 888.109026] [] ? kthread_park+0x50/0x50 >> [ 888.109448] Code: 54 55 53 48 81 ec 28 01 00 00 48 8b 97 78 01 00 00 >> 65 48 8b 04 25 28 00 00 00 48 89 84 24 20 01 00 00 31 c0 48 8b 87 48 01 00 >> 00 <44> 8b 72 08 48 89 04 24 8b 42 04 8b 0a 41 83 ee 01 83 e8 01 29 >> [ 888.145305] RIP [] kni_net_rx_normal+0x3a/0x290 >> [rte_kni] >> [ 888.145904] RSP >> [ 888.146337] CR2: 0000073b010bcb88 >> [ 888.146705] ---[ end trace ef3848430517129b ]--- >> >> -- >> Alex Wang, >> >> > > > -- > Alex Wang, > Open vSwitch developer > -- Alex Wang, Open vSwitch developer