Re: [PATCH 2/2] media: rc: remove zte zx ir driver

2021-03-02 Thread Sean Young
Hi Arnd, On Mon, Mar 01, 2021 at 10:25:22AM +, Sean Young wrote: > On Wed, Jan 20, 2021 at 03:25:42PM +0100, Arnd Bergmann wrote: > > From: Arnd Bergmann > > > > The zte zx platform is getting removed, so this driver is no > > longer needed. > >

Re: [PATCH 2/2] media: rc: remove zte zx ir driver

2021-03-01 Thread Sean Young
Hi Arnd, On Wed, Jan 20, 2021 at 03:25:42PM +0100, Arnd Bergmann wrote: > From: Arnd Bergmann > > The zte zx platform is getting removed, so this driver is no > longer needed. I think the keymap should go too. drivers/media/rc/keymaps/rc-zx-irdec.c Any references to RC_MAP_ZX_IRDEC or

Re: [PATCH 1/2] media: rc: remove tango ir driver

2021-03-01 Thread Sean Young
Hi Arnd, On Thu, Jan 21, 2021 at 01:57:28PM +, Måns Rullgård wrote: > Arnd Bergmann writes: > > > From: Arnd Bergmann > > > > The tango platform is getting removed, so the driver is no > > longer needed. > > > > Cc: Marc Gonzalez > > Cc: Mans Rullgard > > Signed-off-by: Arnd Bergmann >

Re: [PATCH 2/2] media: dvb-usb: Fix use-after-free access

2021-01-31 Thread Sean Young
Hi Takashi, On Fri, Jan 22, 2021 at 04:47:44PM +0100, Robert Foss wrote: > Hey Takashi, > > This patch is generating a checkpatch warning, but I think it is > spurious and can be ignored. The checkpatch warning isn't superious and should really be corrected. > > Other than that, this looks

Re: [PATCH 1/2] media: dvb-usb: Fix memory leak at error in dvb_usb_device_init()

2021-01-31 Thread Sean Young
On Wed, Jan 20, 2021 at 11:20:56AM +0100, Takashi Iwai wrote: > dvb_usb_device_init() allocates a dvb_usb_device object, but it > doesn't release it even when returning an error. The callers don't > seem caring it as well, hence those memories are leaked. > > This patch assures releasing the

Re: [PATCH] media: rc: select CONFIG_BITREVERSE where needed

