All of lore.kernel.org
 help / color / mirror / Atom feed
From: Pintu Kumar <pintu.ping@gmail.com>
To: Jan Kiszka <jan.kiszka@siemens.com>,
	Greg Gallagher <greg@embeddedgreg.com>,
	Philippe Gerum <rpm@xenomai.org>
Cc: "Xenomai@xenomai.org" <xenomai@xenomai.org>
Subject: Re: [Xenomai] Kernel oops during rtnet loopback usage on x86_64 (e1000e)
Date: Wed, 20 Jun 2018 13:24:15 +0530	[thread overview]
Message-ID: <CAOuPNLh2C8b1KC5D6+Lws_1UA0o0Sp_BaPb3mUTyebUPq_EduA@mail.gmail.com> (raw)
In-Reply-To: <CAOuPNLjuB53ovnEBijNSqrgsKYcSGjLM-L=J4mfbRogwo_5kVA@mail.gmail.com>

Hi,

Can someone help me with this issue.
I compared the xenomai-3 next repo
(next/kernel/drivers/net/stack/ipv4/udp/udp.c) and the changes are
almost same.
Now I am stuck with this..
Please help!

Is there any test available for rtnet loopback ?

Regards,
Pintu
On Tue, Jun 19, 2018 at 7:18 PM Pintu Kumar <pintu.ping@gmail.com> wrote:
>
> Hi,
> I upgraded to xenomai-3-next branch for x86, but still rtnet loopback
> is crashing for me.
> The xenomai kernel is used from 4.9.51 until
> commit: 10605b427b1408cdc6926f7c25d4a4eda527da8d
>     Author: Philippe Gerum <rpm@xenomai.org>
>     Date:   Mon Mar 26 09:17:02 2018 +0200
>
>         ipipe-core-4.9.51-x86-5
>
> Is the rtnet loopback working with 4.9 ?
> Please let me know if this issue is fixed already ?
>
> This is the kernel logs:
> ------------------------------------------
> [612871.612307]
>                 *** RTnet for Xenomai v3.1-devel ***
>
> [612871.612310] RTnet: initialising real-time networking
> [612906.855980] initializing loopback...
> [612906.855998] RTnet: registered rtlo
> [613075.162006] BUG: unable to handle kernel paging request at 00007ffc7893b148
> [613075.162009] IP: [<ffffffffc0a0503e>] rt_udp_getfrag+0x3e/0x110 [rtudp]
> [613075.162013] PGD 744f76067
> [613075.162014] PUD 80e1ae067
> [613075.162015] PMD 6893dd067
> [613075.162015] PTE 8000000581853867
>
> [613075.162018] Oops: 0001 [#1] SMP
> [613075.162019] Modules linked in: rt_loopback rtpacket rtudp rtipv4
> rtnet binfmt_misc 8021q garp mrp stp llc rfcomm bnep
> snd_hda_codec_hdmi nls_iso8859_1 eeepc_wmi intel_rapl btusb asus_wmi
> x86_pkg_temp_thermal btrtl sparse_keymap intel_powerclamp coretemp
> ath10k_pci kvm ath10k_core irqbypass ath mac80211 crct10dif_pclmul
> crc32_pclmul ghash_clmulni_intel aesni_intel snd_hda_codec_realtek
> aes_x86_64 snd_hda_codec_generic lrw cfg80211 gf128mul glue_helper
> ablk_helper snd_hda_intel cryptd snd_hda_codec snd_hda_core input_leds
> snd_hwdep mei_me mei shpchp serio_raw hci_uart btbcm btqca btintel
> bluetooth acpi_als kfifo_buf intel_lpss_acpi industrialio intel_lpss
> mac_hid acpi_pad autofs4 hid_generic usbhid nouveau mxm_wmi ttm
> psmouse e1000e ptp pps_core ahci libahci i2c_hid pinctrl_sunrisepoint
> wmi hid video
> [613075.162049]  pinctrl_intel fjes
> [613075.162052] CPU: 0 PID: 12658 Comm: rtnet-client Not tainted
> 4.9.51-amd-x86-64-pintu-xeno3-rtdm #4
> [613075.162053] Hardware name: System manufacturer System Product Name/xxx
> [613075.162054] I-pipe domain: Linux
> [613075.162055] task: ffff903e8921da00 task.stack: ffff9e2f03348000
> [613075.162056] RIP: 0010:[<ffffffffc0a0503e>]  [<ffffffffc0a0503e>]
> rt_udp_getfrag+0x3e/0x110 [rtudp]
> [613075.162058] RSP: 0018:ffff9e2f0334bb70  EFLAGS: 00010202
> [613075.162059] RAX: 0000000000000000 RBX: 000000000000000a RCX:
> 00007ffc7893b140
> [613075.162060] RDX: 0000000000000000 RSI: ffff903e88e431e4 RDI:
> ffff9e2f0334bc40
> [613075.162061] RBP: ffff9e2f0334bb90 R08: ffff9e2f0334bdb8 R09:
> 0000000000000000
> [613075.162062] R10: ffff903e88e43100 R11: ffff90400c1c8800 R12:
> ffff903e88e431e4
> [613075.162063] R13: 0000000000000001 R14: ffff9e2f0334bc40 R15:
> 000000000000001e
> [613075.162064] FS:  00007f310b789740(0000) GS:ffff904016200000(0000)
> knlGS:0000000000000000
> [613075.162065] CS:  0010 DS: 0000 ES: 0000 CR0: 000000008005003b
> [613075.162066] CR2: 00007ffc7893b148 CR3: 0000000744e5b000 CR4:
> 00000000003406f0
> [613075.162067] DR0: 0000000000000000 DR1: 0000000000000000 DR2:
> 0000000000000000
> [613075.162067] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7:
> 0000000000000400
> [613075.162068] Stack:
> [613075.162069]  ffff9040121bec00 ffff90400e262240 ffff9e2f0334bdb8
> 000000000000000a
> [613075.162071]  ffff9e2f0334bc00 ffffffffc0a0f204 ffff903dd1a84500
> ffff9e2f0334bc10
> [613075.162074]  0000000000033768 ffff9e2f0334bc40 ffffffffc0a05000
> 0000000f00000000
> [613075.162076] Call Trace:
> [613075.162091]  [<ffffffffc0a0f204>] rt_ip_build_xmit+0x1c4/0x2a0 [rtipv4]
> [613075.162093]  [<ffffffffc0a05000>] ? 0xffffffffc0a05000
> [613075.162094]  [<ffffffffc0a060db>] rt_udp_sendmsg+0x37b/0x3d0 [rtudp]
> [613075.162097]  [<ffffffffa70a4676>] ? update_curr+0x66/0x180
> [613075.162098]  [<ffffffffa70a67b8>] ? dequeue_entity+0x268/0xc00
> [613075.162100]  [<ffffffffa718a117>] ? ___xnsched_run.part.73+0x3d7/0x400
> [613075.162102]  [<ffffffffa70a4035>] ? hrtick_update+0x5/0x70
> [613075.162103]  [<ffffffffa70a76d7>] ? dequeue_task_fair+0x587/0x900
> [613075.162105]  [<ffffffffa71a0390>] ? CoBaLt_recvmmsg+0x30/0x30
> [613075.162106]  [<ffffffffa71a0390>] ? CoBaLt_recvmmsg+0x30/0x30
> [613075.162108]  [<ffffffffa719ad7b>] rtdm_fd_sendmsg+0xcb/0x240
> [613075.162109]  [<ffffffffa71a0390>] ? CoBaLt_recvmmsg+0x30/0x30
> [613075.162111]  [<ffffffffa71a03de>] CoBaLt_sendmsg+0x4e/0x70
> [613075.162113]  [<ffffffffa71ad017>] ipipe_syscall_hook+0x117/0x340
> [613075.162114]  [<ffffffffa712f9ff>] __ipipe_notify_syscall+0xbf/0x170
> [613075.162116]  [<ffffffffa79007b7>] pipeline_syscall+0x8/0x1b
> [613075.162118] Code: 54 49 89 f4 53 89 cb 8b 57 20 0f 85 c3 00 00 00
> 85 d2 7e 2f 8b 47 24 45 31 ed 49 63 cd 89 c2 41 83 c5 01 48 c1 e1 04
> 49 03 4e 18 <8b> 71 08 48 8b 39 e8 e7 f4 a0 e6 41 8b 56 20 41 89 46 24
> 44 39
> [613075.162141] RIP  [<ffffffffc0a0503e>] rt_udp_getfrag+0x3e/0x110 [rtudp]
> [613075.162143]  RSP <ffff9e2f0334bb70>
> [613075.162144] CR2: 00007ffc7893b148
> [613075.162145] ---[ end trace 90458bf1f92e3557 ]---
> On Thu, Apr 26, 2018 at 9:53 PM Jan Kiszka <jan.kiszka@siemens.com> wrote:
> >
> > On 2018-04-25 13:36, Pintu Kumar wrote:
> > > Dear Jan,
> > >
> > > Thank you so much for your reply.
> > > I will try the latest stable version to check again.
> > > Is ipipe patches (linux: 4.9.51) also needs to be upgraded for this
> > > issue? Or only xenomai-3/kernel patches are enough?
> >
> > This particular issue was addressed in the Xenomai core, not the I-pipe
> > patch.
> >
> > >
> > > Actually, now I am stuck with another question.
> > > Hope if you could help me.
> > >
> > > As I said, I applied xenomai-3.0.6, kernel patches (using
> > > prepare_kernel script) to my x86_64 kernel, around 4 months back.
> > > I am using it since then. After that I never upgraded any patches.
> > >
> > > Now my concern is, how do I apply/upgrade only the latest patches?
> > > I did not remember the last commit until which I applied the patches.
> > >
> > > Is prepare_kernel script in intelligent enough to find the patch
> > > difference, and apply on the latest patches ?
> > >
> > > Normally how you people upgrade to the latest xenomai patches.
> > > If you have any suggestions, please guide me.
> >
> > Well, best practice is versioning control and build automation. You can
> > pull the patch into your local kernel or use the i-pipe kernel git tree
> > as feed (if you have no own patches). Then you just need
> > prepare-kernel.sh to refresh the xenomai core.
> >
> > And building everything can also be automated by scripts or more
> > advanced systems that also track the source revisions for you. Can be
> > git, can be something like yocto, buildroot etc.
> >
> > Jan
> >
> > --
> > Siemens AG, Corporate Technology, CT RDA IOT SES-DE
> > Corporate Competence Center Embedded Linux


  reply	other threads:[~2018-06-20  7:54 UTC|newest]

Thread overview: 36+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-04-25  8:39 [Xenomai] Kernel oops during rtnet loopback usage on x86_64 (e1000e) Pintu Kumar
2018-04-25 10:05 ` Jan Kiszka
2018-04-25 11:36   ` Pintu Kumar
2018-04-26 16:23     ` Jan Kiszka
2018-06-19 13:48       ` Pintu Kumar
2018-06-20  7:54         ` Pintu Kumar [this message]
2018-06-21 11:20           ` Pintu Kumar
2018-06-21 11:55             ` Jan Kiszka
2018-06-21 12:27               ` [Xenomai] Kernel panic during kernel bootup on arm64 qemu (e1000e) gengdongjiu
2018-06-21 13:47                 ` Greg Gallagher
2018-06-21 13:56                   ` [Xenomai] Kernel panic during kernel bootup on arm64 qemu gengdongjiu
     [not found]                   ` <5b2baebc.1c69fb81.af598.ef46SMTPIN_ADDED_BROKEN@mx.google.com>
2018-06-21 14:04                     ` Greg Gallagher
2018-06-21 14:14                       ` gengdongjiu
2018-06-21 13:41               ` [Xenomai] Kernel oops during rtnet loopback usage on x86_64 (e1000e) Jan Kiszka
2018-06-21 14:57                 ` Jan Kiszka
2018-06-25 12:56                   ` Pintu Kumar
2018-06-26 11:08                     ` Pintu Kumar
2018-06-27 10:20                       ` Jan Kiszka
2018-06-27 10:56                         ` Pintu Kumar
2018-06-27 11:14                           ` Jan Kiszka
2018-06-27 14:12                             ` Pintu Kumar
2018-06-27 16:17                               ` Jan Kiszka
2018-06-27 17:13                                 ` Pintu Kumar
2018-06-27 17:17                                   ` Greg Gallagher
2018-06-27 17:29                                     ` Pintu Kumar
2018-06-27 18:10                                       ` Philippe Gerum
2018-06-28 10:40                                         ` Pintu Kumar
2018-06-28 13:07                                           ` Philippe Gerum
2018-06-27 18:04                                 ` Philippe Gerum
2018-11-04 16:17                   ` Philippe Gerum
2018-11-06 18:57                     ` Jan Kiszka
2018-11-07 10:04                       ` Philippe Gerum
2018-11-07 10:19                         ` Jan Kiszka
2018-11-07 10:31                           ` Philippe Gerum
2018-11-07 11:19                             ` Jan Kiszka
2018-11-07 11:29                               ` Philippe Gerum

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAOuPNLh2C8b1KC5D6+Lws_1UA0o0Sp_BaPb3mUTyebUPq_EduA@mail.gmail.com \
    --to=pintu.ping@gmail.com \
    --cc=greg@embeddedgreg.com \
    --cc=jan.kiszka@siemens.com \
    --cc=rpm@xenomai.org \
    --cc=xenomai@xenomai.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.