From mboxrd@z Thu Jan 1 00:00:00 1970 From: greg@kroah.com (Greg KH) Date: Tue, 4 Oct 2016 17:05:57 +0200 Subject: Char device write repeating In-Reply-To: References: Message-ID: <20161004150557.GB25308@kroah.com> To: kernelnewbies@lists.kernelnewbies.org List-Id: kernelnewbies.lists.kernelnewbies.org On Tue, Oct 04, 2016 at 10:58:16AM -0400, Kenneth Adam Miller wrote: > I have a character device that I am calling write on and which is succeeding, > but which is repeatedly executing. I have hard coded the return value to one, > so I don't think the userland standard library is retrying but I could be > wrong. Can anybody tell me why write would be re-executed by the kernel and how > to fix it? I dont actually copy_from_user, I just need this in order to signal > kernel land. Do you have a pointer to your code somewhere? This is a very common bug that people have... thanks, greg k-h