Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/2222817/?format=api
{ "id": 2222817, "url": "http://patchwork.ozlabs.org/api/patches/2222817/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linux-cifs-client/patch/20260413190713.283939-8-ematsumiya@suse.de/", "project": { "id": 12, "url": "http://patchwork.ozlabs.org/api/projects/12/?format=api", "name": "Linux CIFS Client", "link_name": "linux-cifs-client", "list_id": "linux-cifs.vger.kernel.org", "list_email": "linux-cifs@vger.kernel.org", "web_url": "", "scm_url": "", "webscm_url": "", "list_archive_url": "", "list_archive_url_format": "", "commit_url_format": "" }, "msgid": "<20260413190713.283939-8-ematsumiya@suse.de>", "list_archive_url": null, "date": "2026-04-13T19:07:13", "name": "[8/8] smb: common: add SMB3_COMPRESS_MAX_ALGS", "commit_ref": null, "pull_url": null, "state": "new", "archived": false, "hash": "1c86ca0e46d78784b57c85356da73b8eb10fe397", "submitter": { "id": 78375, "url": "http://patchwork.ozlabs.org/api/people/78375/?format=api", "name": "Enzo Matsumiya", "email": "ematsumiya@suse.de" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/linux-cifs-client/patch/20260413190713.283939-8-ematsumiya@suse.de/mbox/", "series": [ { "id": 499741, "url": "http://patchwork.ozlabs.org/api/series/499741/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linux-cifs-client/list/?series=499741", "date": "2026-04-13T19:07:09", "name": "[1/8] smb: client: compress: fix buffer overrun in lz77_compress()", "version": 1, "mbox": "http://patchwork.ozlabs.org/series/499741/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/2222817/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/2222817/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "\n <linux-cifs+bounces-10782-incoming=patchwork.ozlabs.org@vger.kernel.org>", "X-Original-To": [ "incoming@patchwork.ozlabs.org", "linux-cifs@vger.kernel.org" ], "Delivered-To": "patchwork-incoming@legolas.ozlabs.org", "Authentication-Results": [ "legolas.ozlabs.org;\n\tdkim=pass (1024-bit key;\n unprotected) header.d=suse.de header.i=@suse.de header.a=rsa-sha256\n header.s=susede2_rsa header.b=g7M3BHrd;\n\tdkim=pass header.d=suse.de header.i=@suse.de header.a=ed25519-sha256\n header.s=susede2_ed25519 header.b=B0b8vIER;\n\tdkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de\n header.a=rsa-sha256 header.s=susede2_rsa header.b=g7M3BHrd;\n\tdkim=neutral header.d=suse.de header.i=@suse.de header.a=ed25519-sha256\n header.s=susede2_ed25519 header.b=B0b8vIER;\n\tdkim-atps=neutral", "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org\n (client-ip=2600:3c04:e001:36c::12fc:5321; helo=tor.lore.kernel.org;\n envelope-from=linux-cifs+bounces-10782-incoming=patchwork.ozlabs.org@vger.kernel.org;\n receiver=patchwork.ozlabs.org)", "smtp.subspace.kernel.org;\n\tdkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de\n header.b=\"g7M3BHrd\";\n\tdkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de\n header.b=\"B0b8vIER\";\n\tdkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de\n header.b=\"g7M3BHrd\";\n\tdkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de\n header.b=\"B0b8vIER\"", "smtp.subspace.kernel.org;\n arc=none smtp.client-ip=195.135.223.131", "smtp.subspace.kernel.org;\n dmarc=pass (p=none dis=none) header.from=suse.de", "smtp.subspace.kernel.org;\n spf=pass smtp.mailfrom=suse.de", "smtp-out2.suse.de;\n\tdkim=pass header.d=suse.de header.s=susede2_rsa header.b=g7M3BHrd;\n\tdkim=pass header.d=suse.de header.s=susede2_ed25519 header.b=B0b8vIER" ], "Received": [ "from tor.lore.kernel.org (tor.lore.kernel.org\n [IPv6:2600:3c04:e001:36c::12fc:5321])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519 server-signature ECDSA (secp384r1) server-digest SHA384)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4fvcRM0f1Hz1y2d\n\tfor <incoming@patchwork.ozlabs.org>; Tue, 14 Apr 2026 05:09:51 +1000 (AEST)", "from smtp.subspace.kernel.org (conduit.subspace.kernel.org\n [100.90.174.1])\n\tby tor.lore.kernel.org (Postfix) with ESMTP id 71F8D302D584\n\tfor <incoming@patchwork.ozlabs.org>; Mon, 13 Apr 2026 19:08:22 +0000 (UTC)", "from localhost.localdomain (localhost.localdomain [127.0.0.1])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id D18C0390981;\n\tMon, 13 Apr 2026 19:08:19 +0000 (UTC)", "from smtp-out2.suse.de (smtp-out2.suse.de [195.135.223.131])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))\n\t(No client certificate requested)\n\tby smtp.subspace.kernel.org (Postfix) with ESMTPS id 912541A3166\n\tfor <linux-cifs@vger.kernel.org>; Mon, 13 Apr 2026 19:08:18 +0000 (UTC)", "from imap1.dmz-prg2.suse.org (imap1.dmz-prg2.suse.org\n [IPv6:2a07:de40:b281:104:10:150:64:97])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest\n SHA256)\n\t(No client certificate requested)\n\tby smtp-out2.suse.de (Postfix) with ESMTPS id CFD3E5BDB1;\n\tMon, 13 Apr 2026 19:08:12 +0000 (UTC)", "from imap1.dmz-prg2.suse.org (localhost [127.0.0.1])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest\n SHA256)\n\t(No client certificate requested)\n\tby imap1.dmz-prg2.suse.org (Postfix) with ESMTPS id 5D9774B03B;\n\tMon, 13 Apr 2026 19:08:12 +0000 (UTC)", "from dovecot-director2.suse.de ([2a07:de40:b281:106:10:150:64:167])\n\tby imap1.dmz-prg2.suse.org with ESMTPSA\n\tid Z4aUCRw/3WnHEAAAD6G6ig\n\t(envelope-from <ematsumiya@suse.de>); Mon, 13 Apr 2026 19:08:12 +0000" ], "ARC-Seal": "i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;\n\tt=1776107299; cv=none;\n b=clRKeajo1HYKyDFzLvbB0IG9JXTDGNy8GwJCF1ombyWsGNWhdRl9E9HsbnKNvAVLAaSMkD81trIGI8RfbTEr5s5Eb5YeS2vo3yda3qqehoeb5hfRTJ2x3nCwZOM/DeR3LSAk9Vr80epx3PocYm50VilpBDUULyDV3F4E8aolQwM=", "ARC-Message-Signature": "i=1; a=rsa-sha256; d=subspace.kernel.org;\n\ts=arc-20240116; t=1776107299; c=relaxed/simple;\n\tbh=dlaX8MnrFI35YUNAuoemOBrbgxuU+rRc9OKW9U44tAE=;\n\th=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References:\n\t MIME-Version;\n b=aFnzWgvIYhamu3I+ttSrPkl6BLLrCIKuxjdwXI8ualnaKUWxmVw3L6BC5lZXJEO3MIfFwddVPN1rsiyQczoQPp2e0Uu1pWtcqxpyLzTH1lCSR2KmwJOxvoSujC1LBfiByzXhfiCcpKpjD0wt5A7Vaqa9H41pLdXGzkpDODMkhII=", "ARC-Authentication-Results": "i=1; smtp.subspace.kernel.org;\n dmarc=pass (p=none dis=none) header.from=suse.de;\n spf=pass smtp.mailfrom=suse.de;\n dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de\n header.b=g7M3BHrd;\n dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de\n header.b=B0b8vIER;\n dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de\n header.b=g7M3BHrd;\n dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de\n header.b=B0b8vIER; arc=none smtp.client-ip=195.135.223.131", "DKIM-Signature": [ "v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de;\n s=susede2_rsa;\n\tt=1776107292;\n h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc:\n\t mime-version:mime-version:\n\t content-transfer-encoding:content-transfer-encoding:\n\t in-reply-to:in-reply-to:references:references;\n\tbh=xttXmAaurVdwurMF9HUVNAG1SNwl+0Fa4fXhYY+62+w=;\n\tb=g7M3BHrdvjLEm9FPldAMddCW+k6m0Enyc3xOcH7/JVPVPRSve5geI1sF6a9MVQ75EHGnHQ\n\tV3+6+3pef8ZooFrY3/ZOx6hpHjHuG7bmRZ+HjZrZNUWtwinVLc6THbKpdE/i+6i2F37TPn\n\t1vlrbVgSMwbyyuKCOVDrQmI6AvUTgEM=", "v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de;\n\ts=susede2_ed25519; t=1776107292;\n\th=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc:\n\t mime-version:mime-version:\n\t content-transfer-encoding:content-transfer-encoding:\n\t in-reply-to:in-reply-to:references:references;\n\tbh=xttXmAaurVdwurMF9HUVNAG1SNwl+0Fa4fXhYY+62+w=;\n\tb=B0b8vIERWYfyA2OY4OswPjxDXZWUFgLWceO7hVALQK2EWj3tGemSeynfrOHxxqJ6q6qeKB\n\tXw8qn770jemwudBQ==", "v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de;\n s=susede2_rsa;\n\tt=1776107292;\n h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc:\n\t mime-version:mime-version:\n\t content-transfer-encoding:content-transfer-encoding:\n\t in-reply-to:in-reply-to:references:references;\n\tbh=xttXmAaurVdwurMF9HUVNAG1SNwl+0Fa4fXhYY+62+w=;\n\tb=g7M3BHrdvjLEm9FPldAMddCW+k6m0Enyc3xOcH7/JVPVPRSve5geI1sF6a9MVQ75EHGnHQ\n\tV3+6+3pef8ZooFrY3/ZOx6hpHjHuG7bmRZ+HjZrZNUWtwinVLc6THbKpdE/i+6i2F37TPn\n\t1vlrbVgSMwbyyuKCOVDrQmI6AvUTgEM=", "v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de;\n\ts=susede2_ed25519; t=1776107292;\n\th=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc:\n\t mime-version:mime-version:\n\t content-transfer-encoding:content-transfer-encoding:\n\t in-reply-to:in-reply-to:references:references;\n\tbh=xttXmAaurVdwurMF9HUVNAG1SNwl+0Fa4fXhYY+62+w=;\n\tb=B0b8vIERWYfyA2OY4OswPjxDXZWUFgLWceO7hVALQK2EWj3tGemSeynfrOHxxqJ6q6qeKB\n\tXw8qn770jemwudBQ==" ], "From": "Enzo Matsumiya <ematsumiya@suse.de>", "To": "linux-cifs@vger.kernel.org", "Cc": "smfrench@gmail.com,\n\tpc@manguebit.com,\n\tronniesahlberg@gmail.com,\n\tsprasad@microsoft.com,\n\ttom@talpey.com,\n\tbharathsm@microsoft.com,\n\thenrique.carvalho@suse.com", "Subject": "[PATCH 8/8] smb: common: add SMB3_COMPRESS_MAX_ALGS", "Date": "Mon, 13 Apr 2026 16:07:13 -0300", "Message-ID": "<20260413190713.283939-8-ematsumiya@suse.de>", "X-Mailer": "git-send-email 2.53.0", "In-Reply-To": "<20260413190713.283939-1-ematsumiya@suse.de>", "References": "<20260413190713.283939-1-ematsumiya@suse.de>", "Precedence": "bulk", "X-Mailing-List": "linux-cifs@vger.kernel.org", "List-Id": "<linux-cifs.vger.kernel.org>", "List-Subscribe": "<mailto:linux-cifs+subscribe@vger.kernel.org>", "List-Unsubscribe": "<mailto:linux-cifs+unsubscribe@vger.kernel.org>", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "X-Rspamd-Action": "no action", "X-Rspamd-Server": "rspamd2.dmz-prg2.suse.org", "X-Spamd-Result": "default: False [-3.01 / 50.00];\n\tBAYES_HAM(-3.00)[99.99%];\n\tNEURAL_HAM_LONG(-1.00)[-1.000];\n\tMID_CONTAINS_FROM(1.00)[];\n\tR_MISSING_CHARSET(0.50)[];\n\tR_DKIM_ALLOW(-0.20)[suse.de:s=susede2_rsa,suse.de:s=susede2_ed25519];\n\tNEURAL_HAM_SHORT(-0.20)[-1.000];\n\tMIME_GOOD(-0.10)[text/plain];\n\tMX_GOOD(-0.01)[];\n\tTO_DN_NONE(0.00)[];\n\tRCVD_VIA_SMTP_AUTH(0.00)[];\n\tFUZZY_RATELIMITED(0.00)[rspamd.com];\n\tFROM_HAS_DN(0.00)[];\n\tARC_NA(0.00)[];\n\tMIME_TRACE(0.00)[0:+];\n\tFREEMAIL_CC(0.00)[gmail.com,manguebit.com,microsoft.com,talpey.com,suse.com];\n\tTO_MATCH_ENVRCPT_ALL(0.00)[];\n\tFREEMAIL_ENVRCPT(0.00)[gmail.com];\n\tRCPT_COUNT_SEVEN(0.00)[8];\n\tDKIM_SIGNED(0.00)[suse.de:s=susede2_rsa,suse.de:s=susede2_ed25519];\n\tRCVD_TLS_ALL(0.00)[];\n\tFROM_EQ_ENVFROM(0.00)[];\n\tRCVD_COUNT_TWO(0.00)[2];\n\tDBL_BLOCKED_OPENRESOLVER(0.00)[suse.de:dkim,suse.de:mid,suse.de:email];\n\tDKIM_TRACE(0.00)[suse.de:+]", "X-Rspamd-Queue-Id": "CFD3E5BDB1", "X-Spam-Flag": "NO", "X-Spam-Score": "-3.01", "X-Spam-Level": "" }, "content": "Set it to number of currently defined algorithms (6 as of now).\n\nSigned-off-by: Enzo Matsumiya <ematsumiya@suse.de>\n---\n fs/smb/common/smb2pdu.h | 2 ++\n 1 file changed, 2 insertions(+)", "diff": "diff --git a/fs/smb/common/smb2pdu.h b/fs/smb/common/smb2pdu.h\nindex e482c86ceb00..cda71964ed01 100644\n--- a/fs/smb/common/smb2pdu.h\n+++ b/fs/smb/common/smb2pdu.h\n@@ -510,6 +510,8 @@ struct smb2_encryption_neg_context {\n /* Pattern scanning algorithm See MS-SMB2 3.1.4.4.1 */\n #define SMB3_COMPRESS_PATTERN\tcpu_to_le16(0x0004) /* Pattern_V1 */\n #define SMB3_COMPRESS_LZ4\tcpu_to_le16(0x0005)\n+/* Account for NONE for easier array indexing */\n+#define SMB3_COMPRESS_MAX_ALGS\t6\n \n /* Compression Flags */\n #define SMB2_COMPRESSION_CAPABILITIES_FLAG_NONE\t\tcpu_to_le32(0x00000000)\n", "prefixes": [ "8/8" ] }