2021-01-19 Thread Sean Young
ext+0x1704): undefined reference to `byte_rev_table' > Acked-by: Sean Young Thanks Sean > Signed-off-by: Arnd Bergmann > --- > drivers/media/rc/Kconfig | 2 ++ > drivers/media/rc/img-ir/Kconfig | 1 + > drivers/media/usb/cx231xx/Kconfig | 1 + > drivers/media

Re: [PATCH v2 0/4] media: sunxi-cir: Cleanup and power management

2021-01-18 Thread Sean Young
On Mon, Jan 18, 2021 at 12:00:44AM -0600, Samuel Holland wrote: > This series cleans up some dead code in the sunxi-cir driver and adds > system power management hooks. > > --- > Changes from v1: > - Unregister the RC device first thing in sunxi_ir_remove() [3] > Thanks. I've tested it on my

Re: [PATCH 3/4] media: sunxi-cir: Factor out hardware initialization

2021-01-13 Thread Sean Young
Hi Samuel, On Wed, Jan 13, 2021 at 09:00:20AM -0600, Samuel Holland wrote: > On 1/13/21 8:36 AM, Sean Young wrote: > > On Tue, Jan 12, 2021 at 10:51:31PM -0600, Samuel Holland wrote: > >> In preparation for adding suspend/resume hooks, factor out the hardware > >> ini

Re: [PATCH 3/4] media: sunxi-cir: Factor out hardware initialization

2021-01-13 Thread Sean Young
On Tue, Jan 12, 2021 at 10:51:31PM -0600, Samuel Holland wrote: > In preparation for adding suspend/resume hooks, factor out the hardware > initialization from the driver probe/remove functions. > > The timeout programmed during init is taken from the `struct rc_dev` so > it is maintained across

Re: [PATCH 1/4] media: sunxi-cir: Clean up dead register writes

2021-01-13 Thread Sean Young
On Tue, Jan 12, 2021 at 10:51:29PM -0600, Samuel Holland wrote: > The register writes during driver removal occur after the device is > already put back in reset, so they never had any effect. > > Signed-off-by: Samuel Holland > --- > drivers/media/rc/sunxi-cir.c | 10 -- > 1 file

Re: [PATCH] Fix shift-out-of-bound in mceusb_process_ir_data

2021-01-13 Thread Sean Young
On Wed, Jan 13, 2021 at 07:11:22PM +0800, Dongliang Mu wrote: > The missing check of ir->buf_in[i+1] can lead to an shift-out-of-bound > in mceusb_handle_command or mceusb_dev_printdata. This patch adds a > check to limit its value lower than 16. The concrete report of UBSAN is > as follows. > >

[PATCH v3 2/4] libbpf: add support for ints larger than 128 bits

2021-01-05 Thread Sean Young
-types Link: https://reviews.llvm.org/D93103 Signed-off-by: Sean Young --- tools/lib/bpf/btf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/lib/bpf/btf.c b/tools/lib/bpf/btf.c index 3c3f2bc6c652..a676373f052b 100644 --- a/tools/lib/bpf/btf.c +++ b/tools/lib/bpf/btf.c

[PATCH v3 0/4] btf: support ints larger than 128 bits

2021-01-05 Thread Sean Young
review. Link: https://clang.llvm.org/docs/LanguageExtensions.html#extended-integer-types Link: https://reviews.llvm.org/D93103 Signed-off-by: Sean Young changes since v2: - split patches into 4 distinct patches changes since v1: - added tests as suggested by Yonghong Song - added kernel

[PATCH v3 1/4] btf: add support for ints larger than 128 bits

2021-01-05 Thread Sean Young
review. Link: https://clang.llvm.org/docs/LanguageExtensions.html#extended-integer-types Link: https://reviews.llvm.org/D93103 Signed-off-by: Sean Young --- Documentation/bpf/btf.rst | 4 +-- include/uapi/linux/btf.h | 2 +- kernel/bpf/btf.c | 54

[PATCH v3 4/4] bpf: add tests for ints larger than 128 bits

2021-01-05 Thread Sean Young
review. Link: https://clang.llvm.org/docs/LanguageExtensions.html#extended-integer-types Link: https://reviews.llvm.org/D93103 Signed-off-by: Sean Young --- tools/testing/selftests/bpf/Makefile | 3 +- tools/testing/selftests/bpf/prog_tests/btf.c | 3 +- .../selftests/bpf/progs

[PATCH v3 3/4] bpftool: add support for ints larger than 128 bits

2021-01-05 Thread Sean Young
-types Link: https://reviews.llvm.org/D93103 Signed-off-by: Sean Young --- tools/bpf/bpftool/btf_dumper.c | 40 ++ 1 file changed, 40 insertions(+) diff --git a/tools/bpf/bpftool/btf_dumper.c b/tools/bpf/bpftool/btf_dumper.c index 0e9310727281..8b5318ec5c26 100644

Re: [PATCH v2] btf: support ints larger than 128 bits

2021-01-05 Thread Sean Young
On Wed, Dec 30, 2020 at 10:21:09AM -0800, Yonghong Song wrote: > On 12/19/20 8:36 AM, Sean Young wrote: > > clang supports arbitrary length ints using the _ExtInt extension. This > > can be useful to hold very large values, e.g. 256 bit or 512 bit types. > > > > L

[PATCH v2] btf: support ints larger than 128 bits

2020-12-19 Thread Sean Young
review. Link: https://clang.llvm.org/docs/LanguageExtensions.html#extended-integer-types Link: https://reviews.llvm.org/D93103 Signed-off-by: Sean Young --- changes since v2: - added tests as suggested by Yonghong Song - added kernel pretty-printer Documentation/bpf/btf.rst

Re: [PATCH] btf: support ints larger than 128 bits

2020-12-18 Thread Sean Young
Hi Yonghong, Thank you for the detailed review. On Thu, Dec 17, 2020 at 06:12:11PM -0800, Yonghong Song wrote: > On 12/17/20 7:01 AM, Sean Young wrote: > > clang supports arbitrary length ints using the _ExtInt extension. This > > can be useful to hold very large values, e.g. 256

[PATCH] btf: support ints larger than 128 bits

2020-12-17 Thread Sean Young
, which is under review. Link: https://clang.llvm.org/docs/LanguageExtensions.html#extended-integer-types Link: https://reviews.llvm.org/D93103 Signed-off-by: Sean Young --- Documentation/bpf/btf.rst | 4 ++-- include/uapi/linux/btf.h | 2 +- tools/bpf/bpftool/btf_dumper.c | 39

Re: [PATCH v2] pwm: bcm2835: Support apply function for atomic configuration

2020-12-07 Thread Sean Young
Hi Uwe, On Mon, Dec 07, 2020 at 02:52:09PM +0100, Uwe Kleine-König wrote: > On Mon, Dec 07, 2020 at 09:43:20AM +0000, Sean Young wrote: > > On Mon, Dec 07, 2020 at 09:16:28AM +0100, Uwe Kleine-König wrote: > > > On Sun, Dec 06, 2020 at 02:19:41PM +, Sean Young wrote: >

Re: [PATCH v2] pwm: bcm2835: Support apply function for atomic configuration

2020-12-07 Thread Sean Young
Hello Uwe, Thank you for taking the time to explain your thinking. On Mon, Dec 07, 2020 at 09:16:28AM +0100, Uwe Kleine-König wrote: > On Sun, Dec 06, 2020 at 02:19:41PM +0000, Sean Young wrote: > > On Sat, Dec 05, 2020 at 08:25:10PM +0100, Uwe Kleine-König wrote: > > > On

Re: [PATCH v2] pwm: bcm2835: Support apply function for atomic configuration

2020-12-06 Thread Sean Young
Hello Uwe, On Sat, Dec 05, 2020 at 08:25:10PM +0100, Uwe Kleine-König wrote: > On Sat, Dec 05, 2020 at 05:34:44PM +0000, Sean Young wrote: > > What real life uses-cases are there for round down? If you want to round > > down, is there any need for round up? > > The sc

Re: [PATCH v2] pwm: bcm2835: Support apply function for atomic configuration

2020-12-05 Thread Sean Young
Hello Uwe, On Sat, Dec 05, 2020 at 12:28:34AM +0100, Uwe Kleine-König wrote: > Hello Sean, > > On Fri, Dec 04, 2020 at 11:38:46AM +0000, Sean Young wrote: > > On Fri, Dec 04, 2020 at 12:13:26PM +0100, Uwe Kleine-König wrote: > > > On Fri, Dec 04, 2020 at 08:44:17AM

Re: [PATCH v2] pwm: bcm2835: Support apply function for atomic configuration

2020-12-04 Thread Sean Young
Hi Uwe, On Fri, Dec 04, 2020 at 10:55:25PM +0100, Uwe Kleine-König wrote: > On Fri, Dec 04, 2020 at 11:40:36AM +0000, Sean Young wrote: > > On Fri, Dec 04, 2020 at 12:21:15PM +0100, Uwe Kleine-König wrote: > > > On Fri, Dec 04, 2020 at 12:42:15AM +0100, Lino Sanfilippo wrote: &

Re: [PATCH v2] pwm: bcm2835: Support apply function for atomic configuration

2020-12-04 Thread Sean Young
On Fri, Dec 04, 2020 at 12:21:15PM +0100, Uwe Kleine-König wrote: > Hello Lino, > > On Fri, Dec 04, 2020 at 12:42:15AM +0100, Lino Sanfilippo wrote: > > On 29.11.20 at 19:10, Uwe Kleine-König wrote: > > > You're storing an unsigned long long (i.e. 64 bits) in an u32. If > > > you are sure that

Re: [PATCH v2] pwm: bcm2835: Support apply function for atomic configuration

2020-12-04 Thread Sean Young
Hi, On Fri, Dec 04, 2020 at 12:13:26PM +0100, Uwe Kleine-König wrote: > On Fri, Dec 04, 2020 at 08:44:17AM +0000, Sean Young wrote: > > On Fri, Dec 04, 2020 at 12:42:15AM +0100, Lino Sanfilippo wrote: > > > > You're storing an unsigned long long (i.e. 64 bits) in an u32. If

Re: [PATCH v2] pwm: bcm2835: Support apply function for atomic configuration

2020-12-04 Thread Sean Young
On Fri, Dec 04, 2020 at 08:44:17AM +, Sean Young wrote: > On Fri, Dec 04, 2020 at 12:42:15AM +0100, Lino Sanfilippo wrote: > > According to commit 11fc4edc4 rounding to the closest integer has been > > introduced > > to improve precision in case that the pwm controller is

Re: [PATCH v2] pwm: bcm2835: Support apply function for atomic configuration

2020-12-04 Thread Sean Young
> introduced > to improve precision in case that the pwm controller is used by the pwm-ir-tx > driver. > I dont know how strong the requirement is to round down the period in > apply(), but I > can imagine that this may be a good reason to deviate from this rule. > (CCi

Re: linux-next: build warning after merge of the v4l-dvb tree

2020-11-27 Thread Sean Young
On Thu, Nov 26, 2020 at 05:54:52PM +1100, Stephen Rothwell wrote: > Hi all, > > On Wed, 18 Nov 2020 16:29:34 +1100 Stephen Rothwell > wrote: > > > > After merging the v4l-dvb tree, today's linux-next build (htmldocs) > > produced this warning: > > > > Documentation/output/lirc.h.rst:6:

Re: [PATCH 0/2] Improve LIRC documentation

2020-11-26 Thread Sean Young
lease review. Thanks, For the series: Signed-off-by: Sean Young > > Mauro Carvalho Chehab (2): > media: docs: uAPI: rc: dual-license the docs with GPL v2 > media: rc: improve LIRC documentation > > Documentation/userspace-api/media/rc/keytable.c.rst | 2 +- > .../userspace-

Re: [PATCH 000/141] Fix fall-through warnings for Clang

2020-11-25 Thread Sean Young
On Mon, Nov 23, 2020 at 07:58:06AM -0800, James Bottomley wrote: > On Mon, 2020-11-23 at 15:19 +0100, Miguel Ojeda wrote: > > On Sun, Nov 22, 2020 at 11:36 PM James Bottomley > > wrote: > > > It's not about the risk of the changes it's about the cost of > > > implementing them. Even if you

Re: [PATCH] media: rc: add keymap for KHAMSIN remote

2020-11-19 Thread Sean Young
On Thu, Nov 19, 2020 at 08:22:15AM +, Christian Hewitt wrote: > This remote ships with the Amlogic SML-5442TW IPTV/VOD Set-tob Box [0] > used by O2.cz. This keymap adds support for the default IR controls. s/Set-tob/Set-top/ Not sure what [0] refers to. > Signed-off-by: Christian Hewitt >

Re: [PATCH V3 1/2] bindings: media: gpio-ir-receiver: add linux,autosuspend-period property

2020-10-05 Thread Sean Young
On Mon, Oct 05, 2020 at 08:36:39AM -0500, Rob Herring wrote: > On Sat, Oct 3, 2020 at 3:46 AM Sean Young wrote: > > > > On Tue, Sep 29, 2020 at 10:52:01AM -0500, Rob Herring wrote: > > > On Wed, Sep 23, 2020 at 03:08:06AM +0800, Joakim Zhang wrote: > > > > A

Re: [PATCH V3 1/2] bindings: media: gpio-ir-receiver: add linux,autosuspend-period property

2020-10-03 Thread Sean Young
On Tue, Sep 29, 2020 at 10:52:01AM -0500, Rob Herring wrote: > On Wed, Sep 23, 2020 at 03:08:06AM +0800, Joakim Zhang wrote: > > Add linux,autosuspend-period property for gpio ir receiver. Some cpuidle > > systems wake from idle may take a bit long time, for such case, need > > disable cpuidle

Re: [PATCH V3 0/2] Add QoS support for cpuidle system.

2020-09-23 Thread Sean Young
On Wed, Sep 23, 2020 at 03:08:05AM +0800, Joakim Zhang wrote: > Add QoS support for cpuidle system. Reviewed-by: Sean Young Rob, would you be able to review the device tree bindings please? Thanks, Sean > > Joakim Zhang (2): > bindings: media: gpio-ir-receiver: add linux

Re: [PATCH V2 2/2] media: rc: gpio-ir-recv: add QoS support for cpuidle system

2020-09-22 Thread Sean Young
Hi Joakim, Thanks for your updated patch. On Sat, Sep 19, 2020 at 02:17:17AM +0800, Joakim Zhang wrote: > GPIO IR receive is much rely on interrupt response, uneven interrupt > latency will lead to incorrect timing, so the decoder fails to decode > it. The issue is particularly acute on some

Re: [PATCH] media: rc: gpio-ir-recv: add QoS support for cpuidle system

2020-09-18 Thread Sean Young
Hi Joakim, On Fri, Sep 18, 2020 at 01:42:15AM +, Joakim Zhang wrote: > > -Original Message- > > From: Sean Young > > Sent: 2020年9月18日 4:44 > > To: Joakim Zhang > > Cc: mche...@kernel.org; linux-me...@vger.kernel.org; > > linux-kernel@vger.kerne

Re: [PATCH] media: rc: gpio-ir-recv: add QoS support for cpuidle system

2020-09-17 Thread Sean Young
Hi Joakim, On Thu, Sep 17, 2020 at 09:12:32AM +, Joakim Zhang wrote: > > > -Original Message- > > From: Sean Young > > Sent: 2020年9月15日 17:34 > > To: Joakim Zhang > > Cc: mche...@kernel.org; linux-me...@vger.kernel.org; > > linux-kernel@vge

Re: [PATCH] media: rc: gpio-ir-recv: add QoS support for cpuidle system

2020-09-16 Thread Sean Young
Hi Joakim, On Wed, Sep 16, 2020 at 10:22:11AM +, Joakim Zhang wrote: > > Hi Sean, > > Thanks for your hint, I will send a V2 soon according to your suggestions. > > We also have a concern, since you are a IR expert, may you can give us > answers. With this patch, the first frame once

Re: [PATCH] media: rc: gpio-ir-recv: add QoS support for cpuidle system

2020-09-15 Thread Sean Young
Hi Joakim, On Tue, Sep 15, 2020 at 10:55:17AM +, Joakim Zhang wrote: > > Hi Sean, > > Thanks a lot for your review. > > > -Original Message- > > From: Sean Young > > Sent: 2020年9月15日 17:34 > > To: Joakim Zhang > > Cc: mche...@kerne

Re: [PATCH] media: rc: fix check on dev->min_timeout for LIRC_GET_MIN_TIMEOUT ioctl

2020-09-15 Thread Sean Young
On Tue, Sep 15, 2020 at 04:36:08PM +0100, Colin King wrote: > From: Colin Ian King > > Currently the LIRC_GET_MIN_TIMEOUT is checking for a null dev->max_timeout > and then accessing dev->min_timeout, hence we may have a potential null > pointer dereference issue. This looks like a cut-n-paste

Re: [PATCH] media: rc: gpio-ir-recv: add QoS support for cpuidle system

2020-09-15 Thread Sean Young
Hi Joakim, Thanks for your patch, I think it looks good in principle but needs a few small fixes. On Tue, Sep 15, 2020 at 11:02:02PM +0800, Joakim Zhang wrote: > GPIO IR receive is much rely on interrupt response, uneven interrupt > latency will lead to incorrect timing, so the decoder fails

Re: [PATCH 4.19 053/125] media: gpio-ir-tx: improve precision of transmitted signal due to scheduling

2020-09-02 Thread Sean Young
ad. This is causing random errors in the transmitted > > IR. Remove the usleep_range() in favour of busy-looping with udelay(). > > > > Signed-off-by: Sean Young > > I don't believe this should be in stable. > > Yes, it probably fixes someone's remote control. >

Re: [PATCH 4.19 016/125] media: pci: ttpci: av7110: fix possible buffer overflow caused by bad DMA value in debiirq()

2020-09-01 Thread Sean Young
bug, data[0] is assigned to a local variable, which > replaces the use of data[0]. See the discussion here: https://lkml.org/lkml/2020/8/31/479 It does not seem worthwhile merging to the stable trees. Thanks Sean > > Signed-off-by: Jia-Ju Bai > Signed-off-by: Sean Young > Signed-

Re: [PATCH] media: pci: ttpci: av7110: avoid compiler optimization of reading data[0] in debiirq()

2020-08-30 Thread Sean Young
On Sun, Aug 30, 2020 at 04:20:42PM +0800, Jia-Ju Bai wrote: > In debiirq(), data_0 stores the value of data[0], but it can be dropped > by compiler optimization. Thus, data[0] is read through READ_ONCE(). > > Fixes: 6499a0db9b0f ("media: pci: ttpci: av7110: fix possible buffer overflow > caused

Re: [PATCH v1] [media] netup_unidvb: use generic power management

2020-08-30 Thread Sean Young
On Tue, Jul 28, 2020 at 02:57:17PM +0530, Vaibhav Gupta wrote: > The .suspend() and .resume() callbacks are not defined for this driver. > Still, their power management structure follows the legacy framework. To > bring it under the generic framework, simply remove the binding of > callbacks from

Re: [PATCH AUTOSEL 4.19 08/38] media: pci: ttpci: av7110: fix possible buffer overflow caused by bad DMA value in debiirq()

2020-08-29 Thread Sean Young
On Sat, Aug 29, 2020 at 08:16:00PM +0300, Laurent Pinchart wrote: > On Sat, Aug 29, 2020 at 02:10:20PM +0200, Pavel Machek wrote: > > Hi! > > > > > The value av7110->debi_virt is stored in DMA memory, and it is assigned > > > to data, and thus data[0] can be modified at any time by malicious > >

Re: KASAN: use-after-free Read in rc_dev_uevent

2020-08-10 Thread Sean Young
On Sun, Aug 09, 2020 at 11:03:28AM -0300, Ezequiel Garcia wrote: > On Sat, 8 Aug 2020 at 06:25, Sean Young wrote: > > On Fri, Aug 07, 2020 at 08:45:12PM -0300, Ezequiel Garcia wrote: > > > On Fri, 7 Aug 2020 at 06:15, Sean Young wrote: > > > > > > > >

Re: KASAN: use-after-free Read in rc_dev_uevent

2020-08-08 Thread Sean Young
Hi Eze, On Fri, Aug 07, 2020 at 08:45:12PM -0300, Ezequiel Garcia wrote: > On Fri, 7 Aug 2020 at 06:15, Sean Young wrote: > > > > On Fri, Aug 07, 2020 at 12:26:29AM -0700, syzbot wrote: > > > Hello, > > > > > > syzbot found the following issue on: > &

Re: KASAN: use-after-free Read in rc_dev_uevent

2020-08-08 Thread Sean Young
On Fri, Aug 07, 2020 at 09:55:40PM +0800, Hillf Danton wrote: > > On Fri, 7 Aug 2020 10:15:04 +0100 Sean Young wrote: > > On Fri, Aug 07, 2020 at 12:26:29AM -0700, syzbot wrote: > > > Hello, > > > > > > syzbot found the following issue on: > > >

Re: KASAN: use-after-free Read in rc_dev_uevent

2020-08-07 Thread Sean Young
On Fri, Aug 07, 2020 at 12:26:29AM -0700, syzbot wrote: > Hello, > > syzbot found the following issue on: > > HEAD commit:7b4ea945 Revert "x86/mm/64: Do not sync vmalloc/ioremap ma.. > git tree: > https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing > console

Re: [PATCH stable 4.9 00/21] Unbreak 32-bit DVB applications on 64-bit kernels

2020-06-25 Thread Sean Young
spent the morning going through them and it looks good. Of the all the dvb ioctl, only the FE_SET_PROPERTY and FE_GET_PROPERTY ioctls need special handling and this series fixes that. Belated, Reviewed-by: Sean Young Sean

Re: [PATCH v2] media: budget-core: Improve exception handling in budget_register()

2020-06-14 Thread Sean Young
On Sat, Jun 06, 2020 at 12:17:28AM +0800, Chuhong Yuan wrote: > budget_register() has no error handling after its failure. > Add the missed undo functions for error handling to fix it. > > Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2") Changes look good, but the Fixes: points to the first import of

Re: [PATCH AUTOSEL 5.7 066/274] media: dvbdev: Fix tuner->demod media controller link

2020-06-09 Thread Sean Young
lt;48> 3d > 01 f0 ff ff 73 01 c3 48 8b 0d 1f f6 2c 00 f7 d8 64 89 01 48 > [ 234.915878] RSP: 002b:7ffcea3db3b8 EFLAGS: 0246 ORIG_RAX: > 0139 > [ 234.915881] RAX: ffda RBX: 000055af22c29340 RCX: > 7f4ca3168839 > [ 234.915882] RDX: 0

Re: [PATCH 2/3] input: serio: allow more than one byte to be sent at once

2020-05-13 Thread Sean Young
On Tue, May 12, 2020 at 10:37:27AM -0700, Dmitry Torokhov wrote: > On Tue, May 12, 2020 at 10:07:24AM +0100, Sean Young wrote: > > Now it would be nice to have a discussion about this rather than being > > dismissed with: > > > > > > > Ummm, serial protocol d

Re: [PATCH 2/3] input: serio: allow more than one byte to be sent at once

2020-05-13 Thread Sean Young
On Wed, May 13, 2020 at 10:16:46AM +0200, Greg KH wrote: > On Tue, May 12, 2020 at 10:07:24AM +0100, Sean Young wrote: > > So this device is the infrared kind which rc-core (in drivers/media/rc/) > > supports, remotes and such things (not for serial IR). So by using a > > r

Re: [PATCH 2/3] input: serio: allow more than one byte to be sent at once

2020-05-12 Thread Sean Young
On Mon, May 11, 2020 at 08:51:18AM +0200, Greg KH wrote: > On Thu, May 07, 2020 at 09:59:18PM +0100, Sean Young wrote: > > On Thu, May 07, 2020 at 01:25:46PM -0700, Dmitry Torokhov wrote: > > > On Thu, May 07, 2020 at 02:53:36PM +0100, Sean Young wrote: > > > > serio

Re: [PATCH] media: usb: ttusb-dec: avoid buffer overflow in ttusb_dec_handle_irq() when DMA failures/attacks occur

2020-05-07 Thread Sean Young
On Tue, May 05, 2020 at 10:21:10PM +0800, Jia-Ju Bai wrote: > In ttusb_dec_init_usb(): > dec->irq_buffer = usb_alloc_coherent(...) > > Thus, "dec->irq_buffer" is a DMA value, and it is assigned to "buffer" > in ttusb_dec_handle_irq(): > char *buffer = dec->irq_buffer; > > When DMA failures

Re: [PATCH] media: cxusb: fix uninitialized local variable

2019-10-16 Thread Sean Young
Hi Valentin, Thank you for your patch. On Tue, Oct 15, 2019 at 10:03:15PM +0200, Valentin Vidic wrote: > Make sure ircode does not contain random values if the call to > cxusb_ctrl_msg fails for some reason. > > Reported-by: syzbot+98730b985cad4931a...@syzkaller.appspotmail.com > Signed-off-by:

Re: [PATCH] si2157: Add support for Logilink VG0022A.

2019-10-02 Thread Sean Young
On Wed, Oct 02, 2019 at 04:44:24PM +0200, Gonsolo wrote: > Hi! > > > You need a message and a Signed-off-by: here. > > Ok, I'll try to get that right the next time. > > > > + ret = si2157_power_up(dev, client); > > > + if (ret) > > > + goto err; > > > + /* query chip

Re: [PATCH] si2157: Add support for Logilink VG0022A.

2019-10-02 Thread Sean Young
On Wed, Oct 02, 2019 at 04:13:59PM +0200, Gon Solo wrote: You need a message and a Signed-off-by: here. > --- > drivers/media/tuners/si2157.c | 68 +-- > drivers/media/tuners/si2157_priv.h| 1 + > drivers/media/usb/dvb-usb-v2/af9035.c | 47 ++

Re: [PATCH 1/4] media: dvb-frontends: Use DIV_ROUND_CLOSEST directly to make it readable

2019-10-01 Thread Sean Young
Hi, On Fri, Sep 06, 2019 at 12:14:49AM +0800, zhong jiang wrote: > The kernel.h macro DIV_ROUND_CLOSEST performs the computation (x + d/2)/d > but is perhaps more readable. > > Signed-off-by: zhong jiang > --- > drivers/media/dvb-frontends/mt312.c | 2 +- > 1 file changed, 1 insertion(+), 1

Re: [PATCH v4] media: si2168: Refactor command setup code

2019-08-22 Thread Sean Young
On Mon, Aug 19, 2019 at 01:54:53PM +0200, Marc Gonzalez wrote: > On 15/07/2019 11:50, Marc Gonzalez wrote: > > > Use cmd_init() to fill a struct si2168_cmd command. > > > > Signed-off-by: Marc Gonzalez > > --- > > Changes from v1: > > - Use a real function to populate struct si2168_cmd *cmd,

Re: [PATCH] Fix an OOB access bug in technisat_usb2_get_ir

2019-08-21 Thread Sean Young
On Tue, Aug 20, 2019 at 02:19:16PM -0400, Hui Peng wrote: > In the while loop of technisat_usb2_get_ir, it scans through > a fix-sized buffer read from the device side, the termination > condition of the loop is `*b == 0xff`. If no `0xff` byte is read > from the device side, OOB access happens. >

Re: [PATCH v2 1/2] dt-bindings: media: Add YAML schemas for the generic RC bindings

2019-08-20 Thread Sean Young
On Tue, Aug 20, 2019 at 10:52:29AM -0500, Rob Herring wrote: > On Tue, Aug 20, 2019 at 4:50 AM Maxime Ripard wrote: > > On Tue, Aug 20, 2019 at 09:15:26AM +0100, Sean Young wrote: > > > On Mon, Aug 19, 2019 at 08:26:18PM +0200, Maxime Ripard wrote: > >

Re: [PATCH v2 1/2] dt-bindings: media: Add YAML schemas for the generic RC bindings

2019-08-20 Thread Sean Young
or the series (both 1/2 and 2.2): Reviewed-by: Sean Young How's tree should this go through? Thanks Sean > > --- > > Changes from v1: > - Update the list of valid RC map name > --- > .../devicetree/bindings/media/rc.txt | 118 +- > .../de

Re: [PATCH v3] media: dvb: Provide 4 devm variants

2019-08-15 Thread Sean Young
On Mon, Jul 22, 2019 at 10:13:56AM +0200, Marc Gonzalez wrote: > On 21/07/2019 17:02, Ezequiel Garcia wrote: > > > On Thu, 2019-07-18 at 15:03 +0200, Marc Gonzalez wrote: > > > >> Provide devm variants for automatic resource release on device removal. > >> Makes error-handling in probe() simpler,

Re: [PATCH 1/2] dt-bindings: media: Add YAML schemas for the generic RC bindings

2019-08-14 Thread Sean Young
teus-2309" > - * "rc-purpletv" > - * "rc-pv951" > - * "rc-hauppauge" > - * "rc-rc5-tv" > - * "rc-rc6-mce" > - * "rc-real-audio-220-32-keys" > - * "rc-reddo" > - * "rc-snapstream

Re: [PATCH v2 1/2] media: ir-kbd-i2c: convert to i2c_new_dummy_device()

2019-08-03 Thread Sean Young
On Sat, Aug 03, 2019 at 01:17:49PM -0300, Mauro Carvalho Chehab wrote: > Em Tue, 30 Jul 2019 19:55:54 +0200 > Wolfram Sang escreveu: > > > Convert this driver to use the new i2c_new_dummy_device() call and bail > > out if the dummy device cannot be registered to make failure more > > visible to

Re: [PATCH v2] media:dvb-frontends:Remove dvb_pll_devcount and id module parameters.

2019-08-02 Thread Sean Young
On Fri, Aug 02, 2019 at 12:20:19PM +0530, Vandana BN wrote: > > On 01/08/19 2:31 PM, Michael Ira Krufky wrote: > > Sean, > > > > Please pardon the late reply. See my responses inline below: > > > > On Wed, Jul 24, 2019 at 1:36 AM Sean Young wrote: > >

Re: [PATCH v2] media:dvb-frontends:Remove dvb_pll_devcount and id module parameters.

2019-07-31 Thread Sean Young
On Wed, Jul 24, 2019 at 06:36:35AM +0100, Sean Young wrote: > On Sat, Jul 20, 2019 at 11:43:02AM +0530, Vandana BN wrote: > > Syzbot reported global-out-of-bounds Read in dvb_pll_attach, while > > accessing id[dvb_pll_devcount], because dvb_pll_devcount was 65, > > that is

Re: [PATCH 1/2] media: ir-kbd-i2c: prevent potential NULL pointer access

2019-07-25 Thread Sean Young
Hi Wolfram, On Thu, Jul 25, 2019 at 09:55:38AM +0200, Wolfram Sang wrote: > Hi Sean, > > thanks for the review! > > On Thu, Jul 25, 2019 at 06:12:02AM +0100, Sean Young wrote: > > On Mon, Jul 22, 2019 at 07:26:31PM +0200, Wolfram Sang wrote: > > > i2c_new_dum

Re: [PATCH 1/2] media: ir-kbd-i2c: prevent potential NULL pointer access

2019-07-24 Thread Sean Young
On Mon, Jul 22, 2019 at 07:26:31PM +0200, Wolfram Sang wrote: > i2c_new_dummy() can fail returning a NULL pointer. The code does not > bail out in this case and the returned pointer is blindly used. I don't see how. The existing code tries to set up the tx part; if i2c_new_dummy() return NULL

Re: [PATCH v5 04/13] media: rc: sunxi: Add RXSTA bits definition

2019-07-23 Thread Sean Young
On Tue, Jul 23, 2019 at 09:04:40AM +0200, Maxime Ripard wrote: > Hi Sean, > > On Tue, Jul 23, 2019 at 07:25:57AM +0100, Sean Young wrote: > > On Mon, Jul 15, 2019 at 01:12:45PM +0100, Sean Young wrote: > > > On Sun, Jul 14, 2019 at 04:32:22PM +0200, Clément Péro

Re: [PATCH v2] media:dvb-frontends:Remove dvb_pll_devcount and id module parameters.

2019-07-23 Thread Sean Young
On Sat, Jul 20, 2019 at 11:43:02AM +0530, Vandana BN wrote: > Syzbot reported global-out-of-bounds Read in dvb_pll_attach, while > accessing id[dvb_pll_devcount], because dvb_pll_devcount was 65, > that is more than size of 'id' which is DVB_PLL_MAX(64). > > Fix would be to check if DVB_PLL_MAX

Re: [PATCH v5 04/13] media: rc: sunxi: Add RXSTA bits definition

2019-07-23 Thread Sean Young
Hi, On Mon, Jul 15, 2019 at 01:12:45PM +0100, Sean Young wrote: > On Sun, Jul 14, 2019 at 04:32:22PM +0200, Clément Péron wrote: > > Hi Sean, > > > > You acked the whole v3 series but this patch has been introduced in v5 > > could you ack this one too? > > Ack

Re: [PATCH v5 04/13] media: rc: sunxi: Add RXSTA bits definition

2019-07-15 Thread Sean Young
On Sun, Jul 14, 2019 at 04:32:22PM +0200, Clément Péron wrote: > Hi Sean, > > You acked the whole v3 series but this patch has been introduced in v5 > could you ack this one too? Acked-by: Sean Young Thanks Sean > > Thanks, > Clément > > > > > On Mon,

Re: [PATCH] media: cxd2880: Add missing newline at end of file

2019-07-08 Thread Sean Young
On Mon, Jun 17, 2019 at 04:38:01PM +0200, Geert Uytterhoeven wrote: > "git diff" says: > > \ No newline at end of file > > after modifying the file. git diff says this because after patching using the diff output, files should be byte-for-byte identifical. It does not mean there necessarily

[PATCH] media: technisat-usb2: break out of loop at end of buffer

2019-07-03 Thread Sean Young
Ensure we do not access the buffer beyond the end if no 0xff byte is encountered. Reported-by: syzbot+eaaaf38a95427be88...@syzkaller.appspotmail.com Signed-off-by: Sean Young --- drivers/media/usb/dvb-usb/technisat-usb2.c | 22 ++ 1 file changed, 10 insertions(+), 12

Re: [PATCH] media: dvbsky: use a single mutex and state buffers for all R/W ops

2019-06-25 Thread Sean Young
On Sat, Jun 15, 2019 at 10:47:28AM +0300, Andrei Koshkosh wrote: > --- > drivers/media/usb/dvb-usb-v2/dvbsky.c | 18 ++ > 1 file changed, 10 insertions(+), 8 deletions(-) > Missing signed-off-by. Please read:

Re: [PATCH 3/3] media: ttpci: add RC_CORE dependency

2019-06-25 Thread Sean Young
On Mon, Jun 17, 2019 at 01:16:53PM +0200, Arnd Bergmann wrote: > The ttpci driver now uses the rc-core, so we need to ensure it > is enabled: > > ERROR: "rc_unregister_device" [drivers/media/pci/ttpci/dvb-ttpci.ko] > undefined! > ERROR: "rc_allocate_device" [drivers/media/pci/ttpci/dvb-ttpci.ko]

Re: [PATCH] media: ttpci: Fix build error without RC_CORE

2019-06-12 Thread Sean Young
On Wed, Jun 12, 2019 at 06:37:08AM -0300, Mauro Carvalho Chehab wrote: > Em Wed, 12 Jun 2019 08:42:55 +0100 > Sean Young escreveu: > > > On Wed, Jun 12, 2019 at 11:43:10AM +0800, YueHaibing wrote: > > > If RC_CORE is not set, building fails: > > > > >

Re: [PATCH] media: ttpci: Fix build error without RC_CORE

2019-06-12 Thread Sean Young
On Wed, Jun 12, 2019 at 11:43:10AM +0800, YueHaibing wrote: > If RC_CORE is not set, building fails: > > drivers/media/pci/ttpci/av7110_ir.o: In function `av7110_ir_init': > av7110_ir.c:(.text+0x1b0): undefined reference to `rc_allocate_device' > av7110_ir.c:(.text+0x2c1): undefined reference to

