general protection fault, probably for non-canonical address 0xdffffc0000000182: 0000 [#1] PREEMPT SMP KASAN KASAN: null-ptr-deref in range [0x0000000000000c10-0x0000000000000c17] CPU: 0 PID: 28088 Comm: syz-executor.2 Not tainted 5.15.0-rc3-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:__ref_is_percpu include/linux/percpu-refcount.h:174 [inline] RIP: 0010:percpu_ref_put_many include/linux/percpu-refcount.h:319 [inline] RIP: 0010:percpu_ref_put include/linux/percpu-refcount.h:338 [inline] RIP: 0010:cgroup_bpf_put include/linux/cgroup.h:926 [inline] RIP: 0010:cgroup_sk_free+0x8d/0x570 kernel/cgroup/cgroup.c:6613 Code: 10 06 00 40 84 ed 5a 0f 84 42 01 00 00 e8 ab 08 06 00 4c 8d ab 10 0c 00 00 48 b8 00 00 00 00 00 fc ff df 4c 89 ea 48 c1 ea 03 <80> 3c 02 00 0f 85 6f 04 00 00 48 8b ab 10 0c 00 00 31 ff 49 89 ec RSP: 0018:ffffc90000007c38 EFLAGS: 00010206 RAX: dffffc0000000000 RBX: 0000000000000000 RCX: 0000000000000100 RDX: 0000000000000182 RSI: ffffffff816f29b5 RDI: 0000000000000003 RBP: 0000000000000001 R08: 0000000000000000 R09: 0000000000000001 R10: ffffffff816f29a6 R11: 0000000000000000 R12: ffff88807d313000 R13: 0000000000000c10 R14: ffffffff8d0cf10c R15: 0000000000000000 FS: 00007f603270c700(0000) GS:ffff8880b9c00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f77434b4000 CR3: 0000000082842000 CR4: 00000000003526f0 Call Trace: sk_prot_free net/core/sock.c:1852 [inline] __sk_destruct+0x579/0x900 net/core/sock.c:1943 sk_destruct+0xbd/0xe0 net/core/sock.c:1958 __sk_free+0xef/0x3d0 net/core/sock.c:1969 sk_free+0x78/0xa0 net/core/sock.c:1980 sock_put include/net/sock.h:1816 [inline] nr_heartbeat_expiry+0x2e7/0x460 net/netrom/nr_timer.c:148 call_timer_fn+0x1a5/0x6b0 kernel/time/timer.c:1421 expire_timers kernel/time/timer.c:1466 [inline] __run_timers.part.0+0x675/0xa20 kernel/time/timer.c:1734 __run_timers kernel/time/timer.c:1715 [inline] run_timer_softirq+0xb3/0x1d0 kernel/time/timer.c:1747 __do_softirq+0x29b/0x9c2 kernel/softirq.c:558 invoke_softirq kernel/softirq.c:432 [inline] __irq_exit_rcu+0x123/0x180 kernel/softirq.c:636 irq_exit_rcu+0x5/0x20 kernel/softirq.c:648 sysvec_apic_timer_interrupt+0x93/0xc0 arch/x86/kernel/apic/apic.c:1097 asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:638 RIP: 0010:strlen+0x5f/0x90 lib/string.c:566 Code: 00 00 00 00 fc ff df 48 89 e8 48 83 c0 01 48 89 c2 48 89 c1 48 c1 ea 03 83 e1 07 0f b6 14 1a 38 ca 7f 04 84 d2 75 1f 80 38 00 <75> de 48 83 c4 08 48 29 e8 5b 5d c3 48 83 c4 08 31 c0 5b 5d c3 e8 RSP: 0018:ffffc900045a79d8 EFLAGS: 00000206 RAX: ffffffff8997cafc RBX: dffffc0000000000 RCX: 0000000000000004 RDX: 0000000000000000 RSI: ffffffff8babbc00 RDI: ffffffff8997cae0 RBP: ffffffff8997cae0 R08: 0000000000000000 R09: 0000000000000001 R10: fffffbfff1adc3da R11: 0000000000000000 R12: 0000000000000000 R13: ffffffff8b87a820 R14: ffffffff8babbc00 R15: ffffc900045a7ab8 strlen include/linux/fortify-string.h:60 [inline] trace_event_get_offsets_lock_acquire include/trace/events/lock.h:13 [inline] perf_trace_lock_acquire+0xbe/0x550 include/trace/events/lock.h:13 trace_lock_acquire include/trace/events/lock.h:13 [inline] lock_acquire+0x416/0x510 kernel/locking/lockdep.c:5596 fs_reclaim_acquire mm/page_alloc.c:4556 [inline] fs_reclaim_acquire+0xd2/0x160 mm/page_alloc.c:4547 might_alloc include/linux/sched/mm.h:198 [inline] slab_pre_alloc_hook mm/slab.h:492 [inline] slab_alloc_node mm/slab.c:3222 [inline] kmem_cache_alloc_node_trace+0x4a/0x5d0 mm/slab.c:3617 __do_kmalloc_node mm/slab.c:3639 [inline] __kmalloc_node+0x38/0x60 mm/slab.c:3647 kmalloc_array_node include/linux/slab.h:684 [inline] kcalloc_node include/linux/slab.h:689 [inline] blk_mq_realloc_hw_ctxs+0x109/0x1570 block/blk-mq.c:3192 blk_mq_init_allocated_queue+0x324/0x12c0 block/blk-mq.c:3281 blk_mq_init_queue_data block/blk-mq.c:3116 [inline] __blk_mq_alloc_disk+0x8b/0x160 block/blk-mq.c:3136 loop_add+0x340/0x960 drivers/block/loop.c:2344 loop_control_ioctl+0x130/0x4a0 drivers/block/loop.c:2512 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:874 [inline] __se_sys_ioctl fs/ioctl.c:860 [inline] __x64_sys_ioctl+0x193/0x200 fs/ioctl.c:860 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x44/0xae RIP: 0033:0x7f60351958d9 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 bc ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f603270c188 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007f6035299f60 RCX: 00007f60351958d9 RDX: 000000000000000b RSI: 0000000000004c80 RDI: 0000000000000005 RBP: 00007f60351efcb4 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffde457c3ff R14: 00007f603270c300 R15: 0000000000022000 Modules linked in: ---[ end trace 4c6b09c062055618 ]--- RIP: 0010:__ref_is_percpu include/linux/percpu-refcount.h:174 [inline] RIP: 0010:percpu_ref_put_many include/linux/percpu-refcount.h:319 [inline] RIP: 0010:percpu_ref_put include/linux/percpu-refcount.h:338 [inline] RIP: 0010:cgroup_bpf_put include/linux/cgroup.h:926 [inline] RIP: 0010:cgroup_sk_free+0x8d/0x570 kernel/cgroup/cgroup.c:6613 Code: 10 06 00 40 84 ed 5a 0f 84 42 01 00 00 e8 ab 08 06 00 4c 8d ab 10 0c 00 00 48 b8 00 00 00 00 00 fc ff df 4c 89 ea 48 c1 ea 03 <80> 3c 02 00 0f 85 6f 04 00 00 48 8b ab 10 0c 00 00 31 ff 49 89 ec RSP: 0018:ffffc90000007c38 EFLAGS: 00010206 RAX: dffffc0000000000 RBX: 0000000000000000 RCX: 0000000000000100 RDX: 0000000000000182 RSI: ffffffff816f29b5 RDI: 0000000000000003 RBP: 0000000000000001 R08: 0000000000000000 R09: 0000000000000001 R10: ffffffff816f29a6 R11: 0000000000000000 R12: ffff88807d313000 R13: 0000000000000c10 R14: ffffffff8d0cf10c R15: 0000000000000000 FS: 00007f603270c700(0000) GS:ffff8880b9c00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f77434b4000 CR3: 0000000082842000 CR4: 00000000003526f0 ---------------- Code disassembly (best guess): 0: 10 06 adc %al,(%rsi) 2: 00 40 84 add %al,-0x7c(%rax) 5: ed in (%dx),%eax 6: 5a pop %rdx 7: 0f 84 42 01 00 00 je 0x14f d: e8 ab 08 06 00 callq 0x608bd 12: 4c 8d ab 10 0c 00 00 lea 0xc10(%rbx),%r13 19: 48 b8 00 00 00 00 00 movabs $0xdffffc0000000000,%rax 20: fc ff df 23: 4c 89 ea mov %r13,%rdx 26: 48 c1 ea 03 shr $0x3,%rdx * 2a: 80 3c 02 00 cmpb $0x0,(%rdx,%rax,1) <-- trapping instruction 2e: 0f 85 6f 04 00 00 jne 0x4a3 34: 48 8b ab 10 0c 00 00 mov 0xc10(%rbx),%rbp 3b: 31 ff xor %edi,%edi 3d: 49 89 ec mov %rbp,%r12