All of lore.kernel.org
 help / color / mirror / Atom feed
From: Vladis Dronov <vdronov@redhat.com>
To: Sasha Levin <sashal@kernel.org>
Cc: Jiri Kosina <jikos@kernel.org>, stable@vger.kernel.org
Subject: Re: [PATCH v3] HID: debug: fix the ring buffer implementation
Date: Wed, 30 Jan 2019 13:13:12 -0500 (EST)	[thread overview]
Message-ID: <1827956174.68503350.1548871992137.JavaMail.zimbra@redhat.com> (raw)
In-Reply-To: <20190130175202.GS3973@sasha-vm>

Hello, Sasha, all,

> The reason for that mess is that on <=4.14 kernels, there is a
> dependency on 6396bb22151 ("treewide: kzalloc() -> kcalloc()"), but
> since that patch is a treewide change, to bring that in we need a big
> pile of seemingly random patches from all over the tree, which is the
> output you see.

Indeed, this patch depends on 2 tree-wide patches, one being 6396bb22151
("treewide: kzalloc() -> kcalloc()") as you've mentioned and another one
is a9a08845e9ac ("vfs: do bulk POLL* -> EPOLL* replacement"). In the part
of HID driver they basically do:

#6396bb22151

-        buf = kzalloc(sizeof(char) * HID_DEBUG_BUFSIZE, GFP_ATOMIC);
+        buf = kzalloc(HID_DEBUG_BUFSIZE, GFP_ATOMIC);

-    if (!(list->hid_debug_buf = kzalloc(sizeof(char) * HID_DEBUG_BUFSIZE, GFP_KERNEL))) {
+    if (!(list->hid_debug_buf = kzalloc(HID_DEBUG_BUFSIZE, GFP_KERNEL))) {

#a9a08845e9ac
-        return POLLIN | POLLRDNORM;
+        return EPOLLIN | EPOLLRDNORM;

-        return POLLERR | POLLHUP;
+        return EPOLLERR | EPOLLHUP;

Adding this 2 changes to the 4.14.y make HID patch to apply cleanly (except
offsets). I suppose, I need to backport HID patch (adding these 2 changes
above) and post to stable@.

I will follow this process:
https://www.kernel.org/doc/html/latest/process/stable-kernel-rules.html

In case I do smth wrong, please, tell.

Best regards,
Vladis Dronov | Red Hat, Inc. | Product Security | Senior Software Engineer

  reply	other threads:[~2019-01-30 18:13 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-01-29 10:58 [PATCH v3] HID: debug: fix the ring buffer implementation Vladis Dronov
2019-01-29 12:55 ` Benjamin Tissoires
     [not found] ` <20190130144646.2C96A218A4@mail.kernel.org>
2019-01-30 16:59   ` Jiri Kosina
2019-01-30 17:52     ` Sasha Levin
2019-01-30 18:13       ` Vladis Dronov [this message]
2019-02-08 14:45       ` Vladis Dronov

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=1827956174.68503350.1548871992137.JavaMail.zimbra@redhat.com \
    --to=vdronov@redhat.com \
    --cc=jikos@kernel.org \
    --cc=sashal@kernel.org \
    --cc=stable@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 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.