Re: [PATCH v3 00/12] Allwinner A64/H6 IR support

2019-05-30 Thread Sean Young
inally introduce A64 and H6 support. > > I didn't enable the IR on other H6 boards as Ondrej reported an issue > on his board[2]. For the whole series: Acked-by: Sean Young > > Regards, > Clément > > [1] https://lore.kernel.org/patchwork/patch/1031390/#1221464 > [2] htt

Re: [PATCH] drivers/media/dvb-frontends: Implement probe/remove for stv6110x

2019-05-26 Thread Sean Young
Hi Tobias, On Sun, May 12, 2019 at 04:53:06PM +0200, Tobias Klausmann wrote: > Ping, > > comments for this patch are appreciated! Sorry for not back to you earlier. Please run script/checkpatch.pl --strict on your patch. There are several cosmetic changes needed. > > Thanks, > > Tobias > >

[PATCH] media: au0828: fix null dereference in error path

2019-05-19 Thread Sean Young
au0828_usb_disconnect() gets the au0828_dev struct via usb_get_intfdata, so it needs to set up for the error paths. Reported-by: syzbot+357d86bcb4cca1a2f...@syzkaller.appspotmail.com Signed-off-by: Sean Young --- drivers/media/usb/au0828/au0828-core.c | 12 ++-- 1 file changed, 6

