From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-il1-f200.google.com (mail-il1-f200.google.com [209.85.166.200]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9A2CD20311 for ; Sat, 4 Jan 2025 03:25:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.166.200 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1735961105; cv=none; b=s7EgxAxNbUI2qiKWjEG/DeomGm/Zu7HVp+p4oZeuxvizbFqLXNpFPLhTDK4fsme7XXZc4JxUDE+2BJlO6s1X7jflMGHSr/FwLEfS6IkYRogUZwlbv52jTkSF6JFPeD1o65Kl9qAVKXEROMDqMQs5wEkE863Ea9h3l/CIqPw2L9M= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1735961105; c=relaxed/simple; bh=+yd0SluR1ViPpGDXJomGiinkPtFoOLsMLNII6Y90+wQ=; h=MIME-Version:Date:In-Reply-To:Message-ID:Subject:From:To: Content-Type; b=HeE1KwHWIujUEdFa+toCmG7A+nWBdZe4fRA5dLZQMlxdIkmzyOva5cwdOC7uc4pwEBAOg7iBM3AiA7EJOopz4FQq+SjQvg2ykxi09alYy1i82zGim2rVbzi8X74ZlLMJJOsGUh43SCk8x+vgZwJex0oOX8WK9f8wMHeUOD61pTU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=syzkaller.appspotmail.com; spf=pass smtp.mailfrom=M3KW2WVRGUFZ5GODRSRYTGD7.apphosting.bounces.google.com; arc=none smtp.client-ip=209.85.166.200 Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=syzkaller.appspotmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=M3KW2WVRGUFZ5GODRSRYTGD7.apphosting.bounces.google.com Received: by mail-il1-f200.google.com with SMTP id e9e14a558f8ab-3a814c7d58eso135520185ab.1 for ; Fri, 03 Jan 2025 19:25:03 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1735961103; x=1736565903; h=to:from:subject:message-id:in-reply-to:date:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=WifprouLRRStpTH9eTKTpA41u3JxVBGOYawmbhBzRsY=; b=WYAQpiBFUhlQ98uC+CR+L5lyg65fxPn+pmpLHmeO9rtGSjdhqPkha4LWqcHti0y59N cwdPQqsxiob5O/rOeRJNUR6jX1bFdFL03X3AnGhKj5ll9s9fq3m9XSMWtwTdIwyHYpq0 WxHKqz269Y4DQvk8hoVSNpGiaMQEImOS9MOGAGCw4XaDiw4pv3wFJKE92VaSYoKqkpyp fzxsa3OKb97nu0xZZ7YbgCBSVvnojok6co5XaKhtFXqO0nM0fPoFEMETyTgRqBFATr8b OTU9WLllnkQOjBpb1r1R4Z5fqaQ7Dw7npqf+83SIRI7D9Uq8nrZfL5GdUuPLAA5xTYJV wAxQ== X-Forwarded-Encrypted: i=1; AJvYcCXzoDrGsDTdHaYuwzk6PUKx9A0wbK0v8oYdCGQrfn8lalH2bRa2cF/2FaBQUMmnrXOzGhdAooskKTYB3+Y=@vger.kernel.org X-Gm-Message-State: AOJu0Ywd+3qLCVFvVtXoan+ylkYnxJGT3SPE7gsmMkRgWzDE5vccFP1T io3V8/vla6ZeRh4RxB63ZJVV/ICtZsqCMMeaUTuprauJ2HdkgPw4hPn8XhzvekCmZGYhY/LCQ22 0ETXmOV9IMGs/Oxs5+gCTuKQBQUi6rbiWWh/4abk35EOhVXHAJ8TXXZE= X-Google-Smtp-Source: AGHT+IGRR94kKkUWAghZLSpgRTb5s+AyzVo9B7tnLIz2gvsn/L5OUaGDsIqky97cfDFm7DpZWcq+m70E2oEOwNnE0DAixf95z3kP Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Received: by 2002:a05:6e02:174d:b0:3a7:e7a9:8a78 with SMTP id e9e14a558f8ab-3c2d515168fmr358541225ab.17.1735961102825; Fri, 03 Jan 2025 19:25:02 -0800 (PST) Date: Fri, 03 Jan 2025 19:25:02 -0800 In-Reply-To: X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <6778aa0e.050a0220.3b53b0.0044.GAE@google.com> Subject: Re: [syzbot] [kernel?] general protection fault in proc_sys_call_handler From: syzbot To: eadavis@qq.com, linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com Content-Type: text/plain; charset="UTF-8" Hello, syzbot has tested the proposed patch but the reproducer is still triggering an issue: general protection fault in proc_sys_call_handler tab: ffffffff8de3a458, data: ffffffff90028ec5, procname: domainname, proc_do_uts_string tab: ffffffff8de3a458, data: ffffffff90028ec5, proc_sys_call_handler tab: ffffffff8de3a458, data: ffffffff90028ec5, procname: domainname, proc_do_uts_string Oops: general protection fault, probably for non-canonical address 0xdffffc0000000001: 0000 [#1] PREEMPT SMP KASAN PTI KASAN: null-ptr-deref in range [0x0000000000000008-0x000000000000000f] CPU: 1 UID: 0 PID: 6417 Comm: syz-executor Not tainted 6.12.0-syzkaller-10299-gdcb6ff6bb369 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 RIP: 0010:get_uts kernel/utsname_sysctl.c:23 [inline] RIP: 0010:proc_do_uts_string+0x1ee/0x5d0 kernel/utsname_sysctl.c:54 Code: 48 c1 ee 03 80 3c 0e 00 0f 85 6a 03 00 00 48 8b 92 08 09 00 00 48 b9 00 00 00 00 00 fc ff df 48 8d 7a 08 48 89 fe 48 c1 ee 03 <80> 3c 0e 00 0f 85 28 03 00 00 48 be 00 00 00 00 00 fc ff df 48 2d RSP: 0018:ffffc90003657468 EFLAGS: 00010202 RAX: ffffffff90028ec5 RBX: ffffffff8de3a458 RCX: dffffc0000000000 RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000008 RBP: 1ffff920006cae92 R08: 0000000000000001 R09: fffffbfff1b8e045 R10: ffffffff8dc7022f R11: 0000000000000002 R12: 0000000000000001 R13: ffffc900036574c0 R14: ffffffff8de3a460 R15: ffffc90003657520 FS: 0000000000000000(0000) GS:ffff8880b8700000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000055e8f20af048 CR3: 0000000034d8c000 CR4: 00000000003526f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: proc_sys_call_handler+0x441/0x610 fs/proc/proc_sysctl.c:602 __kernel_write_iter+0x318/0xa80 fs/read_write.c:612 __kernel_write+0xf6/0x140 fs/read_write.c:632 do_acct_process+0xcb0/0x14a0 kernel/acct.c:539 acct_pin_kill+0x2d/0x100 kernel/acct.c:192 pin_kill+0x194/0x7c0 fs/fs_pin.c:44 mnt_pin_kill+0x61/0x1e0 fs/fs_pin.c:81 cleanup_mnt+0x3ac/0x450 fs/namespace.c:1366 task_work_run+0x14e/0x250 kernel/task_work.c:239 exit_task_work include/linux/task_work.h:43 [inline] do_exit+0xadd/0x2d70 kernel/exit.c:938 do_group_exit+0xd3/0x2a0 kernel/exit.c:1087 get_signal+0x2576/0x2610 kernel/signal.c:3016 arch_do_signal_or_restart+0x90/0x7e0 arch/x86/kernel/signal.c:337 exit_to_user_mode_loop kernel/entry/common.c:111 [inline] exit_to_user_mode_prepare include/linux/entry-common.h:329 [inline] __syscall_exit_to_user_mode_work kernel/entry/common.c:207 [inline] syscall_exit_to_user_mode+0x150/0x2a0 kernel/entry/common.c:218 do_syscall_64+0xda/0x250 arch/x86/entry/common.c:89 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f47f6787c47 Code: Unable to access opcode bytes at 0x7f47f6787c1d. RSP: 002b:00007ffe11e12818 EFLAGS: 00000202 ORIG_RAX: 0000000000000029 RAX: 0000000000000003 RBX: 0000000000000003 RCX: 00007f47f6787c47 RDX: 0000000000000006 RSI: 0000000000000001 RDI: 0000000000000002 RBP: 00007ffe11e12efc R08: 00007ffe11e1280c R09: 00007ffe11e12c17 R10: 00007ffe11e12890 R11: 0000000000000202 R12: 0000000000000032 R13: 000000000002677e R14: 00007ffe11e12f50 R15: 0000000000000258 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:get_uts kernel/utsname_sysctl.c:23 [inline] RIP: 0010:proc_do_uts_string+0x1ee/0x5d0 kernel/utsname_sysctl.c:54 Code: 48 c1 ee 03 80 3c 0e 00 0f 85 6a 03 00 00 48 8b 92 08 09 00 00 48 b9 00 00 00 00 00 fc ff df 48 8d 7a 08 48 89 fe 48 c1 ee 03 <80> 3c 0e 00 0f 85 28 03 00 00 48 be 00 00 00 00 00 fc ff df 48 2d RSP: 0018:ffffc90003657468 EFLAGS: 00010202 RAX: ffffffff90028ec5 RBX: ffffffff8de3a458 RCX: dffffc0000000000 RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000008 RBP: 1ffff920006cae92 R08: 0000000000000001 R09: fffffbfff1b8e045 R10: ffffffff8dc7022f R11: 0000000000000002 R12: 0000000000000001 R13: ffffc900036574c0 R14: ffffffff8de3a460 R15: ffffc90003657520 FS: 0000000000000000(0000) GS:ffff8880b8600000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f27a1ca7d60 CR3: 0000000034d8c000 CR4: 00000000003526f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: 48 c1 ee 03 shr $0x3,%rsi 4: 80 3c 0e 00 cmpb $0x0,(%rsi,%rcx,1) 8: 0f 85 6a 03 00 00 jne 0x378 e: 48 8b 92 08 09 00 00 mov 0x908(%rdx),%rdx 15: 48 b9 00 00 00 00 00 movabs $0xdffffc0000000000,%rcx 1c: fc ff df 1f: 48 8d 7a 08 lea 0x8(%rdx),%rdi 23: 48 89 fe mov %rdi,%rsi 26: 48 c1 ee 03 shr $0x3,%rsi * 2a: 80 3c 0e 00 cmpb $0x0,(%rsi,%rcx,1) <-- trapping instruction 2e: 0f 85 28 03 00 00 jne 0x35c 34: 48 be 00 00 00 00 00 movabs $0xdffffc0000000000,%rsi 3b: fc ff df 3e: 48 rex.W 3f: 2d .byte 0x2d Tested on: commit: dcb6ff6b utsname: debug ctl table for domainname git tree: https://github.com/ea1davis/linux proc/syz console output: https://syzkaller.appspot.com/x/log.txt?x=141938b0580000 kernel config: https://syzkaller.appspot.com/x/.config?x=e8d97faf7b870c89 dashboard link: https://syzkaller.appspot.com/bug?extid=2e65930fda17880da336 compiler: gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40 Note: no patches were applied.