ubi0: attaching mtd0 ubi0: scanning is finished Oops: general protection fault, probably for non-canonical address 0xdffffc0000002002: 0000 [#1] PREEMPT SMP KASAN NOPTI KASAN: probably user-memory-access in range [0x0000000000010010-0x0000000000010017] CPU: 1 UID: 0 PID: 15269 Comm: syz.4.2550 Not tainted 6.13.0-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 12/27/2024 RIP: 0010:notifier_chain_register+0xc1/0x420 kernel/notifier.c:27 Code: 00 00 00 e8 11 30 34 00 48 8b 04 24 0f b6 00 84 c0 74 08 3c 03 0f 8e ff 02 00 00 48 8d 7b 10 45 8b 65 10 48 89 f8 48 c1 e8 03 <42> 0f b6 04 38 84 c0 74 08 3c 03 0f 8e d5 02 00 00 8b 6b 10 44 89 RSP: 0018:ffffc9000b8afa60 EFLAGS: 00010203 RAX: 0000000000002002 RBX: 0000000000010005 RCX: ffffffff8165e487 RDX: ffff8880602ec880 RSI: ffffffff8165e42f RDI: 0000000000010015 RBP: 0000000000010005 R08: 0000000000000004 R09: 0000000000000001 R10: 0000000000010005 R11: 000000000001c808 R12: 0000000000000001 R13: ffff88805b0ad8c8 R14: ffff88802cd058d0 R15: dffffc0000000000 FS: 00007f91aaa466c0(0000) GS:ffff8880b8700000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b2fd0f000 CR3: 0000000034bfa000 CR4: 00000000003526f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: __blocking_notifier_chain_register kernel/notifier.c:264 [inline] blocking_notifier_chain_register+0x76/0xd0 kernel/notifier.c:282 ubi_wl_init+0x1018/0x17b0 drivers/mtd/ubi/wl.c:1960 ubi_attach+0x1b92/0x4c00 drivers/mtd/ubi/attach.c:1605 ubi_attach_mtd_dev+0x158f/0x3590 drivers/mtd/ubi/build.c:1004 ctrl_cdev_ioctl+0x339/0x3d0 drivers/mtd/ubi/cdev.c:1043 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:906 [inline] __se_sys_ioctl fs/ioctl.c:892 [inline] __x64_sys_ioctl+0x190/0x200 fs/ioctl.c:892 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f91a9b85d29 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f91aaa46038 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007f91a9d76080 RCX: 00007f91a9b85d29 RDX: 0000000020000502 RSI: 0000000040186f40 RDI: 0000000000000003 RBP: 00007f91a9c01b08 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f91a9d76080 R15: 00007ffc79726338 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:notifier_chain_register+0xc1/0x420 kernel/notifier.c:27 Code: 00 00 00 e8 11 30 34 00 48 8b 04 24 0f b6 00 84 c0 74 08 3c 03 0f 8e ff 02 00 00 48 8d 7b 10 45 8b 65 10 48 89 f8 48 c1 e8 03 <42> 0f b6 04 38 84 c0 74 08 3c 03 0f 8e d5 02 00 00 8b 6b 10 44 89 RSP: 0018:ffffc9000b8afa60 EFLAGS: 00010203 RAX: 0000000000002002 RBX: 0000000000010005 RCX: ffffffff8165e487 RDX: ffff8880602ec880 RSI: ffffffff8165e42f RDI: 0000000000010015 RBP: 0000000000010005 R08: 0000000000000004 R09: 0000000000000001 R10: 0000000000010005 R11: 000000000001c808 R12: 0000000000000001 R13: ffff88805b0ad8c8 R14: ffff88802cd058d0 R15: dffffc0000000000 FS: 00007f91aaa466c0(0000) GS:ffff8880b8600000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f91aaa24f98 CR3: 0000000034bfa000 CR4: 00000000003526f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: 00 00 add %al,(%rax) 2: 00 e8 add %ch,%al 4: 11 30 adc %esi,(%rax) 6: 34 00 xor $0x0,%al 8: 48 8b 04 24 mov (%rsp),%rax c: 0f b6 00 movzbl (%rax),%eax f: 84 c0 test %al,%al 11: 74 08 je 0x1b 13: 3c 03 cmp $0x3,%al 15: 0f 8e ff 02 00 00 jle 0x31a 1b: 48 8d 7b 10 lea 0x10(%rbx),%rdi 1f: 45 8b 65 10 mov 0x10(%r13),%r12d 23: 48 89 f8 mov %rdi,%rax 26: 48 c1 e8 03 shr $0x3,%rax * 2a: 42 0f b6 04 38 movzbl (%rax,%r15,1),%eax <-- trapping instruction 2f: 84 c0 test %al,%al 31: 74 08 je 0x3b 33: 3c 03 cmp $0x3,%al 35: 0f 8e d5 02 00 00 jle 0x310 3b: 8b 6b 10 mov 0x10(%rbx),%ebp 3e: 44 rex.R 3f: 89 .byte 0x89