All of lore.kernel.org
 help / color / mirror / Atom feed
From: "gregkh@linuxfoundation.org" <gregkh@linuxfoundation.org>
To: 조준완 <junwan.cho@samsung.com>
Cc: "Jiri Kosina" <jikos@kernel.org>,
	"michael.zaidman@gmail.com" <michael.zaidman@gmail.com>,
	"erazor_de@users.sourceforge.net"
	<erazor_de@users.sourceforge.net>,
	"mcoquelin.stm32@gmail.com" <mcoquelin.stm32@gmail.com>,
	"alexandre.torgue@foss.st.com" <alexandre.torgue@foss.st.com>,
	"linux-input@vger.kernel.org" <linux-input@vger.kernel.org>,
	"stable@vger.kernel.org" <stable@vger.kernel.org>,
	김일호 <ih0923.kim@samsung.com>, 박천호 <chun.ho.park@samsung.com>,
	배윤식 <yunsik.bae@samsung.com>, 강대희 <daihee7.kang@samsung.com>,
	이광호 <gaudium.lee@samsung.com>, 류천우 <chunwoo.ryu@samsung.com>,
	나두수 <doosu.na@samsung.com>, 김수현 <suhyun_.kim@samsung.com>
Subject: Re: (2) Request for reverting the commit for Samsung HID driver
Date: Wed, 30 Mar 2022 10:14:22 +0200	[thread overview]
Message-ID: <YkQRXqlzVjBLbvp2@kroah.com> (raw)
In-Reply-To: <20220330080937epcms1p51e6c98c5eb5f8108c9cfe35efa450daa@epcms1p5>

On Wed, Mar 30, 2022 at 05:09:37PM +0900, 조준완 wrote:
> 
> Dear Jiri Kosina,
> 
> Thank you for your propt reponse.
> 
> 
> Please refer to accossories below.
> 
> 
> static const struct hid_device_id samsung_devices[] = {
> 	{ HID_USB_DEVICE(USB_VENDOR_ID_SAMSUNG, USB_DEVICE_ID_SAMSUNG_IR_REMOTE) },
> 	{ HID_USB_DEVICE(USB_VENDOR_ID_SAMSUNG, USB_DEVICE_ID_SAMSUNG_WIRELESS_KBD_MOUSE) },
>     { HID_BLUETOOTH_DEVICE(USB_VENDOR_ID_SAMSUNG_ELECTRONICS, USB_DEVICE_ID_SAMSUNG_WIRELESS_KBD) },
>     { HID_BLUETOOTH_DEVICE(USB_VENDOR_ID_SAMSUNG_ELECTRONICS, USB_DEVICE_ID_SAMSUNG_WIRELESS_GAMEPAD) },
>     { HID_BLUETOOTH_DEVICE(USB_VENDOR_ID_SAMSUNG_ELECTRONICS, USB_DEVICE_ID_SAMSUNG_WIRELESS_ACTIONMOUSE) },
>     { HID_BLUETOOTH_DEVICE(USB_VENDOR_ID_SAMSUNG_ELECTRONICS, USB_DEVICE_ID_SAMSUNG_WIRELESS_UNIVERSAL_KBD) },
>     { HID_BLUETOOTH_DEVICE(USB_VENDOR_ID_SAMSUNG_ELECTRONICS, USB_DEVICE_ID_SAMSUNG_WIRELESS_MULTI_HOGP_KBD) },
> 	{ }
> };
> MODULE_DEVICE_TABLE(hid, samsung_devices);
> 
> 
> Mobile users prefer to use Bluetooth devices instead of USB devices.
> The commit should be reverted for Bluetooth accessories.
> 
> Due to internal problem, it takes time to upload Samsung's patch.
> So, please first revert the commit :)

No, not at all.

The commit is correct, as the driver code, as contained in the kernel
tree, requires that check to solve a problem where this driver can be
used to exploit the system.

Any out-of-tree changes you make, you are required to maintain and keep
up to date in order to have them remain working.  That is a requirement
of you, we have no idea what changes anyone else makes, that would be
impossible.

This is the real cost of keeping out-of-tree changes, your management
knows this and plans for it in their budgeting.  There is nothing that
we can do about this.

So the change needs to remain in order for the code to be correct.
Without it, you have a broken and totally insecure system.

If you wish to make the changes you list above to the driver, you now
need to make more changes in order to properly handle the fixes we made
to the code.  Please submit your changes so that we can review them and
accept them if they are correct.

thanks,

greg k-h

  parent reply	other threads:[~2022-03-30  8:14 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CGME20220330062122epcms1p30a2c2e3e1d3b108d729a00034bf86587@epcms1p3>
     [not found] ` <20220330062122epcms1p30a2c2e3e1d3b108d729a00034bf86587@epcms1p3>
2022-03-30  6:40   ` Request for reverting the commit for Samsung HID driver gregkh
     [not found] ` <20220330070159epcms1p31c351bc7eb90d99e0bbecd2c2f6092d1@epcms1p3>
2022-03-30  7:52   ` Jiri Kosina
2022-03-30  8:09     ` 조준완
2022-03-30  8:11       ` Jiri Kosina
2022-03-30  8:14       ` gregkh [this message]
2022-03-30  8:23         ` RE:(2) (2) " 조준완
2022-03-30  8:27           ` Jiri Kosina
2022-03-30  8:32           ` (2) " gregkh
2022-03-30  8:44             ` 조준완
2022-03-30  8:49               ` Jiri Kosina
2022-03-30  9:01                 ` 조준완
2022-03-30  9:13                   ` (3) " gregkh
2022-03-30  9:20                     ` 조준완
2022-03-30  9:26                       ` (2) " gregkh
2022-03-30  9:43                         ` 조준완
2022-03-30  9:49                           ` (2) " gregkh
2022-03-30  9:58                             ` 조준완
2022-03-30 18:43                               ` Krzysztof Kozlowski
2022-03-31  1:51                                 ` 조준완
2022-03-31  4:22                                   ` (2) " gregkh
2022-03-30  9:12               ` (2) (2) " gregkh
2022-03-30  7:56   ` gregkh

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=YkQRXqlzVjBLbvp2@kroah.com \
    --to=gregkh@linuxfoundation.org \
    --cc=alexandre.torgue@foss.st.com \
    --cc=chun.ho.park@samsung.com \
    --cc=chunwoo.ryu@samsung.com \
    --cc=daihee7.kang@samsung.com \
    --cc=doosu.na@samsung.com \
    --cc=erazor_de@users.sourceforge.net \
    --cc=gaudium.lee@samsung.com \
    --cc=ih0923.kim@samsung.com \
    --cc=jikos@kernel.org \
    --cc=junwan.cho@samsung.com \
    --cc=linux-input@vger.kernel.org \
    --cc=mcoquelin.stm32@gmail.com \
    --cc=michael.zaidman@gmail.com \
    --cc=stable@vger.kernel.org \
    --cc=suhyun_.kim@samsung.com \
    --cc=yunsik.bae@samsung.com \
    /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.