From: miguel.robles@farole.net
To: Daniel Baluta <daniel.baluta@gmail.com>
Cc: linux-iio@vger.kernel.org, linux-iio-owner@vger.kernel.org
Subject: Re: PROBLEM: iio: dummy: Oops after mkdir
Date: Thu, 09 Mar 2017 16:59:39 +0100 [thread overview]
Message-ID: <592203dd4ed4ded678778294008728bc@farole.net> (raw)
In-Reply-To: <CAEnQRZAO0X9hW=kykM5wZrweO6Xukts-XUWWyQNJM0D3fJXh4Q@mail.gmail.com>
On 2017-03-09 16:41, Daniel Baluta wrote:
> On Thu, Mar 9, 2017 at 4:34 PM, Miguel Robles
> <miguel.robles@farole.net> wrote:
>> Hello all,
>>
>> I am beginning with Linux Kernel development. So I am trying to make
>> the IIO tasks posted on kernelnewbies DOT org.
>> But I got stuck with this problem that I am describing you hereafter
>> hoping that someone could bring me any feedback.
>>
>> Many thanks,
>> Miguel ROBLES
>>
>> ----------
>> DESCRIPTION
>> -----------
>>
>> After loading the corresponding IIO modules and mountig the configfs
>> filesystem
>> I can not create an instance device with mkdir using the command:
>>
>> $ sudo mkdir /config/iio/devices/dummy/my_dummy_device
>> Killed
>>
>> I get the "Killed" message and looking at my syslog file, I got the
>> warning
>> "refcount_t: increment on 0; use-after-free" followed by an "Oops"
>> message.
>> When trying to execute the command one more time, the execution never
>> finishes.
>>
>>
>> ------
>> CONTEXT
>> -------
>>
>> - Tried on 2 linux kernel releases:
>> - kernel: 4.10 (commit: 4977ab6)
>> - Kernel: 4.11 (commit: ec3b93a)
>>
>> - Compiled with config file including the following options for IIO:
>>
>> #
>> # IIO dummy driver
>> #
>> CONFIG_IIO_DUMMY_EVGEN=m
>> CONFIG_IIO_SIMPLE_DUMMY=m
>> CONFIG_IIO_SIMPLE_DUMMY_EVENTS=y
>> CONFIG_IIO_SIMPLE_DUMMY_BUFFER=y
>>
>> CONFIG_IIO_CONFIGFS=m
>
> Do you also have CONFIG_IIO_SW_DEVICE right?
Yes, and the value is: CONFIG_IIO_SW_DEVICE=m.
Thank you,
Miguel
>
> Will try to have a look at this asap.
>
>
> thanks,
> Daniel.
next prev parent reply other threads:[~2017-03-09 15:59 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-03-09 14:34 PROBLEM: iio: dummy: Oops after mkdir Miguel Robles
2017-03-09 15:41 ` Daniel Baluta
2017-03-09 15:59 ` miguel.robles [this message]
2017-03-09 17:36 ` Alison Schofield
2017-03-09 17:40 ` Alison Schofield
2017-03-09 18:08 ` Miguel Robles
2017-03-09 18:15 ` Lars-Peter Clausen
2017-03-09 18:25 ` Miguel Robles
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=592203dd4ed4ded678778294008728bc@farole.net \
--to=miguel.robles@farole.net \
--cc=daniel.baluta@gmail.com \
--cc=linux-iio-owner@vger.kernel.org \
--cc=linux-iio@vger.kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox