Oops: general protection fault, probably for non-canonical address 0xdffffc0000000002: 0000 [#1] SMP KASAN NOPTI KASAN: null-ptr-deref in range [0x0000000000000010-0x0000000000000017] CPU: 0 UID: 0 PID: 5350 Comm: syz.0.0 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:gb_operation_message_init drivers/greybus/operation.c:340 [inline] RIP: 0010:gb_operation_message_alloc+0x174/0x280 drivers/greybus/operation.c:385 Code: 00 e8 90 58 6e f8 48 8b 3d f9 16 cd 12 48 89 de e8 51 52 dc f8 e9 94 00 00 00 e8 77 58 6e f8 41 83 c7 08 4c 89 f0 48 c1 e8 03 <0f> b6 04 28 84 c0 0f 85 91 00 00 00 66 45 89 3e 49 8d 7e 02 48 89 RSP: 0000:ffffc900000078a8 EFLAGS: 00010002 RAX: 0000000000000002 RBX: ffff8880547f0ec0 RCX: ffff8880402acb00 RDX: 8000000000000100 RSI: 0000000000000100 RDI: 000000000000007f RBP: dffffc0000000000 R08: 0000000000000100 R09: 0000000000000000 R10: ffff8880547f0ec0 R11: fffffbfff2137c23 R12: 0000000000000000 R13: 0000000000000800 R14: 0000000000000010 R15: 0000000000000000 FS: 00007f8fd14d76c0(0000) GS:ffff88808a9e6000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f8fd1493f98 CR3: 0000000045901000 CR4: 0000000000352ef0 Call Trace: gb_operation_create_common+0xa9/0x650 drivers/greybus/operation.c:532 gb_operation_create_incoming drivers/greybus/operation.c:644 [inline] gb_connection_recv_request drivers/greybus/operation.c:926 [inline] gb_connection_recv+0x284/0x1280 drivers/greybus/operation.c:1063 greybus_data_rcvd+0x22c/0x550 drivers/greybus/connection.c:89 cport_in_callback+0x1bd/0x3b0 drivers/greybus/es2.c:840 __usb_hcd_giveback_urb+0x378/0x540 drivers/usb/core/hcd.c:1657 dummy_timer+0xa9a/0x4ce0 drivers/usb/gadget/udc/dummy_hcd.c:2051 __run_hrtimer kernel/time/hrtimer.c:2079 [inline] __hrtimer_run_queues+0x3bc/0xa10 kernel/time/hrtimer.c:2136 hrtimer_run_softirq+0x1e3/0x2e0 kernel/time/hrtimer.c:2153 handle_softirqs+0x265/0x8d0 kernel/softirq.c:669 __do_softirq kernel/softirq.c:703 [inline] invoke_softirq kernel/softirq.c:542 [inline] __irq_exit_rcu+0xc6/0x220 kernel/softirq.c:786 irq_exit_rcu+0x9/0x30 kernel/softirq.c:809 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1062 [inline] sysvec_apic_timer_interrupt+0xa6/0xc0 arch/x86/kernel/apic/apic.c:1062 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:674 RIP: 0010:lock_release+0x2e1/0x3c0 kernel/locking/lockdep.c:5968 Code: 7e 3f 13 00 00 00 00 eb b5 e8 ab 3c 68 0a f7 c3 00 02 00 00 74 b9 65 48 8b 05 73 36 3f 13 48 3b 44 24 28 75 48 fb 48 83 c4 30 <5b> 41 5c 41 5d 41 5e 41 5f 5d e9 d0 53 6b 0a cc 48 8d 3d a8 48 1d RSP: 0000:ffffc9000e37e450 EFLAGS: 00000286 RAX: 9cfb50857c2c8000 RBX: 0000000000000206 RCX: 0000000000000046 RDX: ffffc9000e37e501 RSI: ffffffff8e93f478 RDI: ffffffff8c8ec080 RBP: ffff8880402ad6d8 R08: ffffc9000e37e610 R09: 0000000000000000 R10: ffffc9000e37e5d8 R11: fffff52001c6fcbd R12: 0000000000000001 R13: 0000000000000001 R14: ffffffff9015a320 R15: ffff8880402acb00 rcu_lock_release include/linux/rcupdate.h:319 [inline] rcu_read_unlock include/linux/rcupdate.h:880 [inline] class_rcu_destructor include/linux/rcupdate.h:1216 [inline] unwind_next_frame+0x1baa/0x2550 arch/x86/kernel/unwind_orc.c:709 __unwind_start+0x514/0x660 arch/x86/kernel/unwind_orc.c:787 unwind_start arch/x86/include/asm/unwind.h:64 [inline] arch_stack_walk+0xe3/0x150 arch/x86/kernel/stacktrace.c:24 stack_trace_save+0xa9/0x100 kernel/stacktrace.c:122 kasan_save_stack mm/kasan/common.c:57 [inline] kasan_save_track+0x3f/0x90 mm/kasan/common.c:79 kasan_save_free_info+0x40/0x50 mm/kasan/generic.c:599 poison_slab_object mm/kasan/common.c:267 [inline] __kasan_slab_free+0x70/0x90 mm/kasan/common.c:299 kasan_slab_free include/linux/kasan.h:239 [inline] slab_free_hook mm/slub.c:2780 [inline] slab_free mm/slub.c:6637 [inline] kfree+0x1c7/0x650 mm/slub.c:6930 hash_ipportnet6_ahash_destroy net/netfilter/ipset/ip_set_hash_gen.h:569 [inline] hash_ipportnet6_resize+0x1cbf/0x1f60 net/netfilter/ipset/ip_set_hash_gen.h:915 call_ad+0x536/0xb50 net/netfilter/ipset/ip_set_core.c:1777 ip_set_ad+0x82a/0x9d0 net/netfilter/ipset/ip_set_core.c:1861 nfnetlink_rcv_msg+0xcc2/0x12b0 net/netfilter/nfnetlink.c:300 netlink_rcv_skb+0x226/0x4a0 net/netlink/af_netlink.c:2585 nfnetlink_rcv+0x2b9/0x28c0 net/netfilter/nfnetlink.c:667 netlink_unicast_kernel net/netlink/af_netlink.c:1336 [inline] netlink_unicast+0x8ef/0xa80 net/netlink/af_netlink.c:1362 netlink_sendmsg+0x7f0/0xb20 net/netlink/af_netlink.c:1921 sock_sendmsg_nosec+0x14e/0x190 net/socket.c:800 __sock_sendmsg net/socket.c:818 [inline] ____sys_sendmsg+0x49f/0x790 net/socket.c:2713 ___sys_sendmsg+0x2f8/0x3d0 net/socket.c:2770 __sys_sendmsg net/socket.c:2802 [inline] __do_sys_sendmsg net/socket.c:2807 [inline] __se_sys_sendmsg net/socket.c:2805 [inline] __x64_sys_sendmsg+0x1b1/0x290 net/socket.c:2805 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline] do_syscall_64+0x171/0x540 arch/x86/entry/syscall_64.c:89 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f8fd05a9a99 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:00007f8fd14d6fe8 EFLAGS: 00000246 ORIG_RAX: 000000000000002e RAX: ffffffffffffffda RBX: 00007f8fd0835fa0 RCX: 00007f8fd05a9a99 RDX: 0000000000000000 RSI: 0000200000001540 RDI: 0000000000000008 RBP: 00007f8fd063918b R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f8fd0836038 R14: 00007f8fd0835fa0 R15: 00007fff4869c708 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:gb_operation_message_init drivers/greybus/operation.c:340 [inline] RIP: 0010:gb_operation_message_alloc+0x174/0x280 drivers/greybus/operation.c:385 Code: 00 e8 90 58 6e f8 48 8b 3d f9 16 cd 12 48 89 de e8 51 52 dc f8 e9 94 00 00 00 e8 77 58 6e f8 41 83 c7 08 4c 89 f0 48 c1 e8 03 <0f> b6 04 28 84 c0 0f 85 91 00 00 00 66 45 89 3e 49 8d 7e 02 48 89 RSP: 0000:ffffc900000078a8 EFLAGS: 00010002 RAX: 0000000000000002 RBX: ffff8880547f0ec0 RCX: ffff8880402acb00 RDX: 8000000000000100 RSI: 0000000000000100 RDI: 000000000000007f RBP: dffffc0000000000 R08: 0000000000000100 R09: 0000000000000000 R10: ffff8880547f0ec0 R11: fffffbfff2137c23 R12: 0000000000000000 R13: 0000000000000800 R14: 0000000000000010 R15: 0000000000000000 FS: 00007f8fd14d76c0(0000) GS:ffff88808a9e6000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f8fd1493f98 CR3: 0000000045901000 CR4: 0000000000352ef0 ---------------- Code disassembly (best guess): 0: 00 e8 add %ch,%al 2: 90 nop 3: 58 pop %rax 4: 6e outsb %ds:(%rsi),(%dx) 5: f8 clc 6: 48 8b 3d f9 16 cd 12 mov 0x12cd16f9(%rip),%rdi # 0x12cd1706 d: 48 89 de mov %rbx,%rsi 10: e8 51 52 dc f8 call 0xf8dc5266 15: e9 94 00 00 00 jmp 0xae 1a: e8 77 58 6e f8 call 0xf86e5896 1f: 41 83 c7 08 add $0x8,%r15d 23: 4c 89 f0 mov %r14,%rax 26: 48 c1 e8 03 shr $0x3,%rax * 2a: 0f b6 04 28 movzbl (%rax,%rbp,1),%eax <-- trapping instruction 2e: 84 c0 test %al,%al 30: 0f 85 91 00 00 00 jne 0xc7 36: 66 45 89 3e mov %r15w,(%r14) 3a: 49 8d 7e 02 lea 0x2(%r14),%rdi 3e: 48 rex.W 3f: 89 .byte 0x89