Re: WARNING in gpio_to_desc

From: Linus Walleij
Date: Tue Jul 16 2019 - 17:52:35 EST


On Wed, Jul 10, 2019 at 1:07 PM syzbot
<syzbot+cf35b76f35e068a1107f@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:

> HEAD commit: 7829a896 usb-fuzzer: main usb gadget fuzzer driver
(...)
> __gpio_set_value include/asm-generic/gpio.h:104 [inline]
> gpio_set_value include/linux/gpio.h:71 [inline]
> nfcmrvl_chip_halt+0x4e/0x70 drivers/nfc/nfcmrvl/main.c:259
> nfcmrvl_nci_register_dev+0x2d4/0x378 drivers/nfc/nfcmrvl/main.c:176
> nfcmrvl_probe+0x4e9/0x5e0 drivers/nfc/nfcmrvl/usb.c:344

This bug is somewhere in the drivers/nfc/nfcmrvl* code handling
GPIOs.

It should be converted to GPIO descriptors and fixed up, see
drivers/gpio/TODO for details on how to do this.

Johan/Vincent, tell me if you want me to forward the full fuzzing
robot crash dump.

Yours,
Linus Walleij