netlink: 100 bytes leftover after parsing attributes in process `syz-executor.0'. ================================================================== BUG: KASAN: slab-out-of-bounds in _copy_to_iter+0x493/0x1420 Read of size 4096 at addr ffff888022c5b000 by task syz-executor.0/4018 CPU: 0 PID: 4018 Comm: syz-executor.0 Not tainted 5.19.0-rc6-next-20220715 #1 Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.14.0-0-g155821a1990b-prebuilt.qemu.org 04/01/2014 Call Trace: dump_stack_lvl+0x8b/0xb3 print_report.cold+0x5e/0x5e5 kasan_report+0xb1/0x1c0 kasan_check_range+0x35/0x1c0 memcpy+0x20/0x60 _copy_to_iter+0x493/0x1420 seq_read_iter+0xdcb/0x12b0 proc_reg_read_iter+0x20a/0x2e0 generic_file_splice_read+0x187/0x4d0 do_splice_to+0x1bc/0x240 splice_direct_to_actor+0x2ac/0x8c0 do_splice_direct+0x1b8/0x290 do_sendfile+0xb1d/0x1280 __x64_sys_sendfile64+0x1d1/0x210 do_syscall_64+0x3b/0x90 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f7d9eb0ab19 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:00007f7d9c080188 EFLAGS: 00000246 ORIG_RAX: 0000000000000028 RAX: ffffffffffffffda RBX: 00007f7d9ec1df60 RCX: 00007f7d9eb0ab19 RDX: 0000000000000000 RSI: 0000000000000006 RDI: 0000000000000005 RBP: 00007f7d9eb64f6d R08: 0000000000000000 R09: 0000000000000000 R10: 0000000100000001 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fff2497a7ef R14: 00007f7d9c080300 R15: 0000000000022000 Allocated by task 4018: kasan_save_stack+0x1e/0x40 __kasan_kmalloc+0x81/0xa0 kvmalloc_node+0x41/0x1e0 seq_read_iter+0x81c/0x12b0 proc_reg_read_iter+0x20a/0x2e0 generic_file_splice_read+0x187/0x4d0 do_splice_to+0x1bc/0x240 splice_direct_to_actor+0x2ac/0x8c0 do_splice_direct+0x1b8/0x290 do_sendfile+0xb1d/0x1280 __x64_sys_sendfile64+0x1d1/0x210 do_syscall_64+0x3b/0x90 entry_SYSCALL_64_after_hwframe+0x63/0xcd The buggy address belongs to the object at ffff888022c5a000 which belongs to the cache kmalloc-cg-4k of size 4096 The buggy address is located 0 bytes to the right of 4096-byte region [ffff888022c5a000, ffff888022c5b000) The buggy address belongs to the physical page: page:00000000dd1daa5b refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x22c58 head:00000000dd1daa5b order:3 compound_mapcount:0 compound_pincount:0 memcg:ffff888009deb601 flags: 0x100000000010200(slab|head|node=0|zone=1) raw: 0100000000010200 ffffea000080f200 dead000000000003 ffff88800784c280 raw: 0000000000000000 0000000080040004 00000001ffffffff ffff888009deb601 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff888022c5af00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff888022c5af80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff888022c5b000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff888022c5b080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff888022c5b100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ================================================================== loop4: detected capacity change from 0 to 256 loop3: detected capacity change from 0 to 1024 device lo entered promiscuous mode ------------[ cut here ]------------ WARNING: CPU: 1 PID: 4018 at lib/iov_iter.c:1026 iov_iter_pipe+0x240/0x2b0 Modules linked in: CPU: 1 PID: 4018 Comm: syz-executor.0 Tainted: G B 5.19.0-rc6-next-20220715 #1 Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.14.0-0-g155821a1990b-prebuilt.qemu.org 04/01/2014 RIP: 0010:iov_iter_pipe+0x240/0x2b0 Code: d0 7c 04 84 d2 75 34 44 89 63 24 48 83 c4 08 5b 5d 41 5c 41 5d 41 5e 41 5f e9 2c 80 38 02 e8 a7 e4 3d ff 0f 0b e8 a0 e4 3d ff <0f> 0b e9 a8 fe ff ff e8 74 86 70 ff e9 17 fe ff ff e8 da 86 70 ff RSP: 0018:ffff88801bdd79d8 EFLAGS: 00010216 RAX: 000000000003fbd5 RBX: ffff88801bdd7a68 RCX: ffffc90001fe5000 FAT-fs (loop4): bogus number of FAT sectors RDX: 0000000000040000 RSI: ffffffff8207ba20 RDI: 0000000000000004 FAT-fs (loop4): Can't find a valid FAT filesystem RBP: ffff88801bec5000 R08: 0000000000000004 R09: 0000000000000010 R10: 0000000000000010 R11: 0000000000000001 R12: 0000000000000010 R13: 0000000000000000 R14: 0000000000000010 R15: 0000000000000010 FS: 00007f7d9c080700(0000) GS:ffff88806cf00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fd04baf3368 CR3: 000000000d684000 CR4: 0000000000350ee0 Call Trace: generic_file_splice_read+0x95/0x4d0 do_splice_to+0x1bc/0x240 splice_direct_to_actor+0x2ac/0x8c0 do_splice_direct+0x1b8/0x290 do_sendfile+0xb1d/0x1280 __x64_sys_sendfile64+0x1d1/0x210 do_syscall_64+0x3b/0x90 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f7d9eb0ab19 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:00007f7d9c080188 EFLAGS: 00000246 ORIG_RAX: 0000000000000028 RAX: ffffffffffffffda RBX: 00007f7d9ec1df60 RCX: 00007f7d9eb0ab19 RDX: 0000000000000000 RSI: 0000000000000006 RDI: 0000000000000005 RBP: 00007f7d9eb64f6d R08: 0000000000000000 R09: 0000000000000000 R10: 0000000100000001 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fff2497a7ef R14: 00007f7d9c080300 R15: 0000000000022000 irq event stamp: 781 hardirqs last enabled at (781): [] asm_sysvec_apic_timer_interrupt+0x16/0x20 hardirqs last disabled at (780): [] __do_softirq+0x6be/0x8d0 softirqs last enabled at (372): [] netlink_insert+0x187/0x1700 softirqs last disabled at (370): [] release_sock+0x1b/0x1b0 ---[ end trace 0000000000000000 ]--- EXT4-fs warning (device loop3): ext4_enable_quotas:6809: Failed to enable quota tracking (type=0, err=-22). Please run e2fsck to fix. EXT4-fs (loop3): mount failed loop4: detected capacity change from 0 to 256 FAT-fs (loop4): bogus number of FAT sectors FAT-fs (loop4): Can't find a valid FAT filesystem device lo left promiscuous mode device lo entered promiscuous mode loop4: detected capacity change from 0 to 256 FAT-fs (loop4): bogus number of FAT sectors FAT-fs (loop4): Can't find a valid FAT filesystem raw_sendmsg: syz-executor.1 forgot to set AF_INET. Fix it! netlink: 100 bytes leftover after parsing attributes in process `syz-executor.0'. audit: type=1400 audit(1658134263.735:9): avc: denied { block_suspend } for pid=4078 comm="syz-executor.4" capability=36 scontext=system_u:system_r:kernel_t:s0 tcontext=system_u:system_r:kernel_t:s0 tclass=capability2 permissive=1 netlink: 100 bytes leftover after parsing attributes in process `syz-executor.5'. ------------[ cut here ]------------ WARNING: CPU: 0 PID: 4086 at lib/iov_iter.c:1026 iov_iter_pipe+0x240/0x2b0 Modules linked in: CPU: 0 PID: 4086 Comm: syz-executor.5 Tainted: G B W 5.19.0-rc6-next-20220715 #1 Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.14.0-0-g155821a1990b-prebuilt.qemu.org 04/01/2014 RIP: 0010:iov_iter_pipe+0x240/0x2b0 Code: d0 7c 04 84 d2 75 34 44 89 63 24 48 83 c4 08 5b 5d 41 5c 41 5d 41 5e 41 5f e9 2c 80 38 02 e8 a7 e4 3d ff 0f 0b e8 a0 e4 3d ff <0f> 0b e9 a8 fe ff ff e8 74 86 70 ff e9 17 fe ff ff e8 da 86 70 ff RSP: 0018:ffff888017ebf9d8 EFLAGS: 00010212 netlink: 100 bytes leftover after parsing attributes in process `syz-executor.0'. RAX: 00000000000038b4 RBX: ffff888017ebfa68 RCX: ffffc9000f650000 RDX: 0000000000040000 RSI: ffffffff8207ba20 RDI: 0000000000000004 RBP: ffff88801bec6800 R08: 0000000000000004 R09: 0000000000000010 R10: 0000000000000010 R11: 0000000000000001 R12: 0000000000000010 R13: 0000000000000000 R14: 0000000000000010 R15: 0000000000000010 FS: 00007f106c495700(0000) GS:ffff88806ce00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b2de27000 CR3: 00000000182dc000 CR4: 0000000000350ef0 Call Trace: generic_file_splice_read+0x95/0x4d0 do_splice_to+0x1bc/0x240 splice_direct_to_actor+0x2ac/0x8c0 do_splice_direct+0x1b8/0x290 do_sendfile+0xb1d/0x1280 __x64_sys_sendfile64+0x1d1/0x210 do_syscall_64+0x3b/0x90 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f106ef1fb19 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:00007f106c495188 EFLAGS: 00000246 ORIG_RAX: 0000000000000028 RAX: ffffffffffffffda RBX: 00007f106f032f60 RCX: 00007f106ef1fb19 RDX: 0000000000000000 RSI: 0000000000000006 RDI: 0000000000000005 RBP: 00007f106ef79f6d R08: 0000000000000000 R09: 0000000000000000 R10: 0000000100000001 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffd45c09a3f R14: 00007f106c495300 R15: 0000000000022000 irq event stamp: 0 hardirqs last enabled at (0): [<0000000000000000>] 0x0 hardirqs last disabled at (0): [] copy_process+0x1dba/0x6d60 softirqs last enabled at (0): [] copy_process+0x1dfe/0x6d60 softirqs last disabled at (0): [<0000000000000000>] 0x0 ---[ end trace 0000000000000000 ]--- ------------[ cut here ]------------ WARNING: CPU: 0 PID: 4097 at lib/iov_iter.c:1026 iov_iter_pipe+0x240/0x2b0 Modules linked in: CPU: 0 PID: 4097 Comm: syz-executor.4 Tainted: G B W 5.19.0-rc6-next-20220715 #1 Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.14.0-0-g155821a1990b-prebuilt.qemu.org 04/01/2014 RIP: 0010:iov_iter_pipe+0x240/0x2b0 Code: d0 7c 04 84 d2 75 34 44 89 63 24 48 83 c4 08 5b 5d 41 5c 41 5d 41 5e 41 5f e9 2c 80 38 02 e8 a7 e4 3d ff 0f 0b e8 a0 e4 3d ff <0f> 0b e9 a8 fe ff ff e8 74 86 70 ff e9 17 fe ff ff e8 da 86 70 ff RSP: 0018:ffff88804701f9d8 EFLAGS: 00010216 RAX: 0000000000000897 RBX: ffff88804701fa68 RCX: ffffc90006a0a000 RDX: 0000000000040000 RSI: ffffffff8207ba20 RDI: 0000000000000004 RBP: ffff88801bec4400 R08: 0000000000000004 R09: 0000000000000010 R10: 0000000000000010 R11: 0000000000000001 R12: 0000000000000010 R13: 0000000000000000 R14: 0000000000000010 R15: 0000000000000010 FS: 00007f15221f1700(0000) GS:ffff88806ce00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b2db21000 CR3: 000000000cc64000 CR4: 0000000000350ef0 Call Trace: generic_file_splice_read+0x95/0x4d0 do_splice_to+0x1bc/0x240 splice_direct_to_actor+0x2ac/0x8c0 do_splice_direct+0x1b8/0x290 do_sendfile+0xb1d/0x1280 __x64_sys_sendfile64+0x1d1/0x210 do_syscall_64+0x3b/0x90 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f1524c7bb19 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:00007f15221f1188 EFLAGS: 00000246 ORIG_RAX: 0000000000000028 RAX: ffffffffffffffda RBX: 00007f1524d8ef60 RCX: 00007f1524c7bb19 RDX: 0000000000000000 RSI: 0000000000000003 RDI: 0000000000000003 RBP: 00007f1524cd5f6d R08: 0000000000000000 R09: 0000000000000000 R10: 00000000000005c4 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fff822f749f R14: 00007f15221f1300 R15: 0000000000022000 irq event stamp: 0 hardirqs last enabled at (0): [<0000000000000000>] 0x0 hardirqs last disabled at (0): [] copy_process+0x1dba/0x6d60 softirqs last enabled at (0): [] copy_process+0x1dfe/0x6d60 softirqs last disabled at (0): [<0000000000000000>] 0x0 ---[ end trace 0000000000000000 ]--- ------------[ cut here ]------------ WARNING: CPU: 1 PID: 4088 at lib/iov_iter.c:1026 iov_iter_pipe+0x240/0x2b0 Modules linked in: CPU: 1 PID: 4088 Comm: syz-executor.0 Tainted: G B W 5.19.0-rc6-next-20220715 #1 Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.14.0-0-g155821a1990b-prebuilt.qemu.org 04/01/2014 RIP: 0010:iov_iter_pipe+0x240/0x2b0 Code: d0 7c 04 84 d2 75 34 44 89 63 24 48 83 c4 08 5b 5d 41 5c 41 5d 41 5e 41 5f e9 2c 80 38 02 e8 a7 e4 3d ff 0f 0b e8 a0 e4 3d ff <0f> 0b e9 a8 fe ff ff e8 74 86 70 ff e9 17 fe ff ff e8 da 86 70 ff RSP: 0018:ffff888046dcf9d8 EFLAGS: 00010216 RAX: 0000000000003b4f RBX: ffff888046dcfa68 RCX: ffffc90001fe5000 RDX: 0000000000040000 RSI: ffffffff8207ba20 RDI: 0000000000000004 RBP: ffff888044ef8c00 R08: 0000000000000004 R09: 0000000000000010 R10: 0000000000000010 R11: 0000000000000001 R12: 0000000000000010 R13: 0000000000000000 R14: 0000000000000010 R15: 0000000000000010 FS: 00007f7d9c080700(0000) GS:ffff88806cf00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f7d9c05f718 CR3: 000000000ddbc000 CR4: 0000000000350ee0 Call Trace: generic_file_splice_read+0x95/0x4d0 do_splice_to+0x1bc/0x240 splice_direct_to_actor+0x2ac/0x8c0 do_splice_direct+0x1b8/0x290 do_sendfile+0xb1d/0x1280 __x64_sys_sendfile64+0x1d1/0x210 do_syscall_64+0x3b/0x90 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f7d9eb0ab19 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:00007f7d9c080188 EFLAGS: 00000246 ORIG_RAX: 0000000000000028 RAX: ffffffffffffffda RBX: 00007f7d9ec1df60 RCX: 00007f7d9eb0ab19 RDX: 0000000000000000 RSI: 0000000000000006 RDI: 0000000000000005 RBP: 00007f7d9eb64f6d R08: 0000000000000000 R09: 0000000000000000 R10: 0000000100000001 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fff2497a7ef R14: 00007f7d9c080300 R15: 0000000000022000 irq event stamp: 0 hardirqs last enabled at (0): [<0000000000000000>] 0x0