------------[ cut here ]------------ WARNING: CPU: 0 PID: 4162 at mm/maccess.c:226 copy_from_user_nofault+0x15c/0x1c0 Modules linked in: CPU: 0 PID: 4162 Comm: syz-executor328 Not tainted 5.15.157-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024 RIP: 0010:copy_from_user_nofault+0x15c/0x1c0 mm/maccess.c:226 Code: db 48 c7 c0 f2 ff ff ff 48 0f 44 c5 eb 0c e8 8b c4 d5 ff 48 c7 c0 f2 ff ff ff 5b 41 5c 41 5d 41 5e 41 5f 5d c3 e8 74 c4 d5 ff <0f> 0b e9 1e ff ff ff 89 d9 80 e1 07 80 c1 03 38 c1 0f 8c ef fe ff RSP: 0018:ffffc90000007b08 EFLAGS: 00010046 RAX: ffffffff81aa986c RBX: 0000000000000000 RCX: ffff8880761fbb80 RDX: 0000000080000102 RSI: 0000000000000000 RDI: 0000000000000000 RBP: dffffc0000000000 R08: ffffffff81aa977d R09: fffffbfff1f7ee19 R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000000 R13: 0000000000000008 R14: 0000000000000000 R15: ffffc90000007b68 FS: 000055555736a380(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000020001b40 CR3: 000000001eb0d000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: bpf_probe_read_user_common kernel/trace/bpf_trace.c:157 [inline] ____bpf_probe_read_user kernel/trace/bpf_trace.c:166 [inline] bpf_probe_read_user+0x26/0x70 kernel/trace/bpf_trace.c:163 bpf_prog_29c38f5fdb04ca7d+0x3a/0x330 bpf_dispatcher_nop_func include/linux/bpf.h:790 [inline] __bpf_prog_run include/linux/filter.h:628 [inline] bpf_prog_run include/linux/filter.h:635 [inline] __bpf_trace_run kernel/trace/bpf_trace.c:1880 [inline] bpf_trace_run2+0x19e/0x340 kernel/trace/bpf_trace.c:1917 trace_hrtimer_start include/trace/events/timer.h:199 [inline] debug_activate kernel/time/hrtimer.c:476 [inline] enqueue_hrtimer+0x324/0x390 kernel/time/hrtimer.c:1084 __run_hrtimer kernel/time/hrtimer.c:1703 [inline] __hrtimer_run_queues+0x6b6/0xcf0 kernel/time/hrtimer.c:1750 hrtimer_run_softirq+0x196/0x2c0 kernel/time/hrtimer.c:1767 __do_softirq+0x3b3/0x93a kernel/softirq.c:558 invoke_softirq kernel/softirq.c:432 [inline] __irq_exit_rcu+0x155/0x240 kernel/softirq.c:637 irq_exit_rcu+0x5/0x20 kernel/softirq.c:649 sysvec_apic_timer_interrupt+0x91/0xb0 arch/x86/kernel/apic/apic.c:1096 asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:638 RIP: 0010:file_ctx security/apparmor/include/file.h:33 [inline] RIP: 0010:apparmor_file_free_security+0x29/0xe0 security/apparmor/lsm.c:458 Code: 90 55 41 56 53 48 89 fb 49 be 00 00 00 00 00 fc ff df e8 4a 69 b4 fd 48 81 c3 a8 01 00 00 48 89 d8 48 c1 e8 03 42 80 3c 30 00 <74> 08 48 89 df e8 3d 41 fe fd 48 63 2d 0a 10 6a 08 48 03 2b 74 5b RSP: 0018:ffffc90002cb7d98 EFLAGS: 00000246 RAX: 1ffff1100f0ad485 RBX: ffff88807856a428 RCX: ffff8880761fbb80 RDX: 0000000000000000 RSI: ffffffff8a8b3c20 RDI: ffff88807856a280 RBP: ffff8880129cf0a0 R08: dffffc0000000000 R09: fffffbfff1bc8c2e R10: 0000000000000000 R11: dffffc0000000001 R12: dffffc0000000000 R13: ffff88807856a304 R14: dffffc0000000000 R15: dffffc0000000000 security_file_free+0x42/0xe0 security/security.c:1544 file_free fs/file_table.c:55 [inline] __fput+0x620/0x890 fs/file_table.c:293 task_work_run+0x129/0x1a0 kernel/task_work.c:164 tracehook_notify_resume include/linux/tracehook.h:189 [inline] exit_to_user_mode_loop+0x106/0x130 kernel/entry/common.c:181 exit_to_user_mode_prepare+0xb1/0x140 kernel/entry/common.c:214 __syscall_exit_to_user_mode_work kernel/entry/common.c:296 [inline] syscall_exit_to_user_mode+0x5d/0x240 kernel/entry/common.c:307 do_syscall_64+0x47/0xb0 arch/x86/entry/common.c:86 entry_SYSCALL_64_after_hwframe+0x66/0xd0 RIP: 0033:0x7f4348caa7c0 Code: 00 00 48 c7 c2 b8 ff ff ff f7 d8 64 89 02 b8 ff ff ff ff eb d4 e8 10 2c 00 00 80 3d c1 e8 07 00 00 74 17 b8 03 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 48 c3 0f 1f 80 00 00 00 00 48 83 ec 18 89 7c RSP: 002b:00007ffebaa8eb08 EFLAGS: 00000202 ORIG_RAX: 0000000000000003 RAX: 0000000000000000 RBX: 0000000000000004 RCX: 00007f4348caa7c0 RDX: 0000000000000010 RSI: 0000000020001b40 RDI: 0000000000000003 RBP: 0000000000000000 R08: 000055555736afc0 R09: 000055555736afc0 R10: 0000000000000000 R11: 0000000000000202 R12: 0000000000000000 R13: 00007ffebaa8eb3c R14: 00007ffebaa8eb80 R15: 00007ffebaa8eb70 ---------------- Code disassembly (best guess): 0: 90 nop 1: 55 push %rbp 2: 41 56 push %r14 4: 53 push %rbx 5: 48 89 fb mov %rdi,%rbx 8: 49 be 00 00 00 00 00 movabs $0xdffffc0000000000,%r14 f: fc ff df 12: e8 4a 69 b4 fd call 0xfdb46961 17: 48 81 c3 a8 01 00 00 add $0x1a8,%rbx 1e: 48 89 d8 mov %rbx,%rax 21: 48 c1 e8 03 shr $0x3,%rax 25: 42 80 3c 30 00 cmpb $0x0,(%rax,%r14,1) * 2a: 74 08 je 0x34 <-- trapping instruction 2c: 48 89 df mov %rbx,%rdi 2f: e8 3d 41 fe fd call 0xfdfe4171 34: 48 63 2d 0a 10 6a 08 movslq 0x86a100a(%rip),%rbp # 0x86a1045 3b: 48 03 2b add (%rbx),%rbp 3e: 74 5b je 0x9b