tc_dump_action: action bad kind ================================================================== BUG: KASAN: slab-out-of-bounds in pfkey_msg2xfrm_state net/key/af_key.c:1227 [inline] BUG: KASAN: slab-out-of-bounds in pfkey_add+0x145d/0x3220 net/key/af_key.c:1506 Read of size 2048 at addr ffff8800ae5b6cc0 by task syz-executor7/9791 CPU: 1 PID: 9791 Comm: syz-executor7 Not tainted 4.4.137-ga2e2217 #59 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 0000000000000000 69cfd4e2391c735f ffff8801caf376c0 ffffffff81e0ee0d ffffea0002b96d80 ffff8800ae5b6cc0 0000000000000000 ffff8800ae5b6e80 ffff8800ae5b6c80 ffff8801caf376f8 ffffffff81515a16 ffff8800ae5b6cc0 Call Trace: [] __dump_stack lib/dump_stack.c:15 [inline] [] dump_stack+0xc1/0x124 lib/dump_stack.c:51 [] print_address_description+0x6c/0x216 mm/kasan/report.c:252 SELinux: ebitmap: truncated map [] kasan_report_error mm/kasan/report.c:351 [inline] [] kasan_report.cold.7+0x175/0x2f7 mm/kasan/report.c:408 [] check_memory_region_inline mm/kasan/kasan.c:325 [inline] [] check_memory_region+0x14f/0x1b0 mm/kasan/kasan.c:332 [] memcpy+0x23/0x50 mm/kasan/kasan.c:367 [] pfkey_msg2xfrm_state net/key/af_key.c:1227 [inline] [] pfkey_add+0x145d/0x3220 net/key/af_key.c:1506 [] pfkey_process+0x671/0x740 net/key/af_key.c:2834 [] pfkey_sendmsg+0x346/0xae0 net/key/af_key.c:3678 [] sock_sendmsg_nosec net/socket.c:625 [inline] [] sock_sendmsg+0xcc/0x110 net/socket.c:635 [] ___sys_sendmsg+0x745/0x880 net/socket.c:1962 [] __sys_sendmsg+0xd6/0x190 net/socket.c:1996 [] C_SYSC_sendmsg net/compat.c:722 [inline] [] compat_SyS_sendmsg+0x2a/0x40 net/compat.c:720 [] do_syscall_32_irqs_on arch/x86/entry/common.c:392 [inline] [] do_fast_syscall_32+0x326/0x8b0 arch/x86/entry/common.c:459 [] sysenter_flags_fixed+0xd/0x17 Allocated by task 9791: [] save_stack_trace+0x26/0x50 arch/x86/kernel/stacktrace.c:63 [] save_stack+0x43/0xd0 mm/kasan/kasan.c:512 [] set_track mm/kasan/kasan.c:524 [inline] [] kasan_kmalloc+0xc7/0xe0 mm/kasan/kasan.c:616 [] kasan_krealloc+0x64/0x80 mm/kasan/kasan.c:654 [] ksize+0x8a/0xf0 mm/slub.c:3727 [] __alloc_skb+0x133/0x600 net/core/skbuff.c:237 [] alloc_skb include/linux/skbuff.h:815 [inline] [] pfkey_sendmsg+0xfe/0xae0 net/key/af_key.c:3665 [] sock_sendmsg_nosec net/socket.c:625 [inline] [] sock_sendmsg+0xcc/0x110 net/socket.c:635 [] ___sys_sendmsg+0x745/0x880 net/socket.c:1962 [] __sys_sendmsg+0xd6/0x190 net/socket.c:1996 [] C_SYSC_sendmsg net/compat.c:722 [inline] [] compat_SyS_sendmsg+0x2a/0x40 net/compat.c:720 [] do_syscall_32_irqs_on arch/x86/entry/common.c:392 [inline] [] do_fast_syscall_32+0x326/0x8b0 arch/x86/entry/common.c:459 [] sysenter_flags_fixed+0xd/0x17 Freed by task 2025: [] save_stack_trace+0x26/0x50 arch/x86/kernel/stacktrace.c:63 [] save_stack+0x43/0xd0 mm/kasan/kasan.c:512 [] set_track mm/kasan/kasan.c:524 [inline] [] kasan_slab_free+0x72/0xc0 mm/kasan/kasan.c:589 [] slab_free_hook mm/slub.c:1383 [inline] [] slab_free_freelist_hook mm/slub.c:1405 [inline] [] slab_free mm/slub.c:2859 [inline] [] kfree+0xf4/0x310 mm/slub.c:3749 [] skb_free_head net/core/skbuff.c:571 [inline] [] skb_release_data+0x304/0x3b0 net/core/skbuff.c:602 [] skb_release_all+0x4a/0x60 net/core/skbuff.c:661 [] __kfree_skb net/core/skbuff.c:675 [inline] [] consume_skb+0xf3/0x3d0 net/core/skbuff.c:748 [] netlink_broadcast_filtered+0x2b2/0x9c0 net/netlink/af_netlink.c:1479 [] kobject_uevent_env+0x6d8/0xb80 lib/kobject_uevent.c:316 [] kobject_uevent+0x1f/0x30 lib/kobject_uevent.c:374 [] uevent_store+0x8a/0xe0 drivers/base/core.c:420 [] dev_attr_store+0x5e/0x90 drivers/base/core.c:137 [] sysfs_kf_write+0x114/0x180 fs/sysfs/file.c:141 [] kernfs_fop_write+0x2b3/0x400 fs/kernfs/file.c:312 [] __vfs_write+0x11c/0x3f0 fs/read_write.c:489 [] vfs_write+0x191/0x4e0 fs/read_write.c:538 [] SYSC_write fs/read_write.c:585 [inline] [] SyS_write+0xd9/0x1c0 fs/read_write.c:577 [] entry_SYSCALL_64_fastpath+0x22/0x9e The buggy address belongs to the object at ffff8800ae5b6c80 which belongs to the cache kmalloc-512 of size 512 The buggy address is located 64 bytes inside of 512-byte region [ffff8800ae5b6c80, ffff8800ae5b6e80) The buggy address belongs to the page: kasan: CONFIG_KASAN_INLINE enabled kasan: GPF could be caused by NULL-ptr deref or user memory accessgeneral protection fault: 0000 [#1] PREEMPT SMP KASAN Dumping ftrace buffer: (ftrace buffer empty) Modules linked in: CPU: 0 PID: 0 Comm: €m¹ Not tainted 4.4.137-ga2e2217 #59 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 task: ffff8801ba5be000 task.stack: ffffffff83aa9ee0 RIP: 0010:[] [] cpuacct_account_field+0x136/0x2f0 kernel/sched/cpuacct.c:272 RSP: 0018:ffff8801db207c60 EFLAGS: 00010002 RAX: 001bc6a03b640002 RBX: 00de3501db200001 RCX: ffffffff84a14d40 RDX: 1ffffffff09429a8 RSI: ffffffff81e6e99b RDI: 00de3501db200011 RBP: ffff8801db207c98 R08: 0000000000000000 R09: 0000000000000000 R10: 00000000ffff8800 R11: ffffffff8593178f R12: ffffea0002b96d81 R13: 0000000000000001 R14: 0000000000000010 R15: dffffc0000000000 FS: 0000000000000000(0000) GS:ffff8801db200000(0063) knlGS:00000000f575eb40 CS: 0010 DS: 002b ES: 002b CR0: 0000000080050033 CR2: 00007fc14bfac000 CR3: 00000000addc0000 CR4: 00000000001606f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Stack: ffffffff81224ee0 0000000000000010 ffff8801ba5be000 0000000000000001 0000000000000010 ffff8800bb8f4ac0 0000000000000002 ffff8801db207ce0 ffffffff811d3c16 000000000001f4c0 ffff8801ba5be000 ffff8801db21f4c0 Call Trace: [] task_group_account_field kernel/sched/cputime.c:143 [inline] [] __account_system_time kernel/sched/cputime.c:220 [inline] [] account_system_time+0x1a6/0x4c0 kernel/sched/cputime.c:254 [] account_process_tick+0xdc/0x310 kernel/sched/cputime.c:509 [] update_process_times+0x23/0x70 kernel/time/timer.c:1425 [] tick_sched_handle.isra.15+0x55/0xf0 kernel/time/tick-sched.c:151 [] tick_sched_timer+0x72/0x120 kernel/time/tick-sched.c:1097 [] __run_hrtimer kernel/time/hrtimer.c:1261 [inline] [] __hrtimer_run_queues+0x3ad/0x1000 kernel/time/hrtimer.c:1325 [] hrtimer_interrupt+0x1b1/0x430 kernel/time/hrtimer.c:1359 [] local_apic_timer_interrupt+0x74/0xa0 arch/x86/kernel/apic/apic.c:901 [] smp_apic_timer_interrupt+0x7c/0xa0 arch/x86/kernel/apic/apic.c:925 [] apic_timer_interrupt+0xa0/0xb0 arch/x86/entry/entry_64.S:741 Code: 4d a1 84 48 89 fa 48 c1 ea 03 42 80 3c 3a 00 0f 85 7b 01 00 00 48 c7 c1 40 4d a1 84 48 03 1c c1 4a 8d 3c 33 48 89 f8 48 c1 e8 03 <42> 80 3c 38 00 0f 85 80 01 00 00 4e 01 2c 33 49 8d 7c 24 48 48 RIP [] cpuacct_account_field+0x136/0x2f0 kernel/sched/cpuacct.c:272 RSP ---[ end trace 5ef54ef0fa577bfc ]---