Re: [PATCH 1/3] media: dvb-usb-v2: Report error on all error paths

2019-05-19 Thread Sean Young
Hi Stefan, On Fri, Apr 12, 2019 at 03:12:58AM +0200, Stefan Brüns wrote: > actual_length != wlen is the only error path which does not generate an > error message. Adding an error message here allows to report a more > specific error and to remove the error reporting from the call sites. > >

Re: [PATCH] media: drxk: add a missed check of the return value of write16

2019-03-05 Thread Sean Young
On Tue, Dec 25, 2018 at 02:03:07AM -0600, Kangjie Lu wrote: > write16() could fail. The fix inserts a check for its return value > in case it fails. > > Signed-off-by: Kangjie Lu Unless it is tested on the actual hardware we can't apply this. This could introduce regressions. Sean > --- >

Re: [PATCH v2] media: si2165: fix a missing check of return value

2019-03-05 Thread Sean Young
On Fri, Dec 21, 2018 at 09:24:46AM +0100, Matthias Schwarzott wrote: > Am 21.12.18 um 05:54 schrieb Kangjie Lu: > > si2165_readreg8() may fail. Looking into si2165_readreg8(), we will find > > that "val_tmp" will be an uninitialized value when regmap_read() fails. > > "val_tmp" is then assigned to

