Oops: general protection fault, probably for non-canonical address 0xdffffc0000000000: 0000 [#1] SMP KASAN PTI KASAN: null-ptr-deref in range [0x0000000000000000-0x0000000000000007] CPU: 1 UID: 0 PID: 5808 Comm: syz.0.17 Not tainted syzkaller #0 PREEMPT(full) Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.2-debian-1.16.2-1 04/01/2014 RIP: 0010:nla_get_u32 include/net/netlink.h:1734 [inline] RIP: 0010:drm_ras_nl_pre_telemetry+0x60/0xe0 drivers/gpu/drm/drm_ras.c:656 Code: 8b 1b 48 83 c3 08 48 89 d8 48 c1 e8 03 42 80 3c 38 00 74 08 48 89 df e8 3e 3c 9a fc 48 8b 1b 48 83 c3 04 48 89 d8 48 c1 e8 03 <42> 0f b6 04 38 84 c0 75 5b 8b 33 48 c7 c7 80 d3 6f 90 e8 c9 8c 49 RSP: 0018:ffffc9000379f420 EFLAGS: 00010247 RAX: 0000000000000000 RBX: 0000000000000004 RCX: ffff8881bf17bc00 RDX: 0000000000000000 RSI: ffff8881bf38d380 RDI: ffffc9000379f600 RBP: ffffc9000379f588 R08: ffffc9000379f4ff R09: 0000000000000000 R10: ffffc9000379f4d0 R11: ffffffff859eb380 R12: ffffc9000379f600 R13: dffffc0000000000 R14: ffff8881bf38d380 R15: dffffc0000000000 FS: 00007f2c256e36c0(0000) GS:ffff8882a7cb6000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000200000000100 CR3: 000000016e7ee000 CR4: 00000000000006f0 Call Trace: genl_family_rcv_msg_doit+0x1db/0x340 net/netlink/genetlink.c:1109 genl_family_rcv_msg net/netlink/genetlink.c:1194 [inline] genl_rcv_msg+0x614/0x7a0 net/netlink/genetlink.c:1209 netlink_rcv_skb+0x226/0x4a0 net/netlink/af_netlink.c:2575 genl_rcv+0x28/0x40 net/netlink/genetlink.c:1218 netlink_unicast_kernel net/netlink/af_netlink.c:1338 [inline] netlink_unicast+0x7bd/0x940 net/netlink/af_netlink.c:1364 netlink_sendmsg+0x813/0xb40 net/netlink/af_netlink.c:1919 sock_sendmsg_nosec+0x13a/0x180 net/socket.c:800 __sock_sendmsg net/socket.c:815 [inline] ____sys_sendmsg+0x54e/0x850 net/socket.c:2713 ___sys_sendmsg+0x2a5/0x360 net/socket.c:2767 __sys_sendmsg net/socket.c:2799 [inline] __do_sys_sendmsg net/socket.c:2804 [inline] __se_sys_sendmsg net/socket.c:2802 [inline] __x64_sys_sendmsg+0x1b1/0x290 net/socket.c:2802 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline] do_syscall_64+0x166/0x520 arch/x86/entry/syscall_64.c:84 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f2c2479e1d9 Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 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 e8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f2c256e3028 EFLAGS: 00000246 ORIG_RAX: 000000000000002e RAX: ffffffffffffffda RBX: 00007f2c24a25fa0 RCX: 00007f2c2479e1d9 RDX: 0000000000000000 RSI: 0000200000000100 RDI: 0000000000000004 RBP: 00007f2c24835888 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f2c24a26038 R14: 00007f2c24a25fa0 R15: 00007ffc88247b58 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:nla_get_u32 include/net/netlink.h:1734 [inline] RIP: 0010:drm_ras_nl_pre_telemetry+0x60/0xe0 drivers/gpu/drm/drm_ras.c:656 Code: 8b 1b 48 83 c3 08 48 89 d8 48 c1 e8 03 42 80 3c 38 00 74 08 48 89 df e8 3e 3c 9a fc 48 8b 1b 48 83 c3 04 48 89 d8 48 c1 e8 03 <42> 0f b6 04 38 84 c0 75 5b 8b 33 48 c7 c7 80 d3 6f 90 e8 c9 8c 49 RSP: 0018:ffffc9000379f420 EFLAGS: 00010247 RAX: 0000000000000000 RBX: 0000000000000004 RCX: ffff8881bf17bc00 RDX: 0000000000000000 RSI: ffff8881bf38d380 RDI: ffffc9000379f600 RBP: ffffc9000379f588 R08: ffffc9000379f4ff R09: 0000000000000000 R10: ffffc9000379f4d0 R11: ffffffff859eb380 R12: ffffc9000379f600 R13: dffffc0000000000 R14: ffff8881bf38d380 R15: dffffc0000000000 FS: 00007f2c256e36c0(0000) GS:ffff8882a7cb6000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f2c247eb8c0 CR3: 000000016e7ee000 CR4: 00000000000006f0 ---------------- Code disassembly (best guess): 0: 8b 1b mov (%rbx),%ebx 2: 48 83 c3 08 add $0x8,%rbx 6: 48 89 d8 mov %rbx,%rax 9: 48 c1 e8 03 shr $0x3,%rax d: 42 80 3c 38 00 cmpb $0x0,(%rax,%r15,1) 12: 74 08 je 0x1c 14: 48 89 df mov %rbx,%rdi 17: e8 3e 3c 9a fc call 0xfc9a3c5a 1c: 48 8b 1b mov (%rbx),%rbx 1f: 48 83 c3 04 add $0x4,%rbx 23: 48 89 d8 mov %rbx,%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: 75 5b jne 0x8e 33: 8b 33 mov (%rbx),%esi 35: 48 c7 c7 80 d3 6f 90 mov $0xffffffff906fd380,%rdi 3c: e8 .byte 0xe8 3d: c9 leave 3e: 8c .byte 0x8c 3f: 49 rex.WB