i2c i2c-2: failure reading status ucsi-stm32g0-i2c 2-0003: i2c read 03, 00 error: -5 Oops: general protection fault, probably for non-canonical address 0xdffffc0000000028: 0000 [#1] SMP KASAN NOPTI KASAN: null-ptr-deref in range [0x0000000000000140-0x0000000000000147] CPU: 2 UID: 0 PID: 6358 Comm: syz.2.100 Not tainted syzkaller #0 PREEMPT(full) Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 RIP: 0010:kasan_byte_accessible+0x15/0x30 mm/kasan/generic.c:210 Code: 00 00 0f 1f 00 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 0f 1f 40 d6 48 b8 00 00 00 00 00 fc ff df 48 c1 ef 03 48 01 c7 <0f> b6 07 3c 07 0f 96 c0 e9 0e 6d 42 09 66 66 2e 0f 1f 84 00 00 00 RSP: 0000:ffffc90004447518 EFLAGS: 00010286 RAX: dffffc0000000000 RBX: 0000000000000000 RCX: 0000000000000000 RDX: 0000000000000000 RSI: ffffffff81e4a344 RDI: dffffc0000000028 RBP: 0000000000000140 R08: 0000000000000001 R09: 0000000000000000 R10: ffff88802ae6f54b R11: 0000000000000000 R12: ffffffff81e4a344 R13: 0000000000000001 R14: 0000000000000002 R15: 0000000000000000 FS: 0000000000000000(0000) GS:ffff888096de3000(0063) knlGS:00000000f53ddb40 CS: 0010 DS: 002b ES: 002b CR0: 0000000080050033 CR2: 000056063914f168 CR3: 000000007092b000 CR4: 0000000000352ef0 Call Trace: __kasan_check_byte+0x13/0x50 mm/kasan/common.c:573 kasan_check_byte include/linux/kasan.h:402 [inline] lock_acquire kernel/locking/lockdep.c:5842 [inline] lock_acquire+0x132/0x370 kernel/locking/lockdep.c:5825 down_write_nested+0x94/0x200 kernel/locking/rwsem.c:1757 inode_lock_nested include/linux/fs.h:1069 [inline] __simple_recursive_removal+0x7f/0x5c0 fs/libfs.c:606 debugfs_remove+0x5d/0x80 fs/debugfs/inode.c:781 i2c_device_probe+0x6e2/0xd10 drivers/i2c/i2c-core-base.c:610 call_driver_probe drivers/base/dd.c:628 [inline] really_probe+0x241/0xa60 drivers/base/dd.c:706 __driver_probe_device+0x20e/0x450 drivers/base/dd.c:868 driver_probe_device+0x4a/0x140 drivers/base/dd.c:898 __device_attach_driver+0x1df/0x320 drivers/base/dd.c:1026 bus_for_each_drv+0x159/0x1e0 drivers/base/bus.c:500 __device_attach+0x1e4/0x4d0 drivers/base/dd.c:1098 device_initial_probe+0xaf/0xd0 drivers/base/dd.c:1153 bus_probe_device+0x64/0x160 drivers/base/bus.c:620 device_add+0x121d/0x1970 drivers/base/core.c:3772 i2c_new_client_device+0x660/0xd30 drivers/i2c/i2c-core-base.c:1019 new_device_store+0x20f/0x420 drivers/i2c/i2c-core-base.c:1307 dev_attr_store+0x58/0x80 drivers/base/core.c:2505 sysfs_kf_write+0xf2/0x150 fs/sysfs/file.c:145 kernfs_fop_write_iter+0x3e0/0x5f0 fs/kernfs/file.c:345 new_sync_write fs/read_write.c:595 [inline] vfs_write+0x6ac/0x1050 fs/read_write.c:687 ksys_write+0x12a/0x250 fs/read_write.c:739 do_syscall_32_irqs_on arch/x86/entry/syscall_32.c:83 [inline] __do_fast_syscall_32+0xe7/0x970 arch/x86/entry/syscall_32.c:307 do_fast_syscall_32+0x32/0x70 arch/x86/entry/syscall_32.c:332 entry_SYSENTER_compat_after_hwframe+0x84/0x8e RIP: 0023:0xf6feefec Code: Unable to access opcode bytes at 0xf6feefc2. RSP: 002b:00000000f53dd50c EFLAGS: 00000292 ORIG_RAX: 0000000000000004 RAX: ffffffffffffffda RBX: 000000000000000a RCX: 0000000080000a00 RDX: 0000000000000011 RSI: 0000000000000000 RDI: 0000000000000000 RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000292 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:kasan_byte_accessible+0x15/0x30 mm/kasan/generic.c:210 Code: 00 00 0f 1f 00 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 0f 1f 40 d6 48 b8 00 00 00 00 00 fc ff df 48 c1 ef 03 48 01 c7 <0f> b6 07 3c 07 0f 96 c0 e9 0e 6d 42 09 66 66 2e 0f 1f 84 00 00 00 RSP: 0000:ffffc90004447518 EFLAGS: 00010286 RAX: dffffc0000000000 RBX: 0000000000000000 RCX: 0000000000000000 RDX: 0000000000000000 RSI: ffffffff81e4a344 RDI: dffffc0000000028 RBP: 0000000000000140 R08: 0000000000000001 R09: 0000000000000000 R10: ffff88802ae6f54b R11: 0000000000000000 R12: ffffffff81e4a344 R13: 0000000000000001 R14: 0000000000000002 R15: 0000000000000000 FS: 0000000000000000(0000) GS:ffff888096ce3000(0063) knlGS:00000000f53ddb40 CS: 0010 DS: 002b ES: 002b CR0: 0000000080050033 CR2: 00000000f742b9c0 CR3: 000000007092b000 CR4: 0000000000352ef0 ---------------- Code disassembly (best guess): 0: 00 00 add %al,(%rax) 2: 0f 1f 00 nopl (%rax) 5: 90 nop 6: 90 nop 7: 90 nop 8: 90 nop 9: 90 nop a: 90 nop b: 90 nop c: 90 nop d: 90 nop e: 90 nop f: 90 nop 10: 90 nop 11: 90 nop 12: 90 nop 13: 90 nop 14: 90 nop 15: 0f 1f 40 d6 nopl -0x2a(%rax) 19: 48 b8 00 00 00 00 00 movabs $0xdffffc0000000000,%rax 20: fc ff df 23: 48 c1 ef 03 shr $0x3,%rdi 27: 48 01 c7 add %rax,%rdi * 2a: 0f b6 07 movzbl (%rdi),%eax <-- trapping instruction 2d: 3c 07 cmp $0x7,%al 2f: 0f 96 c0 setbe %al 32: e9 0e 6d 42 09 jmp 0x9426d45 37: 66 data16 38: 66 data16 39: 2e cs 3a: 0f .byte 0xf 3b: 1f (bad) 3c: 84 00 test %al,(%rax)