================================================================== BUG: KASAN: null-ptr-deref in instrument_write include/linux/instrumented.h:40 [inline] BUG: KASAN: null-ptr-deref in ___set_bit include/asm-generic/bitops/instrumented-non-atomic.h:28 [inline] BUG: KASAN: null-ptr-deref in input_ff_create+0x1aa/0x2f0 drivers/input/ff-core.c:325 Write of size 8 at addr 0000000000000040 by task kworker/1:2/5167 CPU: 1 UID: 0 PID: 5167 Comm: kworker/1:2 Not tainted 6.13.0-rc3-next-20241220-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 Workqueue: events xpad_presence_work Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x241/0x360 lib/dump_stack.c:120 print_report+0xe8/0x550 mm/kasan/report.c:492 kasan_report+0x143/0x180 mm/kasan/report.c:602 kasan_check_range+0x282/0x290 mm/kasan/generic.c:189 instrument_write include/linux/instrumented.h:40 [inline] ___set_bit include/asm-generic/bitops/instrumented-non-atomic.h:28 [inline] input_ff_create+0x1aa/0x2f0 drivers/input/ff-core.c:325 input_ff_create_memless+0x133/0x630 drivers/input/ff-memless.c:522 xpad_init_ff drivers/input/joystick/xpad.c:1562 [inline] xpad_init_input+0xcef/0x1440 drivers/input/joystick/xpad.c:1960 xpad_presence_work+0x5b/0x260 drivers/input/joystick/xpad.c:931 process_one_work kernel/workqueue.c:3229 [inline] process_scheduled_works+0xa66/0x1840 kernel/workqueue.c:3310 worker_thread+0x870/0xd30 kernel/workqueue.c:3391 kthread+0x7a9/0x920 kernel/kthread.c:464 ret_from_fork+0x4b/0x80 arch/x86/kernel/process.c:148 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244 ==================================================================