Re: [PATCH 1/3] [media] rc/keymaps: add keytable for Pine64 IR Remote Controller

2019-02-20 Thread Sean Young
On Mon, Feb 18, 2019 at 09:59:36PM +, Jonas Karlman wrote: > This RC map is based on remote key schema at [1], the mouse button key > did not have an obvious target and was mapped to KEY_CONTEXT_MENU. How about BTN_LEFT ? Thanks, Sean > > [1]

Re: DVB-T2 Stick

2019-02-19 Thread Sean Young
Hi, On Wed, Jan 30, 2019 at 11:32:12AM +0100, Gonsolo wrote: > Hi! > > The following patch adds support for the Logilink VG0022A DVB-T2 stick. > After patching and building the kernel it shows up with lsusb and I > used w_scan to scan for channels and vlc for watching. > The original patches

Re: [PATCH] selftests: ir: fix warning: ‘%s’ directive output may be truncated

2019-02-04 Thread Sean Young
n __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, > ^~~~ > __bos (__s), __fmt, __va_arg_pack ()); > ~ > > Signed-off-by: Shuah Khan Thank you for catching and fixing

Re: [PATCH] [media] dib7000p: Remove dead code

2018-12-04 Thread Sean Young
On Tue, Dec 04, 2018 at 09:57:14AM -0200, Mauro Carvalho Chehab wrote: > Em Tue, 4 Dec 2018 10:26:40 + > Sean Young escreveu: > > > On Mon, Sep 17, 2018 at 07:39:36PM -0300, Mauro Carvalho Chehab wrote: > > > Em Mon, 17 Sep 2018 10:58:32 -0700 > >

