Received: by 2002:ab2:5d18:0:b0:1ef:7a0f:c32d with SMTP id j24csp226282lqk; Sat, 9 Mar 2024 07:25:47 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVEVv8qDg8Lj/CTW/fD17IK7QwS6mIZi02HPW5sPEJ3aC/3NpKyVUUa2cy0i04EolKr4f6wqLW29FxMtLErLi8scGtccGyX/9LS/V2c7Q== X-Google-Smtp-Source: AGHT+IG+T+BqJXOigpIfFRuSroMbP6jRNPV8JQ/YX+C4scdkBmyLYqfbpVZbNHDMoYCcVn0oT/J7 X-Received: by 2002:a05:622a:50b:b0:42e:f624:cbae with SMTP id l11-20020a05622a050b00b0042ef624cbaemr3373338qtx.12.1709997946823; Sat, 09 Mar 2024 07:25:46 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709997946; cv=pass; d=google.com; s=arc-20160816; b=u+E76xO7fg7eEBrt5Hrl6KY1qLRuE23/bq/VcSsKB3b/pQ4bf7Ee2xrYVRoAET+oob s5HQLQa6s3W2MqQwSP2FULvMyR3gTHY6jPmS8SWBgw5l7R1/jFnj40MWgWChEFdaje5X Q7a8EOParMq0gdjXepbfXYQZT8sDj0Y50lsXwyYfQe7cs1yHcjLV1XNziN59ILzddDnj QVppxUsHZM0B4kXIg4FfjAyU89VOT4pH9rnFOE2jvSZalGtZwF2LPME3gjzvf/d9sD9U EVPabZTUz4y0vEQrorvxbXyOX05NMPThSbCnrHMAk1fvwiE1Hgok9xTTgTJJmQMuODoe +sUw== 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=BTJLH4mDVz3M4yn8EO/cWNGsLIV4kzC5628kHJEpky4=; fh=yEPD7xDAQFn0gV9gA3zeGiWp7L+yUsVmLL/aKZj4aVE=; b=NAkQMwGJBh3n5uKS9WlWjCL/8X7B1dIXjgqouHJn5EoS8LFvl9+AutaQx81uVZU9Vi x0lat7jLAJ5OF0ITMn7p/3TG+90RZrxYGHd5n4J8wlfKl4v8DViuNntQJEsTJoXzsZIq 0EpRIYjydqY95FxryvhGnpqDl2azythDQdQuWp8WIEGnJSPn8TWOeMOzQPa5g2yBL9qf 8JYcPuUoUkvvQpkcTaP/Lstl8ZOupI0pYM3Su09nuGe3w1vJh+5/UH+hIQdkpYY58EdK 5rL+bZTc6QC5klSm5kUtiT+Poj0HjUnGEYkbRPOOskCUADdaMH5Knmnwf08fPQM5o2Vd fqgQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=t7394YiG; arc=pass (i=1 spf=pass spfdomain=google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-97935-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-97935-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id wh19-20020a05620a56d300b0078826c14bb1si1694599qkn.613.2024.03.09.07.25.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 09 Mar 2024 07:25:46 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-97935-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=t7394YiG; arc=pass (i=1 spf=pass spfdomain=google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-97935-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-97935-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 66A491C20BED for ; Sat, 9 Mar 2024 15:25:46 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B92A7446AE; Sat, 9 Mar 2024 15:25:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="t7394YiG" Received: from mail-ed1-f42.google.com (mail-ed1-f42.google.com [209.85.208.42]) (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 E092179DB for ; Sat, 9 Mar 2024 15:25:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.42 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709997936; cv=none; b=kRjWr+XGcn72Ukvy+m8sSNAU8gWSimbtl9EgBcDqt0yqgrPK5TGJ6fkehF8MMAo02z4LabJS+zQNIwZ0HEAK2sCG6nHpVKviHG4tflKgOu67MOhYSWbbO4LmpJYm9Y10CBdOvJtnAX8dwgwrPjDqQ6/uDc4eVPdcAQAziWHkfKE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709997936; c=relaxed/simple; bh=0UwmfO5RRX5K7e+tmfHszthgcR6oyH3gGXOBE7AUpFA=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=fJgPPtBd+7VQvpPizySURrwsQauGvJq7u/nRsqWLbI+HDLVVftH3Ft3VPRIAn722cjgtYwrtyc0/FDYLvRge39EEiEsH3kJ1dpyRE33YBrwlAIxeJQb1NsFCPdjyLfkNmlbmUpFa+R4wKRkKNjY1cjefEPb9YCSmSw2A3Yf5uI4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=t7394YiG; arc=none smtp.client-ip=209.85.208.42 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=google.com Received: by mail-ed1-f42.google.com with SMTP id 4fb4d7f45d1cf-566b160f6eeso3844a12.1 for ; Sat, 09 Mar 2024 07:25:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1709997933; x=1710602733; 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=BTJLH4mDVz3M4yn8EO/cWNGsLIV4kzC5628kHJEpky4=; b=t7394YiG521Vj3YVtbkn4kw7kTUqvf54bmBmtAnu5460Ao+x1pi3mQKTkR8wb+n9EB aEO63vV4a4oWeU3taiMU4OyXuurK7Y8Yd8wfCdta5RJUTWyjp/KZPdgOfRhuoQVAXLdC aBj4I/VJXd8SW/MBLOmLZBs6FaMQdn0L12Q3fp3TQvb1/fC7lMm/lzvSrbh1C8JZyGBY EBmWMNJmfE/6obfVddWFX6gyOdwt57bFB7Nige5B65UyD4N3IpDmsBBAeKjlYGhH5oX5 zHg+dE+hMxDvPXxq38LbDGuGfa6LWC9SmBjuQTxAKm3q3p9/brwONXM0nPjr63KvmsW6 EYHg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709997933; x=1710602733; 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=BTJLH4mDVz3M4yn8EO/cWNGsLIV4kzC5628kHJEpky4=; b=YghdqsDEo1twubrN0dWvA/NNkq2qcEeXL4vuzl9bV9KCZmyB36zSmLxiPAz7ME41l+ +4mWJcWcmKe+vzlTDHWQ2WQQTRgEOSDO5N+fQEErgiHXgAkr7gDFwxppV2LzvE9kjPvI YQFPH3xYFcdqGqxFn9TyIkup+R0TkLLl0mXvG9kEXXXKrNtbCkm01lo9oIYkTQ5B64zL DeydetlQPfB9bizzsZ1/8elfRcA+tEfjRMeofQbcOiO9ruuLo9MJoJrgQ4ryIseCr3jb P/wDlidoI6VcCo+cn7QZiU/F/HfPKEC9F8X9s7IIf0pId2KoxwFTprIg7wLA98/Xz0OW eZsA== X-Forwarded-Encrypted: i=1; AJvYcCUQkVo3AiAl7eVrXqK1JcND6rcQ+PHTzXAbaP62EHn4woxPZZ5AbBFEZrNpmvIk7XPTNvlnlns1AmgGWBcqe7FxLMukGAWzqYu+buEZ X-Gm-Message-State: AOJu0YzxIibDQd04c8y0xJzdJZ7MWzaxekidiSv+cq1rEo9rKf1vqA0C bzIRDJs8gAXKXR6ImiAev+UDLb+PmQXSAnEJznCfkoAFMTEvunYptDF21MbkY7zQ3oOEj2ZlCfw e2gGlm3J7LIr4MoEq/2IgB6eAahqNQocir69KxKbk6lP2u0nGWKIl X-Received: by 2002:aa7:d4d7:0:b0:568:2efb:ddfd with SMTP id t23-20020aa7d4d7000000b005682efbddfdmr238775edr.5.1709997932984; Sat, 09 Mar 2024 07:25:32 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <00000000000088981b06133bc07b@google.com> In-Reply-To: <00000000000088981b06133bc07b@google.com> From: Eric Dumazet Date: Sat, 9 Mar 2024 16:25:18 +0100 Message-ID: Subject: Re: [syzbot] [net?] kernel BUG in __nla_validate_parse To: syzbot , Petr Machata Cc: davem@davemloft.net, dsahern@kernel.org, kuba@kernel.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, pabeni@redhat.com, syzkaller-bugs@googlegroups.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Sat, Mar 9, 2024 at 4:13=E2=80=AFPM syzbot wrote: > > Hello, > > syzbot found the following issue on: > > HEAD commit: 2f901582f032 Merge tag 'for-net-next-2024-03-08' of git:/= /.. > git tree: net-next > console output: https://syzkaller.appspot.com/x/log.txt?x=3D112f130a18000= 0 > kernel config: https://syzkaller.appspot.com/x/.config?x=3D63afafeedf00e= f8f > dashboard link: https://syzkaller.appspot.com/bug?extid=3D65bb09a7208ce3d= 4a633 > compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Deb= ian) 2.40 > > Unfortunately, I don't have any reproducer for this issue yet. > > Downloadable assets: > disk image: https://storage.googleapis.com/syzbot-assets/b03984cb5619/dis= k-2f901582.raw.xz > vmlinux: https://storage.googleapis.com/syzbot-assets/41787ac7c9d9/vmlinu= x-2f901582.xz > kernel image: https://storage.googleapis.com/syzbot-assets/da7931fd36f6/b= zImage-2f901582.xz > > IMPORTANT: if you fix the issue, please add the following tag to the comm= it: > Reported-by: syzbot+65bb09a7208ce3d4a633@syzkaller.appspotmail.com > > ------------[ cut here ]------------ > kernel BUG at lib/nlattr.c:411! > invalid opcode: 0000 [#1] PREEMPT SMP KASAN PTI > CPU: 1 PID: 14369 Comm: syz-executor.2 Not tainted 6.8.0-rc7-syzkaller-02= 415-g2f901582f032 #0 > Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS G= oogle 02/29/2024 > RIP: 0010:validate_nla lib/nlattr.c:411 [inline] > RIP: 0010:__nla_validate_parse+0x2f61/0x2f70 lib/nlattr.c:635 > Code: 48 8b 4c 24 18 80 e1 07 38 c1 0f 8c e0 f7 ff ff 48 8b 7c 24 18 e8 f= f 0e 1d fd e9 d1 f7 ff ff e8 d5 c2 91 06 e8 50 64 ba fc 90 <0f> 0b 66 2e 0f= 1f 84 00 00 00 00 00 0f 1f 00 90 90 90 90 90 90 90 > RSP: 0018:ffffc90003c1eec0 EFLAGS: 00010287 > RAX: ffffffff84d90ad0 RBX: ffffffff8caa11b0 RCX: 0000000000040000 > RDX: ffffc9000499a000 RSI: 000000000000065e RDI: 000000000000065f > RBP: ffffc90003c1f100 R08: ffffffff84d8df5b R09: 0000000000000000 > R10: ffffc90003c1f1a0 R11: fffff52000783e46 R12: 0000000000000008 > R13: 1ffff1100f9c4183 R14: 000000000000006e R15: 0000000000000005 > FS: 00007f5fe2d916c0(0000) GS:ffff8880b9500000(0000) knlGS:0000000000000= 000 > CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 > CR2: 0000000020000440 CR3: 00000000229a2000 CR4: 00000000003506f0 > DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 > DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 > Call Trace: > > __nla_parse+0x40/0x60 lib/nlattr.c:732 > __nlmsg_parse include/net/netlink.h:756 [inline] > nlmsg_parse include/net/netlink.h:777 [inline] > rtm_del_nexthop+0x257/0x6d0 net/ipv4/nexthop.c:3256 > rtnetlink_rcv_msg+0x89b/0x10d0 net/core/rtnetlink.c:6595 > netlink_rcv_skb+0x1e3/0x430 net/netlink/af_netlink.c:2556 > netlink_unicast_kernel net/netlink/af_netlink.c:1335 [inline] > netlink_unicast+0x7ea/0x980 net/netlink/af_netlink.c:1361 > netlink_sendmsg+0x8e0/0xcb0 net/netlink/af_netlink.c:1902 > sock_sendmsg_nosec net/socket.c:730 [inline] > __sock_sendmsg+0x221/0x270 net/socket.c:745 > ____sys_sendmsg+0x525/0x7d0 net/socket.c:2584 > ___sys_sendmsg net/socket.c:2638 [inline] > __sys_sendmsg+0x2b0/0x3a0 net/socket.c:2667 > do_syscall_64+0xf9/0x240 > entry_SYSCALL_64_after_hwframe+0x6f/0x77 > RIP: 0033:0x7f5fe207dda9 > Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 e1 20 00 00 90 48 89 f8 48 89 f= 7 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 b0 ff ff ff f7 d8 64 89 01 48 > RSP: 002b:00007f5fe2d910c8 EFLAGS: 00000246 ORIG_RAX: 000000000000002e > RAX: ffffffffffffffda RBX: 00007f5fe21abf80 RCX: 00007f5fe207dda9 > RDX: 0000000000000000 RSI: 0000000020000440 RDI: 0000000000000003 > RBP: 00007f5fe20ca47a R08: 0000000000000000 R09: 0000000000000000 > R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 > R13: 000000000000000b R14: 00007f5fe21abf80 R15: 00007fff7d5a1278 > > Modules linked in: > ---[ end trace 0000000000000000 ]--- > RIP: 0010:validate_nla lib/nlattr.c:411 [inline] > RIP: 0010:__nla_validate_parse+0x2f61/0x2f70 lib/nlattr.c:635 > Code: 48 8b 4c 24 18 80 e1 07 38 c1 0f 8c e0 f7 ff ff 48 8b 7c 24 18 e8 f= f 0e 1d fd e9 d1 f7 ff ff e8 d5 c2 91 06 e8 50 64 ba fc 90 <0f> 0b 66 2e 0f= 1f 84 00 00 00 00 00 0f 1f 00 90 90 90 90 90 90 90 > RSP: 0018:ffffc90003c1eec0 EFLAGS: 00010287 > RAX: ffffffff84d90ad0 RBX: ffffffff8caa11b0 RCX: 0000000000040000 > RDX: ffffc9000499a000 RSI: 000000000000065e RDI: 000000000000065f > RBP: ffffc90003c1f100 R08: ffffffff84d8df5b R09: 0000000000000000 > R10: ffffc90003c1f1a0 R11: fffff52000783e46 R12: 0000000000000008 > R13: 1ffff1100f9c4183 R14: 000000000000006e R15: 0000000000000005 > FS: 00007f5fe2d916c0(0000) GS:ffff8880b9500000(0000) knlGS:0000000000000= 000 > CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 > CR2: 000000c00104bb94 CR3: 00000000229a2000 CR4: 00000000003506f0 > DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 > DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 > > > --- > This report is generated by a bot. It may contain errors. > See https://goo.gl/tpsmEJ for more information about syzbot. > syzbot engineers can be reached at syzkaller@googlegroups.com. > > syzbot will keep track of this issue. See: > https://goo.gl/tpsmEJ#status for how to communicate with syzbot. > > If the report is already addressed, let syzbot know by replying with: > #syz fix: exact-commit-title > > If you want to overwrite report's subsystems, reply with: > #syz set subsystems: new-subsystem > (See the list of subsystem names on the web dashboard) > > If the report is a duplicate of another one, reply with: > #syz dup: exact-subject-of-another-report > > If you want to undo deduplication, reply with: > #syz undup Petr, can you take a look ? Thanks ! commit 2118f9390d83cf942de8b34faf3d35b54f9f4eee Author: Petr Machata Date: Wed Mar 6 13:49:15 2024 +0100 net: nexthop: Adjust netlink policy parsing for a new attribute