aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/uio/Makefile
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.com>2022-11-03 14:39:01 +0100
committerDavid Sterba <dsterba@suse.com>2022-11-07 14:34:57 +0100
commit8bb808c6ad91ec3d332f072ce8f8aa4b16e307e0 (patch)
treea812244408096e23b2a64cb6402cd19befe82f37 /drivers/uio/Makefile
parent9b2f20344d450137d015b380ff0c2e2a6a170135 (diff)
downloadlinux-8bb808c6ad91ec3d332f072ce8f8aa4b16e307e0.tar.gz
btrfs: don't print stack trace when transaction is aborted due to ENOMEM
Add ENOMEM among the error codes that don't print stack trace on transaction abort. We've got several reports from syzbot that detects stacks as errors but caused by limiting memory. As this is an artificial condition we don't need to know where exactly the error happens, the abort and error cleanup will continue like e.g. for EIO. As the transaction aborts code needs to be inline in a lot of code, the implementation cases about minimal bloat. The error codes are in a separate function and the WARN uses the condition directly. This increases the code size by 571 bytes on release build. Alternatives considered: add -ENOMEM among the errors, this increases size by 2340 bytes, various attempts to combine the WARN and helper calls, increase by 700 or more bytes. Example syzbot reports (error -12): - https://syzkaller.appspot.com/bug?extid=5244d35be7f589cf093e - https://syzkaller.appspot.com/bug?extid=9c37714c07194d816417 Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'drivers/uio/Makefile')
0 files changed, 0 insertions, 0 deletions