Re: [PATCH] [media] dib7000p: Remove dead code

2018-12-04 Thread Sean Young
On Tue, Dec 04, 2018 at 09:57:14AM -0200, Mauro Carvalho Chehab wrote: > Em Tue, 4 Dec 2018 10:26:40 + > Sean Young escreveu: > > > On Mon, Sep 17, 2018 at 07:39:36PM -0300, Mauro Carvalho Chehab wrote: > > > Em Mon, 17 Sep 2018 10:58:32 -0700 > >

Re: [PATCH] media: dvb: fix a missing-check bug

2018-11-27 Thread Sean Young
Hi Wenwen, On Mon, Oct 29, 2018 at 01:46:04PM -0500, Wenwen Wang wrote: > Hello, > > Can anyone confirm this bug? Thanks! > > Wenwen > > On Fri, Oct 19, 2018 at 9:12 AM Wenwen Wang wrote: > > > > In dvb_audio_write(), the first byte of the user-space buffer 'buf' is > > firstly copied and

Re: [PATCH] media: dvb: fix a missing-check bug

2018-11-27 Thread Sean Young
Hi Wenwen, On Mon, Oct 29, 2018 at 01:46:04PM -0500, Wenwen Wang wrote: > Hello, > > Can anyone confirm this bug? Thanks! > > Wenwen > > On Fri, Oct 19, 2018 at 9:12 AM Wenwen Wang wrote: > > > > In dvb_audio_write(), the first byte of the user-space buffer 'buf' is > > firstly copied and

