Received: by 2002:ab2:6203:0:b0:1f5:f2ab:c469 with SMTP id o3csp863327lqt; Fri, 19 Apr 2024 12:44:30 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUXQ3JlJJRAgMClk3MUvfPNG5C2B1zU8gd6vgtyZyACAxp+083VpwwsJ4dy0J0ukUlYXd6bknTZi9jXj28eedsHQ9fmGTK0QFh0srFTuA== X-Google-Smtp-Source: AGHT+IEmLtTVQCkBBTq4tNrDNoNOFD9VRhB09KoZM/XWVvNO/k+N61A2TPPpvu+b1VekCqCmX7/X X-Received: by 2002:a50:bb08:0:b0:566:d333:45e8 with SMTP id y8-20020a50bb08000000b00566d33345e8mr2295072ede.20.1713555870531; Fri, 19 Apr 2024 12:44:30 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713555870; cv=pass; d=google.com; s=arc-20160816; b=yh1QZy5TaO9/FCHcliPOEYThCZPmfk1+28mOMijttDEh0jhNp1hniYV+VmBP7mL0vG b1OCv/aCeP/jDHMY/BE1dgsdgb2GjLc0YXCvxJ2lEwmaTcJIGxuwhz7FhygnZgONig08 HqCpSXGcTG1ZYHCOlhzcnqd0/HEgLdnwMYgfFl0h79rpCZwBGtpQ6Gj74r0iL44xriP4 MtZVUWn0rafYEQr4H3LhBVF3lhSCq2BxEbXDjek8+MwXbOhDK0DokHQrVjPZUJRZh5O7 qmeHNBLcki6NtXUAv0p3Y5TvrspqwqzAICVxLJO1MwiCtWo4tSQurmaDR4GBvF9iBP33 CF8Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=xCrxq4t8fwrHzvVr4sA2ZSywiX2Op8XkRZfOXi+I1ZY=; fh=Vmmb+Z+UjBllvXoCGUkGa9eoNIhRY7HGHXudvBHDmng=; b=ePaM4zqxvePDAaXdrilN5A/nfPNsBD2qUsDh5i9EOgwMOLmnLpn9mTDeiFIr24x9s7 f4NxE0cvm8qtw2yuxqckzyk0na69l7/sCMTXMY3CXtT8b/9qnCYXymFMrZ/c2EjRfm/5 TChfVokrGG5fArU0ohR6IAtvgx01Ke26Pq5PozvfcXKR4830cT/b0mkHO7MljuUs6rFe hnVAYEESS3SBikAn4EEPrOWweYucHj48vhSERBkUeLs/iOOiVjQeOYCPB230bAqaAxWy U7V5Qev6xj+Cn4oTQPPZRoHS/9jYSLbHrdaTgvndBOivxTVA/8OxybnAAUXoil2rLU6w zOIw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=RQDtRDE2; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-151914-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-151914-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id o2-20020aa7c502000000b0056e23c8b45esi2378868edq.59.2024.04.19.12.44.30 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Apr 2024 12:44:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-151914-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=RQDtRDE2; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-151914-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-151914-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 1A1581F2277F for ; Fri, 19 Apr 2024 19:44:30 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1EA0E13C9A9; Fri, 19 Apr 2024 19:44:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="RQDtRDE2" Received: from mail-wm1-f53.google.com (mail-wm1-f53.google.com [209.85.128.53]) (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 8DA1A25740; Fri, 19 Apr 2024 19:44:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.53 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713555859; cv=none; b=S5BcytYU0y56fEy7adFpU6P7tmioD9kGzYuLDs54a4Za+xXJQv037FX8mXSLlKFUVHWBg9LjW9cljee96ESZIz+HfRp4w6REDsLOlarOz55WzZ87vmL37HW9bJFMWdzvwtH7kLTz2muRm+n3pT26H6yKulGVVLsl0cH7jIFtui4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713555859; c=relaxed/simple; bh=FzIGdHEK5ySJlGhteBUxTX1/M8jMaY27GHBdJyGHt2s=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=UMOi8j06EyxWH33HKe1HoA69KUKrO7ol3zmwok1mmVfQzBaod0tem/3L+8fdYEJ+gze6/504L0wN0X3jtQOMcJ6yYWE2f1a+1ymoTySWIWX0RN9udm5hCdh+IdNMJTE41QY8UberEwf2oVgBM4W+fv7EENSM22l6AO9xUguQq6E= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=RQDtRDE2; arc=none smtp.client-ip=209.85.128.53 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-wm1-f53.google.com with SMTP id 5b1f17b1804b1-419d320b8abso2967105e9.0; Fri, 19 Apr 2024 12:44:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1713555856; x=1714160656; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=xCrxq4t8fwrHzvVr4sA2ZSywiX2Op8XkRZfOXi+I1ZY=; b=RQDtRDE24Ts7Ltt/1w+pF74nZB+8Sxt8a+n5h+WROKw3lja94b6XJdTvpJpkUBcwPe Qvn+GniihNepfrXGKIq59J8ASNe2VSfnjhjTmtxH/8Y4LZr0uh2Yqgtdh2iOih7lC/FI Wsa5SN0+tmhT9mbf5qrfqKdO+a0BB7i5pLeMFgJ18Bp6n9bfccdPKhScFQrcEynO4CUK N9aGmMaCmndIfC2PE2UTD4mx/UI+qP41qWJtZ2Ex9Q6oJPcHV107QXLjmXFmdOvWh1Np Y6MVq/1wtPD0QwSSKy0EeaASaucq295PdIvI5oTfxK5bFTMwvVu+b+B9EuRIFaYpJAYh 5J5w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713555856; x=1714160656; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=xCrxq4t8fwrHzvVr4sA2ZSywiX2Op8XkRZfOXi+I1ZY=; b=MqmDfEXWGVsmEtAhh4gFzrCpvqmYj13mo+EOMh01tUmGBk2A1u2sBH20jj/6DPrxwi 1I1yMagSQHjdQBEhQYnlhVIE5PWd7g/u0iWDzJvoz7eyJKO3A7cfJ0fBwZ2fW0JYM7qz muSp++6WevEsufzLrIqSZxCgIYl04bLUFD+3w6MdHROIpFN0rbLo5jyDyJG/fIjK07VP bItufpYGxh3FP+CvzMnjqCPSNdknwuAVSySppvk3GX5ehbUZgjQDBSQ09iuSuGkS8bsI WyRA86Fn6nZCgHQ9W7gOMMTaCE8qdA6DAY/NfwWNuBl6c2TPpY5p6+lQETXH2/FziCkT fJeg== X-Forwarded-Encrypted: i=1; AJvYcCX0mmHnjpKMg7XYi0ioxrVoQwpv0YkOuuReZlYoKZyLonqA+cEOBIQ7b9/iMzUj/SQIHq5IQnSKscTnZVHQCZWjM2F4WI2xYzVplnueJWCcKs4pJ8u3QuVBaF9qBrU96Woz X-Gm-Message-State: AOJu0YwuGmKY0B2ZmxSx8TO/n1pv13gzlcNeSMChmOrjnHir/PiVIoH9 BKF0Cku9J9DPZBEVCvWQ05M562fZHa/Es/d0NPW0RqB1mJeivDU3m0hzNHa21o4WKU/pcrPdY2u qGhspCka9WhEJWSdKVSCw9tTNmZDY+A== X-Received: by 2002:adf:fed0:0:b0:33e:76d7:a8ad with SMTP id q16-20020adffed0000000b0033e76d7a8admr1918657wrs.38.1713555855620; Fri, 19 Apr 2024 12:44:15 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <0000000000004792a90615a1dde0@google.com> In-Reply-To: <0000000000004792a90615a1dde0@google.com> From: Alexei Starovoitov Date: Fri, 19 Apr 2024 12:44:04 -0700 Message-ID: Subject: Re: [syzbot] [bpf?] BUG: unable to handle kernel paging request in bpf_prog_ADDR (2) To: syzbot , =?UTF-8?B?QmrDtnJuIFTDtnBlbA==?= , Stanislav Fomichev Cc: Andrii Nakryiko , Alexei Starovoitov , bpf , Daniel Borkmann , Eddy Z , Hao Luo , John Fastabend , Jiri Olsa , KP Singh , LKML , Martin KaFai Lau , Song Liu , syzkaller-bugs , Yonghong Song Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Mon, Apr 8, 2024 at 8:53=E2=80=AFPM syzbot wrote: > > Hello, > > syzbot found the following issue on: > > HEAD commit: fe46a7dd189e Merge tag 'sound-6.9-rc1' of git://git.kerne= l.. > git tree: upstream > console+strace: https://syzkaller.appspot.com/x/log.txt?x=3D1259622318000= 0 > kernel config: https://syzkaller.appspot.com/x/.config?x=3D4d90a36f0cab4= 95a > dashboard link: https://syzkaller.appspot.com/bug?extid=3D838346b97983060= 6c854 > compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Deb= ian) 2.40 > syz repro: https://syzkaller.appspot.com/x/repro.syz?x=3D134ecbb5180= 000 > C reproducer: https://syzkaller.appspot.com/x/repro.c?x=3D141a8b3d18000= 0 > > Downloadable assets: > disk image: https://storage.googleapis.com/syzbot-assets/f6c04726a2ae/dis= k-fe46a7dd.raw.xz > vmlinux: https://storage.googleapis.com/syzbot-assets/09c26ce901ea/vmlinu= x-fe46a7dd.xz > kernel image: https://storage.googleapis.com/syzbot-assets/134acf7f5322/b= zImage-fe46a7dd.xz > > IMPORTANT: if you fix the issue, please add the following tag to the comm= it: > Reported-by: syzbot+838346b979830606c854@syzkaller.appspotmail.com > > BUG: unable to handle page fault for address: 0000001000000112 > #PF: supervisor read access in kernel mode > #PF: error_code(0x0000) - not-present page > PGD 800000002e7b1067 P4D 800000002e7b1067 PUD 0 > Oops: 0000 [#1] PREEMPT SMP KASAN PTI > CPU: 0 PID: 5060 Comm: syz-executor351 Not tainted 6.8.0-syzkaller-08951-= gfe46a7dd189e #0 > Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS G= oogle 03/27/2024 > RIP: 0010:bpf_prog_a8e24a805b35c61b+0x19/0x1e > Code: cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc f3 0f 1e fa 0f 1= f 44 00 00 66 90 55 48 89 e5 f3 0f 1e fa 31 c0 48 8b 7f 18 <8b> 7f 00 c9 c3= cc cc cc cc cc cc 40 03 00 00 cc cc cc cc cc cc cc > RSP: 0018:ffffc90003b07b30 EFLAGS: 00010246 > RAX: 0000000000000000 RBX: ffffc90000ace048 RCX: ffff88802aa89e00 > RDX: 0000000000000000 RSI: ffffc90000ace048 RDI: 0000001000000112 > RBP: ffffc90003b07b30 R08: ffffffff81bf633c R09: 1ffffffff2595ca0 > R10: dffffc0000000000 R11: ffffffffa000095c R12: ffffc90000ace030 > R13: ffff88802ac3ae28 R14: dffffc0000000000 R15: ffff88802ac3ae28 > FS: 000055558f759380(0000) GS:ffff8880b9400000(0000) knlGS:0000000000000= 000 > CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 > CR2: 0000001000000112 CR3: 0000000077cfa000 CR4: 00000000003506f0 > DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 > DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 > Call Trace: > > bpf_dispatcher_nop_func include/linux/bpf.h:1234 [inline] > __bpf_prog_run include/linux/filter.h:657 [inline] > bpf_prog_run include/linux/filter.h:664 [inline] > bpf_prog_run_array_cg kernel/bpf/cgroup.c:51 [inline] > __cgroup_bpf_run_filter_setsockopt+0x6fa/0x1040 kernel/bpf/cgroup.c:1830 > do_sock_setsockopt+0x6b4/0x720 net/socket.c:2293 > __sys_setsockopt+0x1ae/0x250 net/socket.c:2334 > __do_sys_setsockopt net/socket.c:2343 [inline] > __se_sys_setsockopt net/socket.c:2340 [inline] > __x64_sys_setsockopt+0xb5/0xd0 net/socket.c:2340 > do_syscall_64+0xfb/0x240 > entry_SYSCALL_64_after_hwframe+0x6d/0x75 This one looks interesting. But I cannot reproduce it. Bjorn or Stan, Could you take a look? Probably a race in xdp dispatcher setup or the way cgroup-lsm logic is doing it.