aboutsummaryrefslogtreecommitdiffstats
path: root/net/lapb/lapb_timer.c
diff options
context:
space:
mode:
authorGustavo Luiz Duarte <[email protected]>2025-06-09 18:24:20 +0000
committerJakub Kicinski <[email protected]>2025-06-10 22:52:08 +0000
commitc85bf1975108d2e2431c11d1cb7e95aca587dfbe (patch)
tree1d3924987cc100771d421c4041deebeb07b3dca3 /net/lapb/lapb_timer.c
parentnet: Fix TOCTOU issue in sk_is_readable() (diff)
downloadkernel-c85bf1975108d2e2431c11d1cb7e95aca587dfbe.tar.gz
kernel-c85bf1975108d2e2431c11d1cb7e95aca587dfbe.zip
netconsole: fix appending sysdata when sysdata_fields == SYSDATA_RELEASE
Before appending sysdata, prepare_extradata() checks if any feature is enabled in sysdata_fields (and exits early if none is enabled). When SYSDATA_RELEASE was introduced, we missed adding it to the list of features being checked against sysdata_fields in prepare_extradata(). The result was that, if only SYSDATA_RELEASE is enabled in sysdata_fields, we incorreclty exit early and fail to append the release. Instead of checking specific bits in sysdata_fields, check if sysdata_fields has ALL bit zeroed and exit early if true. This fixes case when only SYSDATA_RELEASE enabled and makes the code more general / less error prone in future feature implementation. Signed-off-by: Gustavo Luiz Duarte <[email protected]> Reviewed-by: Breno Leitao <[email protected]> Fixes: cfcc9239e78a ("netconsole: append release to sysdata") Link: https://patch.msgid.link/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'net/lapb/lapb_timer.c')
0 files changed, 0 insertions, 0 deletions