[PATCH] MIPS: Remove superfluous check for __linux__

2018-11-16 Thread Sean Young
commit/?id=dd3ff81f58c4e1e6f33765dc61ad33c48ae6bb07 This check might otherwise be useful to stop users from using a non-linux compiler, but if you're doing that you are going to have a lot more trouble anyway. Signed-off-by: Sean Young --- arch/mips/include/uapi/asm/sgidefs.h | 8 1 file changed, 8 deletions(-) diff --

[PATCH] MIPS: Remove superfluous check for __linux__

2018-11-16 Thread Sean Young
commit/?id=dd3ff81f58c4e1e6f33765dc61ad33c48ae6bb07 This check might otherwise be useful to stop users from using a non-linux compiler, but if you're doing that you are going to have a lot more trouble anyway. Signed-off-by: Sean Young --- arch/mips/include/uapi/asm/sgidefs.h | 8 1 file changed, 8 deletions(-) diff --

Re: [PATCH v5 2/3] media: rc: introduce BPF_PROG_LIRC_MODE2

2018-06-05 Thread Sean Young
On Mon, Jun 04, 2018 at 07:47:30PM +0200, Matthias Reichl wrote: > Hi Sean, > > I finally found the time to test your patch series and noticed > 2 issues - comments are inline > > On Sun, May 27, 2018 at 12:24:09PM +0100, Sean Young wrote: > > diff --git a/drivers/me

  1   2   3   4   >